Skip to content

Commit 757e20a

Browse files
authored
Merge pull request #1428 from MITLibraries/update-deps
Update deps
2 parents 6407965 + 344a79e commit 757e20a

File tree

7 files changed

+122
-123
lines changed

7 files changed

+122
-123
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ git_source(:github) do |repo_name|
66
"https://github.com/#{repo_name}.git"
77
end
88

9-
gem 'administrate', '~> 0.19.0'
9+
gem 'administrate', '~> 0.20.0'
1010
gem 'aws-sdk-rails'
1111
gem 'aws-sdk-s3'
1212
gem 'aws-sdk-sqs'

Gemfile.lock

Lines changed: 54 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -89,76 +89,51 @@ GEM
8989
tzinfo (~> 2.0)
9090
addressable (2.8.7)
9191
public_suffix (>= 2.0.2, < 7.0)
92-
administrate (0.19.0)
93-
actionpack (>= 5.0)
94-
actionview (>= 5.0)
95-
activerecord (>= 5.0)
96-
jquery-rails (>= 4.0)
97-
kaminari (>= 1.0)
92+
administrate (0.20.1)
93+
actionpack (>= 6.0, < 8.0)
94+
actionview (>= 6.0, < 8.0)
95+
activerecord (>= 6.0, < 8.0)
96+
jquery-rails (~> 4.6.0)
97+
kaminari (~> 1.2.2)
9898
sassc-rails (~> 2.1)
9999
selectize-rails (~> 0.6)
100100
annotate (3.2.0)
101101
activerecord (>= 3.2, < 8.0)
102102
rake (>= 10.4, < 14.0)
103103
ansi (1.5.0)
104104
ast (2.4.2)
105-
aws-eventstream (1.3.0)
106-
aws-partitions (1.1020.0)
107-
aws-record (2.13.2)
108-
aws-sdk-dynamodb (~> 1, >= 1.85.0)
109-
aws-sdk-core (3.214.0)
105+
aws-eventstream (1.3.1)
106+
aws-partitions (1.1055.0)
107+
aws-sdk-core (3.219.0)
110108
aws-eventstream (~> 1, >= 1.3.0)
111109
aws-partitions (~> 1, >= 1.992.0)
112110
aws-sigv4 (~> 1.9)
111+
base64
113112
jmespath (~> 1, >= 1.6.1)
114-
aws-sdk-dynamodb (1.132.0)
115-
aws-sdk-core (~> 3, >= 3.210.0)
116-
aws-sigv4 (~> 1.5)
117-
aws-sdk-kms (1.96.0)
118-
aws-sdk-core (~> 3, >= 3.210.0)
113+
aws-sdk-kms (1.99.0)
114+
aws-sdk-core (~> 3, >= 3.216.0)
119115
aws-sigv4 (~> 1.5)
120-
aws-sdk-rails (4.1.0)
121-
actionmailbox (>= 7.0.0)
122-
aws-record (~> 2)
123-
aws-sdk-s3 (~> 1, >= 1.123.0)
124-
aws-sdk-ses (~> 1, >= 1.50.0)
125-
aws-sdk-sesv2 (~> 1, >= 1.34.0)
126-
aws-sdk-sns (~> 1, >= 1.61.0)
127-
aws-sdk-sqs (~> 1, >= 1.56.0)
128-
aws-sessionstore-dynamodb (~> 2)
129-
concurrent-ruby (~> 1.3, >= 1.3.1)
130-
railties (>= 7.0.0)
131-
aws-sdk-s3 (1.176.0)
132-
aws-sdk-core (~> 3, >= 3.210.0)
116+
aws-sdk-rails (5.1.0)
117+
aws-sdk-core (~> 3)
118+
railties (>= 7.1.0)
119+
aws-sdk-s3 (1.182.0)
120+
aws-sdk-core (~> 3, >= 3.216.0)
133121
aws-sdk-kms (~> 1)
134122
aws-sigv4 (~> 1.5)
135-
aws-sdk-ses (1.78.0)
136-
aws-sdk-core (~> 3, >= 3.210.0)
137-
aws-sigv4 (~> 1.5)
138-
aws-sdk-sesv2 (1.67.0)
139-
aws-sdk-core (~> 3, >= 3.210.0)
140-
aws-sigv4 (~> 1.5)
141-
aws-sdk-sns (1.92.0)
142-
aws-sdk-core (~> 3, >= 3.210.0)
143-
aws-sigv4 (~> 1.5)
144-
aws-sdk-sqs (1.89.0)
145-
aws-sdk-core (~> 3, >= 3.210.0)
123+
aws-sdk-sqs (1.93.0)
124+
aws-sdk-core (~> 3, >= 3.216.0)
146125
aws-sigv4 (~> 1.5)
147-
aws-sessionstore-dynamodb (2.2.0)
148-
aws-sdk-dynamodb (~> 1, >= 1.85.0)
149-
rack (>= 2, < 4)
150-
rack-session (>= 1, < 3)
151-
aws-sigv4 (1.10.1)
126+
aws-sigv4 (1.11.0)
152127
aws-eventstream (~> 1, >= 1.0.2)
153128
base64 (0.2.0)
154129
bcrypt (3.1.20)
155130
benchmark (0.4.0)
156-
bigdecimal (3.1.8)
131+
bigdecimal (3.1.9)
157132
bindex (0.8.1)
158133
bootsnap (1.18.4)
159134
msgpack (~> 1.2)
160135
builder (3.3.0)
161-
bullet (8.0.0)
136+
bullet (8.0.1)
162137
activesupport (>= 3.0.0)
163138
uniform_notifier (~> 1.11)
164139
byebug (11.1.3)
@@ -192,14 +167,14 @@ GEM
192167
responders
193168
warden (~> 1.2.3)
194169
docile (1.4.1)
195-
dotenv (3.1.4)
196-
dotenv-rails (3.1.4)
197-
dotenv (= 3.1.4)
170+
dotenv (3.1.7)
171+
dotenv-rails (3.1.7)
172+
dotenv (= 3.1.7)
198173
railties (>= 6.1)
199174
drb (2.2.1)
200175
erubi (1.13.1)
201176
execjs (2.10.0)
202-
ffi (1.17.0)
177+
ffi (1.17.1)
203178
flipflop (2.8.0)
204179
activesupport (>= 4.0)
205180
terminal-table (>= 1.8)
@@ -218,7 +193,7 @@ GEM
218193
rails-dom-testing (>= 1, < 3)
219194
railties (>= 4.2.0)
220195
thor (>= 0.14, < 2.0)
221-
json (2.9.0)
196+
json (2.10.1)
222197
kaminari (1.2.2)
223198
activesupport (>= 4.1.0)
224199
kaminari-actionview (= 1.2.2)
@@ -231,16 +206,17 @@ GEM
231206
activerecord
232207
kaminari-core (= 1.2.2)
233208
kaminari-core (1.2.2)
234-
language_server-protocol (3.17.0.3)
209+
language_server-protocol (3.17.0.4)
235210
launchy (3.0.1)
236211
addressable (~> 2.8)
237212
childprocess (~> 5.0)
238213
letter_opener (1.10.0)
239214
launchy (>= 2.2, < 4)
215+
lint_roller (1.1.0)
240216
listen (3.9.0)
241217
rb-fsevent (~> 0.10, >= 0.10.3)
242218
rb-inotify (~> 0.9, >= 0.9.10)
243-
logger (1.6.2)
219+
logger (1.6.6)
244220
lograge (0.14.0)
245221
actionpack (>= 4)
246222
activesupport (>= 4)
@@ -254,10 +230,9 @@ GEM
254230
net-imap
255231
net-pop
256232
net-smtp
257-
marc (1.2.0)
233+
marc (1.3.0)
234+
nokogiri (~> 1.0)
258235
rexml
259-
scrub_rb (>= 1.0.1, < 2)
260-
unf
261236
marcel (1.0.4)
262237
matrix (0.4.2)
263238
mini_mime (1.1.5)
@@ -298,7 +273,7 @@ GEM
298273
activerecord (>= 6.1)
299274
request_store (~> 1.4)
300275
parallel (1.26.3)
301-
parser (3.3.6.0)
276+
parser (3.3.7.1)
302277
ast (~> 2.4.1)
303278
racc
304279
pg (1.5.9)
@@ -309,7 +284,7 @@ GEM
309284
date
310285
stringio
311286
public_suffix (6.0.1)
312-
puma (6.5.0)
287+
puma (6.6.0)
313288
nio4r (~> 2.0)
314289
racc (1.8.1)
315290
rack (2.2.11)
@@ -344,7 +319,7 @@ GEM
344319
rails-html-sanitizer (1.6.2)
345320
loofah (~> 2.21)
346321
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-mermaid_erd (0.5.0)
322+
rails-mermaid_erd (0.6.0)
348323
rails (>= 5.2)
349324
railties (7.1.5.1)
350325
actionpack (= 7.1.5.1)
@@ -361,37 +336,39 @@ GEM
361336
ffi (~> 1.0)
362337
rdoc (6.12.0)
363338
psych (>= 4.0.0)
364-
regexp_parser (2.9.3)
339+
regexp_parser (2.10.0)
365340
reline (0.6.0)
366341
io-console (~> 0.5)
367342
request_store (1.7.0)
368343
rack (>= 1.4)
369344
responders (3.1.1)
370345
actionpack (>= 5.2)
371346
railties (>= 5.2)
372-
rexml (3.3.9)
373-
rubocop (1.69.1)
347+
rexml (3.4.1)
348+
rubocop (1.73.1)
374349
json (~> 2.3)
375-
language_server-protocol (>= 3.17.0)
350+
language_server-protocol (~> 3.17.0.2)
351+
lint_roller (~> 1.1.0)
376352
parallel (~> 1.10)
377353
parser (>= 3.3.0.2)
378354
rainbow (>= 2.2.2, < 4.0)
379355
regexp_parser (>= 2.9.3, < 3.0)
380-
rubocop-ast (>= 1.36.2, < 2.0)
356+
rubocop-ast (>= 1.38.0, < 2.0)
381357
ruby-progressbar (~> 1.7)
382358
unicode-display_width (>= 2.4.0, < 4.0)
383-
rubocop-ast (1.36.2)
359+
rubocop-ast (1.38.1)
384360
parser (>= 3.3.1.0)
385-
rubocop-rails (2.27.0)
361+
rubocop-rails (2.30.2)
386362
activesupport (>= 4.2.0)
363+
lint_roller (~> 1.1)
387364
rack (>= 1.1)
388-
rubocop (>= 1.52.0, < 2.0)
389-
rubocop-ast (>= 1.31.1, < 2.0)
365+
rubocop (>= 1.72.1, < 2.0)
366+
rubocop-ast (>= 1.38.0, < 2.0)
390367
ruby-progressbar (1.13.0)
391368
ruby-saml (1.17.0)
392369
nokogiri (>= 1.13.10)
393370
rexml
394-
rubyzip (2.3.2)
371+
rubyzip (2.4.1)
395372
sass-rails (6.0.0)
396373
sassc-rails (~> 2.1, >= 2.1.1)
397374
sassc (2.4.0)
@@ -402,21 +379,20 @@ GEM
402379
sprockets (> 3.0)
403380
sprockets-rails
404381
tilt
405-
scout_apm (5.4.0)
382+
scout_apm (5.6.1)
406383
parser
407-
scrub_rb (1.0.1)
408384
securerandom (0.4.1)
409385
selectize-rails (0.12.6)
410-
selenium-webdriver (4.27.0)
386+
selenium-webdriver (4.29.1)
411387
base64 (~> 0.2)
412388
logger (~> 1.4)
413389
rexml (~> 3.2, >= 3.2.5)
414390
rubyzip (>= 1.2.2, < 3.0)
415391
websocket (~> 1.0)
416-
sentry-rails (5.22.0)
392+
sentry-rails (5.22.4)
417393
railties (>= 5.0)
418-
sentry-ruby (~> 5.22.0)
419-
sentry-ruby (5.22.0)
394+
sentry-ruby (~> 5.22.4)
395+
sentry-ruby (5.22.4)
420396
bigdecimal
421397
concurrent-ruby (~> 1.0, >= 1.0.2)
422398
simple_form (5.3.1)
@@ -446,12 +422,11 @@ GEM
446422
terser (1.2.5)
447423
execjs (>= 0.3.0, < 3)
448424
thor (1.3.2)
449-
tilt (2.4.0)
425+
tilt (2.6.0)
450426
timecop (0.9.10)
451427
timeout (0.4.3)
452428
tzinfo (2.0.6)
453429
concurrent-ruby (~> 1.0)
454-
unf (0.2.0)
455430
unicode-display_width (2.6.0)
456431
uniform_notifier (1.16.0)
457432
warden (1.2.9)
@@ -476,7 +451,7 @@ PLATFORMS
476451
ruby
477452

478453
DEPENDENCIES
479-
administrate (~> 0.19.0)
454+
administrate (~> 0.20.0)
480455
annotate
481456
aws-sdk-rails
482457
aws-sdk-s3

app/assets/stylesheets/administrate.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313
}
1414
}
1515

16-
.new-hold-button {
17-
margin-left: 2rem;
18-
}
19-
2016
.new-submitter-button {
2117
margin-top: 1rem;
2218
}

app/views/admin/holds/_form.html.erb

Lines changed: 34 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ and renders all form fields for a resource's editable attributes.
2121
<%= t(
2222
"administrate.form.errors",
2323
pluralized_errors: pluralize(page.resource.errors.count, t("administrate.form.error")),
24-
resource_name: display_resource_name(page.resource_name).singularize
24+
resource_name: display_resource_name(page.resource_name, singular: true)
2525
) %>
2626
</h2>
2727

@@ -33,34 +33,47 @@ and renders all form fields for a resource's editable attributes.
3333
</div>
3434
<% end %>
3535

36-
<% page.attributes.each do |attribute| -%>
37-
<% if params[:thesis_id] && attribute.name == 'thesis' %>
38-
<div class="panel">
39-
<%= hidden_field_tag 'hold[thesis_id]', params[:thesis_id] %>
40-
<div class="panel-heading">Thesis info</div>
41-
<div class="panel-body">
42-
<ul class="list-unbulleted">
43-
<li>Title: <%= attribute.data.title %></li>
44-
<li>Author(s): <%= attribute.data.users.map { |author| author.name }.join("; ") %></li>
45-
<li>Degree(s): <%= attribute.data.degrees.map { |degree| degree.name_dw }.join("; ") %></li>
46-
<li>Degree date: <%= attribute.data.grad_date %></li>
47-
</ul>
48-
</div>
49-
</div>
50-
<% else %>
51-
<div class="field-unit field-unit--<%= attribute.html_class %> field-unit--<%= requireness(attribute) %>">
52-
<% if attribute.name == 'dates_thesis_files_received' %>
36+
<% page.attributes(controller.action_name).each do |title, attributes| -%>
37+
<fieldset class="<%= "field-unit--nested" if title.present? %>">
38+
<% if title.present? %>
39+
<legend><%= t "helpers.label.#{f.object_name}.#{title}", default: title %></legend>
40+
<% end %>
41+
<% attributes.each do |attribute| %>
42+
43+
<% if params[:thesis_id] && attribute.name == 'thesis' %>
44+
<div class="panel">
45+
<%= hidden_field_tag 'hold[thesis_id]', params[:thesis_id] %>
46+
<div class="panel-heading">Thesis info</div>
47+
<div class="panel-body">
48+
<ul class="list-unbulleted">
49+
<li>Title: <%= attribute.data.title %></li>
50+
<li>Author(s): <%= attribute.data.users.map { |author| author.name }.join("; ") %></li>
51+
<li>Degree(s): <%= attribute.data.degrees.map { |degree| degree.name_dw }.join("; ") %></li>
52+
<li>Degree date: <%= attribute.data.grad_date %></li>
53+
</ul>
54+
</div>
55+
</div>
56+
<% elsif attribute.name == 'dates_thesis_files_received'%>
5357
<div class="field-unit__label">
5458
<label for="hold_dates_files_received">Dates thesis files received</label>
5559
</div>
5660
<div class="field-unit__field">
5761
<input type="text" id="hold_dates_files_received" value="<%= attribute.data %>" readonly>
5862
</div>
5963
<% else %>
60-
<%= render_field attribute, f: f %>
64+
<div class="field-unit field-unit--<%= attribute.html_class %> field-unit--<%= requireness(attribute) %>">
65+
<%= render_field attribute, f: f %>
66+
67+
<% hint_key = "administrate.field_hints.#{page.resource_name}.#{attribute.name}" %>
68+
<% if I18n.exists?(hint_key) -%>
69+
<div class="field-unit__hint">
70+
<%= I18n.t(hint_key) %>
71+
</div>
72+
<% end -%>
73+
</div>
6174
<% end %>
62-
</div>
63-
<% end %>
75+
<% end %>
76+
</fieldset>
6477
<% end %>
6578

6679
<div class="form-actions">

0 commit comments

Comments
 (0)