Skip to content

Commit 3567775

Browse files
authored
This upgrades to rails 6 (#128)
upgrade to rails 6 and remove this ruby binstub that used 2.7.
1 parent 80b87f9 commit 3567775

19 files changed

+360
-186
lines changed

Diff for: .github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
- name: Setup Ruby using Bundler
2020
uses: ruby/setup-ruby@v1
2121
with:
22-
ruby-version: "2.7.1"
22+
ruby-version: "3.0.2"
2323
bundler-cache: true
24-
bundler: "2.1.4"
24+
bundler: "2.2.22"
2525

2626
- name: Install gems
2727
run: bundle install

Diff for: Gemfile

+4-6
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ source 'https://rubygems.org'
22

33

44
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
5-
gem 'rails', '5.2.6'
5+
gem 'rails', '6.0.6.1'
66
# Use sqlite3 as the database for Active Record
7-
gem 'sqlite3', '~> 1.3.6'
7+
gem 'sqlite3', '~> 1.4.0'
88
# Use SCSS for stylesheets
99
gem 'sass-rails', '~> 5.0'
1010
# Use Uglifier as compressor for JavaScript assets
@@ -20,8 +20,7 @@ gem 'jquery-rails'
2020
gem 'turbolinks'
2121
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
2222
gem 'jbuilder', '~> 2.0'
23-
# bundle exec rake doc:rails generates the API under doc/api.
24-
gem 'sdoc', '~> 0.4.0', group: :doc
23+
2524

2625
# Use ActiveModel has_secure_password
2726
# gem 'bcrypt', '~> 3.1.7'
@@ -43,8 +42,7 @@ gem 'bootstrap_form', '~> 2.7.0'
4342
gem 'dotenv-rails', '~> 2.1'
4443
gem 'js-routes', '~> 1.2.4'
4544
gem 'local_time', '~> 1.0.3'
46-
gem 'ood_appkit', '~> 1.0'
45+
gem 'ood_appkit', '~> 2.1'
4746
gem 'ood_core', '~> 0.21.0'
48-
gem 'shellwords', '~> 0.1'
4947

5048
gem 'nokogiri', '>= 1.10.4'

Diff for: Gemfile.lock

+117-94
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,65 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
actioncable (5.2.6)
5-
actionpack (= 5.2.6)
4+
actioncable (6.0.6.1)
5+
actionpack (= 6.0.6.1)
66
nio4r (~> 2.0)
77
websocket-driver (>= 0.6.1)
8-
actionmailer (5.2.6)
9-
actionpack (= 5.2.6)
10-
actionview (= 5.2.6)
11-
activejob (= 5.2.6)
8+
actionmailbox (6.0.6.1)
9+
actionpack (= 6.0.6.1)
10+
activejob (= 6.0.6.1)
11+
activerecord (= 6.0.6.1)
12+
activestorage (= 6.0.6.1)
13+
activesupport (= 6.0.6.1)
14+
mail (>= 2.7.1)
15+
actionmailer (6.0.6.1)
16+
actionpack (= 6.0.6.1)
17+
actionview (= 6.0.6.1)
18+
activejob (= 6.0.6.1)
1219
mail (~> 2.5, >= 2.5.4)
1320
rails-dom-testing (~> 2.0)
14-
actionpack (5.2.6)
15-
actionview (= 5.2.6)
16-
activesupport (= 5.2.6)
21+
actionpack (6.0.6.1)
22+
actionview (= 6.0.6.1)
23+
activesupport (= 6.0.6.1)
1724
rack (~> 2.0, >= 2.0.8)
1825
rack-test (>= 0.6.3)
1926
rails-dom-testing (~> 2.0)
20-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
21-
actionview (5.2.6)
22-
activesupport (= 5.2.6)
27+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
28+
actiontext (6.0.6.1)
29+
actionpack (= 6.0.6.1)
30+
activerecord (= 6.0.6.1)
31+
activestorage (= 6.0.6.1)
32+
activesupport (= 6.0.6.1)
33+
nokogiri (>= 1.8.5)
34+
actionview (6.0.6.1)
35+
activesupport (= 6.0.6.1)
2336
builder (~> 3.1)
2437
erubi (~> 1.4)
2538
rails-dom-testing (~> 2.0)
26-
rails-html-sanitizer (~> 1.0, >= 1.0.3)
27-
activejob (5.2.6)
28-
activesupport (= 5.2.6)
39+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
40+
activejob (6.0.6.1)
41+
activesupport (= 6.0.6.1)
2942
globalid (>= 0.3.6)
30-
activemodel (5.2.6)
31-
activesupport (= 5.2.6)
32-
activerecord (5.2.6)
33-
activemodel (= 5.2.6)
34-
activesupport (= 5.2.6)
35-
arel (>= 9.0)
36-
activestorage (5.2.6)
37-
actionpack (= 5.2.6)
38-
activerecord (= 5.2.6)
39-
marcel (~> 1.0.0)
40-
activesupport (5.2.6)
43+
activemodel (6.0.6.1)
44+
activesupport (= 6.0.6.1)
45+
activerecord (6.0.6.1)
46+
activemodel (= 6.0.6.1)
47+
activesupport (= 6.0.6.1)
48+
activestorage (6.0.6.1)
49+
actionpack (= 6.0.6.1)
50+
activejob (= 6.0.6.1)
51+
activerecord (= 6.0.6.1)
52+
marcel (~> 1.0)
53+
activesupport (6.0.6.1)
4154
concurrent-ruby (~> 1.0, >= 1.0.2)
4255
i18n (>= 0.7, < 2)
4356
minitest (~> 5.1)
4457
tzinfo (~> 1.1)
45-
addressable (2.8.0)
46-
public_suffix (>= 2.0.2, < 5.0)
47-
arel (9.0.0)
48-
autoprefixer-rails (10.2.5.0)
49-
execjs (< 2.8.0)
58+
zeitwerk (~> 2.2, >= 2.2.2)
59+
addressable (2.8.1)
60+
public_suffix (>= 2.0.2, < 6.0)
61+
autoprefixer-rails (10.4.7.0)
62+
execjs (~> 2)
5063
bootstrap-sass (3.4.1)
5164
autoprefixer-rails (>= 5.2.1)
5265
sassc (>= 2.0.0)
@@ -60,97 +73,111 @@ GEM
6073
coffee-script-source
6174
execjs
6275
coffee-script-source (1.12.2)
63-
concurrent-ruby (1.1.10)
76+
concurrent-ruby (1.2.0)
6477
crass (1.0.6)
65-
dotenv (2.7.6)
66-
dotenv-rails (2.7.6)
67-
dotenv (= 2.7.6)
78+
date (3.3.3)
79+
dotenv (2.8.1)
80+
dotenv-rails (2.8.1)
81+
dotenv (= 2.8.1)
6882
railties (>= 3.2)
69-
erubi (1.10.0)
70-
execjs (2.7.0)
71-
ffi (1.15.0)
72-
globalid (1.0.1)
83+
erubi (1.12.0)
84+
execjs (2.8.1)
85+
ffi (1.15.5)
86+
globalid (1.1.0)
7387
activesupport (>= 5.0)
7488
i18n (1.12.0)
7589
concurrent-ruby (~> 1.0)
76-
jbuilder (2.11.2)
90+
jbuilder (2.11.5)
91+
actionview (>= 5.0.0)
7792
activesupport (>= 5.0.0)
78-
jquery-rails (4.4.0)
93+
jquery-rails (4.5.1)
7994
rails-dom-testing (>= 1, < 3)
8095
railties (>= 4.2.0)
8196
thor (>= 0.14, < 2.0)
8297
js-routes (1.2.9)
8398
railties (>= 3.2)
8499
sprockets-rails
85-
json (1.8.6)
86100
local_time (1.0.3)
87101
coffee-rails
88-
lograge (0.11.2)
102+
lograge (0.12.0)
89103
actionpack (>= 4)
90104
activesupport (>= 4)
91105
railties (>= 4)
92106
request_store (~> 1.0)
93107
loofah (2.19.1)
94108
crass (~> 1.0.2)
95109
nokogiri (>= 1.5.9)
96-
mail (2.7.1)
110+
mail (2.8.1)
97111
mini_mime (>= 0.1.1)
98-
marcel (1.0.1)
112+
net-imap
113+
net-pop
114+
net-smtp
115+
marcel (1.0.2)
99116
method_source (1.0.0)
100-
mini_mime (1.1.0)
101-
mini_portile2 (2.8.0)
117+
mini_mime (1.1.2)
118+
mini_portile2 (2.8.1)
102119
minitest (5.17.0)
103-
nio4r (2.5.7)
104-
nokogiri (1.13.10)
120+
net-imap (0.3.4)
121+
date
122+
net-protocol
123+
net-pop (0.1.2)
124+
net-protocol
125+
net-protocol (0.2.1)
126+
timeout
127+
net-smtp (0.3.3)
128+
net-protocol
129+
nio4r (2.5.8)
130+
nokogiri (1.14.1)
105131
mini_portile2 (~> 2.8.0)
106132
racc (~> 1.4)
107-
ood_appkit (1.1.5)
133+
ood_appkit (2.1.1)
108134
addressable (~> 2.4)
109135
lograge (~> 0.3)
110136
ood_core (~> 0.1)
111-
rails (> 4.0.7, < 6.0)
137+
rails (>= 6.0.0, < 7)
112138
redcarpet (~> 3.2)
113139
ood_core (0.21.0)
114140
ffi (~> 1.9, >= 1.9.6)
115141
ood_support (~> 0.0.2)
116142
rexml (~> 3.2)
117143
ood_support (0.0.3)
118-
public_suffix (4.0.6)
119-
racc (1.6.1)
144+
public_suffix (5.0.1)
145+
racc (1.6.2)
120146
rack (2.2.6.2)
121-
rack-test (1.1.0)
122-
rack (>= 1.0, < 3)
123-
rails (5.2.6)
124-
actioncable (= 5.2.6)
125-
actionmailer (= 5.2.6)
126-
actionpack (= 5.2.6)
127-
actionview (= 5.2.6)
128-
activejob (= 5.2.6)
129-
activemodel (= 5.2.6)
130-
activerecord (= 5.2.6)
131-
activestorage (= 5.2.6)
132-
activesupport (= 5.2.6)
147+
rack-test (2.0.2)
148+
rack (>= 1.3)
149+
rails (6.0.6.1)
150+
actioncable (= 6.0.6.1)
151+
actionmailbox (= 6.0.6.1)
152+
actionmailer (= 6.0.6.1)
153+
actionpack (= 6.0.6.1)
154+
actiontext (= 6.0.6.1)
155+
actionview (= 6.0.6.1)
156+
activejob (= 6.0.6.1)
157+
activemodel (= 6.0.6.1)
158+
activerecord (= 6.0.6.1)
159+
activestorage (= 6.0.6.1)
160+
activesupport (= 6.0.6.1)
133161
bundler (>= 1.3.0)
134-
railties (= 5.2.6)
162+
railties (= 6.0.6.1)
135163
sprockets-rails (>= 2.0.0)
136164
rails-dom-testing (2.0.3)
137165
activesupport (>= 4.2.0)
138166
nokogiri (>= 1.6)
139-
rails-html-sanitizer (1.4.4)
167+
rails-html-sanitizer (1.5.0)
140168
loofah (~> 2.19, >= 2.19.1)
141-
railties (5.2.6)
142-
actionpack (= 5.2.6)
143-
activesupport (= 5.2.6)
169+
railties (6.0.6.1)
170+
actionpack (= 6.0.6.1)
171+
activesupport (= 6.0.6.1)
144172
method_source
145173
rake (>= 0.8.7)
146-
thor (>= 0.19.0, < 2.0)
147-
rake (13.0.3)
148-
rb-fsevent (0.11.0)
174+
thor (>= 0.20.3, < 2.0)
175+
rake (13.0.6)
176+
rb-fsevent (0.11.2)
149177
rb-inotify (0.10.1)
150178
ffi (~> 1.0)
151-
rdoc (4.3.0)
152-
redcarpet (3.5.1)
153-
request_store (1.5.0)
179+
redcarpet (3.6.0)
180+
request_store (1.5.1)
154181
rack (>= 1.4)
155182
rexml (3.2.5)
156183
sass (3.7.4)
@@ -166,31 +193,29 @@ GEM
166193
tilt (>= 1.1, < 3)
167194
sassc (2.4.0)
168195
ffi (~> 1.9)
169-
sdoc (0.4.2)
170-
json (~> 1.7, >= 1.7.7)
171-
rdoc (~> 4.0)
172-
shellwords (0.1.0)
173196
sprockets (3.7.2)
174197
concurrent-ruby (~> 1.0)
175198
rack (> 1, < 3)
176-
sprockets-rails (3.2.2)
177-
actionpack (>= 4.0)
178-
activesupport (>= 4.0)
199+
sprockets-rails (3.4.2)
200+
actionpack (>= 5.2)
201+
activesupport (>= 5.2)
179202
sprockets (>= 3.0.0)
180-
sqlite3 (1.3.13)
181-
thor (1.1.0)
203+
sqlite3 (1.4.4)
204+
thor (1.2.1)
182205
thread_safe (0.3.6)
183-
tilt (2.0.10)
206+
tilt (2.0.11)
207+
timeout (0.3.1)
184208
turbolinks (5.2.1)
185209
turbolinks-source (~> 5.2)
186210
turbolinks-source (5.2.0)
187-
tzinfo (1.2.10)
211+
tzinfo (1.2.11)
188212
thread_safe (~> 0.1)
189213
uglifier (4.2.0)
190214
execjs (>= 0.3.0, < 3)
191-
websocket-driver (0.7.3)
215+
websocket-driver (0.7.5)
192216
websocket-extensions (>= 0.1.0)
193217
websocket-extensions (0.1.5)
218+
zeitwerk (2.6.6)
194219

195220
PLATFORMS
196221
ruby
@@ -206,15 +231,13 @@ DEPENDENCIES
206231
js-routes (~> 1.2.4)
207232
local_time (~> 1.0.3)
208233
nokogiri (>= 1.10.4)
209-
ood_appkit (~> 1.0)
234+
ood_appkit (~> 2.1)
210235
ood_core (~> 0.21.0)
211-
rails (= 5.2.6)
236+
rails (= 6.0.6.1)
212237
sass-rails (~> 5.0)
213-
sdoc (~> 0.4.0)
214-
shellwords (~> 0.1)
215-
sqlite3 (~> 1.3.6)
238+
sqlite3 (~> 1.4.0)
216239
turbolinks
217240
uglifier (>= 1.3.0)
218241

219242
BUNDLED WITH
220-
2.1.4
243+
2.2.22

Diff for: app/models/job.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def default_scope
1717

1818
def submit(content = nil, opts = {})
1919
options = opts.merge(content: content)
20-
script = OodCore::Job::Script.new(options)
20+
script = OodCore::Job::Script.new(**options)
2121

2222
job_id = adapter.submit script # throw exception up the stack
2323

Diff for: bin/rails

+1-1
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', __FILE__)
2+
APP_PATH = File.expand_path('../config/application', __dir__)
33
require_relative '../config/boot'
44
require 'rails/commands'

Diff for: bin/ruby

-4
This file was deleted.

0 commit comments

Comments
 (0)