Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for issue 64 and mongo > 1.8.3 #65

Merged
merged 3 commits into from
Jul 8, 2013
Merged

Conversation

joshfreed
Copy link
Contributor

Seems like some changes in mongo 1.8.4 broke qu-mongo backend as noted in issue #64. This pull request fixes the issue. I tested mongo 1.8.6 and 1.8.3 and the changeset works for both and all the tests pass on both.

…option

It seems mongo-ruby-driver v1.8.4 switched from strings to symbols when referencing the MongoClient::@auths hash

mongodb/mongo-ruby-driver@6428bf6#L1L244
Starting in Mongo 1.8.4 the keys of the auths hash are symbols. The qu-mongo backend probably shouldn't care how mongo keys its hashes so I updated the code to avoid manipulating auths directly.

Also, the Connection class appears to be deprecated so I updated this to use the replacement MongoClient instead.
bkeepers added a commit that referenced this pull request Jul 8, 2013
Fix for issue 64 and mongo > 1.8.3
@bkeepers bkeepers merged commit b7acefa into bkeepers:master Jul 8, 2013
@bkeepers
Copy link
Owner

bkeepers commented Jul 8, 2013

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants