activestorage 6.1.0.rc2 → 6.1.3

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: '0899559a3bc6de6d857ebb86597fab1354a02ae06697d643f689dcd763c688c1'
4
- data.tar.gz: edbc9a4f7a25b9bd92f6bec1dca219b49df78c26fb774e0c4097dd59430f95f1
3
+ metadata.gz: c394453fcb90015316928972c840ad4e55d9d416714a815d8de5a053f71fe2f8
4
+ data.tar.gz: 268d6d5ad38257e819ea0da120de16acf90f27eff8ad64c114c106ea88fd498b
5
5
  SHA512:
6
- metadata.gz: 257274e3e39b3af4dbab977180cc0357644171832a319d213fadefb24958b282a122001bb97890b2fffd8ec5124c03ca00e4fafd20f00bc33a2268595109db75
7
- data.tar.gz: c4a122be03c4f7b513dc5d3dc5f229bbaef056af48e250133cfd250be2481ea22c864dded8f0668ef0da6a97e99c8061c837e21fafb0127840095d5bd7dfdd49
6
+ metadata.gz: 900742e2629c95938f358f86c4135ff3a1ba289184da3fc44ca2a9086dd8eedbd58c72c830de616b6b118c4b005b946eba1d3f6d0bc1f1553400cb2ee966e6c4
7
+ data.tar.gz: 26c8f0bcf812c970856007898f89f5fb9fed1d512031db3a52620d80a8b7fb217af68c9f7daaeeb8e132617dd75268952ab35220f7a46a58341dd369478711d7
data/CHANGELOG.md CHANGED
@@ -1,11 +1,36 @@
1
- ## Rails 6.1.0.rc2 (December 01, 2020) ##
1
+ ## Rails 6.1.3 (February 17, 2021) ##
2
+
3
+ * No changes.
4
+
5
+
6
+ ## Rails 6.1.2.1 (February 10, 2021) ##
7
+
8
+ * No changes.
9
+
10
+
11
+ ## Rails 6.1.2 (February 09, 2021) ##
12
+
13
+ * No changes.
14
+
15
+
16
+ ## Rails 6.1.1 (January 07, 2021) ##
17
+
18
+ * Fix S3 multipart uploads when threshold is larger than file.
19
+
20
+ *Matt Muller*
21
+
22
+
23
+ ## Rails 6.1.0 (December 09, 2020) ##
24
+
25
+ * Change default queue name of the analysis (`:active_storage_analysis`) and
26
+ purge (`:active_storage_purge`) jobs to be the job adapter's default (`:default`).
27
+
28
+ *Rafael Mendonça França*
2
29
 
3
30
  * Implement `strict_loading` on ActiveStorage associations.
4
31
 
5
32
  *David Angulo*
6
33
 
7
- ## Rails 6.1.0.rc1 (November 02, 2020) ##
8
-
9
34
  * Remove deprecated support to pass `:combine_options` operations to `ActiveStorage::Transformers::ImageProcessing`.
10
35
 
11
36
  *Rafael Mendonça França*
data/README.md CHANGED
@@ -10,7 +10,7 @@ You can read more about Active Storage in the [Active Storage Overview](https://
10
10
 
11
11
  ## Compared to other storage solutions
12
12
 
13
- A key difference to how Active Storage works compared to other attachment solutions in Rails is through the use of built-in [Blob](https://github.com/rails/rails/blob/master/activestorage/app/models/active_storage/blob.rb) and [Attachment](https://github.com/rails/rails/blob/master/activestorage/app/models/active_storage/attachment.rb) models (backed by Active Record). This means existing application models do not need to be modified with additional columns to associate with files. Active Storage uses polymorphic associations via the `Attachment` join model, which then connects to the actual `Blob`.
13
+ A key difference to how Active Storage works compared to other attachment solutions in Rails is through the use of built-in [Blob](https://github.com/rails/rails/blob/main/activestorage/app/models/active_storage/blob.rb) and [Attachment](https://github.com/rails/rails/blob/main/activestorage/app/models/active_storage/attachment.rb) models (backed by Active Record). This means existing application models do not need to be modified with additional columns to associate with files. Active Storage uses polymorphic associations via the `Attachment` join model, which then connects to the actual `Blob`.
14
14
 
15
15
  `Blob` models store attachment metadata (filename, content-type, etc.), and their identifier key in the storage service. Blob models do not store the actual binary data. They are intended to be immutable in spirit. One file, one blob. You can associate the same blob with multiple application models as well. And if you want to do transformations of a given `Blob`, the idea is that you'll simply create a new one, rather than attempt to mutate the existing one (though of course you can delete the previous version later if you don't need it).
16
16
 
@@ -74,8 +74,16 @@ class ActiveStorage::Blob < ActiveStorage::Record
74
74
  # that was created ahead of the upload itself on form submission.
75
75
  #
76
76
  # The signed ID is also used to create stable URLs for the blob through the BlobsController.
77
- def find_signed!(id, record: nil)
78
- super(id, purpose: :blob_id)
77
+ def find_signed(id, record: nil, purpose: :blob_id)
78
+ super(id, purpose: purpose)
79
+ end
80
+
81
+ # Works like +find_signed+, but will raise an +ActiveSupport::MessageVerifier::InvalidSignature+
82
+ # exception if the +signed_id+ has either expired, has a purpose mismatch, is for another record,
83
+ # or has been tampered with. It will also raise an +ActiveRecord::RecordNotFound+ exception if
84
+ # the valid signed id can't find a record.
85
+ def find_signed!(id, record: nil, purpose: :blob_id)
86
+ super(id, purpose: purpose)
79
87
  end
80
88
 
81
89
  def build_after_upload(io:, filename:, content_type: nil, metadata: nil, service_name: nil, identify: true, record: nil) #:nodoc:
@@ -26,7 +26,7 @@ module ActiveStorage
26
26
  config.active_storage.previewers = [ ActiveStorage::Previewer::PopplerPDFPreviewer, ActiveStorage::Previewer::MuPDFPreviewer, ActiveStorage::Previewer::VideoPreviewer ]
27
27
  config.active_storage.analyzers = [ ActiveStorage::Analyzer::ImageAnalyzer, ActiveStorage::Analyzer::VideoAnalyzer ]
28
28
  config.active_storage.paths = ActiveSupport::OrderedOptions.new
29
- config.active_storage.queues = ActiveSupport::InheritableOptions.new(mirror: :active_storage_mirror)
29
+ config.active_storage.queues = ActiveSupport::InheritableOptions.new
30
30
 
31
31
  config.active_storage.variable_content_types = %w(
32
32
  image/png
@@ -9,8 +9,8 @@ module ActiveStorage
9
9
  module VERSION
10
10
  MAJOR = 6
11
11
  MINOR = 1
12
- TINY = 0
13
- PRE = "rc2"
12
+ TINY = 3
13
+ PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -16,7 +16,7 @@ module ActiveStorage
16
16
  @client = Aws::S3::Resource.new(**options)
17
17
  @bucket = @client.bucket(bucket)
18
18
 
19
- @multipart_upload_threshold = upload.fetch(:multipart_threshold, 100.megabytes)
19
+ @multipart_upload_threshold = upload.delete(:multipart_threshold) || 100.megabytes
20
20
  @public = public
21
21
 
22
22
  @upload_options = upload
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: 6.1.0.rc2
4
+ version: 6.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-01 00:00:00.000000000 Z
11
+ date: 2021-02-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: 6.1.0.rc2
19
+ version: 6.1.3
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: 6.1.0.rc2
26
+ version: 6.1.3
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: 6.1.0.rc2
33
+ version: 6.1.3
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: 6.1.0.rc2
40
+ version: 6.1.3
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: 6.1.0.rc2
47
+ version: 6.1.3
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: 6.1.0.rc2
54
+ version: 6.1.3
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: 6.1.0.rc2
61
+ version: 6.1.3
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: 6.1.0.rc2
68
+ version: 6.1.3
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: marcel
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -187,11 +187,11 @@ licenses:
187
187
  - MIT
188
188
  metadata:
189
189
  bug_tracker_uri: https://github.com/rails/rails/issues
190
- changelog_uri: https://github.com/rails/rails/blob/v6.1.0.rc2/activestorage/CHANGELOG.md
191
- documentation_uri: https://api.rubyonrails.org/v6.1.0.rc2/
190
+ changelog_uri: https://github.com/rails/rails/blob/v6.1.3/activestorage/CHANGELOG.md
191
+ documentation_uri: https://api.rubyonrails.org/v6.1.3/
192
192
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
193
- source_code_uri: https://github.com/rails/rails/tree/v6.1.0.rc2/activestorage
194
- post_install_message:
193
+ source_code_uri: https://github.com/rails/rails/tree/v6.1.3/activestorage
194
+ post_install_message:
195
195
  rdoc_options: []
196
196
  require_paths:
197
197
  - lib
@@ -202,12 +202,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
202
202
  version: 2.5.0
203
203
  required_rubygems_version: !ruby/object:Gem::Requirement
204
204
  requirements:
205
- - - ">"
205
+ - - ">="
206
206
  - !ruby/object:Gem::Version
207
- version: 1.3.1
207
+ version: '0'
208
208
  requirements: []
209
- rubygems_version: 3.1.4
210
- signing_key:
209
+ rubygems_version: 3.2.3
210
+ signing_key:
211
211
  specification_version: 4
212
212
  summary: Local and cloud file storage framework.
213
213
  test_files: []