Skip to content

Commit 8737736

Browse files
Upgrade Rails to 7.2.x and update dependencies
1 parent 0b20c60 commit 8737736

3 files changed

Lines changed: 92 additions & 98 deletions

File tree

Gemfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ gem 'pg', '~> 1.4'
1818
gem 'pg_search', '~> 2.3'
1919
gem 'puma', '~> 5.0'
2020
gem 'rack-cors'
21-
gem 'rails', '~> 7.1.0'
21+
gem 'rails', '~> 7.2.0'
2222
gem 'ransack', '~> 4.2'
2323
gem 'zaru', '~> 0.3.0'
2424

@@ -39,10 +39,10 @@ group :test do
3939
gem 'database_cleaner-active_record', '~> 2.0'
4040
gem 'factory_bot_rails'
4141
gem 'rails-controller-testing'
42-
gem 'rspec', '~> 3.10'
43-
gem 'rspec_junit_formatter', '~> 0.5'
44-
gem 'rspec-rails', '~> 5.0'
45-
gem 'simplecov', '~> 0.21', require: false
46-
gem 'simplecov-rcov', '~> 0.2', require: false
42+
gem 'rspec', '~> 3.13'
43+
gem 'rspec_junit_formatter', '~> 0.6'
44+
gem 'rspec-rails', '~> 8.0'
45+
gem 'simplecov', '~> 0.22', require: false
46+
gem 'simplecov-rcov', '~> 0.3', require: false
4747
gem 'webmock', require: false
4848
end

Gemfile.lock

Lines changed: 80 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,79 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
actioncable (7.1.6)
5-
actionpack (= 7.1.6)
6-
activesupport (= 7.1.6)
4+
actioncable (7.2.3.1)
5+
actionpack (= 7.2.3.1)
6+
activesupport (= 7.2.3.1)
77
nio4r (~> 2.0)
88
websocket-driver (>= 0.6.1)
99
zeitwerk (~> 2.6)
10-
actionmailbox (7.1.6)
11-
actionpack (= 7.1.6)
12-
activejob (= 7.1.6)
13-
activerecord (= 7.1.6)
14-
activestorage (= 7.1.6)
15-
activesupport (= 7.1.6)
16-
mail (>= 2.7.1)
17-
net-imap
18-
net-pop
19-
net-smtp
20-
actionmailer (7.1.6)
21-
actionpack (= 7.1.6)
22-
actionview (= 7.1.6)
23-
activejob (= 7.1.6)
24-
activesupport (= 7.1.6)
25-
mail (~> 2.5, >= 2.5.4)
26-
net-imap
27-
net-pop
28-
net-smtp
10+
actionmailbox (7.2.3.1)
11+
actionpack (= 7.2.3.1)
12+
activejob (= 7.2.3.1)
13+
activerecord (= 7.2.3.1)
14+
activestorage (= 7.2.3.1)
15+
activesupport (= 7.2.3.1)
16+
mail (>= 2.8.0)
17+
actionmailer (7.2.3.1)
18+
actionpack (= 7.2.3.1)
19+
actionview (= 7.2.3.1)
20+
activejob (= 7.2.3.1)
21+
activesupport (= 7.2.3.1)
22+
mail (>= 2.8.0)
2923
rails-dom-testing (~> 2.2)
30-
actionpack (7.1.6)
31-
actionview (= 7.1.6)
32-
activesupport (= 7.1.6)
24+
actionpack (7.2.3.1)
25+
actionview (= 7.2.3.1)
26+
activesupport (= 7.2.3.1)
3327
cgi
3428
nokogiri (>= 1.8.5)
3529
racc
36-
rack (>= 2.2.4)
30+
rack (>= 2.2.4, < 3.3)
3731
rack-session (>= 1.0.1)
3832
rack-test (>= 0.6.3)
3933
rails-dom-testing (~> 2.2)
4034
rails-html-sanitizer (~> 1.6)
41-
actiontext (7.1.6)
42-
actionpack (= 7.1.6)
43-
activerecord (= 7.1.6)
44-
activestorage (= 7.1.6)
45-
activesupport (= 7.1.6)
35+
useragent (~> 0.16)
36+
actiontext (7.2.3.1)
37+
actionpack (= 7.2.3.1)
38+
activerecord (= 7.2.3.1)
39+
activestorage (= 7.2.3.1)
40+
activesupport (= 7.2.3.1)
4641
globalid (>= 0.6.0)
4742
nokogiri (>= 1.8.5)
48-
actionview (7.1.6)
49-
activesupport (= 7.1.6)
43+
actionview (7.2.3.1)
44+
activesupport (= 7.2.3.1)
5045
builder (~> 3.1)
5146
cgi
5247
erubi (~> 1.11)
5348
rails-dom-testing (~> 2.2)
5449
rails-html-sanitizer (~> 1.6)
55-
activejob (7.1.6)
56-
activesupport (= 7.1.6)
50+
activejob (7.2.3.1)
51+
activesupport (= 7.2.3.1)
5752
globalid (>= 0.3.6)
58-
activemodel (7.1.6)
59-
activesupport (= 7.1.6)
60-
activerecord (7.1.6)
61-
activemodel (= 7.1.6)
62-
activesupport (= 7.1.6)
53+
activemodel (7.2.3.1)
54+
activesupport (= 7.2.3.1)
55+
activerecord (7.2.3.1)
56+
activemodel (= 7.2.3.1)
57+
activesupport (= 7.2.3.1)
6358
timeout (>= 0.4.0)
64-
activestorage (7.1.6)
65-
actionpack (= 7.1.6)
66-
activejob (= 7.1.6)
67-
activerecord (= 7.1.6)
68-
activesupport (= 7.1.6)
59+
activestorage (7.2.3.1)
60+
actionpack (= 7.2.3.1)
61+
activejob (= 7.2.3.1)
62+
activerecord (= 7.2.3.1)
63+
activesupport (= 7.2.3.1)
6964
marcel (~> 1.0)
70-
activesupport (7.1.6)
65+
activesupport (7.2.3.1)
7166
base64
7267
benchmark (>= 0.3)
7368
bigdecimal
74-
concurrent-ruby (~> 1.0, >= 1.0.2)
69+
concurrent-ruby (~> 1.0, >= 1.3.1)
7570
connection_pool (>= 2.2.5)
7671
drb
7772
i18n (>= 1.6, < 2)
7873
logger (>= 1.4.2)
79-
minitest (>= 5.1)
80-
mutex_m
74+
minitest (>= 5.1, < 6)
8175
securerandom (>= 0.3)
82-
tzinfo (~> 2.0)
76+
tzinfo (~> 2.0, >= 2.0.5)
8377
addressable (2.8.7)
8478
public_suffix (>= 2.0.2, < 7.0)
8579
amazing_print (1.8.1)
@@ -194,9 +188,7 @@ GEM
194188
logger
195189
mini_mime (1.1.5)
196190
mini_portile2 (2.8.9)
197-
minitest (6.0.2)
198-
drb (~> 2.0)
199-
prism (~> 1.5)
191+
minitest (5.27.0)
200192
mutex_m (0.3.0)
201193
net-imap (0.6.3)
202194
date
@@ -264,20 +256,20 @@ GEM
264256
rackup (1.0.1)
265257
rack (< 3)
266258
webrick
267-
rails (7.1.6)
268-
actioncable (= 7.1.6)
269-
actionmailbox (= 7.1.6)
270-
actionmailer (= 7.1.6)
271-
actionpack (= 7.1.6)
272-
actiontext (= 7.1.6)
273-
actionview (= 7.1.6)
274-
activejob (= 7.1.6)
275-
activemodel (= 7.1.6)
276-
activerecord (= 7.1.6)
277-
activestorage (= 7.1.6)
278-
activesupport (= 7.1.6)
259+
rails (7.2.3.1)
260+
actioncable (= 7.2.3.1)
261+
actionmailbox (= 7.2.3.1)
262+
actionmailer (= 7.2.3.1)
263+
actionpack (= 7.2.3.1)
264+
actiontext (= 7.2.3.1)
265+
actionview (= 7.2.3.1)
266+
activejob (= 7.2.3.1)
267+
activemodel (= 7.2.3.1)
268+
activerecord (= 7.2.3.1)
269+
activestorage (= 7.2.3.1)
270+
activesupport (= 7.2.3.1)
279271
bundler (>= 1.15.0)
280-
railties (= 7.1.6)
272+
railties (= 7.2.3.1)
281273
rails-controller-testing (1.0.5)
282274
actionpack (>= 5.0.1.rc1)
283275
actionview (>= 5.0.1.rc1)
@@ -289,11 +281,11 @@ GEM
289281
rails-html-sanitizer (1.7.0)
290282
loofah (~> 2.25)
291283
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)
292-
railties (7.1.6)
293-
actionpack (= 7.1.6)
294-
activesupport (= 7.1.6)
284+
railties (7.2.3.1)
285+
actionpack (= 7.2.3.1)
286+
activesupport (= 7.2.3.1)
295287
cgi
296-
irb
288+
irb (~> 1.13)
297289
rackup (>= 1.0.0)
298290
rake (>= 12.2)
299291
thor (~> 1.0, >= 1.2.2)
@@ -324,23 +316,23 @@ GEM
324316
rspec-core (~> 3.13.0)
325317
rspec-expectations (~> 3.13.0)
326318
rspec-mocks (~> 3.13.0)
327-
rspec-core (3.13.5)
319+
rspec-core (3.13.6)
328320
rspec-support (~> 3.13.0)
329321
rspec-expectations (3.13.5)
330322
diff-lcs (>= 1.2.0, < 2.0)
331323
rspec-support (~> 3.13.0)
332-
rspec-mocks (3.13.5)
324+
rspec-mocks (3.13.8)
333325
diff-lcs (>= 1.2.0, < 2.0)
334326
rspec-support (~> 3.13.0)
335-
rspec-rails (5.1.2)
336-
actionpack (>= 5.2)
337-
activesupport (>= 5.2)
338-
railties (>= 5.2)
339-
rspec-core (~> 3.10)
340-
rspec-expectations (~> 3.10)
341-
rspec-mocks (~> 3.10)
342-
rspec-support (~> 3.10)
343-
rspec-support (3.13.5)
327+
rspec-rails (8.0.4)
328+
actionpack (>= 7.2)
329+
activesupport (>= 7.2)
330+
railties (>= 7.2)
331+
rspec-core (>= 3.13.0, < 5.0.0)
332+
rspec-expectations (>= 3.13.0, < 5.0.0)
333+
rspec-mocks (>= 3.13.0, < 5.0.0)
334+
rspec-support (>= 3.13.0, < 5.0.0)
335+
rspec-support (3.13.7)
344336
rspec_junit_formatter (0.6.0)
345337
rspec-core (>= 2, < 4, != 2.12.0)
346338
rubocop (1.26.1)
@@ -387,6 +379,7 @@ GEM
387379
tzinfo (2.0.6)
388380
concurrent-ruby (~> 1.0)
389381
unicode-display_width (2.6.0)
382+
useragent (0.16.11)
390383
webmock (3.25.1)
391384
addressable (>= 2.8.0)
392385
crack (>= 0.3.2)
@@ -427,17 +420,17 @@ DEPENDENCIES
427420
pg_search (~> 2.3)
428421
puma (~> 5.0)
429422
rack-cors
430-
rails (~> 7.1.0)
423+
rails (~> 7.2.0)
431424
rails-controller-testing
432425
ransack (~> 4.2)
433-
rspec (~> 3.10)
434-
rspec-rails (~> 5.0)
435-
rspec_junit_formatter (~> 0.5)
426+
rspec (~> 3.13)
427+
rspec-rails (~> 8.0)
428+
rspec_junit_formatter (~> 0.6)
436429
rubocop (~> 1.26.0)
437430
rubocop-rails (~> 2.13.2)
438431
rubocop-rspec (~> 2.4.0)
439-
simplecov (~> 0.21)
440-
simplecov-rcov (~> 0.2)
432+
simplecov (~> 0.22)
433+
simplecov-rcov (~> 0.3)
441434
webmock
442435
zaru (~> 0.3.0)
443436

spec/requests/auth_spec.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,8 @@
4242
describe 'GET /auth/calnet' do
4343
# See https://github.com/omniauth/omniauth/wiki/Resolving-CVE-2015-9284
4444
it 'is disallowed' do
45-
expect { get login_path, params: { origin: origin_url } }.to raise_error(ActionController::RoutingError)
46-
47-
# TODO: use this instead of expect { … }.to raise_error ?
48-
# expect(response).not_to be_successful
45+
get login_path, params: { origin: origin_url }
46+
expect(response).to have_http_status(:not_found)
4947
end
5048
end
5149

@@ -97,7 +95,10 @@ def callback_url_from_cas_redirect(loc)
9795
post login_path, params: { origin: bad_origin_url }
9896

9997
callback_url = callback_url_from_cas_redirect(response.headers['Location'])
100-
expect { get callback_url }.to raise_error(ActionController::Redirecting::UnsafeRedirectError)
98+
99+
get callback_url
100+
expect(response).to have_http_status(:internal_server_error)
101+
expect(response.body).to include('ActionController::Redirecting::UnsafeRedirectError')
101102
end
102103
end
103104

0 commit comments

Comments
 (0)