activestorage 5.2.4.1 → 5.2.5
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of activestorage might be problematic. Click here for more details.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e02ba426092f1e20174bcd0c0c98e286d1fdc81e65e9d6ee9834857537296ec
|
4
|
+
data.tar.gz: ea42d90a9b3366b69ddd765493b9969414a734e88825ec7722f899579be002aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a04ba736562747df568ee7b03064445e8623e2b3e45c91cab616f64dfbaa2f4565903df14d324cb41e1a467ff55ccc9b407b75a1e7be28525c46c4238e1e6db
|
7
|
+
data.tar.gz: '0794a810c03f4b6e8d2c1326764fc4157a2f66bc196cdccf6cae7dd28744382abc0d24c89aedf7e7ca03e5c7175036bdd21ce2fb208523592b10fe6fbe92978b'
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,37 @@
|
|
1
|
+
## Rails 5.2.5 (March 26, 2021) ##
|
2
|
+
|
3
|
+
* Marcel is upgraded to version 1.0.0 to avoid a dependency on GPL-licensed
|
4
|
+
mime types data.
|
5
|
+
|
6
|
+
*George Claghorn*
|
7
|
+
|
8
|
+
* The Poppler PDF previewer renders a preview image using the original
|
9
|
+
document's crop box rather than its media box, hiding print margins. This
|
10
|
+
matches the behavior of the MuPDF previewer.
|
11
|
+
|
12
|
+
*Vincent Robert*
|
13
|
+
|
14
|
+
|
15
|
+
## Rails 5.2.4.5 (February 10, 2021) ##
|
16
|
+
|
17
|
+
* No changes.
|
18
|
+
|
19
|
+
|
20
|
+
## Rails 5.2.4.4 (September 09, 2020) ##
|
21
|
+
|
22
|
+
* No changes.
|
23
|
+
|
24
|
+
|
25
|
+
## Rails 5.2.4.3 (May 18, 2020) ##
|
26
|
+
|
27
|
+
* [CVE-2020-8162] Include Content-Length in signature for ActiveStorage direct upload
|
28
|
+
|
29
|
+
|
30
|
+
## Rails 5.2.4.2 (March 19, 2020) ##
|
31
|
+
|
32
|
+
* No changes.
|
33
|
+
|
34
|
+
|
1
35
|
## Rails 5.2.4.1 (December 18, 2019) ##
|
2
36
|
|
3
37
|
* No changes.
|
@@ -28,8 +28,8 @@ module ActiveStorage
|
|
28
28
|
|
29
29
|
private
|
30
30
|
def draw_first_page_from(file, &block)
|
31
|
-
# use 72 dpi to match thumbnail
|
32
|
-
draw self.class.pdftoppm_path, "-singlefile", "-r", "72", "-png", file.path, &block
|
31
|
+
# use 72 dpi to match thumbnail dimensions of the PDF
|
32
|
+
draw self.class.pdftoppm_path, "-singlefile", "-cropbox", "-r", "72", "-png", file.path, &block
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
@@ -10,8 +10,8 @@ module ActiveStorage
|
|
10
10
|
class Service::AzureStorageService < Service
|
11
11
|
attr_reader :client, :blobs, :container, :signer
|
12
12
|
|
13
|
-
def initialize(storage_account_name:, storage_access_key:, container
|
14
|
-
@client = Azure::Storage::Client.create(storage_account_name: storage_account_name, storage_access_key: storage_access_key)
|
13
|
+
def initialize(storage_account_name:, storage_access_key:, container:, **options)
|
14
|
+
@client = Azure::Storage::Client.create(storage_account_name: storage_account_name, storage_access_key: storage_access_key, **options)
|
15
15
|
@signer = Azure::Storage::Core::Auth::SharedAccessSignature.new(storage_account_name, storage_access_key)
|
16
16
|
@blobs = client.blob_client
|
17
17
|
@container = container
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
gem "aws-sdk-s3", "~> 1.48"
|
4
|
+
|
3
5
|
require "aws-sdk-s3"
|
4
6
|
require "active_support/core_ext/numeric/bytes"
|
5
7
|
|
@@ -79,7 +81,8 @@ module ActiveStorage
|
|
79
81
|
def url_for_direct_upload(key, expires_in:, content_type:, content_length:, checksum:)
|
80
82
|
instrument :url, key: key do |payload|
|
81
83
|
generated_url = object_for(key).presigned_url :put, expires_in: expires_in.to_i,
|
82
|
-
content_type: content_type, content_length: content_length, content_md5: checksum
|
84
|
+
content_type: content_type, content_length: content_length, content_md5: checksum,
|
85
|
+
whitelist_headers: ['content-length']
|
83
86
|
|
84
87
|
payload[:url] = generated_url
|
85
88
|
|
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: 5.2.
|
4
|
+
version: 5.2.5
|
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: 2021-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 5.2.
|
19
|
+
version: 5.2.5
|
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: 5.2.
|
26
|
+
version: 5.2.5
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activerecord
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 5.2.
|
33
|
+
version: 5.2.5
|
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: 5.2.
|
40
|
+
version: 5.2.5
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: marcel
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 1.0.0
|
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: 0.
|
54
|
+
version: 1.0.0
|
55
55
|
description: Attach cloud and local files in Rails applications.
|
56
56
|
email: david@loudthinking.com
|
57
57
|
executables: []
|
@@ -124,8 +124,8 @@ homepage: http://rubyonrails.org
|
|
124
124
|
licenses:
|
125
125
|
- MIT
|
126
126
|
metadata:
|
127
|
-
source_code_uri: https://github.com/rails/rails/tree/v5.2.
|
128
|
-
changelog_uri: https://github.com/rails/rails/blob/v5.2.
|
127
|
+
source_code_uri: https://github.com/rails/rails/tree/v5.2.5/activestorage
|
128
|
+
changelog_uri: https://github.com/rails/rails/blob/v5.2.5/activestorage/CHANGELOG.md
|
129
129
|
post_install_message:
|
130
130
|
rdoc_options: []
|
131
131
|
require_paths:
|
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
141
|
- !ruby/object:Gem::Version
|
142
142
|
version: '0'
|
143
143
|
requirements: []
|
144
|
-
rubygems_version: 3.
|
144
|
+
rubygems_version: 3.1.2
|
145
145
|
signing_key:
|
146
146
|
specification_version: 4
|
147
147
|
summary: Local and cloud file storage framework.
|