Skip to content

Commit 5d2fe83

Browse files
committed
chore: update to rails 8 and ruby 3.4
1 parent 5e14571 commit 5d2fe83

19 files changed

+219
-206
lines changed

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ AllCops:
99
TargetRubyVersion: 3.1
1010
NewCops: disable
1111

12-
require:
12+
plugins:
1313
- rubocop-rails
1414
# - rubocop-performance
1515
# - rubocop-minitest

Gemfile

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ source 'https://rubygems.org'
44

55
# Ruby versions for various enviornments
66
ruby_versions = {
7-
development: '~>3.1.0',
8-
test: '~>3.1.0',
9-
staging: '~>3.1.0',
10-
production: '~>3.1.0'
7+
development: '~>3.4.0',
8+
test: '~>3.4.0',
9+
staging: '~>3.4.0',
10+
production: '~>3.4.0'
1111
}
1212
# Get the ruby version for the current enviornment
1313
ruby ruby_versions[(ENV['RAILS_ENV'] || 'development').to_sym]
1414

1515
# The venerable, almighty Rails
16-
gem 'rails', '~>7.0'
16+
gem 'rails', '~>8.0'
1717

1818
group :development, :test do
1919
gem 'better_errors'
@@ -51,6 +51,7 @@ gem 'mysql2'
5151
gem 'puma'
5252

5353
gem 'bootsnap', require: false
54+
gem 'csv'
5455

5556
# Extend irb for better output
5657
gem 'hirb'
@@ -59,7 +60,7 @@ gem 'hirb'
5960
gem 'devise'
6061
gem 'devise_ldap_authenticatable'
6162
gem 'json-jwt'
62-
gem 'ruby-saml', '~> 1.13.0'
63+
gem 'ruby-saml'
6364

6465
# Student submission
6566
gem 'coderay'
@@ -68,10 +69,10 @@ gem 'ruby-filemagic'
6869
gem 'rubyzip'
6970

7071
# Plagarism detection
71-
gem 'moss_ruby', '>= 1.1.4'
72+
gem 'moss_ruby'
7273

7374
# Latex
74-
gem 'rails-latex', '>2.3'
75+
gem 'rails-latex'
7576

7677
# API
7778
gem 'grape'
@@ -87,7 +88,7 @@ gem 'rack-cors', require: 'rack/cors'
8788
gem 'require_all', '>=1.3.3'
8889

8990
# Excel support
90-
gem 'roo', '~> 2.7.0'
91+
gem 'roo'
9192
gem 'roo-xls'
9293

9394
# webcal generation
@@ -98,7 +99,7 @@ gem 'rest-client'
9899
gem 'net-smtp', require: false
99100

100101
# Turn it in
101-
gem 'tca_client', '1.0.4'
102+
gem 'tca_client'
102103

103104
# Async jobs
104105
gem 'sidekiq'

Gemfile.lock

Lines changed: 77 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -2,66 +2,65 @@ GEM
22
remote: https://rubygems.org/
33
specs:
44
Ascii85 (2.0.1)
5-
actioncable (7.2.2.1)
6-
actionpack (= 7.2.2.1)
7-
activesupport (= 7.2.2.1)
5+
actioncable (8.0.2)
6+
actionpack (= 8.0.2)
7+
activesupport (= 8.0.2)
88
nio4r (~> 2.0)
99
websocket-driver (>= 0.6.1)
1010
zeitwerk (~> 2.6)
11-
actionmailbox (7.2.2.1)
12-
actionpack (= 7.2.2.1)
13-
activejob (= 7.2.2.1)
14-
activerecord (= 7.2.2.1)
15-
activestorage (= 7.2.2.1)
16-
activesupport (= 7.2.2.1)
11+
actionmailbox (8.0.2)
12+
actionpack (= 8.0.2)
13+
activejob (= 8.0.2)
14+
activerecord (= 8.0.2)
15+
activestorage (= 8.0.2)
16+
activesupport (= 8.0.2)
1717
mail (>= 2.8.0)
18-
actionmailer (7.2.2.1)
19-
actionpack (= 7.2.2.1)
20-
actionview (= 7.2.2.1)
21-
activejob (= 7.2.2.1)
22-
activesupport (= 7.2.2.1)
18+
actionmailer (8.0.2)
19+
actionpack (= 8.0.2)
20+
actionview (= 8.0.2)
21+
activejob (= 8.0.2)
22+
activesupport (= 8.0.2)
2323
mail (>= 2.8.0)
2424
rails-dom-testing (~> 2.2)
25-
actionpack (7.2.2.1)
26-
actionview (= 7.2.2.1)
27-
activesupport (= 7.2.2.1)
25+
actionpack (8.0.2)
26+
actionview (= 8.0.2)
27+
activesupport (= 8.0.2)
2828
nokogiri (>= 1.8.5)
29-
racc
30-
rack (>= 2.2.4, < 3.2)
29+
rack (>= 2.2.4)
3130
rack-session (>= 1.0.1)
3231
rack-test (>= 0.6.3)
3332
rails-dom-testing (~> 2.2)
3433
rails-html-sanitizer (~> 1.6)
3534
useragent (~> 0.16)
36-
actiontext (7.2.2.1)
37-
actionpack (= 7.2.2.1)
38-
activerecord (= 7.2.2.1)
39-
activestorage (= 7.2.2.1)
40-
activesupport (= 7.2.2.1)
35+
actiontext (8.0.2)
36+
actionpack (= 8.0.2)
37+
activerecord (= 8.0.2)
38+
activestorage (= 8.0.2)
39+
activesupport (= 8.0.2)
4140
globalid (>= 0.6.0)
4241
nokogiri (>= 1.8.5)
43-
actionview (7.2.2.1)
44-
activesupport (= 7.2.2.1)
42+
actionview (8.0.2)
43+
activesupport (= 8.0.2)
4544
builder (~> 3.1)
4645
erubi (~> 1.11)
4746
rails-dom-testing (~> 2.2)
4847
rails-html-sanitizer (~> 1.6)
49-
activejob (7.2.2.1)
50-
activesupport (= 7.2.2.1)
48+
activejob (8.0.2)
49+
activesupport (= 8.0.2)
5150
globalid (>= 0.3.6)
52-
activemodel (7.2.2.1)
53-
activesupport (= 7.2.2.1)
54-
activerecord (7.2.2.1)
55-
activemodel (= 7.2.2.1)
56-
activesupport (= 7.2.2.1)
51+
activemodel (8.0.2)
52+
activesupport (= 8.0.2)
53+
activerecord (8.0.2)
54+
activemodel (= 8.0.2)
55+
activesupport (= 8.0.2)
5756
timeout (>= 0.4.0)
58-
activestorage (7.2.2.1)
59-
actionpack (= 7.2.2.1)
60-
activejob (= 7.2.2.1)
61-
activerecord (= 7.2.2.1)
62-
activesupport (= 7.2.2.1)
57+
activestorage (8.0.2)
58+
actionpack (= 8.0.2)
59+
activejob (= 8.0.2)
60+
activerecord (= 8.0.2)
61+
activesupport (= 8.0.2)
6362
marcel (~> 1.0)
64-
activesupport (7.2.2.1)
63+
activesupport (8.0.2)
6564
base64
6665
benchmark (>= 0.3)
6766
bigdecimal
@@ -73,6 +72,7 @@ GEM
7372
minitest (>= 5.1)
7473
securerandom (>= 0.3)
7574
tzinfo (~> 2.0, >= 2.0.5)
75+
uri (>= 0.13.1)
7676
addressable (2.8.7)
7777
public_suffix (>= 2.0.2, < 7.0)
7878
aes_key_wrap (1.1.0)
@@ -113,6 +113,7 @@ GEM
113113
cronex (0.15.0)
114114
tzinfo
115115
unicode (>= 0.4.4.5)
116+
csv (3.3.3)
116117
database_cleaner-active_record (2.2.0)
117118
activerecord (>= 5.a)
118119
database_cleaner-core (~> 2.0.0)
@@ -248,9 +249,9 @@ GEM
248249
minitest (5.25.5)
249250
minitest-around (0.5.0)
250251
minitest (~> 5.0)
251-
minitest-rails (7.2.0)
252+
minitest-rails (8.0.0)
252253
minitest (~> 5.20)
253-
railties (>= 7.2.0, < 8.0.0)
254+
railties (>= 8.0.0, < 8.1.0)
254255
moss_ruby (1.1.4)
255256
tcp_timeout (~> 0.1.1)
256257
msgpack (1.8.0)
@@ -276,9 +277,9 @@ GEM
276277
net-protocol
277278
netrc (0.11.0)
278279
nio4r (2.7.4)
279-
nokogiri (1.18.6-aarch64-linux-gnu)
280+
nokogiri (1.18.7-aarch64-linux-gnu)
280281
racc (~> 1.4)
281-
nokogiri (1.18.6-x86_64-linux-gnu)
282+
nokogiri (1.18.7-x86_64-linux-gnu)
282283
racc (~> 1.4)
283284
oauth2 (2.0.9)
284285
faraday (>= 0.17.3, < 3.0)
@@ -323,29 +324,29 @@ GEM
323324
rack (>= 1.3)
324325
rackup (2.2.1)
325326
rack (>= 3)
326-
rails (7.2.2.1)
327-
actioncable (= 7.2.2.1)
328-
actionmailbox (= 7.2.2.1)
329-
actionmailer (= 7.2.2.1)
330-
actionpack (= 7.2.2.1)
331-
actiontext (= 7.2.2.1)
332-
actionview (= 7.2.2.1)
333-
activejob (= 7.2.2.1)
334-
activemodel (= 7.2.2.1)
335-
activerecord (= 7.2.2.1)
336-
activestorage (= 7.2.2.1)
337-
activesupport (= 7.2.2.1)
327+
rails (8.0.2)
328+
actioncable (= 8.0.2)
329+
actionmailbox (= 8.0.2)
330+
actionmailer (= 8.0.2)
331+
actionpack (= 8.0.2)
332+
actiontext (= 8.0.2)
333+
actionview (= 8.0.2)
334+
activejob (= 8.0.2)
335+
activemodel (= 8.0.2)
336+
activerecord (= 8.0.2)
337+
activestorage (= 8.0.2)
338+
activesupport (= 8.0.2)
338339
bundler (>= 1.15.0)
339-
railties (= 7.2.2.1)
340+
railties (= 8.0.2)
340341
rails-dom-testing (2.2.0)
341342
activesupport (>= 5.0.0)
342343
minitest
343344
nokogiri (>= 1.6)
344345
rails-html-sanitizer (1.6.2)
345346
loofah (~> 2.21)
346347
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)
347-
rails-latex (2.3.4)
348-
rails (>= 3.0.0, < 8)
348+
rails-latex (2.3.5)
349+
rails (>= 3.0.0, < 9)
349350
rails_best_practices (1.23.2)
350351
activesupport
351352
code_analyzer (~> 0.5.5)
@@ -354,9 +355,9 @@ GEM
354355
json
355356
require_all (~> 3.0)
356357
ruby-progressbar
357-
railties (7.2.2.1)
358-
actionpack (= 7.2.2.1)
359-
activesupport (= 7.2.2.1)
358+
railties (8.0.2)
359+
actionpack (= 8.0.2)
360+
activesupport (= 8.0.2)
360361
irb (~> 1.13)
361362
rackup (>= 1.0.0)
362363
rake (>= 12.2)
@@ -367,7 +368,7 @@ GEM
367368
rb-fsevent (0.11.2)
368369
rb-inotify (0.11.1)
369370
ffi (~> 1.0)
370-
rbs (3.9.1)
371+
rbs (3.9.2)
371372
logger
372373
rbtree (0.4.6)
373374
rdoc (6.13.1)
@@ -394,9 +395,9 @@ GEM
394395
rmagick (6.1.1)
395396
observer (~> 0.1)
396397
pkg-config (~> 1.4)
397-
roo (2.7.1)
398+
roo (2.10.1)
398399
nokogiri (~> 1)
399-
rubyzip (~> 1.1, < 2.0.0)
400+
rubyzip (>= 1.3.0, < 3.0.0)
400401
roo-xls (1.2.0)
401402
nokogiri
402403
roo (>= 2.0.0, < 3)
@@ -446,11 +447,11 @@ GEM
446447
ruby-ole (1.2.13.1)
447448
ruby-progressbar (1.13.0)
448449
ruby-rc4 (0.1.5)
449-
ruby-saml (1.13.0)
450-
nokogiri (>= 1.10.5)
450+
ruby-saml (1.18.0)
451+
nokogiri (>= 1.13.10)
451452
rexml
452453
ruby2_keywords (0.0.5)
453-
rubyzip (1.3.0)
454+
rubyzip (2.4.1)
454455
securerandom (0.4.1)
455456
set (1.1.1)
456457
sexp_processor (4.17.3)
@@ -546,7 +547,7 @@ GEM
546547
yard (0.9.37)
547548
yard-solargraph (0.1.0)
548549
yard (~> 0.9)
549-
zeitwerk (2.6.18)
550+
zeitwerk (2.7.2)
550551

551552
PLATFORMS
552553
aarch64-linux
@@ -559,6 +560,7 @@ DEPENDENCIES
559560
byebug
560561
ci_reporter
561562
coderay
563+
csv
562564
database_cleaner-active_record
563565
devise
564566
devise_ldap_authenticatable
@@ -577,21 +579,21 @@ DEPENDENCIES
577579
minitest
578580
minitest-around
579581
minitest-rails
580-
moss_ruby (>= 1.1.4)
582+
moss_ruby
581583
mysql2
582584
net-smtp
583585
oauth2
584586
pdf-reader
585587
puma
586588
rack-cors
587-
rails (~> 7.0)
588-
rails-latex (> 2.3)
589+
rails (~> 8.0)
590+
rails-latex
589591
rails_best_practices
590592
redis
591593
require_all (>= 1.3.3)
592594
rest-client
593595
rmagick
594-
roo (~> 2.7.0)
596+
roo
595597
roo-xls
596598
rubocop
597599
rubocop-factory_bot
@@ -601,7 +603,7 @@ DEPENDENCIES
601603
rubocop-rails
602604
ruby-filemagic
603605
ruby-lsp
604-
ruby-saml (~> 1.13.0)
606+
ruby-saml
605607
rubyzip
606608
shellwords
607609
sidekiq
@@ -610,11 +612,11 @@ DEPENDENCIES
610612
simplecov
611613
solargraph
612614
sprockets-rails
613-
tca_client (= 1.0.4)
615+
tca_client
614616
webmock
615617

616618
RUBY VERSION
617-
ruby 3.1.4p223
619+
ruby 3.4.2p28
618620

619621
BUNDLED WITH
620622
2.4.22

0 commit comments

Comments
 (0)