Skip to content

Commit 4b5165f

Browse files
Fix CI: upgrade to Rails 7.1 for Ruby 3.4 compatibility
- Upgrade Rails from 7.0 to 7.1 for sqlite3 2.x support - Remove hardcoded Ruby version from dummy Gemfile - Remove unnecessary spec/dummy/Gemfile.lock (uses root lockfile) - Update boot.rb to reference root Gemfile - Fix rails_helper to use ActiveRecord::Tasks directly - Use absolute path for test database in database.yml - Add standard and yard gems for CI checks - Fix all standardrb linting offenses This resolves CI failures for Ruby 3.0-3.4 matrix. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 2b9fb03 commit 4b5165f

32 files changed

Lines changed: 318 additions & 457 deletions

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
source "https://rubygems.org"
22

3-
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
3+
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
44

55
eval_gemfile File.join(File.dirname(__FILE__), "spec/dummy/Gemfile")

Gemfile.lock

Lines changed: 160 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -11,72 +11,78 @@ PATH
1111
GEM
1212
remote: https://rubygems.org/
1313
specs:
14-
actioncable (7.0.10)
15-
actionpack (= 7.0.10)
16-
activesupport (= 7.0.10)
14+
actioncable (7.1.6)
15+
actionpack (= 7.1.6)
16+
activesupport (= 7.1.6)
1717
nio4r (~> 2.0)
1818
websocket-driver (>= 0.6.1)
19-
actionmailbox (7.0.10)
20-
actionpack (= 7.0.10)
21-
activejob (= 7.0.10)
22-
activerecord (= 7.0.10)
23-
activestorage (= 7.0.10)
24-
activesupport (= 7.0.10)
19+
zeitwerk (~> 2.6)
20+
actionmailbox (7.1.6)
21+
actionpack (= 7.1.6)
22+
activejob (= 7.1.6)
23+
activerecord (= 7.1.6)
24+
activestorage (= 7.1.6)
25+
activesupport (= 7.1.6)
2526
mail (>= 2.7.1)
2627
net-imap
2728
net-pop
2829
net-smtp
29-
actionmailer (7.0.10)
30-
actionpack (= 7.0.10)
31-
actionview (= 7.0.10)
32-
activejob (= 7.0.10)
33-
activesupport (= 7.0.10)
30+
actionmailer (7.1.6)
31+
actionpack (= 7.1.6)
32+
actionview (= 7.1.6)
33+
activejob (= 7.1.6)
34+
activesupport (= 7.1.6)
3435
mail (~> 2.5, >= 2.5.4)
3536
net-imap
3637
net-pop
3738
net-smtp
38-
rails-dom-testing (~> 2.0)
39-
actionpack (7.0.10)
40-
actionview (= 7.0.10)
41-
activesupport (= 7.0.10)
39+
rails-dom-testing (~> 2.2)
40+
actionpack (7.1.6)
41+
actionview (= 7.1.6)
42+
activesupport (= 7.1.6)
43+
cgi
44+
nokogiri (>= 1.8.5)
4245
racc
43-
rack (~> 2.0, >= 2.2.4)
46+
rack (>= 2.2.4)
47+
rack-session (>= 1.0.1)
4448
rack-test (>= 0.6.3)
45-
rails-dom-testing (~> 2.0)
46-
rails-html-sanitizer (~> 1.0, >= 1.2.0)
47-
actiontext (7.0.10)
48-
actionpack (= 7.0.10)
49-
activerecord (= 7.0.10)
50-
activestorage (= 7.0.10)
51-
activesupport (= 7.0.10)
49+
rails-dom-testing (~> 2.2)
50+
rails-html-sanitizer (~> 1.6)
51+
actiontext (7.1.6)
52+
actionpack (= 7.1.6)
53+
activerecord (= 7.1.6)
54+
activestorage (= 7.1.6)
55+
activesupport (= 7.1.6)
5256
globalid (>= 0.6.0)
5357
nokogiri (>= 1.8.5)
54-
actionview (7.0.10)
55-
activesupport (= 7.0.10)
58+
actionview (7.1.6)
59+
activesupport (= 7.1.6)
5660
builder (~> 3.1)
57-
erubi (~> 1.4)
58-
rails-dom-testing (~> 2.0)
59-
rails-html-sanitizer (~> 1.1, >= 1.2.0)
60-
activejob (7.0.10)
61-
activesupport (= 7.0.10)
61+
cgi
62+
erubi (~> 1.11)
63+
rails-dom-testing (~> 2.2)
64+
rails-html-sanitizer (~> 1.6)
65+
activejob (7.1.6)
66+
activesupport (= 7.1.6)
6267
globalid (>= 0.3.6)
63-
activemodel (7.0.10)
64-
activesupport (= 7.0.10)
65-
activerecord (7.0.10)
66-
activemodel (= 7.0.10)
67-
activesupport (= 7.0.10)
68-
activestorage (7.0.10)
69-
actionpack (= 7.0.10)
70-
activejob (= 7.0.10)
71-
activerecord (= 7.0.10)
72-
activesupport (= 7.0.10)
68+
activemodel (7.1.6)
69+
activesupport (= 7.1.6)
70+
activerecord (7.1.6)
71+
activemodel (= 7.1.6)
72+
activesupport (= 7.1.6)
73+
timeout (>= 0.4.0)
74+
activestorage (7.1.6)
75+
actionpack (= 7.1.6)
76+
activejob (= 7.1.6)
77+
activerecord (= 7.1.6)
78+
activesupport (= 7.1.6)
7379
marcel (~> 1.0)
74-
mini_mime (>= 1.1.0)
75-
activesupport (7.0.10)
80+
activesupport (7.1.6)
7681
base64
7782
benchmark (>= 0.3)
7883
bigdecimal
7984
concurrent-ruby (~> 1.0, >= 1.0.2)
85+
connection_pool (>= 2.2.5)
8086
drb
8187
i18n (>= 1.6, < 2)
8288
logger (>= 1.4.2)
@@ -92,18 +98,23 @@ GEM
9298
kaminari (>= 1.0)
9399
sassc-rails (~> 2.1)
94100
selectize-rails (~> 0.6)
101+
ast (2.4.3)
95102
base64 (0.3.0)
96103
benchmark (0.5.0)
97104
bigdecimal (4.0.1)
98105
builder (3.3.0)
99106
byebug (12.0.0)
107+
cgi (0.5.1)
100108
coderay (1.1.3)
101109
concurrent-ruby (1.3.6)
110+
connection_pool (2.5.5)
102111
crass (1.0.6)
103112
csv (3.3.5)
104113
date (3.5.1)
105114
diff-lcs (1.6.2)
106115
drb (2.2.3)
116+
erb (4.0.4)
117+
cgi (>= 0.3.3)
107118
erubi (1.13.1)
108119
ffi (1.17.3-aarch64-linux-gnu)
109120
ffi (1.17.3-aarch64-linux-musl)
@@ -117,10 +128,16 @@ GEM
117128
activesupport (>= 6.1)
118129
i18n (1.14.8)
119130
concurrent-ruby (~> 1.0)
131+
io-console (0.8.2)
132+
irb (1.16.0)
133+
pp (>= 0.6.0)
134+
rdoc (>= 4.0.0)
135+
reline (>= 0.4.2)
120136
jquery-rails (4.6.1)
121137
rails-dom-testing (>= 1, < 3)
122138
railties (>= 4.2.0)
123139
thor (>= 0.14, < 2.0)
140+
json (2.18.1)
124141
kaminari (1.2.2)
125142
activesupport (>= 4.1.0)
126143
kaminari-actionview (= 1.2.2)
@@ -133,6 +150,8 @@ GEM
133150
activerecord
134151
kaminari-core (= 1.2.2)
135152
kaminari-core (1.2.2)
153+
language_server-protocol (3.17.0.5)
154+
lint_roller (1.1.0)
136155
logger (1.7.0)
137156
loofah (2.25.0)
138157
crass (~> 1.0.2)
@@ -174,46 +193,73 @@ GEM
174193
racc (~> 1.4)
175194
nokogiri (1.18.10-x86_64-linux-musl)
176195
racc (~> 1.4)
196+
parallel (1.27.0)
197+
parser (3.3.10.1)
198+
ast (~> 2.4.1)
199+
racc
200+
pp (0.6.3)
201+
prettyprint
202+
prettyprint (0.2.0)
203+
prism (1.9.0)
177204
pry (0.15.2)
178205
coderay (~> 1.1)
179206
method_source (~> 1.0)
180207
pry-byebug (3.11.0)
181208
byebug (~> 12.0)
182209
pry (>= 0.13, < 0.16)
210+
psych (5.3.1)
211+
date
212+
stringio
183213
racc (1.8.1)
184-
rack (2.2.21)
214+
rack (3.2.4)
215+
rack-session (2.1.1)
216+
base64 (>= 0.1.0)
217+
rack (>= 3.0.0)
185218
rack-test (2.2.0)
186219
rack (>= 1.3)
187-
rails (7.0.10)
188-
actioncable (= 7.0.10)
189-
actionmailbox (= 7.0.10)
190-
actionmailer (= 7.0.10)
191-
actionpack (= 7.0.10)
192-
actiontext (= 7.0.10)
193-
actionview (= 7.0.10)
194-
activejob (= 7.0.10)
195-
activemodel (= 7.0.10)
196-
activerecord (= 7.0.10)
197-
activestorage (= 7.0.10)
198-
activesupport (= 7.0.10)
220+
rackup (2.3.1)
221+
rack (>= 3)
222+
rails (7.1.6)
223+
actioncable (= 7.1.6)
224+
actionmailbox (= 7.1.6)
225+
actionmailer (= 7.1.6)
226+
actionpack (= 7.1.6)
227+
actiontext (= 7.1.6)
228+
actionview (= 7.1.6)
229+
activejob (= 7.1.6)
230+
activemodel (= 7.1.6)
231+
activerecord (= 7.1.6)
232+
activestorage (= 7.1.6)
233+
activesupport (= 7.1.6)
199234
bundler (>= 1.15.0)
200-
railties (= 7.0.10)
235+
railties (= 7.1.6)
201236
rails-dom-testing (2.3.0)
202237
activesupport (>= 5.0.0)
203238
minitest
204239
nokogiri (>= 1.6)
205240
rails-html-sanitizer (1.6.2)
206241
loofah (~> 2.21)
207242
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
208-
railties (7.0.10)
209-
actionpack (= 7.0.10)
210-
activesupport (= 7.0.10)
211-
method_source
243+
railties (7.1.6)
244+
actionpack (= 7.1.6)
245+
activesupport (= 7.1.6)
246+
cgi
247+
irb
248+
rackup (>= 1.0.0)
212249
rake (>= 12.2)
213-
thor (~> 1.0)
214-
zeitwerk (~> 2.5)
250+
thor (~> 1.0, >= 1.2.2)
251+
tsort (>= 0.2)
252+
zeitwerk (~> 2.6)
253+
rainbow (3.1.1)
215254
rake (13.3.1)
216255
rb-readline (0.5.5)
256+
rdoc (7.1.0)
257+
erb
258+
psych (>= 4.0.0)
259+
tsort
260+
regexp_parser (2.11.3)
261+
reline (0.6.3)
262+
io-console (~> 0.5)
217263
rspec-core (3.13.6)
218264
rspec-support (~> 3.13.0)
219265
rspec-expectations (3.13.5)
@@ -231,6 +277,25 @@ GEM
231277
rspec-mocks (~> 3.13)
232278
rspec-support (~> 3.13)
233279
rspec-support (3.13.7)
280+
rubocop (1.82.1)
281+
json (~> 2.3)
282+
language_server-protocol (~> 3.17.0.2)
283+
lint_roller (~> 1.1.0)
284+
parallel (~> 1.10)
285+
parser (>= 3.3.0.2)
286+
rainbow (>= 2.2.2, < 4.0)
287+
regexp_parser (>= 2.9.3, < 3.0)
288+
rubocop-ast (>= 1.48.0, < 2.0)
289+
ruby-progressbar (~> 1.7)
290+
unicode-display_width (>= 2.4.0, < 4.0)
291+
rubocop-ast (1.49.0)
292+
parser (>= 3.3.7.2)
293+
prism (~> 1.7)
294+
rubocop-performance (1.26.1)
295+
lint_roller (~> 1.1)
296+
rubocop (>= 1.75.0, < 2.0)
297+
rubocop-ast (>= 1.47.1, < 2.0)
298+
ruby-progressbar (1.13.0)
234299
sassc (2.4.0)
235300
ffi (~> 1.9)
236301
sassc-rails (2.1.2)
@@ -249,20 +314,41 @@ GEM
249314
actionpack (>= 6.1)
250315
activesupport (>= 6.1)
251316
sprockets (>= 3.0.0)
252-
sqlite3 (1.7.3-aarch64-linux)
253-
sqlite3 (1.7.3-arm-linux)
254-
sqlite3 (1.7.3-arm64-darwin)
255-
sqlite3 (1.7.3-x86_64-darwin)
256-
sqlite3 (1.7.3-x86_64-linux)
317+
sqlite3 (2.8.1-aarch64-linux-gnu)
318+
sqlite3 (2.8.1-aarch64-linux-musl)
319+
sqlite3 (2.8.1-arm-linux-gnu)
320+
sqlite3 (2.8.1-arm-linux-musl)
321+
sqlite3 (2.8.1-arm64-darwin)
322+
sqlite3 (2.8.1-x86_64-darwin)
323+
sqlite3 (2.8.1-x86_64-linux-gnu)
324+
sqlite3 (2.8.1-x86_64-linux-musl)
325+
standard (1.53.0)
326+
language_server-protocol (~> 3.17.0.2)
327+
lint_roller (~> 1.0)
328+
rubocop (~> 1.82.0)
329+
standard-custom (~> 1.0.0)
330+
standard-performance (~> 1.8)
331+
standard-custom (1.0.2)
332+
lint_roller (~> 1.0)
333+
rubocop (~> 1.50)
334+
standard-performance (1.9.0)
335+
lint_roller (~> 1.1)
336+
rubocop-performance (~> 1.26.0)
337+
stringio (3.2.0)
257338
thor (1.5.0)
258339
tilt (2.7.0)
259340
timeout (0.6.0)
341+
tsort (0.2.0)
260342
tzinfo (2.0.6)
261343
concurrent-ruby (~> 1.0)
344+
unicode-display_width (3.2.0)
345+
unicode-emoji (~> 4.1)
346+
unicode-emoji (4.2.0)
262347
websocket-driver (0.8.0)
263348
base64
264349
websocket-extensions (>= 0.1.0)
265350
websocket-extensions (0.1.5)
351+
yard (0.9.38)
266352
zeitwerk (2.6.18)
267353

268354
PLATFORMS
@@ -280,13 +366,12 @@ DEPENDENCIES
280366
administrate_exportable!
281367
byebug
282368
pry-byebug
283-
rails (~> 7.0.0)
369+
rails (~> 7.1.0)
284370
rb-readline
285371
rspec-rails (~> 6.0)
286-
sqlite3 (~> 1.4)
287-
288-
RUBY VERSION
289-
ruby 3.1.6p260
372+
sqlite3
373+
standard
374+
yard
290375

291376
BUNDLED WITH
292377
2.5.11

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ require "rspec/core/rake_task"
33

44
RSpec::Core::RakeTask.new(:spec)
55

6-
task :default => :spec
6+
task default: :spec

0 commit comments

Comments
 (0)