Skip to content

Commit bc95514

Browse files
committed
update ruby versions in CI and gemfiles for mongoid 7, 8, and 9. test
against ruby 3.2 for older versions of mongoid, and test against 3.2, 3.3, and 3.4 for mongoid 9. (ruby 3.1 is EOL)
1 parent 56471e6 commit bc95514

File tree

6 files changed

+179
-55
lines changed

6 files changed

+179
-55
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,35 @@ name: CI
22
on: [push, pull_request]
33
jobs:
44
tests:
5-
name: Tests
5+
name: Ruby ${{ matrix.ruby }} • ${{ matrix.gemfile_name }}
66
runs-on: ${{ matrix.os }}
77
strategy:
88
fail-fast: false
99
matrix:
10-
os: [ubuntu-latest]
11-
ruby: [
12-
"3.1",
13-
]
14-
gemfile: [
15-
"gemfiles/mongoid7",
16-
"gemfiles/mongoid8",
17-
]
18-
experimental: [false]
10+
include:
11+
- os: ubuntu-latest
12+
ruby: "3.2"
13+
gemfile: gemfiles/mongoid7.gemfile
14+
gemfile_name: mongoid7
15+
- os: ubuntu-latest
16+
ruby: "3.2"
17+
gemfile: gemfiles/mongoid8.gemfile
18+
gemfile_name: mongoid8
19+
- os: ubuntu-latest
20+
ruby: "3.2"
21+
gemfile: Gemfile
22+
gemfile_name: mongoid9
23+
- os: ubuntu-latest
24+
ruby: "3.3"
25+
gemfile: Gemfile
26+
gemfile_name: mongoid9
27+
- os: ubuntu-latest
28+
ruby: "3.4"
29+
gemfile: Gemfile
30+
gemfile_name: mongoid9
31+
32+
env:
33+
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
1934

2035
steps:
2136
- name: Checkout code

Gemfile.lock

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,42 +7,47 @@ PATH
77
GEM
88
remote: https://rubygems.org/
99
specs:
10-
activemodel (7.1.3.4)
11-
activesupport (= 7.1.3.4)
12-
activesupport (7.1.3.4)
10+
activemodel (8.0.3)
11+
activesupport (= 8.0.3)
12+
activesupport (8.0.3)
1313
base64
14+
benchmark (>= 0.3)
1415
bigdecimal
15-
concurrent-ruby (~> 1.0, >= 1.0.2)
16+
concurrent-ruby (~> 1.0, >= 1.3.1)
1617
connection_pool (>= 2.2.5)
1718
drb
1819
i18n (>= 1.6, < 2)
20+
logger (>= 1.4.2)
1921
minitest (>= 5.1)
20-
mutex_m
21-
tzinfo (~> 2.0)
22-
base64 (0.2.0)
23-
bigdecimal (3.1.8)
24-
bson (5.0.1)
22+
securerandom (>= 0.3)
23+
tzinfo (~> 2.0, >= 2.0.5)
24+
uri (>= 0.13.1)
25+
base64 (0.3.0)
26+
benchmark (0.4.1)
27+
bigdecimal (3.2.3)
28+
bson (5.1.1)
2529
byebug (11.1.3)
2630
coderay (1.1.3)
27-
concurrent-ruby (1.3.3)
28-
connection_pool (2.4.1)
31+
concurrent-ruby (1.3.5)
32+
connection_pool (2.5.4)
2933
diff-lcs (1.5.1)
3034
docile (1.3.2)
31-
drb (2.2.1)
35+
drb (2.2.3)
3236
given_core (3.8.2)
3337
sorcerer (>= 0.3.7)
34-
i18n (1.14.5)
38+
i18n (1.14.7)
3539
concurrent-ruby (~> 1.0)
3640
json (2.3.1)
41+
logger (1.7.0)
3742
method_source (1.1.0)
38-
minitest (5.24.1)
39-
mongo (2.20.1)
43+
minitest (5.25.5)
44+
mongo (2.21.3)
45+
base64
4046
bson (>= 4.14.1, < 6.0.0)
41-
mongoid (9.0.1)
42-
activemodel (>= 5.1, < 7.2, != 7.0.0)
47+
mongoid (9.0.8)
48+
activemodel (>= 5.1, < 8.1, != 7.0.0)
4349
concurrent-ruby (>= 1.0.5, < 2.0)
4450
mongo (>= 2.18.0, < 3.0.0)
45-
mutex_m (0.2.0)
4651
pry (0.14.2)
4752
coderay (~> 1.1)
4853
method_source (~> 1.0)
@@ -66,6 +71,7 @@ GEM
6671
diff-lcs (>= 1.2.0, < 2.0)
6772
rspec-support (~> 3.13.0)
6873
rspec-support (3.13.1)
74+
securerandom (0.4.1)
6975
simplecov (0.17.1)
7076
docile (~> 1.1)
7177
json (>= 1.8, < 3)
@@ -74,6 +80,7 @@ GEM
7480
sorcerer (2.0.1)
7581
tzinfo (2.0.6)
7682
concurrent-ruby (~> 1.0)
83+
uri (1.0.3)
7784

7885
PLATFORMS
7986
ruby
@@ -88,4 +95,4 @@ DEPENDENCIES
8895
simplecov (~> 0.17.0)
8996

9097
BUNDLED WITH
91-
2.3.22
98+
2.7.2

gemfiles/mongoid7.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ gemspec path: '..'
55
gem 'bundler'
66
gem 'rake'
77
gem 'pry-byebug'
8-
gem 'mongoid', '~> 7.0.0'
8+
gem 'mongoid', '~> 7.5'
99

1010
group :test do
1111
gem 'rspec-given', '~> 3.5'

gemfiles/mongoid7.gemfile.lock

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,40 @@
11
PATH
22
remote: ..
33
specs:
4-
mongoid_includes (3.0.0)
5-
mongoid (>= 7.0.10, < 8.0.0)
4+
mongoid_includes (3.0.3)
5+
mongoid (>= 7.0.10, < 10.0.0)
66

77
GEM
88
remote: https://rubygems.org/
99
specs:
10-
activemodel (6.0.3.4)
11-
activesupport (= 6.0.3.4)
12-
activesupport (6.0.3.4)
10+
activemodel (7.0.8.7)
11+
activesupport (= 7.0.8.7)
12+
activesupport (7.0.8.7)
1313
concurrent-ruby (~> 1.0, >= 1.0.2)
14-
i18n (>= 0.7, < 2)
15-
minitest (~> 5.1)
16-
tzinfo (~> 1.1)
17-
zeitwerk (~> 2.2, >= 2.2.2)
18-
bson (4.11.0)
14+
i18n (>= 1.6, < 2)
15+
minitest (>= 5.1)
16+
tzinfo (~> 2.0)
17+
base64 (0.3.0)
18+
bson (5.1.1)
1919
byebug (11.1.3)
2020
coderay (1.1.3)
21-
concurrent-ruby (1.1.7)
21+
concurrent-ruby (1.3.5)
2222
diff-lcs (1.4.4)
2323
docile (1.3.2)
2424
given_core (3.8.1)
2525
sorcerer (>= 0.3.7)
26-
i18n (1.8.5)
26+
i18n (1.14.7)
2727
concurrent-ruby (~> 1.0)
2828
json (2.3.1)
2929
method_source (1.0.0)
30-
minitest (5.14.2)
31-
mongo (2.13.1)
32-
bson (>= 4.8.2, < 5.0.0)
33-
mongoid (7.0.10)
34-
activemodel (>= 5.1, < 6.1)
35-
mongo (>= 2.7.0, < 3.0.0)
30+
minitest (5.25.5)
31+
mongo (2.21.3)
32+
base64
33+
bson (>= 4.14.1, < 6.0.0)
34+
mongoid (7.5.4)
35+
activemodel (>= 5.1, < 7.1, != 7.0.0)
36+
mongo (>= 2.10.5, < 3.0.0)
37+
ruby2_keywords (~> 0.0.5)
3638
pry (0.13.1)
3739
coderay (~> 1.1)
3840
method_source (~> 1.0)
@@ -56,28 +58,27 @@ GEM
5658
diff-lcs (>= 1.2.0, < 2.0)
5759
rspec-support (~> 3.9.0)
5860
rspec-support (3.9.4)
61+
ruby2_keywords (0.0.5)
5962
simplecov (0.17.1)
6063
docile (~> 1.1)
6164
json (>= 1.8, < 3)
6265
simplecov-html (~> 0.10.0)
6366
simplecov-html (0.10.2)
6467
sorcerer (2.0.1)
65-
thread_safe (0.3.6)
66-
tzinfo (1.2.7)
67-
thread_safe (~> 0.1)
68-
zeitwerk (2.4.1)
68+
tzinfo (2.0.6)
69+
concurrent-ruby (~> 1.0)
6970

7071
PLATFORMS
7172
ruby
7273

7374
DEPENDENCIES
7475
bundler
75-
mongoid (~> 7.0.0)
76+
mongoid (~> 7.5)
7677
mongoid_includes!
7778
pry-byebug
7879
rake
7980
rspec-given (~> 3.5)
8081
simplecov (~> 0.17.0)
8182

8283
BUNDLED WITH
83-
2.1.4
84+
2.6.9

gemfiles/mongoid8.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ gemspec path: '..'
55
gem 'bundler'
66
gem 'rake'
77
gem 'pry-byebug'
8-
gem 'mongoid', '~> 8.0.2'
8+
gem 'mongoid', '~> 8.1'
99

1010
group :test do
1111
gem 'rspec-given', '~> 3.5'

gemfiles/mongoid8.gemfile.lock

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
PATH
2+
remote: ..
3+
specs:
4+
mongoid_includes (3.0.3)
5+
mongoid (>= 7.0.10, < 10.0.0)
6+
7+
GEM
8+
remote: https://rubygems.org/
9+
specs:
10+
activemodel (8.0.3)
11+
activesupport (= 8.0.3)
12+
activesupport (8.0.3)
13+
base64
14+
benchmark (>= 0.3)
15+
bigdecimal
16+
concurrent-ruby (~> 1.0, >= 1.3.1)
17+
connection_pool (>= 2.2.5)
18+
drb
19+
i18n (>= 1.6, < 2)
20+
logger (>= 1.4.2)
21+
minitest (>= 5.1)
22+
securerandom (>= 0.3)
23+
tzinfo (~> 2.0, >= 2.0.5)
24+
uri (>= 0.13.1)
25+
base64 (0.3.0)
26+
benchmark (0.4.1)
27+
bigdecimal (3.2.3)
28+
bson (5.1.1)
29+
byebug (12.0.0)
30+
coderay (1.1.3)
31+
concurrent-ruby (1.3.5)
32+
connection_pool (2.5.4)
33+
diff-lcs (1.6.2)
34+
docile (1.4.1)
35+
drb (2.2.3)
36+
given_core (3.8.2)
37+
sorcerer (>= 0.3.7)
38+
i18n (1.14.7)
39+
concurrent-ruby (~> 1.0)
40+
json (2.15.0)
41+
logger (1.7.0)
42+
method_source (1.1.0)
43+
minitest (5.25.5)
44+
mongo (2.21.3)
45+
base64
46+
bson (>= 4.14.1, < 6.0.0)
47+
mongoid (8.1.11)
48+
activemodel (>= 5.1, < 8.1, != 7.0.0)
49+
concurrent-ruby (>= 1.0.5, < 2.0)
50+
mongo (>= 2.18.0, < 3.0.0)
51+
ruby2_keywords (~> 0.0.5)
52+
pry (0.15.2)
53+
coderay (~> 1.1)
54+
method_source (~> 1.0)
55+
pry-byebug (3.11.0)
56+
byebug (~> 12.0)
57+
pry (>= 0.13, < 0.16)
58+
rake (13.3.0)
59+
rspec (3.13.1)
60+
rspec-core (~> 3.13.0)
61+
rspec-expectations (~> 3.13.0)
62+
rspec-mocks (~> 3.13.0)
63+
rspec-core (3.13.5)
64+
rspec-support (~> 3.13.0)
65+
rspec-expectations (3.13.5)
66+
diff-lcs (>= 1.2.0, < 2.0)
67+
rspec-support (~> 3.13.0)
68+
rspec-given (3.8.2)
69+
given_core (= 3.8.2)
70+
rspec (>= 2.14.0)
71+
rspec-mocks (3.13.5)
72+
diff-lcs (>= 1.2.0, < 2.0)
73+
rspec-support (~> 3.13.0)
74+
rspec-support (3.13.6)
75+
ruby2_keywords (0.0.5)
76+
securerandom (0.4.1)
77+
simplecov (0.17.1)
78+
docile (~> 1.1)
79+
json (>= 1.8, < 3)
80+
simplecov-html (~> 0.10.0)
81+
simplecov-html (0.10.2)
82+
sorcerer (2.0.1)
83+
tzinfo (2.0.6)
84+
concurrent-ruby (~> 1.0)
85+
uri (1.0.3)
86+
87+
PLATFORMS
88+
ruby
89+
x86_64-linux
90+
91+
DEPENDENCIES
92+
bundler
93+
mongoid (~> 8.1)
94+
mongoid_includes!
95+
pry-byebug
96+
rake
97+
rspec-given (~> 3.5)
98+
simplecov (~> 0.17.0)
99+
100+
BUNDLED WITH
101+
2.6.9

0 commit comments

Comments
 (0)