Add this line to your application's Gemfile:
gem "mongo_ext", :git => "[email protected]:biot023/mongo_ext.git"
And then execute:
$ bundle
require "b23/mongo_ext"
Really simple wrappers over collections, allowing to try operations, then attempt a reconnect and try again in the case of mongo errors. Can access the client, db, and collection, but there is a check each time to see if the client is connected. Useful for exactly nobody but me, I rather suspect.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request