Skip to content

Commit f08e867

Browse files
authored
Merge pull request #26 from cacheventures/ci-ruby-versions
Update ruby versions in CI and gemfiles, drop mongoid 7
2 parents 56471e6 + 584d110 commit f08e867

File tree

7 files changed

+156
-129
lines changed

7 files changed

+156
-129
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,36 @@
11
name: CI
2-
on: [push, pull_request]
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
37
jobs:
48
tests:
5-
name: Tests
9+
name: Ruby ${{ matrix.ruby }} • ${{ matrix.gemfile_name }}
610
runs-on: ${{ matrix.os }}
711
strategy:
812
fail-fast: false
913
matrix:
10-
os: [ubuntu-latest]
11-
ruby: [
12-
"3.1",
13-
]
14-
gemfile: [
15-
"gemfiles/mongoid7",
16-
"gemfiles/mongoid8",
17-
]
18-
experimental: [false]
14+
include:
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: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,52 @@ PATH
22
remote: .
33
specs:
44
mongoid_includes (3.0.3)
5-
mongoid (>= 7.0.10, < 10.0.0)
5+
mongoid (>= 8.0.0, < 10.0.0)
66

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: 0 additions & 13 deletions
This file was deleted.

gemfiles/mongoid7.gemfile.lock

Lines changed: 0 additions & 83 deletions
This file was deleted.

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 (>= 8.0.0, < 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

mongoid_includes.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ Gem::Specification.new do |s|
2222
s.files = Dir.glob('lib/**/*') + %w(LICENSE.txt README.md Rakefile)
2323
s.test_files = Dir.glob('spec/**/*')
2424

25-
s.add_runtime_dependency 'mongoid', ['>= 7.0.10', '< 10.0.0']
25+
s.add_runtime_dependency 'mongoid', ['>= 8.0.0', '< 10.0.0']
2626
end

0 commit comments

Comments
 (0)