Skip to content

Commit 3fa0457

Browse files
committed
Update to Rails 8.1.3
1 parent 7cd6c2b commit 3fa0457

4 files changed

Lines changed: 80 additions & 115 deletions

File tree

Gemfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
source 'https://rubygems.org', cooldown: 14
44

5-
gem 'rails', '7.2.3.1'
5+
gem 'rails', '8.1.3'
66

77
gem 'active_model_serializers'
88
gem 'activerecord-session_store'
@@ -37,7 +37,6 @@ gem 'maxmind-db'
3737
gem 'money-rails'
3838
gem 'oai'
3939
gem 'omniauth_openid_connect'
40-
gem 'omniauth-rails_csrf_protection'
4140
gem 'pg'
4241
gem 'private_address_check'
4342
gem 'public_activity'
@@ -61,7 +60,7 @@ gem 'sidekiq'
6160
gem 'sidekiq-status'
6261
gem 'simple_calendar', '~> 2.4'
6362
gem 'simple_form'
64-
gem 'simple_token_authentication'
63+
gem 'simple_token_authentication', git: 'https://github.com/gonzalo-bulnes/simple_token_authentication.git', ref: 'f1cba4e' # Rails 8 support not yet released on Rubygems
6564
gem 'sitemap_generator'
6665
gem 'sitemap-parser'
6766
gem 'slim'

Gemfile.lock

Lines changed: 75 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -6,97 +6,108 @@ GIT
66
tess_rdf_extractors (1.2.0)
77
linkeddata (~> 3.2.0)
88

9+
GIT
10+
remote: https://github.com/gonzalo-bulnes/simple_token_authentication.git
11+
revision: f1cba4e3e614932ffcb6dfd2d8bf03acd64cb1ec
12+
ref: f1cba4e
13+
specs:
14+
simple_token_authentication (1.18.1)
15+
actionmailer (>= 3.2.6, < 9)
16+
actionpack (>= 3.2.6, < 9)
17+
devise (>= 3.2, < 6)
18+
919
GEM
1020
remote: https://rubygems.org/
1121
specs:
12-
actioncable (7.2.3.1)
13-
actionpack (= 7.2.3.1)
14-
activesupport (= 7.2.3.1)
22+
action_text-trix (2.1.19)
23+
railties
24+
actioncable (8.1.3)
25+
actionpack (= 8.1.3)
26+
activesupport (= 8.1.3)
1527
nio4r (~> 2.0)
1628
websocket-driver (>= 0.6.1)
1729
zeitwerk (~> 2.6)
18-
actionmailbox (7.2.3.1)
19-
actionpack (= 7.2.3.1)
20-
activejob (= 7.2.3.1)
21-
activerecord (= 7.2.3.1)
22-
activestorage (= 7.2.3.1)
23-
activesupport (= 7.2.3.1)
30+
actionmailbox (8.1.3)
31+
actionpack (= 8.1.3)
32+
activejob (= 8.1.3)
33+
activerecord (= 8.1.3)
34+
activestorage (= 8.1.3)
35+
activesupport (= 8.1.3)
2436
mail (>= 2.8.0)
25-
actionmailer (7.2.3.1)
26-
actionpack (= 7.2.3.1)
27-
actionview (= 7.2.3.1)
28-
activejob (= 7.2.3.1)
29-
activesupport (= 7.2.3.1)
37+
actionmailer (8.1.3)
38+
actionpack (= 8.1.3)
39+
actionview (= 8.1.3)
40+
activejob (= 8.1.3)
41+
activesupport (= 8.1.3)
3042
mail (>= 2.8.0)
3143
rails-dom-testing (~> 2.2)
32-
actionpack (7.2.3.1)
33-
actionview (= 7.2.3.1)
34-
activesupport (= 7.2.3.1)
35-
cgi
44+
actionpack (8.1.3)
45+
actionview (= 8.1.3)
46+
activesupport (= 8.1.3)
3647
nokogiri (>= 1.8.5)
37-
racc
38-
rack (>= 2.2.4, < 3.3)
48+
rack (>= 2.2.4)
3949
rack-session (>= 1.0.1)
4050
rack-test (>= 0.6.3)
4151
rails-dom-testing (~> 2.2)
4252
rails-html-sanitizer (~> 1.6)
4353
useragent (~> 0.16)
44-
actiontext (7.2.3.1)
45-
actionpack (= 7.2.3.1)
46-
activerecord (= 7.2.3.1)
47-
activestorage (= 7.2.3.1)
48-
activesupport (= 7.2.3.1)
54+
actiontext (8.1.3)
55+
action_text-trix (~> 2.1.15)
56+
actionpack (= 8.1.3)
57+
activerecord (= 8.1.3)
58+
activestorage (= 8.1.3)
59+
activesupport (= 8.1.3)
4960
globalid (>= 0.6.0)
5061
nokogiri (>= 1.8.5)
51-
actionview (7.2.3.1)
52-
activesupport (= 7.2.3.1)
62+
actionview (8.1.3)
63+
activesupport (= 8.1.3)
5364
builder (~> 3.1)
54-
cgi
5565
erubi (~> 1.11)
5666
rails-dom-testing (~> 2.2)
5767
rails-html-sanitizer (~> 1.6)
58-
active_model_serializers (0.10.14)
68+
active_model_serializers (0.10.16)
5969
actionpack (>= 4.1)
6070
activemodel (>= 4.1)
6171
case_transform (>= 0.2)
6272
jsonapi-renderer (>= 0.1.1.beta1, < 0.3)
63-
activejob (7.2.3.1)
64-
activesupport (= 7.2.3.1)
73+
activejob (8.1.3)
74+
activesupport (= 8.1.3)
6575
globalid (>= 0.3.6)
66-
activemodel (7.2.3.1)
67-
activesupport (= 7.2.3.1)
76+
activemodel (8.1.3)
77+
activesupport (= 8.1.3)
6878
activemodel-serializers-xml (1.0.3)
6979
activemodel (>= 5.0.0.a)
7080
activesupport (>= 5.0.0.a)
7181
builder (~> 3.1)
72-
activerecord (7.2.3.1)
73-
activemodel (= 7.2.3.1)
74-
activesupport (= 7.2.3.1)
82+
activerecord (8.1.3)
83+
activemodel (= 8.1.3)
84+
activesupport (= 8.1.3)
7585
timeout (>= 0.4.0)
7686
activerecord-session_store (2.2.0)
7787
actionpack (>= 7.0)
7888
activerecord (>= 7.0)
7989
cgi (>= 0.3.6)
8090
rack (>= 2.0.8, < 4)
8191
railties (>= 7.0)
82-
activestorage (7.2.3.1)
83-
actionpack (= 7.2.3.1)
84-
activejob (= 7.2.3.1)
85-
activerecord (= 7.2.3.1)
86-
activesupport (= 7.2.3.1)
92+
activestorage (8.1.3)
93+
actionpack (= 8.1.3)
94+
activejob (= 8.1.3)
95+
activerecord (= 8.1.3)
96+
activesupport (= 8.1.3)
8797
marcel (~> 1.0)
88-
activesupport (7.2.3.1)
98+
activesupport (8.1.3)
8999
base64
90-
benchmark (>= 0.3)
91100
bigdecimal
92101
concurrent-ruby (~> 1.0, >= 1.3.1)
93102
connection_pool (>= 2.2.5)
94103
drb
95104
i18n (>= 1.6, < 2)
105+
json
96106
logger (>= 1.4.2)
97-
minitest (>= 5.1, < 6)
107+
minitest (>= 5.1)
98108
securerandom (>= 0.3)
99109
tzinfo (~> 2.0, >= 2.0.5)
110+
uri (>= 0.13.1)
100111
addressable (2.9.0)
101112
public_suffix (>= 2.0.2, < 8.0)
102113
aes_key_wrap (1.1.0)
@@ -114,7 +125,6 @@ GEM
114125
base64 (0.3.0)
115126
bcp47_spec (0.2.1)
116127
bcrypt (3.1.22)
117-
benchmark (0.5.0)
118128
better_errors (2.10.1)
119129
erubi (>= 1.0.0)
120130
rack (>= 0.9.0)
@@ -417,9 +427,6 @@ GEM
417427
logger
418428
rack (>= 2.2.3)
419429
rack-protection
420-
omniauth-rails_csrf_protection (1.0.1)
421-
actionpack (>= 4.2)
422-
omniauth (~> 2.0)
423430
omniauth_openid_connect (0.7.1)
424431
omniauth (>= 1.9, < 3)
425432
openid_connect (~> 2.2)
@@ -491,20 +498,20 @@ GEM
491498
rack (>= 1.3)
492499
rackup (2.3.1)
493500
rack (>= 3)
494-
rails (7.2.3.1)
495-
actioncable (= 7.2.3.1)
496-
actionmailbox (= 7.2.3.1)
497-
actionmailer (= 7.2.3.1)
498-
actionpack (= 7.2.3.1)
499-
actiontext (= 7.2.3.1)
500-
actionview (= 7.2.3.1)
501-
activejob (= 7.2.3.1)
502-
activemodel (= 7.2.3.1)
503-
activerecord (= 7.2.3.1)
504-
activestorage (= 7.2.3.1)
505-
activesupport (= 7.2.3.1)
501+
rails (8.1.3)
502+
actioncable (= 8.1.3)
503+
actionmailbox (= 8.1.3)
504+
actionmailer (= 8.1.3)
505+
actionpack (= 8.1.3)
506+
actiontext (= 8.1.3)
507+
actionview (= 8.1.3)
508+
activejob (= 8.1.3)
509+
activemodel (= 8.1.3)
510+
activerecord (= 8.1.3)
511+
activestorage (= 8.1.3)
512+
activesupport (= 8.1.3)
506513
bundler (>= 1.15.0)
507-
railties (= 7.2.3.1)
514+
railties (= 8.1.3)
508515
rails-controller-testing (1.0.5)
509516
actionpack (>= 5.0.1.rc1)
510517
actionview (>= 5.0.1.rc1)
@@ -516,20 +523,19 @@ GEM
516523
rails-html-sanitizer (1.7.0)
517524
loofah (~> 2.25)
518525
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)
519-
rails-i18n (7.0.8)
526+
rails-i18n (8.1.0)
520527
i18n (>= 0.7, < 2)
521-
railties (>= 6.0.0, < 8)
528+
railties (>= 8.0.0, < 9)
522529
rails_admin (3.3.0)
523530
activemodel-serializers-xml (>= 1.0)
524531
csv
525532
kaminari (>= 0.14, < 2.0)
526533
nested_form (~> 0.3)
527534
rails (>= 6.0, < 9)
528535
turbo-rails (>= 1.0, < 3)
529-
railties (7.2.3.1)
530-
actionpack (= 7.2.3.1)
531-
activesupport (= 7.2.3.1)
532-
cgi
536+
railties (8.1.3)
537+
actionpack (= 8.1.3)
538+
activesupport (= 8.1.3)
533539
irb (~> 1.13)
534540
rackup (>= 1.0.0)
535541
rake (>= 12.2)
@@ -725,10 +731,6 @@ GEM
725731
actionpack (>= 5.2)
726732
activemodel (>= 5.2)
727733
simple_po_parser (1.1.6)
728-
simple_token_authentication (1.18.1)
729-
actionmailer (>= 3.2.6, < 8)
730-
actionpack (>= 3.2.6, < 8)
731-
devise (>= 3.2, < 6)
732734
simplecov (0.22.0)
733735
docile (~> 1.1)
734736
simplecov-html (~> 0.11)
@@ -892,7 +894,6 @@ DEPENDENCIES
892894
minitest-reporters
893895
money-rails
894896
oai
895-
omniauth-rails_csrf_protection
896897
omniauth_openid_connect
897898
pg
898899
private_address_check
@@ -901,7 +902,7 @@ DEPENDENCIES
901902
puma
902903
pundit
903904
rack-cors
904-
rails (= 7.2.3.1)
905+
rails (= 8.1.3)
905906
rails-controller-testing
906907
rails-i18n
907908
rails_admin
@@ -923,7 +924,7 @@ DEPENDENCIES
923924
sidekiq-status
924925
simple_calendar (~> 2.4)
925926
simple_form
926-
simple_token_authentication
927+
simple_token_authentication!
927928
simplecov
928929
simplecov-lcov
929930
sitemap-parser

config/initializers/omniauth.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
require 'request_forgery_protection_token_verifier'
2-
31
Rails.application.config.middleware.use OmniAuth::Builder do
42
OmniAuth.config.allowed_request_methods = [:post]
5-
OmniAuth.config.before_request_phase = RequestForgeryProtectionTokenVerifier.new
3+
4+
OmniAuth.config.request_validation_phase = OmniAuth::AuthenticityTokenProtection.new(key: :_csrf_token)
65
end
6+

lib/request_forgery_protection_token_verifier.rb

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)