Skip to content

Commit 2e4bbb8

Browse files
committed
Add support for Rails 7
Why these changes are being introduced: This gem currently supports Rails 5 and 6 only, but we are starting to write applications that use Rails 7. Relevant ticket(s): MITLibraries/timdex-ui#16 How this addresses that need: This updates the gemspec to support versions of Rails greater than or equal to 5 but less than 8. Side effects of this change: * This gem still uses sassc, which appears to be unsupported. We should investigate whether it's possible to use a more modern CSS preprocessor (see #24). * Further work may be needed for the this gem to function alongside advanced Rails 7 UI features like Hotwire and Turbolinks (see #25).
1 parent 2dbb1e8 commit 2e4bbb8

3 files changed

Lines changed: 103 additions & 89 deletions

File tree

Gemfile.lock

Lines changed: 101 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,144 +1,158 @@
11
PATH
22
remote: .
33
specs:
4-
mitlibraries-theme (0.5.0)
5-
rails (>= 5, < 7)
4+
mitlibraries-theme (0.7.0)
5+
rails (>= 5, < 8)
66
sassc (~> 2)
77

88
GEM
99
remote: https://rubygems.org/
1010
specs:
11-
actioncable (6.1.3)
12-
actionpack (= 6.1.3)
13-
activesupport (= 6.1.3)
11+
actioncable (7.0.2.3)
12+
actionpack (= 7.0.2.3)
13+
activesupport (= 7.0.2.3)
1414
nio4r (~> 2.0)
1515
websocket-driver (>= 0.6.1)
16-
actionmailbox (6.1.3)
17-
actionpack (= 6.1.3)
18-
activejob (= 6.1.3)
19-
activerecord (= 6.1.3)
20-
activestorage (= 6.1.3)
21-
activesupport (= 6.1.3)
16+
actionmailbox (7.0.2.3)
17+
actionpack (= 7.0.2.3)
18+
activejob (= 7.0.2.3)
19+
activerecord (= 7.0.2.3)
20+
activestorage (= 7.0.2.3)
21+
activesupport (= 7.0.2.3)
2222
mail (>= 2.7.1)
23-
actionmailer (6.1.3)
24-
actionpack (= 6.1.3)
25-
actionview (= 6.1.3)
26-
activejob (= 6.1.3)
27-
activesupport (= 6.1.3)
23+
net-imap
24+
net-pop
25+
net-smtp
26+
actionmailer (7.0.2.3)
27+
actionpack (= 7.0.2.3)
28+
actionview (= 7.0.2.3)
29+
activejob (= 7.0.2.3)
30+
activesupport (= 7.0.2.3)
2831
mail (~> 2.5, >= 2.5.4)
32+
net-imap
33+
net-pop
34+
net-smtp
2935
rails-dom-testing (~> 2.0)
30-
actionpack (6.1.3)
31-
actionview (= 6.1.3)
32-
activesupport (= 6.1.3)
33-
rack (~> 2.0, >= 2.0.9)
36+
actionpack (7.0.2.3)
37+
actionview (= 7.0.2.3)
38+
activesupport (= 7.0.2.3)
39+
rack (~> 2.0, >= 2.2.0)
3440
rack-test (>= 0.6.3)
3541
rails-dom-testing (~> 2.0)
3642
rails-html-sanitizer (~> 1.0, >= 1.2.0)
37-
actiontext (6.1.3)
38-
actionpack (= 6.1.3)
39-
activerecord (= 6.1.3)
40-
activestorage (= 6.1.3)
41-
activesupport (= 6.1.3)
43+
actiontext (7.0.2.3)
44+
actionpack (= 7.0.2.3)
45+
activerecord (= 7.0.2.3)
46+
activestorage (= 7.0.2.3)
47+
activesupport (= 7.0.2.3)
48+
globalid (>= 0.6.0)
4249
nokogiri (>= 1.8.5)
43-
actionview (6.1.3)
44-
activesupport (= 6.1.3)
50+
actionview (7.0.2.3)
51+
activesupport (= 7.0.2.3)
4552
builder (~> 3.1)
4653
erubi (~> 1.4)
4754
rails-dom-testing (~> 2.0)
4855
rails-html-sanitizer (~> 1.1, >= 1.2.0)
49-
activejob (6.1.3)
50-
activesupport (= 6.1.3)
56+
activejob (7.0.2.3)
57+
activesupport (= 7.0.2.3)
5158
globalid (>= 0.3.6)
52-
activemodel (6.1.3)
53-
activesupport (= 6.1.3)
54-
activerecord (6.1.3)
55-
activemodel (= 6.1.3)
56-
activesupport (= 6.1.3)
57-
activestorage (6.1.3)
58-
actionpack (= 6.1.3)
59-
activejob (= 6.1.3)
60-
activerecord (= 6.1.3)
61-
activesupport (= 6.1.3)
62-
marcel (~> 0.3.1)
63-
mimemagic (~> 0.3.2)
64-
activesupport (6.1.3)
59+
activemodel (7.0.2.3)
60+
activesupport (= 7.0.2.3)
61+
activerecord (7.0.2.3)
62+
activemodel (= 7.0.2.3)
63+
activesupport (= 7.0.2.3)
64+
activestorage (7.0.2.3)
65+
actionpack (= 7.0.2.3)
66+
activejob (= 7.0.2.3)
67+
activerecord (= 7.0.2.3)
68+
activesupport (= 7.0.2.3)
69+
marcel (~> 1.0)
70+
mini_mime (>= 1.1.0)
71+
activesupport (7.0.2.3)
6572
concurrent-ruby (~> 1.0, >= 1.0.2)
6673
i18n (>= 1.6, < 2)
6774
minitest (>= 5.1)
6875
tzinfo (~> 2.0)
69-
zeitwerk (~> 2.3)
7076
builder (3.2.4)
71-
concurrent-ruby (1.1.8)
77+
concurrent-ruby (1.1.10)
7278
crass (1.0.6)
79+
digest (3.1.0)
7380
erubi (1.10.0)
74-
ffi (1.15.0)
75-
globalid (0.4.2)
76-
activesupport (>= 4.2.0)
77-
i18n (1.8.9)
81+
ffi (1.15.5)
82+
globalid (1.0.0)
83+
activesupport (>= 5.0)
84+
i18n (1.10.0)
7885
concurrent-ruby (~> 1.0)
79-
loofah (2.9.0)
86+
loofah (2.16.0)
8087
crass (~> 1.0.2)
8188
nokogiri (>= 1.5.9)
8289
mail (2.7.1)
8390
mini_mime (>= 0.1.1)
84-
marcel (0.3.3)
85-
mimemagic (~> 0.3.2)
91+
marcel (1.0.2)
8692
method_source (1.0.0)
87-
mimemagic (0.3.6)
88-
mini_mime (1.0.2)
89-
mini_portile2 (2.5.0)
93+
mini_mime (1.1.2)
94+
mini_portile2 (2.8.0)
9095
minitest (5.14.4)
91-
nio4r (2.5.7)
92-
nokogiri (1.11.2)
93-
mini_portile2 (~> 2.5.0)
96+
net-imap (0.2.3)
97+
digest
98+
net-protocol
99+
strscan
100+
net-pop (0.1.1)
101+
digest
102+
net-protocol
103+
timeout
104+
net-protocol (0.1.3)
105+
timeout
106+
net-smtp (0.3.1)
107+
digest
108+
net-protocol
109+
timeout
110+
nio4r (2.5.8)
111+
nokogiri (1.13.3)
112+
mini_portile2 (~> 2.8.0)
94113
racc (~> 1.4)
95-
racc (1.5.2)
114+
racc (1.6.0)
96115
rack (2.2.3)
97116
rack-test (1.1.0)
98117
rack (>= 1.0, < 3)
99-
rails (6.1.3)
100-
actioncable (= 6.1.3)
101-
actionmailbox (= 6.1.3)
102-
actionmailer (= 6.1.3)
103-
actionpack (= 6.1.3)
104-
actiontext (= 6.1.3)
105-
actionview (= 6.1.3)
106-
activejob (= 6.1.3)
107-
activemodel (= 6.1.3)
108-
activerecord (= 6.1.3)
109-
activestorage (= 6.1.3)
110-
activesupport (= 6.1.3)
118+
rails (7.0.2.3)
119+
actioncable (= 7.0.2.3)
120+
actionmailbox (= 7.0.2.3)
121+
actionmailer (= 7.0.2.3)
122+
actionpack (= 7.0.2.3)
123+
actiontext (= 7.0.2.3)
124+
actionview (= 7.0.2.3)
125+
activejob (= 7.0.2.3)
126+
activemodel (= 7.0.2.3)
127+
activerecord (= 7.0.2.3)
128+
activestorage (= 7.0.2.3)
129+
activesupport (= 7.0.2.3)
111130
bundler (>= 1.15.0)
112-
railties (= 6.1.3)
113-
sprockets-rails (>= 2.0.0)
131+
railties (= 7.0.2.3)
114132
rails-dom-testing (2.0.3)
115133
activesupport (>= 4.2.0)
116134
nokogiri (>= 1.6)
117-
rails-html-sanitizer (1.3.0)
135+
rails-html-sanitizer (1.4.2)
118136
loofah (~> 2.3)
119-
railties (6.1.3)
120-
actionpack (= 6.1.3)
121-
activesupport (= 6.1.3)
137+
railties (7.0.2.3)
138+
actionpack (= 7.0.2.3)
139+
activesupport (= 7.0.2.3)
122140
method_source
123-
rake (>= 0.8.7)
141+
rake (>= 12.2)
124142
thor (~> 1.0)
143+
zeitwerk (~> 2.5)
125144
rake (13.0.3)
126145
sassc (2.4.0)
127146
ffi (~> 1.9)
128-
sprockets (4.0.2)
129-
concurrent-ruby (~> 1.0)
130-
rack (> 1, < 3)
131-
sprockets-rails (3.2.2)
132-
actionpack (>= 4.0)
133-
activesupport (>= 4.0)
134-
sprockets (>= 3.0.0)
135-
thor (1.1.0)
147+
strscan (3.0.1)
148+
thor (1.2.1)
149+
timeout (0.2.0)
136150
tzinfo (2.0.4)
137151
concurrent-ruby (~> 1.0)
138-
websocket-driver (0.7.3)
152+
websocket-driver (0.7.5)
139153
websocket-extensions (>= 0.1.0)
140154
websocket-extensions (0.1.5)
141-
zeitwerk (2.4.2)
155+
zeitwerk (2.5.4)
142156

143157
PLATFORMS
144158
ruby

lib/mitlibraries/theme/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Mitlibraries
22
module Theme
3-
VERSION = '0.6.0'.freeze
3+
VERSION = '0.7.0'.freeze
44
end
55
end

mitlibraries-theme.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ Gem::Specification.new do |spec|
2323
spec.add_development_dependency 'bundler', '~> 2.0'
2424
spec.add_development_dependency 'minitest', '~> 5.0'
2525
spec.add_development_dependency 'rake', '~> 13.0'
26-
spec.add_dependency 'rails', '>= 5', '<7'
26+
spec.add_dependency 'rails', '>= 5', '< 8'
2727
spec.add_dependency 'sassc', '~> 2'
2828
end

0 commit comments

Comments
 (0)