diff --git a/Gemfile b/Gemfile index 752d2da23..6799774e8 100644 --- a/Gemfile +++ b/Gemfile @@ -59,13 +59,13 @@ end if ENV['MONGOID_VERSION'] case ENV['MONGOID_VERSION'] when /^7/ - gem 'mongoid', '~> 7' + gem 'mongoid', '>= 4', '< 10' when /^6/ - gem 'mongoid', '~> 6' + gem 'mongoid', '>= 4', '< 10' when /^5/ - gem 'mongoid', '~> 5' + gem 'mongoid', '>= 4', '< 10' else - gem 'mongoid', '>= 5' + gem 'mongoid', '>= 4', '< 10' end gem 'mongoid-locker', '~> 2.0' diff --git a/devise_token_auth.gemspec b/devise_token_auth.gemspec index 8715a483c..ec920aedb 100644 --- a/devise_token_auth.gemspec +++ b/devise_token_auth.gemspec @@ -30,6 +30,6 @@ Gem::Specification.new do |s| s.add_development_dependency 'sqlite3', '~> 2.0' s.add_development_dependency 'pg' s.add_development_dependency 'mysql2' - s.add_development_dependency 'mongoid', '>= 4', '< 8' + s.add_development_dependency 'mongoid', '>= 4', '< 10' s.add_development_dependency 'mongoid-locker', '~> 2.0' end