Skip to content

Commit b9ed5af

Browse files
committed
Test Ruby 3.1.7 and 4.0.0.
1 parent bf4d55c commit b9ed5af

File tree

6 files changed

+16
-12
lines changed

6 files changed

+16
-12
lines changed

.github/workflows/rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ jobs:
88
- name: Set up Ruby
99
uses: ruby/setup-ruby@v1
1010
with:
11-
ruby-version: 3.4
11+
ruby-version: '3.4'
1212
bundler-cache: true
1313
- run: bundle exec rubocop

.github/workflows/test.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,20 @@ jobs:
99
fail-fast: false
1010
matrix:
1111
entry:
12-
- { ruby: '3.0.5', mongo: 'mongo:4.4', mongoid: '5' }
12+
- { ruby: '3.1.7', mongo: 'mongo:4.4', mongoid: '5' }
1313
# - { ruby: 'jruby-9.1.17.0', mongo: 'mongo:4.4', mongoid: '5' }
1414
- { ruby: 'jruby-9.4.13.0', mongo: 'mongo:4.4', mongoid: '5' }
15-
- { ruby: '3.0.5', mongo: 'mongo:4.4', mongoid: '6' }
16-
- { ruby: '3.1.3', mongo: 'mongo:4.4', mongoid: '6' }
15+
- { ruby: '3.1.7', mongo: 'mongo:4.4', mongoid: '6' }
16+
- { ruby: '3.4.8', mongo: 'mongo:4.4', mongoid: '6' }
1717
- { ruby: 'jruby-9.4.13.0', mongo: 'mongo:4.4', mongoid: '6' }
18-
- { ruby: '3.0.5', mongo: 'mongo:4.4', mongoid: '7', coverage: 'true' }
19-
- { ruby: '3.1.3', mongo: 'mongo:4.4', mongoid: '7' }
18+
- { ruby: '3.1.7', mongo: 'mongo:4.4', mongoid: '7', coverage: 'true' }
19+
- { ruby: '3.4.8', mongo: 'mongo:4.4', mongoid: '7' }
2020
# - { ruby: 'jruby-9.4.13.0', mongo: 'mongo:4.4', mongoid: '7' }
21-
- { ruby: '3.0.5', mongo: 'mongo:6.0', mongoid: '8' }
22-
- { ruby: '3.1.3', mongo: 'mongo:7.0', mongoid: '8' }
23-
- { ruby: '3.1.3', mongo: 'mongo:8.0', mongoid: '9' }
21+
- { ruby: '3.1.7', mongo: 'mongo:6.0', mongoid: '8' }
22+
- { ruby: '3.4.8', mongo: 'mongo:7.0', mongoid: '8' }
23+
- { ruby: '3.4.8', mongo: 'mongo:8.0', mongoid: '9' }
24+
- { ruby: '4.0.0', mongo: 'mongo:7.0', mongoid: '8' }
25+
- { ruby: '4.0.0', mongo: 'mongo:8.0', mongoid: '9' }
2426
# - { ruby: 'jruby-9.4.13.0', mongo: 'mongo:8.0', mongoid: '8' }
2527
experimental: [false]
2628

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
* [#109](https://github.com/mongoid/mongoid-locker/pull/109): Migrate Danger to use danger-pr-comment workflow - [@dblock](https://github.com/dblock).
66
* [#109](https://github.com/mongoid/mongoid-locker/pull/109): Remove support for Ruby 2.x - [@dblock](https://github.com/dblock).
7+
* [#109](https://github.com/mongoid/mongoid-locker/pull/109): Add support for Ruby 4.0 - [@dblock](https://github.com/dblock).
78
* Your contribution here.
89

910
### 2.2.0 (2025-06-22)

Gemfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@ end
2727
group :development, :test do
2828
gem 'pry-byebug', platforms: :mri
2929

30-
gem 'bigdecimal'
30+
gem 'bigdecimal', '1.3.5'
3131
gem 'danger', require: false
3232
gem 'danger-changelog', require: false
3333
gem 'danger-pr-comment', require: false
3434
gem 'mongoid-compatibility'
3535
gem 'mongoid-history'
36+
gem 'mutex_m'
3637
gem 'rspec', '~> 3.9'
3738
gem 'rubocop', '1.81.1'
3839
gem 'rubocop-rake'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Document-level optimistic locking for MongoDB via Mongoid. Mongoid-Locker is an
1212
**NOTE:** Please refer to [1-x-stable](https://github.com/mongoid/mongoid-locker/tree/1-x-stable) branch for `1.x.x` documentation. See the [UPGRADING](UPGRADING.md) guide and [CHANGELOG](CHANGELOG.md) for an overview of the changes.
1313

1414
[Tested](https://github.com/mongoid/mongoid-locker/actions) against:
15-
- MRI: `3.0.5`, `3.1.3`
15+
- MRI: `3.x`, `4.x`
1616
- JRuby `9.1.17.0`, `9.2.11.1`
1717
- Mongoid: `5`, `6`, `7`, `8`, `9`
1818

lib/mongoid/locker/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module Mongoid
44
module Locker
5-
VERSION = '2.2.1'
5+
VERSION = '2.3.0'
66
end
77
end

0 commit comments

Comments
 (0)