Skip to content

Commit 1c9d021

Browse files
committed
AP-757: Update to Rails 8.1, Ruby 3.4, and other dependencies
1 parent 3281109 commit 1c9d021

12 files changed

Lines changed: 457 additions & 181 deletions

File tree

.rubocop.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,38 @@ Style/SuperWithArgsParentheses: # new in 1.58
421421
Enabled: true
422422
Style/YAMLFileRead: # new in 1.53
423423
Enabled: true
424+
Lint/DataDefineOverride: # new in 1.85
425+
Enabled: true
426+
Lint/UnreachablePatternBranch: # new in 1.85
427+
Enabled: true
428+
Style/EmptyClassDefinition: # new in 1.84
429+
Enabled: true
430+
Style/FileOpen: # new in 1.85
431+
Enabled: true
432+
Style/MapJoin: # new in 1.85
433+
Enabled: true
434+
Style/ModuleMemberExistenceCheck: # new in 1.82
435+
Enabled: true
436+
Style/NegativeArrayIndex: # new in 1.84
437+
Enabled: true
438+
Style/OneClassPerFile: # new in 1.85
439+
Enabled: true
440+
Style/PartitionInsteadOfDoubleSelect: # new in 1.85
441+
Enabled: true
442+
Style/PredicateWithKind: # new in 1.85
443+
Enabled: true
444+
Style/ReduceToHash: # new in 1.85
445+
Enabled: true
446+
Style/RedundantMinMaxBy: # new in 1.85
447+
Enabled: true
448+
Style/ReverseFind: # new in 1.84
449+
Enabled: true
450+
Style/SelectByKind: # new in 1.85
451+
Enabled: true
452+
Style/SelectByRange: # new in 1.85
453+
Enabled: true
454+
Style/TallyMethod: # new in 1.85
455+
Enabled: true
424456

425457
############################################################
426458
# rubocop-rails

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.3.11
1+
3.4.9

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# The base stage scaffolds elements which are common to building and running
55
# the application, such as installing ca-certificates, creating the app user,
66
# and installing runtime system dependencies.
7-
FROM ruby:3.3.11-slim AS base
7+
FROM ruby:3.4.9-slim AS base
88

99
# ------------------------------------------------------------
1010
# Declarative metadata
@@ -97,6 +97,9 @@ RUN apt-get update -qq && apt-get install -y --no-install-recommends \
9797
g++ \
9898
make
9999

100+
# Base image ships with an older version of bundler
101+
RUN gem install bundler --version 4.0.15
102+
100103
# ------------------------------------------------------------
101104
# Install Ruby gems
102105

Gemfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ gem 'non-stupid-digest-assets', '~> 1.0' # Allow static pages (e.g. 404.html) to
1616
gem 'okcomputer', '~> 1.19'
1717
gem 'omniauth-cas', '~> 3.0'
1818
gem 'omniauth-rails_csrf_protection', '~> 1.0'
19-
gem 'puma', '~> 5.6', '>= 5.6.8'
19+
gem 'puma', '~> 6.0'
2020
gem 'puma-plugin-delayed_stop', '~> 0.1.2'
21-
gem 'rack', '~> 2.2', '>= 2.2.23'
22-
gem 'rails', '~> 8.0.5'
21+
gem 'rack', '~> 3.2.6'
22+
gem 'rails', '~> 8.1.3'
2323
gem 'rest-client', '~> 2.1'
2424
gem 'sassc-rails', '~> 2.1'
2525
gem 'sprockets', '~> 4.0'
@@ -37,11 +37,11 @@ end
3737

3838
group :development do
3939
gem 'listen', '>= 3.0'
40-
gem 'rubocop', '~> 1.81.7'
41-
gem 'rubocop-rails', '~> 2.34.2', require: false
42-
gem 'rubocop-rspec', '~> 3.8.0', require: false
40+
gem 'rubocop', '~> 1.88.0'
41+
gem 'rubocop-rails', '~> 2.35.5', require: false
42+
gem 'rubocop-rspec', '~> 3.10.2', require: false
4343
gem 'rubocop-rspec_rails', require: false
44-
gem 'ruby-prof', '~> 1.4', require: false
44+
gem 'ruby-prof', '~> 2.0', require: false
4545
gem 'web-console', '>= 4.1.0'
4646
end
4747

0 commit comments

Comments
 (0)