Skip to content

Commit 7b90053

Browse files
committed
Drop Ruby 3.0 compatibility
Also improve test app generator flags: - Add `brakeman`, `ci`, and `rubocop` skips - Remove `listen`, `spring`, `turbolinks`, and `webpack-install` skips, dropped in Rails 7.0 - Sort remaining skips
1 parent fc5bcdd commit 7b90053

File tree

8 files changed

+25
-29
lines changed

8 files changed

+25
-29
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ jobs:
2828
- rails_72
2929
- rails_71
3030
- rails_70
31-
include:
32-
- ruby: '3.0'
33-
os: ubuntu-latest
34-
rails: rails_71
3531
steps:
3632
- uses: actions/checkout@v4
3733
- name: Configure bundler (default)

.rubocop.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ require:
1313

1414
AllCops:
1515
DisabledByDefault: true
16-
TargetRubyVersion: 3.0
16+
TargetRubyVersion: 3.1
1717
TargetRailsVersion: 7.0
1818

1919
Exclude:
@@ -331,6 +331,7 @@ Style/FrozenStringLiteralComment:
331331

332332
Style/HashSyntax:
333333
Enabled: true
334+
EnforcedShorthandSyntax: never
334335

335336
Style/ParallelAssignment:
336337
Enabled: true

Gemfile.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ GEM
212212
railties (>= 6.0)
213213
responders (>= 2)
214214
io-console (0.7.2)
215-
irb (1.14.0)
215+
irb (1.14.1)
216216
rdoc (>= 4.0.0)
217217
reline (>= 0.4.2)
218218
iso (0.4.0)
@@ -337,7 +337,7 @@ GEM
337337
responders (3.1.1)
338338
actionpack (>= 5.2)
339339
railties (>= 5.2)
340-
rexml (3.3.7)
340+
rexml (3.3.8)
341341
rspec-core (3.13.1)
342342
rspec-support (~> 3.13.0)
343343
rspec-expectations (3.13.3)
@@ -400,10 +400,10 @@ GEM
400400
actionpack (>= 6.1)
401401
activesupport (>= 6.1)
402402
sprockets (>= 3.0.0)
403-
sqlite3 (2.0.4-aarch64-linux-gnu)
404-
sqlite3 (2.0.4-arm64-darwin)
405-
sqlite3 (2.0.4-x86_64-darwin)
406-
sqlite3 (2.0.4-x86_64-linux-gnu)
403+
sqlite3 (2.1.0-aarch64-linux-gnu)
404+
sqlite3 (2.1.0-arm64-darwin)
405+
sqlite3 (2.1.0-x86_64-darwin)
406+
sqlite3 (2.1.0-x86_64-linux-gnu)
407407
stringio (3.1.1)
408408
sys-uname (1.3.0)
409409
ffi (~> 1.1)
@@ -470,4 +470,4 @@ DEPENDENCIES
470470
yard
471471

472472
BUNDLED WITH
473-
2.5.19
473+
2.5.20

activeadmin.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Gem::Specification.new do |s|
2929
"wiki_uri" => "https://github.com/activeadmin/activeadmin/wiki"
3030
}
3131

32-
s.required_ruby_version = ">= 3.0"
32+
s.required_ruby_version = ">= 3.1"
3333

3434
s.add_dependency "arbre", "~> 2.0"
3535
s.add_dependency "csv"

docs/Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ GEM
244244
rb-fsevent (0.11.2)
245245
rb-inotify (0.11.1)
246246
ffi (~> 1.0)
247-
rexml (3.3.7)
247+
rexml (3.3.8)
248248
rouge (3.30.0)
249249
rubyzip (2.3.2)
250250
safe_yaml (1.0.5)
@@ -275,4 +275,4 @@ DEPENDENCIES
275275
github-pages
276276

277277
BUNDLED WITH
278-
2.5.19
278+
2.5.20

gemfiles/rails_70/Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ GEM
312312
responders (3.1.1)
313313
actionpack (>= 5.2)
314314
railties (>= 5.2)
315-
rexml (3.3.7)
315+
rexml (3.3.8)
316316
rspec-core (3.13.1)
317317
rspec-support (~> 3.13.0)
318318
rspec-expectations (3.13.3)
@@ -403,4 +403,4 @@ DEPENDENCIES
403403
webrick
404404

405405
BUNDLED WITH
406-
2.5.19
406+
2.5.20

gemfiles/rails_71/Gemfile.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ GEM
215215
railties (>= 6.0)
216216
responders (>= 2)
217217
io-console (0.7.2)
218-
irb (1.14.0)
218+
irb (1.14.1)
219219
rdoc (>= 4.0.0)
220220
reline (>= 0.4.2)
221221
iso (0.4.0)
@@ -337,7 +337,7 @@ GEM
337337
responders (3.1.1)
338338
actionpack (>= 5.2)
339339
railties (>= 5.2)
340-
rexml (3.3.7)
340+
rexml (3.3.8)
341341
rspec-core (3.13.1)
342342
rspec-support (~> 3.13.0)
343343
rspec-expectations (3.13.3)
@@ -372,10 +372,10 @@ GEM
372372
actionpack (>= 6.1)
373373
activesupport (>= 6.1)
374374
sprockets (>= 3.0.0)
375-
sqlite3 (2.0.4)
375+
sqlite3 (2.1.0)
376376
mini_portile2 (~> 2.8.0)
377-
sqlite3 (2.0.4-arm64-darwin)
378-
sqlite3 (2.0.4-x86_64-linux-gnu)
377+
sqlite3 (2.1.0-arm64-darwin)
378+
sqlite3 (2.1.0-x86_64-linux-gnu)
379379
stringio (3.1.1)
380380
sys-uname (1.3.0)
381381
ffi (~> 1.1)
@@ -431,4 +431,4 @@ DEPENDENCIES
431431
webrick
432432

433433
BUNDLED WITH
434-
2.5.19
434+
2.5.20

tasks/test_application.rb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,22 @@ def generate
3232
FileUtils.mkdir_p base_dir
3333
args = %W(
3434
-m spec/support/#{template}.rb
35+
--skip-action-cable
3536
--skip-action-mailbox
3637
--skip-action-text
3738
--skip-active-storage
38-
--skip-action-cable
3939
--skip-bootsnap
40+
--skip-brakeman
41+
--skip-ci
4042
--skip-decrypted-diffs
4143
--skip-dev-gems
4244
--skip-docker
4345
--skip-git
4446
--skip-hotwire
4547
--skip-jbuilder
46-
--skip-listen
47-
--skip-spring
48-
--skip-turbolinks
49-
--skip-test
48+
--skip-rubocop
5049
--skip-system-test
51-
--skip-webpack-install
50+
--skip-test
5251
--javascript=importmap
5352
)
5453

0 commit comments

Comments
 (0)