Skip to content

Commit 775ee4d

Browse files
committed
Upgrade to Ruby 4.0.0 on release day
Just for fun, upgrade to Ruby 4.0.0 [1] on the day of its release. [1] https://www.ruby-lang.org/en/news/2025/12/25/ruby-4-0-0-released/
1 parent 955d2ab commit 775ee4d

File tree

6 files changed

+49
-43
lines changed

6 files changed

+49
-43
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414
#
1515
# If updating this value, you probably also want to add a new version to the
1616
# spec version matrix below.
17-
RUBY_VERSION: "3.4"
17+
RUBY_VERSION: "4.0"
1818

1919
# A suitable URL for a test database.
2020
TEST_DATABASE_NAME: river_test
@@ -134,6 +134,7 @@ jobs:
134134
- "3.2"
135135
- "3.3"
136136
- "3.4"
137+
- "4.0"
137138

138139
services:
139140
postgres:

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ruby 3.4
1+
ruby 4.0

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ source "https://rubygems.org"
33
gemspec
44

55
group :development, :test do
6+
# both gems temporarily pointed to master to get Ruby 4.0 support
7+
#gem "ffi", git: "https://github.com/ffi/ffi", submodules: true
8+
#gem "pg", git: "https://github.com/ged/ruby-pg", force_ruby_platform: true
9+
610
gem "standard"
711
gem "steep"
812
end

Gemfile.lock

Lines changed: 37 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -13,126 +13,125 @@ PATH
1313
GEM
1414
remote: https://rubygems.org/
1515
specs:
16-
activesupport (8.0.3)
16+
activesupport (8.1.1)
1717
base64
18-
benchmark (>= 0.3)
1918
bigdecimal
2019
concurrent-ruby (~> 1.0, >= 1.3.1)
2120
connection_pool (>= 2.2.5)
2221
drb
2322
i18n (>= 1.6, < 2)
23+
json
2424
logger (>= 1.4.2)
2525
minitest (>= 5.1)
2626
securerandom (>= 0.3)
2727
tzinfo (~> 2.0, >= 2.0.5)
2828
uri (>= 0.13.1)
2929
ast (2.4.3)
3030
base64 (0.3.0)
31-
benchmark (0.4.1)
32-
bigdecimal (3.3.1)
33-
concurrent-ruby (1.3.5)
34-
connection_pool (2.5.4)
31+
bigdecimal (4.0.1)
32+
concurrent-ruby (1.3.6)
33+
connection_pool (3.0.2)
3534
csv (3.3.5)
36-
date (3.4.1)
37-
debug (1.11.0)
35+
date (3.5.1)
36+
debug (1.11.1)
3837
irb (~> 1.10)
3938
reline (>= 0.3.8)
4039
diff-lcs (1.6.2)
4140
docile (1.4.1)
4241
drb (2.2.3)
43-
erb (5.1.1)
44-
ffi (1.17.2-arm64-darwin)
45-
ffi (1.17.2-x86_64-linux-gnu)
46-
fileutils (1.7.3)
47-
i18n (1.14.7)
42+
erb (6.0.1)
43+
ffi (1.17.2)
44+
fileutils (1.8.0)
45+
i18n (1.14.8)
4846
concurrent-ruby (~> 1.0)
49-
io-console (0.8.1)
50-
irb (1.15.2)
47+
io-console (0.8.2)
48+
irb (1.16.0)
5149
pp (>= 0.6.0)
5250
rdoc (>= 4.0.0)
5351
reline (>= 0.4.2)
54-
json (2.15.1)
52+
json (2.18.0)
5553
language_server-protocol (3.17.0.5)
5654
lint_roller (1.1.0)
5755
listen (3.9.0)
5856
rb-fsevent (~> 0.10, >= 0.10.3)
5957
rb-inotify (~> 0.9, >= 0.9.10)
6058
logger (1.7.0)
61-
minitest (5.26.0)
59+
minitest (6.0.0)
60+
prism (~> 1.5)
6261
mutex_m (0.3.0)
6362
parallel (1.27.0)
64-
parser (3.3.9.0)
63+
parser (3.3.10.0)
6564
ast (~> 2.4.1)
6665
racc
67-
pg (1.6.2-arm64-darwin)
66+
pg (1.6.2)
6867
pg (1.6.2-x86_64-linux)
6968
pp (0.6.3)
7069
prettyprint
7170
prettyprint (0.2.0)
72-
prism (1.6.0)
73-
psych (5.2.6)
71+
prism (1.7.0)
72+
psych (5.3.1)
7473
date
7574
stringio
7675
racc (1.8.1)
7776
rainbow (3.1.1)
7877
rb-fsevent (0.11.2)
7978
rb-inotify (0.11.1)
8079
ffi (~> 1.0)
81-
rbs (3.9.5)
80+
rbs (3.10.0)
8281
logger
83-
rdoc (6.15.0)
82+
rdoc (7.0.3)
8483
erb
8584
psych (>= 4.0.0)
8685
tsort
8786
regexp_parser (2.11.3)
88-
reline (0.6.2)
87+
reline (0.6.3)
8988
io-console (~> 0.5)
9089
rspec-core (3.13.6)
9190
rspec-support (~> 3.13.0)
9291
rspec-expectations (3.13.5)
9392
diff-lcs (>= 1.2.0, < 2.0)
9493
rspec-support (~> 3.13.0)
9594
rspec-support (3.13.6)
96-
rubocop (1.80.2)
95+
rubocop (1.81.7)
9796
json (~> 2.3)
9897
language_server-protocol (~> 3.17.0.2)
9998
lint_roller (~> 1.1.0)
10099
parallel (~> 1.10)
101100
parser (>= 3.3.0.2)
102101
rainbow (>= 2.2.2, < 4.0)
103102
regexp_parser (>= 2.9.3, < 3.0)
104-
rubocop-ast (>= 1.46.0, < 2.0)
103+
rubocop-ast (>= 1.47.1, < 2.0)
105104
ruby-progressbar (~> 1.7)
106105
unicode-display_width (>= 2.4.0, < 4.0)
107-
rubocop-ast (1.47.1)
106+
rubocop-ast (1.48.0)
108107
parser (>= 3.3.7.2)
109108
prism (~> 1.4)
110-
rubocop-performance (1.25.0)
109+
rubocop-performance (1.26.1)
111110
lint_roller (~> 1.1)
112111
rubocop (>= 1.75.0, < 2.0)
113-
rubocop-ast (>= 1.38.0, < 2.0)
112+
rubocop-ast (>= 1.47.1, < 2.0)
114113
ruby-progressbar (1.13.0)
115114
securerandom (0.4.1)
116-
sequel (5.97.0)
115+
sequel (5.99.0)
117116
bigdecimal
118117
simplecov (0.22.0)
119118
docile (~> 1.1)
120119
simplecov-html (~> 0.11)
121120
simplecov_json_formatter (~> 0.1)
122121
simplecov-html (0.13.2)
123122
simplecov_json_formatter (0.1.4)
124-
standard (1.51.1)
123+
standard (1.52.0)
125124
language_server-protocol (~> 3.17.0.2)
126125
lint_roller (~> 1.0)
127-
rubocop (~> 1.80.2)
126+
rubocop (~> 1.81.7)
128127
standard-custom (~> 1.0.0)
129128
standard-performance (~> 1.8)
130129
standard-custom (1.0.2)
131130
lint_roller (~> 1.0)
132131
rubocop (~> 1.50)
133-
standard-performance (1.8.0)
132+
standard-performance (1.9.0)
134133
lint_roller (~> 1.1)
135-
rubocop-performance (~> 1.25.0)
134+
rubocop-performance (~> 1.26.0)
136135
steep (1.10.0)
137136
activesupport (>= 5.1)
138137
concurrent-ruby (>= 1.1.10)
@@ -150,17 +149,17 @@ GEM
150149
strscan (>= 1.0.0)
151150
terminal-table (>= 2, < 5)
152151
uri (>= 0.12.0)
153-
stringio (3.1.7)
154-
strscan (3.1.5)
152+
stringio (3.2.0)
153+
strscan (3.1.6)
155154
terminal-table (4.0.0)
156155
unicode-display_width (>= 1.1.1, < 4)
157156
tsort (0.2.0)
158157
tzinfo (2.0.6)
159158
concurrent-ruby (~> 1.0)
160159
unicode-display_width (3.2.0)
161160
unicode-emoji (~> 4.1)
162-
unicode-emoji (4.1.0)
163-
uri (1.0.4)
161+
unicode-emoji (4.2.0)
162+
uri (1.1.1)
164163

165164
PLATFORMS
166165
arm64-darwin-22

driver/riverqueue-activerecord/Gemfile.lock

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,14 @@ GEM
5656
language_server-protocol (3.17.0.3)
5757
lint_roller (1.1.0)
5858
logger (1.6.4)
59-
minitest (5.25.4)
59+
minitest (6.0.0)
60+
prism (~> 1.5)
6061
parallel (1.26.3)
6162
parser (3.3.6.0)
6263
ast (~> 2.4.1)
6364
racc
6465
pg (1.5.9)
66+
prism (1.7.0)
6567
psych (5.2.2)
6668
date
6769
stringio
@@ -119,7 +121,7 @@ GEM
119121
concurrent-ruby (~> 1.0)
120122
unicode-display_width (3.1.2)
121123
unicode-emoji (~> 4.0, >= 4.0.4)
122-
unicode-emoji (4.0.4)
124+
unicode-emoji (4.2.0)
123125
uri (1.0.2)
124126

125127
PLATFORMS

driver/riverqueue-sequel/Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ GEM
7272
rubocop-performance (~> 1.23.0)
7373
unicode-display_width (3.1.2)
7474
unicode-emoji (~> 4.0, >= 4.0.4)
75-
unicode-emoji (4.0.4)
75+
unicode-emoji (4.2.0)
7676

7777
PLATFORMS
7878
arm64-darwin-22

0 commit comments

Comments
 (0)