diff --git a/.gitignore b/.gitignore index 9a3813e..df7de70 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,7 @@ Gemfile.lock /tmp /.bundle /gemfiles/.bundle +/gemfiles/vendor/bundle ## PROJECT::RVM .rvmrc diff --git a/.travis.yml b/.travis.yml index d3389de..bcacd72 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,6 +16,8 @@ gemfile: - gemfiles/rails_6.1.gemfile - gemfiles/mongoid_5.0.gemfile - gemfiles/mongoid_6.0.gemfile + - gemfiles/mongoid_7.0.gemfile + - gemfiles/mongoid_7.1.gemfile matrix: include: diff --git a/Appraisals b/Appraisals index 6a24bb7..2933392 100644 --- a/Appraisals +++ b/Appraisals @@ -27,10 +27,6 @@ appraise 'rails-6.1' do gem 'rails', '>= 6.1.0', '< 6.2' end -appraise 'mongoid-4.0' do - gem 'mongoid', '~> 4.0.0' -end - appraise 'mongoid-5.0' do gem 'mongoid', '~> 5.0.0' end @@ -39,6 +35,14 @@ appraise 'mongoid-6.0' do gem 'mongoid', '~> 6.0.0' end +appraise 'mongoid-7.0' do + gem 'mongoid', '~> 7.0.0' +end + +appraise 'mongoid-7.1' do + gem 'mongoid', '~> 7.1.0' +end + # appraise 'mongo_mapper' do # gem 'mongo_mapper' # end diff --git a/gemfiles/mongoid_7.0.gemfile b/gemfiles/mongoid_7.0.gemfile new file mode 100644 index 0000000..ddda5c4 --- /dev/null +++ b/gemfiles/mongoid_7.0.gemfile @@ -0,0 +1,7 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "mongoid", "~> 7.0.0" + +gemspec path: "../" diff --git a/gemfiles/mongoid_7.1.gemfile b/gemfiles/mongoid_7.1.gemfile new file mode 100644 index 0000000..a2d1c71 --- /dev/null +++ b/gemfiles/mongoid_7.1.gemfile @@ -0,0 +1,7 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "mongoid", "~> 7.1.0" + +gemspec path: "../" diff --git a/spec/support/mongoid_versions.rb b/spec/support/mongoid_versions.rb index 0cfb569..1c9c84e 100644 --- a/spec/support/mongoid_versions.rb +++ b/spec/support/mongoid_versions.rb @@ -3,10 +3,6 @@ module MongoidVersions Gem::Version.new(Mongoid::VERSION) end - def mongoid_4_0? - Gem::Requirement.new('~> 4.0.0').satisfied_by?(mongoid_version) - end - def mongoid_5_0? Gem::Requirement.new('~> 5.0.0').satisfied_by?(mongoid_version) end @@ -14,6 +10,14 @@ module MongoidVersions def mongoid_6_0? Gem::Requirement.new('~> 6.0.0').satisfied_by?(mongoid_version) end + + def mongoid_7_0? + Gem::Requirement.new('~> 7.0.0').satisfied_by?(mongoid_version) + end + + def mongoid_7_1? + Gem::Requirement.new('~> 7.1.0').satisfied_by?(mongoid_version) + end end RSpec.configure do |config|