activestorage 7.0.4.2 → 7.0.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 +4 -4
- data/CHANGELOG.md +10 -0
- data/app/models/active_storage/attachment.rb +1 -1
- data/app/models/active_storage/blob.rb +1 -1
- data/lib/active_storage/fixture_set.rb +5 -8
- data/lib/active_storage/gem_version.rb +2 -2
- metadata +17 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0cd9e59b1903cec8f474961635a3f09ab7d1a124d25a6b774c9254a03eb565ff
|
4
|
+
data.tar.gz: be977461559007cd545f8f7426e6be5cea00a4747509db2ee754729a31ab6183
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9de90c576b095732c952ac95f682966a3174346970176acb9064ec6e57a4786ca7031de034307ec21a6b8698d1d17d9cd35e92c8cfa37833808885f6a5989ec1
|
7
|
+
data.tar.gz: a3c255d4680a7bad330c8356f55693a953ed6e708df4b13a427e78d0d5f8fa33c9820a8d6b1b36c1e160523bbabacca76f5c996c80d3f9759ff66915da75152e
|
data/CHANGELOG.md
CHANGED
@@ -6,7 +6,7 @@ require "active_support/core_ext/module/delegation"
|
|
6
6
|
# but it is possible to associate many different records with the same blob. A foreign-key constraint
|
7
7
|
# on the attachments table prevents blobs from being purged if they’re still attached to any records.
|
8
8
|
#
|
9
|
-
# Attachments also have access to all methods from
|
9
|
+
# Attachments also have access to all methods from ActiveStorage::Blob.
|
10
10
|
#
|
11
11
|
# If you wish to preload attachments or blobs, you can use these scopes:
|
12
12
|
#
|
@@ -120,7 +120,7 @@ class ActiveStorage::Blob < ActiveStorage::Record
|
|
120
120
|
# To prevent problems with case-insensitive filesystems, especially in combination
|
121
121
|
# with databases which treat indices as case-sensitive, all blob keys generated are going
|
122
122
|
# to only contain the base-36 character alphabet and will therefore be lowercase. To maintain
|
123
|
-
# the same or higher amount of entropy as in the base-58 encoding used by
|
123
|
+
# the same or higher amount of entropy as in the base-58 encoding used by +has_secure_token+
|
124
124
|
# the number of bytes used is increased to 28 from the standard 24
|
125
125
|
def generate_unique_secure_token(length: MINIMUM_TOKEN_LENGTH)
|
126
126
|
SecureRandom.base36(length)
|
@@ -7,16 +7,13 @@ module ActiveStorage
|
|
7
7
|
# Fixtures are a way of organizing data that you want to test against; in
|
8
8
|
# short, sample data.
|
9
9
|
#
|
10
|
-
# To learn more about fixtures, read the
|
11
|
-
# {ActiveRecord::FixtureSet}[rdoc-ref:ActiveRecord::FixtureSet] documentation.
|
10
|
+
# To learn more about fixtures, read the ActiveRecord::FixtureSet documentation.
|
12
11
|
#
|
13
12
|
# === YAML
|
14
13
|
#
|
15
|
-
# Like other Active Record-backed models,
|
16
|
-
#
|
17
|
-
#
|
18
|
-
# {ActiveRecord::Base}[rdoc-ref:ActiveRecord::Base] instances and therefore
|
19
|
-
# can be populated by fixtures.
|
14
|
+
# Like other Active Record-backed models, ActiveStorage::Attachment and
|
15
|
+
# ActiveStorage::Blob records inherit from ActiveRecord::Base instances and
|
16
|
+
# therefore can be populated by fixtures.
|
20
17
|
#
|
21
18
|
# Consider a hypothetical <tt>Article</tt> model class, its related
|
22
19
|
# fixture data, as well as fixture data for related ActiveStorage::Attachment
|
@@ -44,7 +41,7 @@ module ActiveStorage
|
|
44
41
|
|
45
42
|
# Generate a YAML-encoded representation of an ActiveStorage::Blob
|
46
43
|
# instance's attributes, resolve the file relative to the directory mentioned
|
47
|
-
# by
|
44
|
+
# by ActiveSupport::Testing::FileFixtures.file_fixture, and upload
|
48
45
|
# the file to the Service
|
49
46
|
#
|
50
47
|
# === Examples
|
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.5
|
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: 2023-
|
11
|
+
date: 2023-05-24 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.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: 7.0.
|
26
|
+
version: 7.0.5
|
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.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: 7.0.
|
40
|
+
version: 7.0.5
|
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.5
|
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.5
|
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.5
|
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.5
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: marcel
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -198,12 +198,12 @@ 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.5/activestorage/CHANGELOG.md
|
202
|
+
documentation_uri: https://api.rubyonrails.org/v7.0.5/
|
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.5/activestorage
|
205
205
|
rubygems_mfa_required: 'true'
|
206
|
-
post_install_message:
|
206
|
+
post_install_message:
|
207
207
|
rdoc_options: []
|
208
208
|
require_paths:
|
209
209
|
- lib
|
@@ -218,8 +218,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
218
218
|
- !ruby/object:Gem::Version
|
219
219
|
version: '0'
|
220
220
|
requirements: []
|
221
|
-
rubygems_version: 3.4.
|
222
|
-
signing_key:
|
221
|
+
rubygems_version: 3.4.10
|
222
|
+
signing_key:
|
223
223
|
specification_version: 4
|
224
224
|
summary: Local and cloud file storage framework.
|
225
225
|
test_files: []
|