Use this gem to ask questions of MongoDB versions. You can compare versions, and determine capabilities.
Add this line to your application's Gemfile:
gem 'mongodb-version'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mongodb-version
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]
- 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