activestorage 7.0.3.1 → 7.0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +19 -0
- data/app/controllers/concerns/active_storage/streaming.rb +1 -0
- data/lib/active_storage/analyzer/image_analyzer/image_magick.rb +9 -7
- data/lib/active_storage/analyzer/image_analyzer/vips.rb +9 -7
- data/lib/active_storage/gem_version.rb +1 -1
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 362abc03732fab0febb2c934801b9b4d152febf2be8a1741aaeb9f8fd3f2d65a
|
4
|
+
data.tar.gz: a5f7f77b30913ab44a562b3238a918fdb8f7072344cd902b7fb5e8d5619189ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49d92e8ffc1baea31543e5f0acf2ac6815a460b179f19a6a030dee4c317c4b64dfbd066a5c10d053e4a3fa5119e495fb894400cc50ab5473fec89192c911f9e1
|
7
|
+
data.tar.gz: 0332034ceeda9e44e9abf71dce36dc22e43e619f091b6e6760eef2cfad9f6d78c65ef6bfe55e8243778136de5c7c908fa1e9ceb1e6063cb4c0e88018e82c6177
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,22 @@
|
|
1
|
+
## Rails 7.0.4.1 (January 17, 2023) ##
|
2
|
+
|
3
|
+
* No changes.
|
4
|
+
|
5
|
+
|
6
|
+
## Rails 7.0.4 (September 09, 2022) ##
|
7
|
+
|
8
|
+
* Fixes proxy downloads of files over 5MiB
|
9
|
+
|
10
|
+
Previously, trying to view and/or download files larger than 5mb stored in
|
11
|
+
services like S3 via proxy mode could return corrupted files at around
|
12
|
+
5.2mb or cause random halts in the download. Now,
|
13
|
+
`ActiveStorage::Blobs::ProxyController` correctly handles streaming these
|
14
|
+
larger files from the service to the client without any issues.
|
15
|
+
|
16
|
+
Fixes #44679
|
17
|
+
|
18
|
+
*Felipe Raul*
|
19
|
+
|
1
20
|
## Rails 7.0.3.1 (July 12, 2022) ##
|
2
21
|
|
3
22
|
* No changes.
|
@@ -10,9 +10,14 @@ module ActiveStorage
|
|
10
10
|
|
11
11
|
private
|
12
12
|
def read_image
|
13
|
-
|
13
|
+
begin
|
14
14
|
require "mini_magick"
|
15
|
+
rescue LoadError
|
16
|
+
logger.info "Skipping image analysis because the mini_magick gem isn't installed"
|
17
|
+
return {}
|
18
|
+
end
|
15
19
|
|
20
|
+
download_blob_to_tempfile do |file|
|
16
21
|
image = instrument("mini_magick") do
|
17
22
|
MiniMagick::Image.new(file.path)
|
18
23
|
end
|
@@ -23,13 +28,10 @@ module ActiveStorage
|
|
23
28
|
logger.info "Skipping image analysis because ImageMagick doesn't support the file"
|
24
29
|
{}
|
25
30
|
end
|
31
|
+
rescue MiniMagick::Error => error
|
32
|
+
logger.error "Skipping image analysis due to an ImageMagick error: #{error.message}"
|
33
|
+
{}
|
26
34
|
end
|
27
|
-
rescue LoadError
|
28
|
-
logger.info "Skipping image analysis because the mini_magick gem isn't installed"
|
29
|
-
{}
|
30
|
-
rescue MiniMagick::Error => error
|
31
|
-
logger.error "Skipping image analysis due to an ImageMagick error: #{error.message}"
|
32
|
-
{}
|
33
35
|
end
|
34
36
|
|
35
37
|
def rotated_image?(image)
|
@@ -10,9 +10,14 @@ module ActiveStorage
|
|
10
10
|
|
11
11
|
private
|
12
12
|
def read_image
|
13
|
-
|
13
|
+
begin
|
14
14
|
require "ruby-vips"
|
15
|
+
rescue LoadError
|
16
|
+
logger.info "Skipping image analysis because the ruby-vips gem isn't installed"
|
17
|
+
return {}
|
18
|
+
end
|
15
19
|
|
20
|
+
download_blob_to_tempfile do |file|
|
16
21
|
image = instrument("vips") do
|
17
22
|
::Vips::Image.new_from_file(file.path, access: :sequential)
|
18
23
|
end
|
@@ -23,13 +28,10 @@ module ActiveStorage
|
|
23
28
|
logger.info "Skipping image analysis because Vips doesn't support the file"
|
24
29
|
{}
|
25
30
|
end
|
31
|
+
rescue ::Vips::Error => error
|
32
|
+
logger.error "Skipping image analysis due to an Vips error: #{error.message}"
|
33
|
+
{}
|
26
34
|
end
|
27
|
-
rescue LoadError
|
28
|
-
logger.info "Skipping image analysis because the ruby-vips gem isn't installed"
|
29
|
-
{}
|
30
|
-
rescue ::Vips::Error => error
|
31
|
-
logger.error "Skipping image analysis due to an Vips error: #{error.message}"
|
32
|
-
{}
|
33
35
|
end
|
34
36
|
|
35
37
|
ROTATIONS = /Right-top|Left-bottom|Top-right|Bottom-left/
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activestorage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0.
|
4
|
+
version: 7.0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,56 +16,56 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 7.0.
|
19
|
+
version: 7.0.4.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 7.0.
|
26
|
+
version: 7.0.4.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: actionpack
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 7.0.
|
33
|
+
version: 7.0.4.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 7.0.
|
40
|
+
version: 7.0.4.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: activejob
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 7.0.
|
47
|
+
version: 7.0.4.1
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 7.0.
|
54
|
+
version: 7.0.4.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: activerecord
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 7.0.
|
61
|
+
version: 7.0.4.1
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 7.0.
|
68
|
+
version: 7.0.4.1
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: marcel
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -198,10 +198,10 @@ licenses:
|
|
198
198
|
- MIT
|
199
199
|
metadata:
|
200
200
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
201
|
-
changelog_uri: https://github.com/rails/rails/blob/v7.0.
|
202
|
-
documentation_uri: https://api.rubyonrails.org/v7.0.
|
201
|
+
changelog_uri: https://github.com/rails/rails/blob/v7.0.4.1/activestorage/CHANGELOG.md
|
202
|
+
documentation_uri: https://api.rubyonrails.org/v7.0.4.1/
|
203
203
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
204
|
-
source_code_uri: https://github.com/rails/rails/tree/v7.0.
|
204
|
+
source_code_uri: https://github.com/rails/rails/tree/v7.0.4.1/activestorage
|
205
205
|
rubygems_mfa_required: 'true'
|
206
206
|
post_install_message:
|
207
207
|
rdoc_options: []
|
@@ -218,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
218
218
|
- !ruby/object:Gem::Version
|
219
219
|
version: '0'
|
220
220
|
requirements: []
|
221
|
-
rubygems_version: 3.
|
221
|
+
rubygems_version: 3.4.3
|
222
222
|
signing_key:
|
223
223
|
specification_version: 4
|
224
224
|
summary: Local and cloud file storage framework.
|