Skip to content

Commit

Permalink
Allow Mongoid 9.0.3+ now that the client override isolation bug has b…
Browse files Browse the repository at this point in the history
…een fixed and released (v1.6.1)
  • Loading branch information
jarthod committed Nov 19, 2024
1 parent a00eea1 commit eb1fe16
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
gemfile:
- rails6-mongoid7
- rails7-mongoid8
# - rails7-mongoid9
- rails8-mongoid9
include:
- ruby_version: '2.4'
gemfile: rails5-mongoid6
Expand Down
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,12 @@ Global migrations can still be created with the `--no-shards` option.

## Unreleased

[Compare master with 1.6.0](https://github.com/adacosta/mongoid_rails_migrations/compare/v1.6.0...master)
[Compare master with 1.6.1](https://github.com/adacosta/mongoid_rails_migrations/compare/v1.6.1...master)

## 1.6.1
_12/09/2024_
* Allow Mongoid 9.0.3+ now that the client override isolation bug has been fixed and released: https://jira.mongodb.org/browse/MONGOID-5815
* Add testing gemfile for Rails 8 + Mongoid 9 to the matrix

## 1.6.0
_12/09/2024_
Expand Down Expand Up @@ -140,9 +145,19 @@ _18/08/2015_
# Tests

```
$ bundle install
$ bundle exec rake
```

Test a specific rails/mongoid version gemfile:

```
$ BUNDLE_GEMFILE=gemfiles/rails8-mongoid9 bundle install
$ BUNDLE_GEMFILE=gemfiles/rails8-mongoid9 bundle exec rake
```

Note: if you already ran the command a while ago, you can use `bundle update` instead of `bundle install` to fetch latest compatible versions.

# Credits to

* rails
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails7-mongoid9 → gemfiles/rails8-mongoid9
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source "https://rubygems.org"
gemspec path: ".."
gem 'rails', '~> 7.1'
gem 'rails', '~> 8.0'
gem 'mongoid', '~> 9.0'
2 changes: 1 addition & 1 deletion lib/mongoid_rails_migrations/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module MongoidRailsMigrations #:nodoc:
VERSION = '1.6.0'
VERSION = '1.6.1'
end
3 changes: 2 additions & 1 deletion mongoid_rails_migrations.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ Gem::Specification.new do |spec|

spec.add_runtime_dependency('bundler', '>= 1.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')
# got fixed in 9.0.3 so rejectings versions in between to prevent bad surprises:
spec.add_runtime_dependency('mongoid', '>= 5.0.0', '!= 9.0.0', '!= 9.0.1', '!= 9.0.2')
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 eb1fe16

Please sign in to comment.