Gemfile in mongoid-path_extension-0.1.1 vs Gemfile in mongoid-path_extension-0.1.2
- old
+ new
@@ -1,4 +1,11 @@
source 'https://rubygems.org'
# Specify your gem's dependencies in mongoid-path_extension.gemspec
gemspec
+
+case version = ENV['MONGOID_VERSION'] || '~> 7.0'
+when /7/ then gem 'mongoid', '~> 7.0'
+when /6/ then gem 'mongoid', '~> 6.0'
+when /5/ then gem 'mongoid', '~> 5.1'
+else gem 'mongoid', version
+end