Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3a130c0

Browse files
committed
Upgrade to Rails 7.0.8.7
1 parent e18a854 commit 3a130c0

23 files changed

+359
-245
lines changed

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ gem 'image_processing', '~> 1.12.2'
2323
gem 'rss', '~> 0.3.1'
2424

2525
# For Auth
26-
gem 'devise', '~> 4.7.1'
26+
gem 'devise', '~> 4.9.4'
2727
gem 'bcrypt', '~> 3.1.16'
2828

2929
# Pagination
3030
gem 'kaminari', '~> 1.2.1'
3131

3232
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
33-
gem 'rails', '~> 6.1.7.9'
33+
gem 'rails', '~> 7.0.8.7'
3434
# Use sqlite3 as the database for Active Record
3535
#gem 'sqlite3'
3636
gem 'pg', '~> 1.2.3'

Gemfile.lock

Lines changed: 105 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,89 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
actioncable (6.1.7.9)
5-
actionpack (= 6.1.7.9)
6-
activesupport (= 6.1.7.9)
4+
actioncable (7.0.8.7)
5+
actionpack (= 7.0.8.7)
6+
activesupport (= 7.0.8.7)
77
nio4r (~> 2.0)
88
websocket-driver (>= 0.6.1)
9-
actionmailbox (6.1.7.9)
10-
actionpack (= 6.1.7.9)
11-
activejob (= 6.1.7.9)
12-
activerecord (= 6.1.7.9)
13-
activestorage (= 6.1.7.9)
14-
activesupport (= 6.1.7.9)
9+
actionmailbox (7.0.8.7)
10+
actionpack (= 7.0.8.7)
11+
activejob (= 7.0.8.7)
12+
activerecord (= 7.0.8.7)
13+
activestorage (= 7.0.8.7)
14+
activesupport (= 7.0.8.7)
1515
mail (>= 2.7.1)
16-
actionmailer (6.1.7.9)
17-
actionpack (= 6.1.7.9)
18-
actionview (= 6.1.7.9)
19-
activejob (= 6.1.7.9)
20-
activesupport (= 6.1.7.9)
16+
net-imap
17+
net-pop
18+
net-smtp
19+
actionmailer (7.0.8.7)
20+
actionpack (= 7.0.8.7)
21+
actionview (= 7.0.8.7)
22+
activejob (= 7.0.8.7)
23+
activesupport (= 7.0.8.7)
2124
mail (~> 2.5, >= 2.5.4)
25+
net-imap
26+
net-pop
27+
net-smtp
2228
rails-dom-testing (~> 2.0)
23-
actionpack (6.1.7.9)
24-
actionview (= 6.1.7.9)
25-
activesupport (= 6.1.7.9)
26-
rack (~> 2.0, >= 2.0.9)
29+
actionpack (7.0.8.7)
30+
actionview (= 7.0.8.7)
31+
activesupport (= 7.0.8.7)
32+
rack (~> 2.0, >= 2.2.4)
2733
rack-test (>= 0.6.3)
2834
rails-dom-testing (~> 2.0)
2935
rails-html-sanitizer (~> 1.0, >= 1.2.0)
30-
actiontext (6.1.7.9)
31-
actionpack (= 6.1.7.9)
32-
activerecord (= 6.1.7.9)
33-
activestorage (= 6.1.7.9)
34-
activesupport (= 6.1.7.9)
36+
actiontext (7.0.8.7)
37+
actionpack (= 7.0.8.7)
38+
activerecord (= 7.0.8.7)
39+
activestorage (= 7.0.8.7)
40+
activesupport (= 7.0.8.7)
41+
globalid (>= 0.6.0)
3542
nokogiri (>= 1.8.5)
36-
actionview (6.1.7.9)
37-
activesupport (= 6.1.7.9)
43+
actionview (7.0.8.7)
44+
activesupport (= 7.0.8.7)
3845
builder (~> 3.1)
3946
erubi (~> 1.4)
4047
rails-dom-testing (~> 2.0)
4148
rails-html-sanitizer (~> 1.1, >= 1.2.0)
42-
activejob (6.1.7.9)
43-
activesupport (= 6.1.7.9)
49+
activejob (7.0.8.7)
50+
activesupport (= 7.0.8.7)
4451
globalid (>= 0.3.6)
45-
activemodel (6.1.7.9)
46-
activesupport (= 6.1.7.9)
47-
activerecord (6.1.7.9)
48-
activemodel (= 6.1.7.9)
49-
activesupport (= 6.1.7.9)
50-
activestorage (6.1.7.9)
51-
actionpack (= 6.1.7.9)
52-
activejob (= 6.1.7.9)
53-
activerecord (= 6.1.7.9)
54-
activesupport (= 6.1.7.9)
52+
activemodel (7.0.8.7)
53+
activesupport (= 7.0.8.7)
54+
activerecord (7.0.8.7)
55+
activemodel (= 7.0.8.7)
56+
activesupport (= 7.0.8.7)
57+
activestorage (7.0.8.7)
58+
actionpack (= 7.0.8.7)
59+
activejob (= 7.0.8.7)
60+
activerecord (= 7.0.8.7)
61+
activesupport (= 7.0.8.7)
5562
marcel (~> 1.0)
5663
mini_mime (>= 1.1.0)
57-
activesupport (6.1.7.9)
64+
activesupport (7.0.8.7)
5865
concurrent-ruby (~> 1.0, >= 1.0.2)
5966
i18n (>= 1.6, < 2)
6067
minitest (>= 5.1)
6168
tzinfo (~> 2.0)
62-
zeitwerk (~> 2.3)
6369
addressable (2.8.7)
6470
public_suffix (>= 2.0.2, < 7.0)
65-
aws-eventstream (1.3.0)
66-
aws-partitions (1.967.0)
67-
aws-sdk-core (3.201.5)
71+
aws-eventstream (1.3.2)
72+
aws-partitions (1.1064.0)
73+
aws-sdk-core (3.220.1)
6874
aws-eventstream (~> 1, >= 1.3.0)
69-
aws-partitions (~> 1, >= 1.651.0)
75+
aws-partitions (~> 1, >= 1.992.0)
7076
aws-sigv4 (~> 1.9)
77+
base64
7178
jmespath (~> 1, >= 1.6.1)
72-
aws-sdk-kms (1.88.0)
73-
aws-sdk-core (~> 3, >= 3.201.0)
79+
aws-sdk-kms (1.99.0)
80+
aws-sdk-core (~> 3, >= 3.216.0)
7481
aws-sigv4 (~> 1.5)
75-
aws-sdk-s3 (1.159.0)
76-
aws-sdk-core (~> 3, >= 3.201.0)
82+
aws-sdk-s3 (1.182.0)
83+
aws-sdk-core (~> 3, >= 3.216.0)
7784
aws-sdk-kms (~> 1)
7885
aws-sigv4 (~> 1.5)
79-
aws-sigv4 (1.9.1)
86+
aws-sigv4 (1.11.0)
8087
aws-eventstream (~> 1, >= 1.0.2)
8188
base64 (0.2.0)
8289
bcrypt (3.1.20)
@@ -94,13 +101,13 @@ GEM
94101
rack-test (>= 0.6.3)
95102
regexp_parser (>= 1.5, < 3.0)
96103
xpath (~> 3.2)
97-
commonmarker (0.23.10)
98-
concurrent-ruby (1.3.4)
104+
commonmarker (0.23.11)
105+
concurrent-ruby (1.3.5)
99106
crass (1.0.6)
100107
css_parser (1.10.0)
101108
addressable
102109
date (3.4.1)
103-
devise (4.7.3)
110+
devise (4.9.4)
104111
bcrypt (~> 3.0)
105112
orm_adapter (~> 0.1)
106113
railties (>= 4.1.0)
@@ -110,20 +117,20 @@ GEM
110117
dotenv-rails (2.7.6)
111118
dotenv (= 2.7.6)
112119
railties (>= 3.2)
113-
erubi (1.13.0)
114-
execjs (2.9.1)
115-
ffi (1.17.0-aarch64-linux-gnu)
116-
ffi (1.17.0-arm64-darwin)
117-
ffi (1.17.0-x86_64-darwin)
118-
ffi (1.17.0-x86_64-linux-gnu)
120+
erubi (1.13.1)
121+
execjs (2.10.0)
122+
ffi (1.17.1-aarch64-linux-gnu)
123+
ffi (1.17.1-arm64-darwin)
124+
ffi (1.17.1-x86_64-darwin)
125+
ffi (1.17.1-x86_64-linux-gnu)
119126
globalid (1.2.1)
120127
activesupport (>= 6.1)
121-
i18n (1.14.5)
128+
i18n (1.14.7)
122129
concurrent-ruby (~> 1.0)
123130
image_processing (1.12.2)
124131
mini_magick (>= 4.9.5, < 5)
125132
ruby-vips (>= 2.0.17, < 3)
126-
jbuilder (2.12.0)
133+
jbuilder (2.13.0)
127134
actionview (>= 5.0.0)
128135
activesupport (>= 5.0.0)
129136
jmespath (1.6.2)
@@ -146,8 +153,8 @@ GEM
146153
listen (3.0.8)
147154
rb-fsevent (~> 0.9, >= 0.9.4)
148155
rb-inotify (~> 0.9, >= 0.9.7)
149-
logger (1.6.0)
150-
loofah (2.23.1)
156+
logger (1.6.6)
157+
loofah (2.24.0)
151158
crass (~> 1.0.2)
152159
nokogiri (>= 1.12.0)
153160
mail (2.8.1)
@@ -160,18 +167,18 @@ GEM
160167
method_source (1.1.0)
161168
mini_magick (4.13.2)
162169
mini_mime (1.1.5)
163-
minitest (5.25.1)
164-
msgpack (1.7.5)
165-
net-imap (0.4.19)
170+
minitest (5.25.4)
171+
msgpack (1.8.0)
172+
net-imap (0.5.6)
166173
date
167174
net-protocol
168175
net-pop (0.1.2)
169176
net-protocol
170177
net-protocol (0.2.2)
171178
timeout
172-
net-smtp (0.5.0)
179+
net-smtp (0.5.1)
173180
net-protocol
174-
nio4r (2.7.3)
181+
nio4r (2.7.4)
175182
nokogiri (1.18.3-aarch64-linux-gnu)
176183
racc (~> 1.4)
177184
nokogiri (1.18.3-arm64-darwin)
@@ -187,52 +194,52 @@ GEM
187194
nio4r (~> 2.0)
188195
racc (1.8.1)
189196
rack (2.2.12)
190-
rack-test (2.1.0)
197+
rack-test (2.2.0)
191198
rack (>= 1.3)
192-
rails (6.1.7.9)
193-
actioncable (= 6.1.7.9)
194-
actionmailbox (= 6.1.7.9)
195-
actionmailer (= 6.1.7.9)
196-
actionpack (= 6.1.7.9)
197-
actiontext (= 6.1.7.9)
198-
actionview (= 6.1.7.9)
199-
activejob (= 6.1.7.9)
200-
activemodel (= 6.1.7.9)
201-
activerecord (= 6.1.7.9)
202-
activestorage (= 6.1.7.9)
203-
activesupport (= 6.1.7.9)
199+
rails (7.0.8.7)
200+
actioncable (= 7.0.8.7)
201+
actionmailbox (= 7.0.8.7)
202+
actionmailer (= 7.0.8.7)
203+
actionpack (= 7.0.8.7)
204+
actiontext (= 7.0.8.7)
205+
actionview (= 7.0.8.7)
206+
activejob (= 7.0.8.7)
207+
activemodel (= 7.0.8.7)
208+
activerecord (= 7.0.8.7)
209+
activestorage (= 7.0.8.7)
210+
activesupport (= 7.0.8.7)
204211
bundler (>= 1.15.0)
205-
railties (= 6.1.7.9)
206-
sprockets-rails (>= 2.0.0)
212+
railties (= 7.0.8.7)
207213
rails-dom-testing (2.2.0)
208214
activesupport (>= 5.0.0)
209215
minitest
210216
nokogiri (>= 1.6)
211-
rails-html-sanitizer (1.6.1)
217+
rails-html-sanitizer (1.6.2)
212218
loofah (~> 2.21)
213219
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)
214-
railties (6.1.7.9)
215-
actionpack (= 6.1.7.9)
216-
activesupport (= 6.1.7.9)
220+
railties (7.0.8.7)
221+
actionpack (= 7.0.8.7)
222+
activesupport (= 7.0.8.7)
217223
method_source
218224
rake (>= 12.2)
219225
thor (~> 1.0)
226+
zeitwerk (~> 2.5)
220227
rake (13.2.1)
221228
rb-fsevent (0.11.2)
222229
rb-inotify (0.11.1)
223230
ffi (~> 1.0)
224231
rb-readline (0.5.5)
225-
regexp_parser (2.9.2)
232+
regexp_parser (2.10.0)
226233
responders (3.1.1)
227234
actionpack (>= 5.2)
228235
railties (>= 5.2)
229-
rexml (3.3.9)
236+
rexml (3.4.1)
230237
rss (0.3.1)
231238
rexml
232-
ruby-vips (2.2.2)
239+
ruby-vips (2.2.3)
233240
ffi (~> 1.12)
234241
logger
235-
rubyzip (2.3.2)
242+
rubyzip (2.4.1)
236243
sass (3.7.4)
237244
sass-listen (~> 4.0.0)
238245
sass-listen (4.0.0)
@@ -254,20 +261,20 @@ GEM
254261
spring-watcher-listen (2.0.1)
255262
listen (>= 2.7, < 4.0)
256263
spring (>= 1.2, < 3.0)
257-
sprockets (3.7.3)
264+
sprockets (3.7.5)
258265
base64
259266
concurrent-ruby (~> 1.0)
260267
rack (> 1, < 3)
261268
sprockets-rails (3.5.2)
262269
actionpack (>= 6.1)
263270
activesupport (>= 6.1)
264271
sprockets (>= 3.0.0)
265-
thor (1.3.1)
266-
tilt (2.4.0)
272+
thor (1.3.2)
273+
tilt (2.6.0)
267274
timeout (0.4.3)
268275
tzinfo (2.0.6)
269276
concurrent-ruby (~> 1.0)
270-
uglifier (4.2.0)
277+
uglifier (4.2.1)
271278
execjs (>= 0.3.0, < 3)
272279
warden (1.2.9)
273280
rack (>= 2.0.9)
@@ -277,12 +284,13 @@ GEM
277284
bindex (>= 0.4.0)
278285
railties (>= 6.0.0)
279286
websocket (1.2.11)
280-
websocket-driver (0.7.6)
287+
websocket-driver (0.7.7)
288+
base64
281289
websocket-extensions (>= 0.1.0)
282290
websocket-extensions (0.1.5)
283291
xpath (3.2.0)
284292
nokogiri (~> 1.8)
285-
zeitwerk (2.6.17)
293+
zeitwerk (2.6.18)
286294

287295
PLATFORMS
288296
aarch64-linux
@@ -298,7 +306,7 @@ DEPENDENCIES
298306
capybara (~> 3.39)
299307
commonmarker (~> 0.23)
300308
css_parser (= 1.10.0)
301-
devise (~> 4.7.1)
309+
devise (~> 4.9.4)
302310
dotenv-rails (= 2.7.6)
303311
image_processing (~> 1.12.2)
304312
jbuilder (~> 2.5)
@@ -307,7 +315,7 @@ DEPENDENCIES
307315
listen (>= 3.0.5, < 3.2)
308316
pg (~> 1.2.3)
309317
puma (~> 5.6.9)
310-
rails (~> 6.1.7.9)
318+
rails (~> 7.0.8.7)
311319
rb-readline
312320
rss (~> 0.3.1)
313321
sass-rails (~> 5.0)

app/controllers/images_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ class ImagesController < ApplicationController
44

55
def show
66
expires_in ActiveStorage.service_urls_expire_in
7-
redirect_to @blob.service_url(disposition: params[:disposition])
7+
redirect_to @blob.url(disposition: params[:disposition])
88
end
99

1010
def show_variant
1111
expires_in ActiveStorage.service_urls_expire_in
1212
variant = @blob.variant(thumbnail: "1600", quality: '65%', interlace: 'plane', auto_orient: true).processed
13-
redirect_to variant.service_url(disposition: params[:disposition])
13+
redirect_to variant.url(disposition: params[:disposition])
1414
end
1515

1616
private

bin/rails

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env ruby
2-
#load File.expand_path("spring", __dir__)
3-
APP_PATH = File.expand_path('../config/application', __dir__)
2+
APP_PATH = File.expand_path("../config/application", __dir__)
43
require_relative "../config/boot"
54
require "rails/commands"

bin/rake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env ruby
2-
#load File.expand_path("spring", __dir__)
32
require_relative "../config/boot"
43
require "rake"
54
Rake.application.run

0 commit comments

Comments
 (0)