Skip to content

Commit 7069b3d

Browse files
Upgrade to Rails 8.1 (#209)
* Bump the ruby-dependencies group with 4 updates Bumps the ruby-dependencies group with 4 updates: [importmap-rails](https://github.com/rails/importmap-rails), [puma](https://github.com/puma/puma), [bootsnap](https://github.com/rails/bootsnap) and [listen](https://github.com/guard/listen). Updates `importmap-rails` from 2.2.2 to 2.2.3 - [Release notes](https://github.com/rails/importmap-rails/releases) - [Commits](rails/importmap-rails@v2.2.2...v2.2.3) Updates `puma` from 7.1.0 to 7.2.0 - [Release notes](https://github.com/puma/puma/releases) - [Changelog](https://github.com/puma/puma/blob/main/History.md) - [Commits](puma/puma@v7.1.0...v7.2.0) Updates `bootsnap` from 1.20.1 to 1.21.1 - [Release notes](https://github.com/rails/bootsnap/releases) - [Changelog](https://github.com/rails/bootsnap/blob/main/CHANGELOG.md) - [Commits](rails/bootsnap@v1.20.1...v1.21.1) Updates `listen` from 3.9.0 to 3.10.0 - [Release notes](https://github.com/guard/listen/releases) - [Commits](guard/listen@v3.9.0...v3.10.0) --- updated-dependencies: - dependency-name: importmap-rails dependency-version: 2.2.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: ruby-dependencies - dependency-name: puma dependency-version: 7.2.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: ruby-dependencies - dependency-name: bootsnap dependency-version: 1.21.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: ruby-dependencies - dependency-name: listen dependency-version: 3.10.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: ruby-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> * Upgrade rails to 8.1 Rails 8.0 has an incompatibility with minitest 6. It's fixed on main but not yet released. * Update Rails configuration for 8.1 defaults - Change config.load_defaults from 8.0 to 8.1 - Update schema.rb to ActiveRecord::Schema[8.1] - Remove obsolete framework defaults initializers (7.0, 8.0) --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent c6cbef7 commit 7069b3d

6 files changed

Lines changed: 105 additions & 248 deletions

File tree

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ source 'https://rubygems.org'
22
ruby '>= 3.2', '< 4.0'
33

44
# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
5-
gem "rails", "~> 8.0.3"
5+
gem "rails", "~> 8.1.2"
66
# The modern asset pipeline for Rails [https://github.com/rails/propshaft]
77
gem "propshaft"
88
# Use postgresql as the database for Active Record

Gemfile.lock

Lines changed: 99 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -1,124 +1,130 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
actioncable (8.0.3)
5-
actionpack (= 8.0.3)
6-
activesupport (= 8.0.3)
4+
action_text-trix (2.1.16)
5+
railties
6+
actioncable (8.1.2)
7+
actionpack (= 8.1.2)
8+
activesupport (= 8.1.2)
79
nio4r (~> 2.0)
810
websocket-driver (>= 0.6.1)
911
zeitwerk (~> 2.6)
10-
actionmailbox (8.0.3)
11-
actionpack (= 8.0.3)
12-
activejob (= 8.0.3)
13-
activerecord (= 8.0.3)
14-
activestorage (= 8.0.3)
15-
activesupport (= 8.0.3)
12+
actionmailbox (8.1.2)
13+
actionpack (= 8.1.2)
14+
activejob (= 8.1.2)
15+
activerecord (= 8.1.2)
16+
activestorage (= 8.1.2)
17+
activesupport (= 8.1.2)
1618
mail (>= 2.8.0)
17-
actionmailer (8.0.3)
18-
actionpack (= 8.0.3)
19-
actionview (= 8.0.3)
20-
activejob (= 8.0.3)
21-
activesupport (= 8.0.3)
19+
actionmailer (8.1.2)
20+
actionpack (= 8.1.2)
21+
actionview (= 8.1.2)
22+
activejob (= 8.1.2)
23+
activesupport (= 8.1.2)
2224
mail (>= 2.8.0)
2325
rails-dom-testing (~> 2.2)
24-
actionpack (8.0.3)
25-
actionview (= 8.0.3)
26-
activesupport (= 8.0.3)
26+
actionpack (8.1.2)
27+
actionview (= 8.1.2)
28+
activesupport (= 8.1.2)
2729
nokogiri (>= 1.8.5)
2830
rack (>= 2.2.4)
2931
rack-session (>= 1.0.1)
3032
rack-test (>= 0.6.3)
3133
rails-dom-testing (~> 2.2)
3234
rails-html-sanitizer (~> 1.6)
3335
useragent (~> 0.16)
34-
actiontext (8.0.3)
35-
actionpack (= 8.0.3)
36-
activerecord (= 8.0.3)
37-
activestorage (= 8.0.3)
38-
activesupport (= 8.0.3)
36+
actiontext (8.1.2)
37+
action_text-trix (~> 2.1.15)
38+
actionpack (= 8.1.2)
39+
activerecord (= 8.1.2)
40+
activestorage (= 8.1.2)
41+
activesupport (= 8.1.2)
3942
globalid (>= 0.6.0)
4043
nokogiri (>= 1.8.5)
41-
actionview (8.0.3)
42-
activesupport (= 8.0.3)
44+
actionview (8.1.2)
45+
activesupport (= 8.1.2)
4346
builder (~> 3.1)
4447
erubi (~> 1.11)
4548
rails-dom-testing (~> 2.2)
4649
rails-html-sanitizer (~> 1.6)
47-
activejob (8.0.3)
48-
activesupport (= 8.0.3)
50+
activejob (8.1.2)
51+
activesupport (= 8.1.2)
4952
globalid (>= 0.3.6)
50-
activemodel (8.0.3)
51-
activesupport (= 8.0.3)
52-
activerecord (8.0.3)
53-
activemodel (= 8.0.3)
54-
activesupport (= 8.0.3)
53+
activemodel (8.1.2)
54+
activesupport (= 8.1.2)
55+
activerecord (8.1.2)
56+
activemodel (= 8.1.2)
57+
activesupport (= 8.1.2)
5558
timeout (>= 0.4.0)
56-
activestorage (8.0.3)
57-
actionpack (= 8.0.3)
58-
activejob (= 8.0.3)
59-
activerecord (= 8.0.3)
60-
activesupport (= 8.0.3)
59+
activestorage (8.1.2)
60+
actionpack (= 8.1.2)
61+
activejob (= 8.1.2)
62+
activerecord (= 8.1.2)
63+
activesupport (= 8.1.2)
6164
marcel (~> 1.0)
62-
activesupport (8.0.3)
65+
activesupport (8.1.2)
6366
base64
64-
benchmark (>= 0.3)
6567
bigdecimal
6668
concurrent-ruby (~> 1.0, >= 1.3.1)
6769
connection_pool (>= 2.2.5)
6870
drb
6971
i18n (>= 1.6, < 2)
72+
json
7073
logger (>= 1.4.2)
7174
minitest (>= 5.1)
7275
securerandom (>= 0.3)
7376
tzinfo (~> 2.0, >= 2.0.5)
7477
uri (>= 0.13.1)
7578
base64 (0.3.0)
76-
benchmark (0.4.1)
77-
bigdecimal (3.2.3)
78-
bootsnap (1.20.1)
79+
bigdecimal (4.0.1)
80+
bootsnap (1.21.1)
7981
msgpack (~> 1.2)
8082
builder (3.3.0)
81-
concurrent-ruby (1.3.5)
82-
connection_pool (2.5.4)
83+
concurrent-ruby (1.3.6)
84+
connection_pool (3.0.2)
8385
crass (1.0.6)
84-
date (3.5.0)
86+
date (3.5.1)
8587
drb (2.2.3)
86-
erb (5.1.3)
88+
erb (6.0.1)
8789
erubi (1.13.1)
88-
ffi (1.17.2)
89-
ffi (1.17.2-aarch64-linux-gnu)
90-
ffi (1.17.2-x86_64-linux-gnu)
90+
ffi (1.17.3)
91+
ffi (1.17.3-aarch64-linux-gnu)
92+
ffi (1.17.3-x86_64-linux-gnu)
9193
globalid (1.3.0)
9294
activesupport (>= 6.1)
93-
i18n (1.14.7)
95+
i18n (1.14.8)
9496
concurrent-ruby (~> 1.0)
95-
importmap-rails (2.2.2)
97+
importmap-rails (2.2.3)
9698
actionpack (>= 6.0.0)
9799
activesupport (>= 6.0.0)
98100
railties (>= 6.0.0)
99-
io-console (0.8.1)
100-
irb (1.15.2)
101+
io-console (0.8.2)
102+
irb (1.16.0)
101103
pp (>= 0.6.0)
102104
rdoc (>= 4.0.0)
103105
reline (>= 0.4.2)
104-
listen (3.9.0)
106+
json (2.18.1)
107+
listen (3.10.0)
108+
logger
105109
rb-fsevent (~> 0.10, >= 0.10.3)
106110
rb-inotify (~> 0.9, >= 0.9.10)
107111
logger (1.7.0)
108-
loofah (2.24.1)
112+
loofah (2.25.0)
109113
crass (~> 1.0.2)
110114
nokogiri (>= 1.12.0)
111-
mail (2.8.1)
115+
mail (2.9.0)
116+
logger
112117
mini_mime (>= 0.1.1)
113118
net-imap
114119
net-pop
115120
net-smtp
116121
marcel (1.1.0)
117122
mini_mime (1.1.5)
118123
mini_portile2 (2.8.9)
119-
minitest (5.25.5)
124+
minitest (6.0.1)
125+
prism (~> 1.5)
120126
msgpack (1.8.0)
121-
net-imap (0.5.11)
127+
net-imap (0.6.2)
122128
date
123129
net-protocol
124130
net-pop (0.1.2)
@@ -128,95 +134,96 @@ GEM
128134
net-smtp (0.5.1)
129135
net-protocol
130136
nio4r (2.7.5)
131-
nokogiri (1.18.10)
137+
nokogiri (1.19.0)
132138
mini_portile2 (~> 2.8.2)
133139
racc (~> 1.4)
134-
nokogiri (1.18.10-aarch64-linux-gnu)
140+
nokogiri (1.19.0-aarch64-linux-gnu)
135141
racc (~> 1.4)
136-
nokogiri (1.18.10-x86_64-linux-gnu)
142+
nokogiri (1.19.0-x86_64-linux-gnu)
137143
racc (~> 1.4)
138144
pg (1.6.3)
139145
pg (1.6.3-aarch64-linux)
140146
pg (1.6.3-x86_64-linux)
141-
pp (0.6.2)
147+
pp (0.6.3)
142148
prettyprint
143149
prettyprint (0.2.0)
150+
prism (1.9.0)
144151
propshaft (1.3.1)
145152
actionpack (>= 7.0.0)
146153
activesupport (>= 7.0.0)
147154
rack
148-
psych (5.2.6)
155+
psych (5.3.1)
149156
date
150157
stringio
151-
puma (7.1.0)
158+
puma (7.2.0)
152159
nio4r (~> 2.0)
153160
racc (1.8.1)
154-
rack (3.2.3)
161+
rack (3.2.4)
155162
rack-session (2.1.1)
156163
base64 (>= 0.1.0)
157164
rack (>= 3.0.0)
158165
rack-test (2.2.0)
159166
rack (>= 1.3)
160167
rack-timeout (0.7.0)
161-
rackup (2.2.1)
168+
rackup (2.3.1)
162169
rack (>= 3)
163-
rails (8.0.3)
164-
actioncable (= 8.0.3)
165-
actionmailbox (= 8.0.3)
166-
actionmailer (= 8.0.3)
167-
actionpack (= 8.0.3)
168-
actiontext (= 8.0.3)
169-
actionview (= 8.0.3)
170-
activejob (= 8.0.3)
171-
activemodel (= 8.0.3)
172-
activerecord (= 8.0.3)
173-
activestorage (= 8.0.3)
174-
activesupport (= 8.0.3)
170+
rails (8.1.2)
171+
actioncable (= 8.1.2)
172+
actionmailbox (= 8.1.2)
173+
actionmailer (= 8.1.2)
174+
actionpack (= 8.1.2)
175+
actiontext (= 8.1.2)
176+
actionview (= 8.1.2)
177+
activejob (= 8.1.2)
178+
activemodel (= 8.1.2)
179+
activerecord (= 8.1.2)
180+
activestorage (= 8.1.2)
181+
activesupport (= 8.1.2)
175182
bundler (>= 1.15.0)
176-
railties (= 8.0.3)
183+
railties (= 8.1.2)
177184
rails-dom-testing (2.3.0)
178185
activesupport (>= 5.0.0)
179186
minitest
180187
nokogiri (>= 1.6)
181188
rails-html-sanitizer (1.6.2)
182189
loofah (~> 2.21)
183190
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)
184-
railties (8.0.3)
185-
actionpack (= 8.0.3)
186-
activesupport (= 8.0.3)
191+
railties (8.1.2)
192+
actionpack (= 8.1.2)
193+
activesupport (= 8.1.2)
187194
irb (~> 1.13)
188195
rackup (>= 1.0.0)
189196
rake (>= 12.2)
190197
thor (~> 1.0, >= 1.2.2)
191198
tsort (>= 0.2)
192199
zeitwerk (~> 2.6)
193-
rake (13.3.0)
200+
rake (13.3.1)
194201
rb-fsevent (0.11.2)
195202
rb-inotify (0.11.1)
196203
ffi (~> 1.0)
197-
rdoc (6.15.1)
204+
rdoc (7.1.0)
198205
erb
199206
psych (>= 4.0.0)
200207
tsort
201-
reline (0.6.2)
208+
reline (0.6.3)
202209
io-console (~> 0.5)
203210
sdoc (2.6.5)
204211
rdoc (>= 5.0)
205212
securerandom (0.4.1)
206213
spring (4.4.0)
207-
stringio (3.1.7)
208-
thor (1.4.0)
209-
timeout (0.4.3)
214+
stringio (3.2.0)
215+
thor (1.5.0)
216+
timeout (0.6.0)
210217
tsort (0.2.0)
211218
tzinfo (2.0.6)
212219
concurrent-ruby (~> 1.0)
213-
uri (1.0.4)
220+
uri (1.1.1)
214221
useragent (0.16.11)
215222
websocket-driver (0.8.0)
216223
base64
217224
websocket-extensions (>= 0.1.0)
218225
websocket-extensions (0.1.5)
219-
zeitwerk (2.7.3)
226+
zeitwerk (2.7.4)
220227

221228
PLATFORMS
222229
aarch64-linux
@@ -231,12 +238,12 @@ DEPENDENCIES
231238
propshaft
232239
puma (>= 7.0)
233240
rack-timeout (~> 0.7.0)
234-
rails (~> 8.0.3)
241+
rails (~> 8.1.2)
235242
sdoc
236243
spring
237244

238245
RUBY VERSION
239-
ruby 3.4.8p72
246+
ruby 3.4.8p72
240247

241248
BUNDLED WITH
242-
2.7.2
249+
4.0.5

config/application.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@
99
module RubyGettingStarted
1010
class Application < Rails::Application
1111
# Initialize configuration defaults for originally generated Rails version.
12-
config.load_defaults 8.0
13-
14-
# Configure timezone behavior for Rails 8.1 compatibility
15-
config.active_support.to_time_preserves_timezone = :zone
12+
config.load_defaults 8.1
1613

1714
# Please, add to the `ignore` list any other `lib` subdirectories that do
1815
# not contain `.rb` files, or that should not be reloaded or eager loaded.

0 commit comments

Comments
 (0)