Added uri option handling.#6
Conversation
There was a problem hiding this comment.
Does from_uri also allow you to pass a URI without inline user/password included, and then call authenticate similarly to connection by enumerated options? If so it would be nice to support that here. That's my only feedback, otherwise I think this pull request looks good.
There was a problem hiding this comment.
There was a problem hiding this comment.
My question was semi-rhetorical 😉 The answer is indeed "yes."
The value of the option also ought to default to ENV['MONGODB_URI'].
There was a problem hiding this comment.
MONGODB_URI is not the only available key. For example if you use MongoLab addon on heroku, it'll be MONGOLAB_URI.
|
Is this being pulled in at some point? This would be a nice feature to have. |
Heroku usecase: