Skip to content

Commit 5d1af76

Browse files
authored
Rails 7.2.beta (#81)
* increase web concurency * wip * update dependencies * add comment
1 parent f3693bc commit 5d1af76

24 files changed

+291
-150
lines changed

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
44
ruby "3.3.1"
55

66
# Use main development branch of Rails
7-
gem "rails", "~> 7.1.0"
7+
gem "rails", "~> 7.2.0.beta2"
88

99
# The modern asset pipeline for Rails [https://github.com/rails/propshaft]
1010
gem "propshaft"
1111

1212
# Use sqlite3 as the database for Active Record
13-
gem "sqlite3", "~> 1.4"
13+
gem "sqlite3", "~> 2.0"
1414

1515
# Use the Puma web server [https://github.com/puma/puma]
1616
gem "puma"

Gemfile.lock

Lines changed: 92 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,89 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
actioncable (7.1.3.4)
5-
actionpack (= 7.1.3.4)
6-
activesupport (= 7.1.3.4)
4+
actioncable (7.2.0.beta2)
5+
actionpack (= 7.2.0.beta2)
6+
activesupport (= 7.2.0.beta2)
77
nio4r (~> 2.0)
88
websocket-driver (>= 0.6.1)
99
zeitwerk (~> 2.6)
10-
actionmailbox (7.1.3.4)
11-
actionpack (= 7.1.3.4)
12-
activejob (= 7.1.3.4)
13-
activerecord (= 7.1.3.4)
14-
activestorage (= 7.1.3.4)
15-
activesupport (= 7.1.3.4)
16-
mail (>= 2.7.1)
17-
net-imap
18-
net-pop
19-
net-smtp
20-
actionmailer (7.1.3.4)
21-
actionpack (= 7.1.3.4)
22-
actionview (= 7.1.3.4)
23-
activejob (= 7.1.3.4)
24-
activesupport (= 7.1.3.4)
25-
mail (~> 2.5, >= 2.5.4)
26-
net-imap
27-
net-pop
28-
net-smtp
10+
actionmailbox (7.2.0.beta2)
11+
actionpack (= 7.2.0.beta2)
12+
activejob (= 7.2.0.beta2)
13+
activerecord (= 7.2.0.beta2)
14+
activestorage (= 7.2.0.beta2)
15+
activesupport (= 7.2.0.beta2)
16+
mail (>= 2.8.0)
17+
actionmailer (7.2.0.beta2)
18+
actionpack (= 7.2.0.beta2)
19+
actionview (= 7.2.0.beta2)
20+
activejob (= 7.2.0.beta2)
21+
activesupport (= 7.2.0.beta2)
22+
mail (>= 2.8.0)
2923
rails-dom-testing (~> 2.2)
30-
actionpack (7.1.3.4)
31-
actionview (= 7.1.3.4)
32-
activesupport (= 7.1.3.4)
24+
actionpack (7.2.0.beta2)
25+
actionview (= 7.2.0.beta2)
26+
activesupport (= 7.2.0.beta2)
3327
nokogiri (>= 1.8.5)
3428
racc
3529
rack (>= 2.2.4)
3630
rack-session (>= 1.0.1)
3731
rack-test (>= 0.6.3)
3832
rails-dom-testing (~> 2.2)
3933
rails-html-sanitizer (~> 1.6)
40-
actiontext (7.1.3.4)
41-
actionpack (= 7.1.3.4)
42-
activerecord (= 7.1.3.4)
43-
activestorage (= 7.1.3.4)
44-
activesupport (= 7.1.3.4)
34+
useragent (~> 0.16)
35+
actiontext (7.2.0.beta2)
36+
actionpack (= 7.2.0.beta2)
37+
activerecord (= 7.2.0.beta2)
38+
activestorage (= 7.2.0.beta2)
39+
activesupport (= 7.2.0.beta2)
4540
globalid (>= 0.6.0)
4641
nokogiri (>= 1.8.5)
47-
actionview (7.1.3.4)
48-
activesupport (= 7.1.3.4)
42+
actionview (7.2.0.beta2)
43+
activesupport (= 7.2.0.beta2)
4944
builder (~> 3.1)
5045
erubi (~> 1.11)
5146
rails-dom-testing (~> 2.2)
5247
rails-html-sanitizer (~> 1.6)
5348
active_job-performs (0.3.1)
5449
activejob (>= 6.1)
55-
activejob (7.1.3.4)
56-
activesupport (= 7.1.3.4)
50+
activejob (7.2.0.beta2)
51+
activesupport (= 7.2.0.beta2)
5752
globalid (>= 0.3.6)
58-
activemodel (7.1.3.4)
59-
activesupport (= 7.1.3.4)
60-
activerecord (7.1.3.4)
61-
activemodel (= 7.1.3.4)
62-
activesupport (= 7.1.3.4)
53+
activemodel (7.2.0.beta2)
54+
activesupport (= 7.2.0.beta2)
55+
activerecord (7.2.0.beta2)
56+
activemodel (= 7.2.0.beta2)
57+
activesupport (= 7.2.0.beta2)
6358
timeout (>= 0.4.0)
6459
activerecord-enhancedsqlite3-adapter (0.8.0)
6560
activerecord (>= 7.1)
6661
sqlite3 (>= 1.6)
67-
activestorage (7.1.3.4)
68-
actionpack (= 7.1.3.4)
69-
activejob (= 7.1.3.4)
70-
activerecord (= 7.1.3.4)
71-
activesupport (= 7.1.3.4)
62+
activestorage (7.2.0.beta2)
63+
actionpack (= 7.2.0.beta2)
64+
activejob (= 7.2.0.beta2)
65+
activerecord (= 7.2.0.beta2)
66+
activesupport (= 7.2.0.beta2)
7267
marcel (~> 1.0)
73-
activesupport (7.1.3.4)
68+
activesupport (7.2.0.beta2)
7469
base64
7570
bigdecimal
76-
concurrent-ruby (~> 1.0, >= 1.0.2)
71+
concurrent-ruby (~> 1.0, >= 1.3.1)
7772
connection_pool (>= 2.2.5)
7873
drb
7974
i18n (>= 1.6, < 2)
8075
minitest (>= 5.1)
81-
mutex_m
82-
tzinfo (~> 2.0)
83-
addressable (2.8.6)
84-
public_suffix (>= 2.0.2, < 6.0)
76+
tzinfo (~> 2.0, >= 2.0.5)
77+
addressable (2.8.7)
78+
public_suffix (>= 2.0.2, < 7.0)
8579
ahoy_matey (4.2.1)
8680
activesupport (>= 5.2)
8781
device_detector
8882
safely_block (>= 0.2.1)
8983
annotate (3.2.0)
9084
activerecord (>= 3.2, < 8.0)
9185
rake (>= 10.4, < 14.0)
92-
appsignal (3.7.6)
86+
appsignal (3.10.0)
9387
rack
9488
ast (2.4.2)
9589
authentication-zero (2.16.36)
@@ -128,8 +122,8 @@ GEM
128122
debug (1.9.2)
129123
irb (~> 1.10)
130124
reline (>= 0.3.8)
131-
device_detector (1.1.2)
132-
dockerfile-rails (1.6.16)
125+
device_detector (1.1.3)
126+
dockerfile-rails (1.6.17)
133127
rails (>= 3.0.0)
134128
dotenv (3.1.2)
135129
dotenv-rails (3.1.2)
@@ -140,7 +134,7 @@ GEM
140134
dry-core (1.0.1)
141135
concurrent-ruby (~> 1.0)
142136
zeitwerk (~> 2.6)
143-
dry-inflector (1.0.0)
137+
dry-inflector (1.1.0)
144138
dry-initializer (3.1.1)
145139
dry-initializer-rails (3.1.1)
146140
dry-initializer (>= 2.4, < 4)
@@ -172,16 +166,16 @@ GEM
172166
raabro (~> 1.4)
173167
globalid (1.2.1)
174168
activesupport (>= 6.1)
175-
google-protobuf (4.27.1-aarch64-linux)
169+
google-protobuf (4.27.2-aarch64-linux)
176170
bigdecimal
177171
rake (>= 13)
178-
google-protobuf (4.27.1-arm64-darwin)
172+
google-protobuf (4.27.2-arm64-darwin)
179173
bigdecimal
180174
rake (>= 13)
181-
google-protobuf (4.27.1-x86_64-darwin)
175+
google-protobuf (4.27.2-x86_64-darwin)
182176
bigdecimal
183177
rake (>= 13)
184-
google-protobuf (4.27.1-x86_64-linux)
178+
google-protobuf (4.27.2-x86_64-linux)
185179
bigdecimal
186180
rake (>= 13)
187181
groupdate (6.4.0)
@@ -209,16 +203,16 @@ GEM
209203
json (2.7.2)
210204
language_server-protocol (3.17.0.3)
211205
lint_roller (1.1.0)
212-
litestream (0.10.3)
206+
litestream (0.10.4)
213207
logfmt (>= 0.0.10)
214208
sqlite3
215-
litestream (0.10.3-arm64-darwin)
209+
litestream (0.10.4-arm64-darwin)
216210
logfmt (>= 0.0.10)
217211
sqlite3
218-
litestream (0.10.3-x86_64-darwin)
212+
litestream (0.10.4-x86_64-darwin)
219213
logfmt (>= 0.0.10)
220214
sqlite3
221-
litestream (0.10.3-x86_64-linux)
215+
litestream (0.10.4-x86_64-linux)
222216
logfmt (>= 0.0.10)
223217
sqlite3
224218
logfmt (0.0.10)
@@ -250,10 +244,9 @@ GEM
250244
msgpack (1.7.2)
251245
multi_xml (0.7.1)
252246
bigdecimal (~> 3.1)
253-
mutex_m (0.2.0)
254247
net-http (0.3.2)
255248
uri
256-
net-imap (0.4.12)
249+
net-imap (0.4.14)
257250
date
258251
net-protocol
259252
net-pop (0.1.2)
@@ -284,7 +277,7 @@ GEM
284277
railties (>= 7.0.0)
285278
psych (5.1.2)
286279
stringio
287-
public_suffix (5.0.5)
280+
public_suffix (6.0.0)
288281
puma (6.4.2)
289282
nio4r (~> 2.0)
290283
raabro (1.4.0)
@@ -301,20 +294,20 @@ GEM
301294
rackup (2.1.0)
302295
rack (>= 3)
303296
webrick (~> 1.8)
304-
rails (7.1.3.4)
305-
actioncable (= 7.1.3.4)
306-
actionmailbox (= 7.1.3.4)
307-
actionmailer (= 7.1.3.4)
308-
actionpack (= 7.1.3.4)
309-
actiontext (= 7.1.3.4)
310-
actionview (= 7.1.3.4)
311-
activejob (= 7.1.3.4)
312-
activemodel (= 7.1.3.4)
313-
activerecord (= 7.1.3.4)
314-
activestorage (= 7.1.3.4)
315-
activesupport (= 7.1.3.4)
297+
rails (7.2.0.beta2)
298+
actioncable (= 7.2.0.beta2)
299+
actionmailbox (= 7.2.0.beta2)
300+
actionmailer (= 7.2.0.beta2)
301+
actionpack (= 7.2.0.beta2)
302+
actiontext (= 7.2.0.beta2)
303+
actionview (= 7.2.0.beta2)
304+
activejob (= 7.2.0.beta2)
305+
activemodel (= 7.2.0.beta2)
306+
activerecord (= 7.2.0.beta2)
307+
activestorage (= 7.2.0.beta2)
308+
activesupport (= 7.2.0.beta2)
316309
bundler (>= 1.15.0)
317-
railties (= 7.1.3.4)
310+
railties (= 7.2.0.beta2)
318311
rails-controller-testing (1.0.5)
319312
actionpack (>= 5.0.1.rc1)
320313
actionview (>= 5.0.1.rc1)
@@ -330,10 +323,10 @@ GEM
330323
actionview (> 3.1)
331324
activesupport (> 3.1)
332325
railties (> 3.1)
333-
railties (7.1.3.4)
334-
actionpack (= 7.1.3.4)
335-
activesupport (= 7.1.3.4)
336-
irb
326+
railties (7.2.0.beta2)
327+
actionpack (= 7.2.0.beta2)
328+
activesupport (= 7.2.0.beta2)
329+
irb (~> 1.13)
337330
rackup (>= 1.0.0)
338331
rake (>= 12.2)
339332
thor (~> 1.0, >= 1.2.2)
@@ -347,7 +340,7 @@ GEM
347340
regexp_parser (2.9.2)
348341
reline (0.5.9)
349342
io-console (~> 0.5)
350-
rexml (3.3.0)
343+
rexml (3.3.1)
351344
strscan
352345
rubocop (1.64.1)
353346
json (~> 2.3)
@@ -362,21 +355,22 @@ GEM
362355
unicode-display_width (>= 2.4.0, < 3.0)
363356
rubocop-ast (1.31.3)
364357
parser (>= 3.3.1.0)
365-
rubocop-performance (1.21.0)
358+
rubocop-performance (1.21.1)
366359
rubocop (>= 1.48.1, < 2.0)
367360
rubocop-ast (>= 1.31.1, < 2.0)
368-
ruby-lsp (0.17.3)
361+
ruby-lsp (0.17.5)
369362
language_server-protocol (~> 3.17.0)
370363
prism (>= 0.29.0, < 0.31)
371364
rbs (>= 3, < 4)
372365
sorbet-runtime (>= 0.5.10782)
373-
ruby-lsp-rails (0.3.7)
374-
ruby-lsp (>= 0.17.0, < 0.18.0)
366+
ruby-lsp-rails (0.3.8)
367+
ruby-lsp (>= 0.17.2, < 0.18.0)
375368
ruby-progressbar (1.13.0)
376369
rubyzip (2.3.2)
377370
safely_block (0.4.0)
378-
selenium-webdriver (4.21.1)
371+
selenium-webdriver (4.22.0)
379372
base64 (~> 0.2)
373+
logger (~> 1.4)
380374
rexml (~> 3.2, >= 3.2.5)
381375
rubyzip (>= 1.2.2, < 3.0)
382376
websocket (~> 1.0)
@@ -393,12 +387,12 @@ GEM
393387
concurrent-ruby (>= 1.3.1)
394388
fugit (~> 1.11.0)
395389
railties (>= 7.1)
396-
sorbet-runtime (0.5.11432)
397-
sqlite3 (1.7.3-aarch64-linux)
398-
sqlite3 (1.7.3-arm64-darwin)
399-
sqlite3 (1.7.3-x86_64-darwin)
400-
sqlite3 (1.7.3-x86_64-linux)
401-
standard (1.37.0)
390+
sorbet-runtime (0.5.11475)
391+
sqlite3 (2.0.2-aarch64-linux-gnu)
392+
sqlite3 (2.0.2-arm64-darwin)
393+
sqlite3 (2.0.2-x86_64-darwin)
394+
sqlite3 (2.0.2-x86_64-linux-gnu)
395+
standard (1.39.1)
402396
language_server-protocol (~> 3.17.0.2)
403397
lint_roller (~> 1.0)
404398
rubocop (~> 1.64.0)
@@ -426,6 +420,7 @@ GEM
426420
concurrent-ruby (~> 1.0)
427421
unicode-display_width (2.5.0)
428422
uri (0.13.0)
423+
useragent (0.16.10)
429424
vcr (6.2.0)
430425
view_component (3.12.1)
431426
activesupport (>= 5.2.0, < 8.0)
@@ -448,7 +443,7 @@ GEM
448443
crack (>= 0.3.2)
449444
hashdiff (>= 0.4.0, < 2.0.0)
450445
webrick (1.8.1)
451-
websocket (1.2.10)
446+
websocket (1.2.11)
452447
websocket-driver (0.7.6)
453448
websocket-extensions (>= 0.1.0)
454449
websocket-extensions (0.1.5)
@@ -495,15 +490,15 @@ DEPENDENCIES
495490
propshaft
496491
puma
497492
rack-mini-profiler
498-
rails (~> 7.1.0)
493+
rails (~> 7.2.0.beta2)
499494
rails-controller-testing
500495
rails_autolink (~> 1.1)
501496
ruby-lsp-rails
502497
selenium-webdriver
503498
sitemap_generator (~> 6.3)
504499
solid_cache
505500
solid_queue
506-
sqlite3 (~> 1.4)
501+
sqlite3 (~> 2.0)
507502
standardrb (~> 1.0)
508503
turbo-rails
509504
tzinfo-data

app/models/organisation.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ class Organisation < ApplicationRecord
2929
validates :name, presence: true
3030

3131
# enums
32-
enum kind: {conference: 0, meetup: 1}
33-
enum frequency: {unknown: 0, yearly: 1, monthly: 2}
32+
enum :kind, {conference: 0, meetup: 1}
33+
enum :frequency, {unknown: 0, yearly: 1, monthly: 2}
3434

3535
def edition
3636
"#{name} 2022"

app/models/suggestion.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Suggestion < ApplicationRecord
2222
# callbacks
2323

2424
# enums
25-
enum status: {pending: 0, approved: 1, rejected: 2}
25+
enum :status, {pending: 0, approved: 1, rejected: 2}
2626

2727
def approved!
2828
suggestable.update!(content)

0 commit comments

Comments
 (0)