Skip to content

Commit 6407965

Browse files
authored
Merge pull request #1426 from MITLibraries/rails71
Rails71
2 parents 204dc5b + 976f1b0 commit 6407965

21 files changed

+516
-207
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@ storage
3232

3333
# Ignore Rails Mermaid ERD gem generated HTML. (We put the markdown in the readme instead.)
3434
docs/etd_erd.html
35+
*.sqlite3-shm
36+
*.sqlite3-wal

Gemfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ gem 'aws-sdk-sqs'
1313
gem 'bootsnap'
1414
gem 'cancancan'
1515
gem 'cocoon'
16-
# Pin `concurrent-ruby` until we upgrade to Rails 7.1
17-
gem 'concurrent-ruby', '< 1.3.5'
1816
gem 'delayed_job_active_record'
1917
gem 'devise'
2018
gem 'flipflop'
@@ -30,14 +28,14 @@ gem 'omniauth-rails_csrf_protection'
3028
gem 'omniauth-saml'
3129
gem 'paper_trail'
3230
gem 'puma'
33-
gem 'rails', '~> 7.0.2', '>= 7.0.2.3'
31+
gem 'rails', '~> 7.1.0'
3432
gem 'rubyzip'
3533
gem 'sass-rails'
3634
gem 'sentry-rails'
3735
gem 'sentry-ruby'
3836
gem 'simple_form'
3937
gem 'skylight'
40-
gem 'uglifier'
38+
gem 'terser'
4139
gem 'zip_tricks'
4240

4341
group :production do

Gemfile.lock

Lines changed: 108 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -10,70 +10,82 @@ GIT
1010
GEM
1111
remote: https://rubygems.org/
1212
specs:
13-
actioncable (7.0.8.7)
14-
actionpack (= 7.0.8.7)
15-
activesupport (= 7.0.8.7)
13+
actioncable (7.1.5.1)
14+
actionpack (= 7.1.5.1)
15+
activesupport (= 7.1.5.1)
1616
nio4r (~> 2.0)
1717
websocket-driver (>= 0.6.1)
18-
actionmailbox (7.0.8.7)
19-
actionpack (= 7.0.8.7)
20-
activejob (= 7.0.8.7)
21-
activerecord (= 7.0.8.7)
22-
activestorage (= 7.0.8.7)
23-
activesupport (= 7.0.8.7)
18+
zeitwerk (~> 2.6)
19+
actionmailbox (7.1.5.1)
20+
actionpack (= 7.1.5.1)
21+
activejob (= 7.1.5.1)
22+
activerecord (= 7.1.5.1)
23+
activestorage (= 7.1.5.1)
24+
activesupport (= 7.1.5.1)
2425
mail (>= 2.7.1)
2526
net-imap
2627
net-pop
2728
net-smtp
28-
actionmailer (7.0.8.7)
29-
actionpack (= 7.0.8.7)
30-
actionview (= 7.0.8.7)
31-
activejob (= 7.0.8.7)
32-
activesupport (= 7.0.8.7)
29+
actionmailer (7.1.5.1)
30+
actionpack (= 7.1.5.1)
31+
actionview (= 7.1.5.1)
32+
activejob (= 7.1.5.1)
33+
activesupport (= 7.1.5.1)
3334
mail (~> 2.5, >= 2.5.4)
3435
net-imap
3536
net-pop
3637
net-smtp
37-
rails-dom-testing (~> 2.0)
38-
actionpack (7.0.8.7)
39-
actionview (= 7.0.8.7)
40-
activesupport (= 7.0.8.7)
41-
rack (~> 2.0, >= 2.2.4)
38+
rails-dom-testing (~> 2.2)
39+
actionpack (7.1.5.1)
40+
actionview (= 7.1.5.1)
41+
activesupport (= 7.1.5.1)
42+
nokogiri (>= 1.8.5)
43+
racc
44+
rack (>= 2.2.4)
45+
rack-session (>= 1.0.1)
4246
rack-test (>= 0.6.3)
43-
rails-dom-testing (~> 2.0)
44-
rails-html-sanitizer (~> 1.0, >= 1.2.0)
45-
actiontext (7.0.8.7)
46-
actionpack (= 7.0.8.7)
47-
activerecord (= 7.0.8.7)
48-
activestorage (= 7.0.8.7)
49-
activesupport (= 7.0.8.7)
47+
rails-dom-testing (~> 2.2)
48+
rails-html-sanitizer (~> 1.6)
49+
actiontext (7.1.5.1)
50+
actionpack (= 7.1.5.1)
51+
activerecord (= 7.1.5.1)
52+
activestorage (= 7.1.5.1)
53+
activesupport (= 7.1.5.1)
5054
globalid (>= 0.6.0)
5155
nokogiri (>= 1.8.5)
52-
actionview (7.0.8.7)
53-
activesupport (= 7.0.8.7)
56+
actionview (7.1.5.1)
57+
activesupport (= 7.1.5.1)
5458
builder (~> 3.1)
55-
erubi (~> 1.4)
56-
rails-dom-testing (~> 2.0)
57-
rails-html-sanitizer (~> 1.1, >= 1.2.0)
58-
activejob (7.0.8.7)
59-
activesupport (= 7.0.8.7)
59+
erubi (~> 1.11)
60+
rails-dom-testing (~> 2.2)
61+
rails-html-sanitizer (~> 1.6)
62+
activejob (7.1.5.1)
63+
activesupport (= 7.1.5.1)
6064
globalid (>= 0.3.6)
61-
activemodel (7.0.8.7)
62-
activesupport (= 7.0.8.7)
63-
activerecord (7.0.8.7)
64-
activemodel (= 7.0.8.7)
65-
activesupport (= 7.0.8.7)
66-
activestorage (7.0.8.7)
67-
actionpack (= 7.0.8.7)
68-
activejob (= 7.0.8.7)
69-
activerecord (= 7.0.8.7)
70-
activesupport (= 7.0.8.7)
65+
activemodel (7.1.5.1)
66+
activesupport (= 7.1.5.1)
67+
activerecord (7.1.5.1)
68+
activemodel (= 7.1.5.1)
69+
activesupport (= 7.1.5.1)
70+
timeout (>= 0.4.0)
71+
activestorage (7.1.5.1)
72+
actionpack (= 7.1.5.1)
73+
activejob (= 7.1.5.1)
74+
activerecord (= 7.1.5.1)
75+
activesupport (= 7.1.5.1)
7176
marcel (~> 1.0)
72-
mini_mime (>= 1.1.0)
73-
activesupport (7.0.8.7)
77+
activesupport (7.1.5.1)
78+
base64
79+
benchmark (>= 0.3)
80+
bigdecimal
7481
concurrent-ruby (~> 1.0, >= 1.0.2)
82+
connection_pool (>= 2.2.5)
83+
drb
7584
i18n (>= 1.6, < 2)
85+
logger (>= 1.4.2)
7686
minitest (>= 5.1)
87+
mutex_m
88+
securerandom (>= 0.3)
7789
tzinfo (~> 2.0)
7890
addressable (2.8.7)
7991
public_suffix (>= 2.0.2, < 7.0)
@@ -140,6 +152,7 @@ GEM
140152
aws-eventstream (~> 1, >= 1.0.2)
141153
base64 (0.2.0)
142154
bcrypt (3.1.20)
155+
benchmark (0.4.0)
143156
bigdecimal (3.1.8)
144157
bindex (0.8.1)
145158
bootsnap (1.18.4)
@@ -163,7 +176,8 @@ GEM
163176
logger (~> 1.5)
164177
climate_control (1.2.0)
165178
cocoon (1.2.15)
166-
concurrent-ruby (1.3.4)
179+
concurrent-ruby (1.3.5)
180+
connection_pool (2.5.0)
167181
crass (1.0.6)
168182
date (3.4.1)
169183
delayed_job (4.1.13)
@@ -182,6 +196,7 @@ GEM
182196
dotenv-rails (3.1.4)
183197
dotenv (= 3.1.4)
184198
railties (>= 6.1)
199+
drb (2.2.1)
185200
erubi (1.13.1)
186201
execjs (2.10.0)
187202
ffi (1.17.0)
@@ -193,6 +208,11 @@ GEM
193208
hashie (5.0.0)
194209
i18n (1.14.7)
195210
concurrent-ruby (~> 1.0)
211+
io-console (0.8.0)
212+
irb (1.15.1)
213+
pp (>= 0.6.0)
214+
rdoc (>= 4.0.0)
215+
reline (>= 0.4.2)
196216
jmespath (1.6.2)
197217
jquery-rails (4.6.0)
198218
rails-dom-testing (>= 1, < 3)
@@ -240,7 +260,6 @@ GEM
240260
unf
241261
marcel (1.0.4)
242262
matrix (0.4.2)
243-
method_source (1.1.0)
244263
mini_mime (1.1.5)
245264
mini_portile2 (2.8.8)
246265
minitest (5.25.4)
@@ -250,6 +269,7 @@ GEM
250269
minitest (>= 5.0)
251270
ruby-progressbar
252271
msgpack (1.7.5)
272+
mutex_m (0.3.0)
253273
net-imap (0.5.6)
254274
date
255275
net-protocol
@@ -282,6 +302,12 @@ GEM
282302
ast (~> 2.4.1)
283303
racc
284304
pg (1.5.9)
305+
pp (0.6.2)
306+
prettyprint
307+
prettyprint (0.2.0)
308+
psych (5.2.3)
309+
date
310+
stringio
285311
public_suffix (6.0.1)
286312
puma (6.5.0)
287313
nio4r (~> 2.0)
@@ -294,20 +320,23 @@ GEM
294320
rack (< 3)
295321
rack-test (2.2.0)
296322
rack (>= 1.3)
297-
rails (7.0.8.7)
298-
actioncable (= 7.0.8.7)
299-
actionmailbox (= 7.0.8.7)
300-
actionmailer (= 7.0.8.7)
301-
actionpack (= 7.0.8.7)
302-
actiontext (= 7.0.8.7)
303-
actionview (= 7.0.8.7)
304-
activejob (= 7.0.8.7)
305-
activemodel (= 7.0.8.7)
306-
activerecord (= 7.0.8.7)
307-
activestorage (= 7.0.8.7)
308-
activesupport (= 7.0.8.7)
323+
rackup (1.0.1)
324+
rack (< 3)
325+
webrick
326+
rails (7.1.5.1)
327+
actioncable (= 7.1.5.1)
328+
actionmailbox (= 7.1.5.1)
329+
actionmailer (= 7.1.5.1)
330+
actionpack (= 7.1.5.1)
331+
actiontext (= 7.1.5.1)
332+
actionview (= 7.1.5.1)
333+
activejob (= 7.1.5.1)
334+
activemodel (= 7.1.5.1)
335+
activerecord (= 7.1.5.1)
336+
activestorage (= 7.1.5.1)
337+
activesupport (= 7.1.5.1)
309338
bundler (>= 1.15.0)
310-
railties (= 7.0.8.7)
339+
railties (= 7.1.5.1)
311340
rails-dom-testing (2.2.0)
312341
activesupport (>= 5.0.0)
313342
minitest
@@ -317,19 +346,24 @@ GEM
317346
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)
318347
rails-mermaid_erd (0.5.0)
319348
rails (>= 5.2)
320-
railties (7.0.8.7)
321-
actionpack (= 7.0.8.7)
322-
activesupport (= 7.0.8.7)
323-
method_source
349+
railties (7.1.5.1)
350+
actionpack (= 7.1.5.1)
351+
activesupport (= 7.1.5.1)
352+
irb
353+
rackup (>= 1.0.0)
324354
rake (>= 12.2)
325-
thor (~> 1.0)
326-
zeitwerk (~> 2.5)
355+
thor (~> 1.0, >= 1.2.2)
356+
zeitwerk (~> 2.6)
327357
rainbow (3.1.1)
328358
rake (13.2.1)
329359
rb-fsevent (0.11.2)
330360
rb-inotify (0.11.1)
331361
ffi (~> 1.0)
362+
rdoc (6.12.0)
363+
psych (>= 4.0.0)
332364
regexp_parser (2.9.3)
365+
reline (0.6.0)
366+
io-console (~> 0.5)
333367
request_store (1.7.0)
334368
rack (>= 1.4)
335369
responders (3.1.1)
@@ -371,6 +405,7 @@ GEM
371405
scout_apm (5.4.0)
372406
parser
373407
scrub_rb (1.0.1)
408+
securerandom (0.4.1)
374409
selectize-rails (0.12.6)
375410
selenium-webdriver (4.27.0)
376411
base64 (~> 0.2)
@@ -403,18 +438,19 @@ GEM
403438
actionpack (>= 6.1)
404439
activesupport (>= 6.1)
405440
sprockets (>= 3.0.0)
406-
sqlite3 (1.7.3)
441+
sqlite3 (2.6.0)
407442
mini_portile2 (~> 2.8.0)
443+
stringio (3.1.5)
408444
terminal-table (3.0.2)
409445
unicode-display_width (>= 1.1.1, < 3)
446+
terser (1.2.5)
447+
execjs (>= 0.3.0, < 3)
410448
thor (1.3.2)
411449
tilt (2.4.0)
412450
timecop (0.9.10)
413451
timeout (0.4.3)
414452
tzinfo (2.0.6)
415453
concurrent-ruby (~> 1.0)
416-
uglifier (4.2.1)
417-
execjs (>= 0.3.0, < 3)
418454
unf (0.2.0)
419455
unicode-display_width (2.6.0)
420456
uniform_notifier (1.16.0)
@@ -425,6 +461,7 @@ GEM
425461
activemodel (>= 6.0.0)
426462
bindex (>= 0.4.0)
427463
railties (>= 6.0.0)
464+
webrick (1.9.1)
428465
websocket (1.2.11)
429466
websocket-driver (0.7.7)
430467
base64
@@ -451,7 +488,6 @@ DEPENDENCIES
451488
capybara
452489
climate_control
453490
cocoon
454-
concurrent-ruby (< 1.3.5)
455491
delayed_job_active_record
456492
devise
457493
dotenv-rails
@@ -472,7 +508,7 @@ DEPENDENCIES
472508
paper_trail
473509
pg
474510
puma
475-
rails (~> 7.0.2, >= 7.0.2.3)
511+
rails (~> 7.1.0)
476512
rails-mermaid_erd
477513
rubocop
478514
rubocop-rails
@@ -487,8 +523,8 @@ DEPENDENCIES
487523
simplecov-lcov
488524
skylight
489525
sqlite3
526+
terser
490527
timecop
491-
uglifier
492528
web-console
493529
zip_tricks
494530

app/controllers/report_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
class ReportController < ApplicationController
22
before_action :require_user
33
before_action :authenticate_user!
4-
load_and_authorize_resource except: :create
4+
load_and_authorize_resource
55
protect_from_forgery with: :exception
66

77
include ThesisHelper

bin/rails

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env ruby
2-
APP_PATH = File.expand_path('../config/application', __dir__)
3-
require_relative '../config/boot'
4-
require 'rails/commands'
2+
APP_PATH = File.expand_path("../config/application", __dir__)
3+
require_relative "../config/boot"
4+
require "rails/commands"

bin/rake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env ruby
2-
require_relative '../config/boot'
3-
require 'rake'
2+
require_relative "../config/boot"
3+
require "rake"
44
Rake.application.run

0 commit comments

Comments
 (0)