Skip to content

Commit

Permalink
Add support for mongoid 8 & 9
Browse files Browse the repository at this point in the history
  • Loading branch information
abrisse committed Jun 17, 2024
1 parent cc88c52 commit f1a35fb
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ rvm:
gemfile:
- gemfiles/Gemfile.mongoid-6
- gemfiles/Gemfile.mongoid-7
- gemfiles/Gemfile.mongoid-8
- gemfiles/Gemfile.mongoid-9
- Gemfile
services:
- mongodb
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ In addition, mongoid-multitenancy:
Compatibility
===============

mongoid-multitenancy 2.0 is compatible with mongoid 6/7. For mongoid 4/5 compatiblity, use mongoid-multitenancy 1.2.
mongoid-multitenancy 2 is compatible with mongoid 6/7/8/9. For mongoid 4/5 compatiblity, use mongoid-multitenancy 1.2.

Installation
===============
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/Gemfile.mongoid-6
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ gem 'mongoid', '~> 6.0'
gem 'rake'

group :test do
gem 'database_cleaner'
gem 'database_cleaner-mongoid'
gem 'coveralls', require: false
gem 'rspec', '~> 3.1'
gem 'yard'
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/Gemfile.mongoid-7
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ gem 'mongoid', '~> 7.0'
gem 'rake'

group :test do
gem 'database_cleaner'
gem 'database_cleaner-mongoid'
gem 'coveralls', require: false
gem 'rspec', '~> 3.1'
gem 'yard'
Expand Down
14 changes: 14 additions & 0 deletions gemfiles/Gemfile.mongoid-8
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
source 'https://rubygems.org'

gem 'mongoid', '~> 8.0'

gem 'rake'

group :test do
gem 'database_cleaner-mongoid'
gem 'coveralls', require: false
gem 'rspec', '~> 3.1'
gem 'yard'
gem 'mongoid-rspec', git: 'https://github.com/mongoid-rspec/mongoid-rspec.git'
gem 'rubocop', require: false
end
14 changes: 14 additions & 0 deletions gemfiles/Gemfile.mongoid-9
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
source 'https://rubygems.org'

gem 'mongoid', '~> 9.0'

gem 'rake'

group :test do
gem 'database_cleaner-mongoid'
gem 'coveralls', require: false
gem 'rspec', '~> 3.1'
gem 'yard'
gem 'mongoid-rspec', git: 'https://github.com/mongoid-rspec/mongoid-rspec.git'
gem 'rubocop', require: false
end
2 changes: 1 addition & 1 deletion mongoid-multitenancy.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ Gem::Specification.new do |gem|
gem.require_paths = ['lib']
gem.version = Mongoid::Multitenancy::VERSION

gem.add_dependency('mongoid', '>= 6', '< 8')
gem.add_dependency('mongoid', '>= 6', '< 10')
end

0 comments on commit f1a35fb

Please sign in to comment.