Skip to content

Commit

Permalink
skip mongoid 9 + fix gemfiles to actually specify mongoid version
Browse files Browse the repository at this point in the history
  • Loading branch information
jarthod committed Sep 12, 2024
1 parent 3dcb39a commit 1bd631b
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 14 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby_version: ['2.7', '3.0', '3.1', 'jruby']
ruby_version: ['2.7', '3.0', '3.1', '3.2', '3.3', 'jruby']
gemfile:
- rails-5.0-mongoid-6.x
- rails-5.2-mongoid-7.x
- rails-6.0-mongoid-7.x
- rails5-mongoid6
- rails5-mongoid7
- rails6-mongoid7
- rails7-mongoid8
# - rails7-mongoid9
include:
# - ruby_version: '2.4'
# gemfile: rails-4.2-mongoid-5.x
- ruby_version: '3.3'
- ruby_version: head
gemfile: rails-edge

env:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ Global migrations can still be created with the `--no-shards` option.

* Remove unnecessary purge, setup, reset, etc. rake tasks because they are already defined by Mongoid (#60)
* Minor tests improvements
* Rejects Mongoid 9.0 for the moment because it broke client override isolation: https://jira.mongodb.org/browse/MONGOID-5815

## 1.5.0
_26/03/2021_
Expand Down
3 changes: 2 additions & 1 deletion gemfiles/rails-4.2-mongoid-5.x → gemfiles/rails5-mongoid6
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
source "https://rubygems.org"
gemspec path: ".."
gem 'rails', '~> 4.2.0'
gem 'rails', '~> 5.0'
gem 'mongoid', '~> 6.0'
3 changes: 2 additions & 1 deletion gemfiles/rails-5.0-mongoid-6.x → gemfiles/rails5-mongoid7
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
source "https://rubygems.org"
gemspec path: ".."
gem 'rails', '~> 5.0.0'
gem 'rails', '~> 5.2'
gem 'mongoid', '~> 7.0'
3 changes: 2 additions & 1 deletion gemfiles/rails-5.2-mongoid-7.x → gemfiles/rails6-mongoid7
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
source "https://rubygems.org"
gemspec path: ".."
gem 'rails', '~> 5.2.0'
gem 'rails', '~> 6.1'
gem 'mongoid', '~> 7.0'
3 changes: 2 additions & 1 deletion gemfiles/rails-6.0-mongoid-7.x → gemfiles/rails7-mongoid8
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
source "https://rubygems.org"
gemspec path: ".."
gem 'rails', '~> 6.0.0'
gem 'rails', '~> 7.1'
gem 'mongoid', '~> 8.0'
4 changes: 4 additions & 0 deletions gemfiles/rails7-mongoid9
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source "https://rubygems.org"
gemspec path: ".."
gem 'rails', '~> 7.1'
gem 'mongoid', '~> 9.0'
7 changes: 4 additions & 3 deletions mongoid_rails_migrations.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ require 'mongoid_rails_migrations/version'
Gem::Specification.new do |spec|
spec.name = 'mongoid_rails_migrations'
spec.version = MongoidRailsMigrations::VERSION
spec.authors = ['Alan Da Costa']
spec.email = ['[email protected]']
spec.authors = ['Alan Da Costa', 'Adrien Rey-Jarthon']
spec.email = ['[email protected]', '[email protected]']

spec.summary = 'Data migrations for Mongoid.'
spec.description = 'Data migrations for Mongoid in Active Record style, minus column input.'
Expand All @@ -19,7 +19,8 @@ Gem::Specification.new do |spec|
rails_version = '>= 4.2.0'

spec.add_runtime_dependency('bundler', '>= 1.0.0')
spec.add_runtime_dependency('mongoid', '>= 5.0.0')
# 9.0.0 broke client override isolation: https://jira.mongodb.org/browse/MONGOID-5815
spec.add_runtime_dependency('mongoid', '>= 5.0.0', '< 9.0.0')
spec.add_runtime_dependency('rails', rails_version)
spec.add_runtime_dependency('railties', rails_version)
spec.add_runtime_dependency('activesupport', rails_version)
Expand Down

0 comments on commit 1bd631b

Please sign in to comment.