Mongodb::Version
Use this gem to ask questions of MongoDB versions. You can compare versions, and determine capabilities.
Installation
Add this line to your application's Gemfile:
gem 'mongodb-version'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mongodb-version
Usage
MongoDB::Version['2.4.6'].ttl_collections? => true
MongoDB::Version['2.0.6'].ttl_collections? => false
MongoDB::Version['2.6.0'].authentication_schemes => [2]
MongoDB::Version['2.4.6'].authentication_schemes => [1,2]
MongoDB::Version['2.2.6'].authentication_schemes => [1]
Contributing
- 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