Skip to content

Commit

Permalink
upgrade to mongoid 9
Browse files Browse the repository at this point in the history
fix rubocop

fix readme

update changelog:
'

update change log, capture release version as 2.0.3

remove line in changelog
  • Loading branch information
Sai Srinivasan authored and sairamsrinivasan committed May 6, 2024
1 parent 3b26ba2 commit 73837ad
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- { ruby: '2.7.1', mongo: 'mongo:4.4', mongoid: '8' }
- { ruby: '3.0.5', mongo: 'mongo:4.4', mongoid: '8' }
- { ruby: '3.1.3', mongo: 'mongo:4.4', mongoid: '8' }
- { ruby: '3.1.3', mongo: 'mongo:4.4', mongoid: '9' }
experimental: [false]

name: test (ruby=${{ matrix.entry.ruby }}, mongo=${{ matrix.entry.mongo }}, mongoid=${{ matrix.entry.mongoid }})
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
* [#102](https://github.com/mongoid/mongoid-locker/pull/102): Re-added danger, removed Travis-CI config, extracted RuboCop - [@dblock](https://github.com/dblock).
* [#104](https://github.com/mongoid/mongoid-locker/pull/104): Fixed code coverage - [@dblock](https://github.com/dblock).
* [#101](https://github.com/mongoid/mongoid-locker/pull/101): Replace the $where operator with the $expr operator - [@amanfrinati](https://github.com/amanfrinati).
* Your contribution here.
* [#105](https://github.com/mongoid/mongoid-locker/pull/105): Upgraded supported mongoid version to version 9.0 - [@saisrinivasan](https://github.com/SairamSrinivasan)
* Your contribution here

### 2.0.2 (2023-01-24)

Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ source 'https://rubygems.org'
gemspec

case ENV['MONGOID_VERSION']
when /^9/
gem 'mongoid', '~> 9.0'
when /^8/
gem 'mongoid', '~> 8.0'
when /^7/
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Document-level optimistic locking for MongoDB via Mongoid. Mongoid-Locker is an
[Tested](https://github.com/mongoid/mongoid-locker/actions) against:
- MRI: `2.3.8`, `2.4.7`, `2.5.7`, `2.6.6`, `2.7.1`, `3.0.5`, `3.1.3`
- JRuby `9.1.17.0`, `9.2.11.1`
- Mongoid: `5`, `6`, `7`, `8`
- Mongoid: `5`, `6`, `7`, `8`, '9'

See [.github/workflows/test.yml](.github/workflows/test.yml) for the latest test matrix.

Expand Down
2 changes: 1 addition & 1 deletion mongoid-locker.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ Gem::Specification.new do |s|
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec)/}) }
s.require_paths = ['lib']

s.add_dependency 'mongoid', '>= 5.0', '< 9'
s.add_dependency 'mongoid', '>= 5.0', '< 10'
end

0 comments on commit 73837ad

Please sign in to comment.