Skip to content

Commit a639875

Browse files
authored
update Rails to latest patch version (6.1.3 -> 6.1.6) + other minor upgrades (#660)
1 parent ef58e4d commit a639875

File tree

5 files changed

+87
-105
lines changed

5 files changed

+87
-105
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ gem 'rails-i18n', '~> 6.0.0'
77
gem 'rdiscount', '~> 2.2.0.1'
88
gem 'rubyzip', '~> 2.3.0'
99
gem 'activeadmin', '~> 2.9.0'
10-
gem 'bootsnap', '~> 1.7.3', require: false
10+
gem 'bootsnap', '~> 1.12.0', require: false
1111
gem 'has_scope', '~> 0.7.2'
1212
gem 'pundit', '~> 2.1.0'
1313
gem 'pg', '~> 1.2.1'

Gemfile.lock

Lines changed: 80 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
actioncable (6.1.3.1)
5-
actionpack (= 6.1.3.1)
6-
activesupport (= 6.1.3.1)
4+
actioncable (6.1.6)
5+
actionpack (= 6.1.6)
6+
activesupport (= 6.1.6)
77
nio4r (~> 2.0)
88
websocket-driver (>= 0.6.1)
9-
actionmailbox (6.1.3.1)
10-
actionpack (= 6.1.3.1)
11-
activejob (= 6.1.3.1)
12-
activerecord (= 6.1.3.1)
13-
activestorage (= 6.1.3.1)
14-
activesupport (= 6.1.3.1)
9+
actionmailbox (6.1.6)
10+
actionpack (= 6.1.6)
11+
activejob (= 6.1.6)
12+
activerecord (= 6.1.6)
13+
activestorage (= 6.1.6)
14+
activesupport (= 6.1.6)
1515
mail (>= 2.7.1)
16-
actionmailer (6.1.3.1)
17-
actionpack (= 6.1.3.1)
18-
actionview (= 6.1.3.1)
19-
activejob (= 6.1.3.1)
20-
activesupport (= 6.1.3.1)
16+
actionmailer (6.1.6)
17+
actionpack (= 6.1.6)
18+
actionview (= 6.1.6)
19+
activejob (= 6.1.6)
20+
activesupport (= 6.1.6)
2121
mail (~> 2.5, >= 2.5.4)
2222
rails-dom-testing (~> 2.0)
23-
actionpack (6.1.3.1)
24-
actionview (= 6.1.3.1)
25-
activesupport (= 6.1.3.1)
23+
actionpack (6.1.6)
24+
actionview (= 6.1.6)
25+
activesupport (= 6.1.6)
2626
rack (~> 2.0, >= 2.0.9)
2727
rack-test (>= 0.6.3)
2828
rails-dom-testing (~> 2.0)
2929
rails-html-sanitizer (~> 1.0, >= 1.2.0)
30-
actiontext (6.1.3.1)
31-
actionpack (= 6.1.3.1)
32-
activerecord (= 6.1.3.1)
33-
activestorage (= 6.1.3.1)
34-
activesupport (= 6.1.3.1)
30+
actiontext (6.1.6)
31+
actionpack (= 6.1.6)
32+
activerecord (= 6.1.6)
33+
activestorage (= 6.1.6)
34+
activesupport (= 6.1.6)
3535
nokogiri (>= 1.8.5)
36-
actionview (6.1.3.1)
37-
activesupport (= 6.1.3.1)
36+
actionview (6.1.6)
37+
activesupport (= 6.1.6)
3838
builder (~> 3.1)
3939
erubi (~> 1.4)
4040
rails-dom-testing (~> 2.0)
@@ -48,22 +48,22 @@ GEM
4848
kaminari (~> 1.0, >= 1.2.1)
4949
railties (>= 5.2, < 6.2)
5050
ransack (~> 2.1, >= 2.1.1)
51-
activejob (6.1.3.1)
52-
activesupport (= 6.1.3.1)
51+
activejob (6.1.6)
52+
activesupport (= 6.1.6)
5353
globalid (>= 0.3.6)
54-
activemodel (6.1.3.1)
55-
activesupport (= 6.1.3.1)
56-
activerecord (6.1.3.1)
57-
activemodel (= 6.1.3.1)
58-
activesupport (= 6.1.3.1)
59-
activestorage (6.1.3.1)
60-
actionpack (= 6.1.3.1)
61-
activejob (= 6.1.3.1)
62-
activerecord (= 6.1.3.1)
63-
activesupport (= 6.1.3.1)
64-
marcel (~> 1.0.0)
65-
mini_mime (~> 1.0.2)
66-
activesupport (6.1.3.1)
54+
activemodel (6.1.6)
55+
activesupport (= 6.1.6)
56+
activerecord (6.1.6)
57+
activemodel (= 6.1.6)
58+
activesupport (= 6.1.6)
59+
activestorage (6.1.6)
60+
actionpack (= 6.1.6)
61+
activejob (= 6.1.6)
62+
activerecord (= 6.1.6)
63+
activesupport (= 6.1.6)
64+
marcel (~> 1.0)
65+
mini_mime (>= 1.1.0)
66+
activesupport (6.1.6)
6767
concurrent-ruby (~> 1.0, >= 1.0.2)
6868
i18n (>= 1.6, < 2)
6969
minitest (>= 5.1)
@@ -97,8 +97,8 @@ GEM
9797
aws-eventstream (~> 1, >= 1.0.2)
9898
bcrypt (3.1.16)
9999
bindex (0.8.1)
100-
bootsnap (1.7.4)
101-
msgpack (~> 1.0)
100+
bootsnap (1.12.0)
101+
msgpack (~> 1.2)
102102
bootstrap-sass (3.4.1)
103103
autoprefixer-rails (>= 5.2.1)
104104
sassc (>= 2.0.0)
@@ -126,7 +126,7 @@ GEM
126126
regexp_parser (>= 1.5, < 3.0)
127127
xpath (~> 3.2)
128128
childprocess (3.0.0)
129-
concurrent-ruby (1.1.8)
129+
concurrent-ruby (1.1.10)
130130
connection_pool (2.2.5)
131131
crass (1.0.6)
132132
database_cleaner (1.8.5)
@@ -159,16 +159,16 @@ GEM
159159
et-orbi (~> 1.1, >= 1.1.8)
160160
raabro (~> 1.4)
161161
gli (2.20.0)
162-
globalid (0.4.2)
163-
activesupport (>= 4.2.0)
162+
globalid (1.0.0)
163+
activesupport (>= 5.0)
164164
has_scope (0.7.2)
165165
actionpack (>= 4.1)
166166
activesupport (>= 4.1)
167167
http-accept (1.7.0)
168168
http-cookie (1.0.3)
169169
domain_name (~> 0.5)
170170
http_accept_language (2.1.1)
171-
i18n (1.8.10)
171+
i18n (1.10.0)
172172
concurrent-ruby (~> 1.0)
173173
image_processing (1.12.2)
174174
mini_magick (>= 4.9.5, < 5)
@@ -211,26 +211,26 @@ GEM
211211
i18n (>= 0.7, < 2)
212212
json (>= 1.7.7)
213213
rest-client (>= 1.8.0)
214-
loofah (2.9.1)
214+
loofah (2.18.0)
215215
crass (~> 1.0.2)
216216
nokogiri (>= 1.5.9)
217217
mail (2.7.1)
218218
mini_mime (>= 0.1.1)
219-
marcel (1.0.1)
219+
marcel (1.0.2)
220220
method_source (1.0.0)
221221
mime-types (3.3.1)
222222
mime-types-data (~> 3.2015)
223223
mime-types-data (3.2021.0225)
224224
mini_magick (4.11.0)
225-
mini_mime (1.0.3)
225+
mini_mime (1.1.2)
226226
mini_portile2 (2.8.0)
227-
minitest (5.14.4)
228-
msgpack (1.4.2)
227+
minitest (5.16.1)
228+
msgpack (1.5.2)
229229
net-scp (3.0.0)
230230
net-ssh (>= 2.6.5, < 7.0.0)
231231
net-ssh (6.1.0)
232232
netrc (0.11.0)
233-
nio4r (2.5.7)
233+
nio4r (2.5.8)
234234
nokogiri (1.13.6)
235235
mini_portile2 (~> 2.8.0)
236236
racc (~> 1.4)
@@ -254,22 +254,22 @@ GEM
254254
raabro (1.4.0)
255255
racc (1.6.0)
256256
rack (2.2.3.1)
257-
rack-test (1.1.0)
258-
rack (>= 1.0, < 3)
259-
rails (6.1.3.1)
260-
actioncable (= 6.1.3.1)
261-
actionmailbox (= 6.1.3.1)
262-
actionmailer (= 6.1.3.1)
263-
actionpack (= 6.1.3.1)
264-
actiontext (= 6.1.3.1)
265-
actionview (= 6.1.3.1)
266-
activejob (= 6.1.3.1)
267-
activemodel (= 6.1.3.1)
268-
activerecord (= 6.1.3.1)
269-
activestorage (= 6.1.3.1)
270-
activesupport (= 6.1.3.1)
257+
rack-test (2.0.2)
258+
rack (>= 1.3)
259+
rails (6.1.6)
260+
actioncable (= 6.1.6)
261+
actionmailbox (= 6.1.6)
262+
actionmailer (= 6.1.6)
263+
actionpack (= 6.1.6)
264+
actiontext (= 6.1.6)
265+
actionview (= 6.1.6)
266+
activejob (= 6.1.6)
267+
activemodel (= 6.1.6)
268+
activerecord (= 6.1.6)
269+
activestorage (= 6.1.6)
270+
activesupport (= 6.1.6)
271271
bundler (>= 1.15.0)
272-
railties (= 6.1.3.1)
272+
railties (= 6.1.6)
273273
sprockets-rails (>= 2.0.0)
274274
rails-controller-testing (1.0.5)
275275
actionpack (>= 5.0.1.rc1)
@@ -278,20 +278,20 @@ GEM
278278
rails-dom-testing (2.0.3)
279279
activesupport (>= 4.2.0)
280280
nokogiri (>= 1.6)
281-
rails-html-sanitizer (1.3.0)
281+
rails-html-sanitizer (1.4.3)
282282
loofah (~> 2.3)
283283
rails-i18n (6.0.0)
284284
i18n (>= 0.7, < 2)
285285
railties (>= 6.0.0, < 7)
286-
railties (6.1.3.1)
287-
actionpack (= 6.1.3.1)
288-
activesupport (= 6.1.3.1)
286+
railties (6.1.6)
287+
actionpack (= 6.1.6)
288+
activesupport (= 6.1.6)
289289
method_source
290-
rake (>= 0.8.7)
290+
rake (>= 12.2)
291291
thor (~> 1.0)
292292
rainbow (3.0.0)
293293
raindrops (0.19.1)
294-
rake (13.0.3)
294+
rake (13.0.6)
295295
ransack (2.4.2)
296296
activerecord (>= 5.2.4)
297297
activesupport (>= 5.2.4)
@@ -381,17 +381,17 @@ GEM
381381
simplecov_json_formatter (0.1.3)
382382
skylight (5.0.1)
383383
activesupport (>= 5.2.0)
384-
sprockets (4.0.2)
384+
sprockets (4.1.1)
385385
concurrent-ruby (~> 1.0)
386386
rack (> 1, < 3)
387-
sprockets-rails (3.2.2)
388-
actionpack (>= 4.0)
389-
activesupport (>= 4.0)
387+
sprockets-rails (3.4.2)
388+
actionpack (>= 5.2)
389+
activesupport (>= 5.2)
390390
sprockets (>= 3.0.0)
391391
sshkit (1.21.2)
392392
net-scp (>= 1.1.2)
393393
net-ssh (>= 2.8.0)
394-
thor (1.1.0)
394+
thor (1.2.1)
395395
tilt (2.0.10)
396396
ttfunk (1.7.0)
397397
tzinfo (2.0.4)
@@ -416,20 +416,20 @@ GEM
416416
nokogiri (~> 1.6)
417417
rubyzip (>= 1.3.0)
418418
selenium-webdriver (>= 3.0, < 4.0)
419-
websocket-driver (0.7.3)
419+
websocket-driver (0.7.5)
420420
websocket-extensions (>= 0.1.0)
421421
websocket-extensions (0.1.5)
422422
xpath (3.2.0)
423423
nokogiri (~> 1.8)
424-
zeitwerk (2.4.2)
424+
zeitwerk (2.6.0)
425425

426426
PLATFORMS
427427
ruby
428428

429429
DEPENDENCIES
430430
activeadmin (~> 2.9.0)
431431
aws-sdk-s3 (~> 1.94)
432-
bootsnap (~> 1.7.3)
432+
bootsnap (~> 1.12.0)
433433
bootstrap-sass (~> 3.4)
434434
byebug (~> 11.0)
435435
capistrano (~> 3.1)

app/assets/stylesheets/application/bootstrap-custom.scss

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
/*!
2-
* Bootstrap v3.3.7 (http://getbootstrap.com)
3-
* Copyright 2011-2016 Twitter, Inc.
4-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5-
*
6-
* This file lists all the available Bootstrap modules, uncomment
7-
* the modules you want to import
8-
*/
9-
101
// Core variables and mixins
112
@import "bootstrap-overrides";
123
@import "bootstrap/variables";
@@ -33,27 +24,18 @@
3324
@import "bootstrap/input-groups";
3425
@import "bootstrap/navs";
3526
@import "bootstrap/navbar";
36-
// @import "bootstrap/breadcrumbs";
3727
@import "bootstrap/pagination";
3828
@import "bootstrap/pager";
3929
@import "bootstrap/labels";
4030
@import "bootstrap/badges";
41-
// @import "bootstrap/jumbotron";
42-
// @import "bootstrap/thumbnails";
4331
@import "bootstrap/alerts";
44-
// @import "bootstrap/progress-bars";
4532
@import "bootstrap/media";
4633
@import "bootstrap/list-group";
4734
@import "bootstrap/panels";
4835
@import "bootstrap/responsive-embed";
49-
// @import "bootstrap/wells";
5036
@import "bootstrap/close";
51-
52-
// Components w/ JavaScript
5337
@import "bootstrap/modals";
5438
@import "bootstrap/tooltip";
55-
// @import "bootstrap/popovers";
56-
// @import "bootstrap/carousel";
5739

5840
// Utility classes
5941
@import "bootstrap/utilities";

app/views/tags/_grouped_index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<div class="badge">
1212
<%= count %>
1313
</div>
14-
<%= link_to [post_type.pluralize, tag: tag] do %>
14+
<%= link_to [post_type.pluralize.to_sym, tag: tag] do %>
1515
<%= glyph count == 1 ? :tag : :tags %>
1616
<%= tag %>
1717
<% end %>

spec/controllers/transfers_controller_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828

2929
it 'finds the destination account' do
3030
get :new, params: params
31-
expect(response.body).to include("<input class=\"form-control hidden form-control\" type=\"hidden\" value=\"#{user_account.id}\" name=\"transfer[destination]\" id=\"transfer_destination\" />")
31+
expect(response.body).to include("<input class=\"form-control hidden form-control\" autocomplete=\"off\" type=\"hidden\" value=\"#{user_account.id}\" name=\"transfer[destination]\" id=\"transfer_destination\" />")
3232
end
3333

3434
it 'builds a transfer with the id of the destination' do
3535
get :new, params: params
3636
expect(response.body)
37-
.to include("<input class=\"form-control hidden form-control\" type=\"hidden\" value=\"#{user_account.id}\" name=\"transfer[destination]\" id=\"transfer_destination\" />")
37+
.to include("<input class=\"form-control hidden form-control\" autocomplete=\"off\" type=\"hidden\" value=\"#{user_account.id}\" name=\"transfer[destination]\" id=\"transfer_destination\" />")
3838
end
3939

4040
context 'when the offer is specified' do
@@ -47,7 +47,7 @@
4747

4848
it 'builds a transfer with the offer as post' do
4949
get :new, params: params.merge(offer: offer.id)
50-
expect(response.body).to include("<input class=\"form-control hidden form-control\" type=\"hidden\" value=\"#{offer.id}\" name=\"transfer[post_id]\" id=\"transfer_post_id\" />")
50+
expect(response.body).to include("<input class=\"form-control hidden form-control\" autocomplete=\"off\" type=\"hidden\" value=\"#{offer.id}\" name=\"transfer[post_id]\" id=\"transfer_post_id\" />")
5151
end
5252
end
5353

@@ -94,13 +94,13 @@
9494

9595
it 'finds the destination account' do
9696
get :new, params: params
97-
expect(response.body).to include("<input class=\"form-control hidden form-control\" type=\"hidden\" value=\"#{test_organization.account.id}\" name=\"transfer[destination]\" id=\"transfer_destination\" />")
97+
expect(response.body).to include("<input class=\"form-control hidden form-control\" autocomplete=\"off\" type=\"hidden\" value=\"#{test_organization.account.id}\" name=\"transfer[destination]\" id=\"transfer_destination\" />")
9898
end
9999

100100
it 'builds a transfer with the id of the destination' do
101101
get :new, params: params
102102
expect(response.body)
103-
.to include("<input class=\"form-control hidden form-control\" type=\"hidden\" value=\"#{test_organization.account.id}\" name=\"transfer[destination]\" id=\"transfer_destination\" />")
103+
.to include("<input class=\"form-control hidden form-control\" autocomplete=\"off\" type=\"hidden\" value=\"#{test_organization.account.id}\" name=\"transfer[destination]\" id=\"transfer_destination\" />")
104104
end
105105

106106
context 'when the user is the admin of the current organization' do

0 commit comments

Comments
 (0)