activestorage 8.1.2.1 → 8.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/app/models/active_storage/blob.rb +4 -4
- data/lib/active_storage/gem_version.rb +2 -2
- metadata +12 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2a42fb3f7bbc7e2032f582d6d934bfb06245afdd8fe2db1b07b35d6c8223a617
|
|
4
|
+
data.tar.gz: aefc082d3ed704bf9c675e40560d9eb3be6f2e315ea28d7313ceabb493a95b93
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c5c63ac998f475f5b3b9fb11d6bd57f0697b1ece83903f4283b35eefe490a0b0a6edb4e9b8d6d2fc4673c67948296c66af79bc25821a16ed9ad3144d76bdef5e
|
|
7
|
+
data.tar.gz: 12412531395d736326f067fdb7cdbe23f4a99a3167d4921d1882191baf4d5c79d6260d9ef598b1bcc90c0ffc35a78a2b898bcad9d8d2332c5f5749378eceeaca
|
data/CHANGELOG.md
CHANGED
|
@@ -210,22 +210,22 @@ class ActiveStorage::Blob < ActiveStorage::Record
|
|
|
210
210
|
|
|
211
211
|
# Returns true if the content_type of this blob is in the image range, like image/png.
|
|
212
212
|
def image?
|
|
213
|
-
content_type
|
|
213
|
+
content_type&.start_with?("image")
|
|
214
214
|
end
|
|
215
215
|
|
|
216
216
|
# Returns true if the content_type of this blob is in the audio range, like audio/mpeg.
|
|
217
217
|
def audio?
|
|
218
|
-
content_type
|
|
218
|
+
content_type&.start_with?("audio")
|
|
219
219
|
end
|
|
220
220
|
|
|
221
221
|
# Returns true if the content_type of this blob is in the video range, like video/mp4.
|
|
222
222
|
def video?
|
|
223
|
-
content_type
|
|
223
|
+
content_type&.start_with?("video")
|
|
224
224
|
end
|
|
225
225
|
|
|
226
226
|
# Returns true if the content_type of this blob is in the text range, like text/plain.
|
|
227
227
|
def text?
|
|
228
|
-
content_type
|
|
228
|
+
content_type&.start_with?("text")
|
|
229
229
|
end
|
|
230
230
|
|
|
231
231
|
# Returns the URL of the blob on the service. This returns a permanent URL for public files, and returns a
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activestorage
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 8.1.
|
|
4
|
+
version: 8.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Heinemeier Hansson
|
|
@@ -15,56 +15,56 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - '='
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 8.1.
|
|
18
|
+
version: 8.1.3
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - '='
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 8.1.
|
|
25
|
+
version: 8.1.3
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: actionpack
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
29
29
|
requirements:
|
|
30
30
|
- - '='
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 8.1.
|
|
32
|
+
version: 8.1.3
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - '='
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: 8.1.
|
|
39
|
+
version: 8.1.3
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: activejob
|
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
|
43
43
|
requirements:
|
|
44
44
|
- - '='
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: 8.1.
|
|
46
|
+
version: 8.1.3
|
|
47
47
|
type: :runtime
|
|
48
48
|
prerelease: false
|
|
49
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
50
50
|
requirements:
|
|
51
51
|
- - '='
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: 8.1.
|
|
53
|
+
version: 8.1.3
|
|
54
54
|
- !ruby/object:Gem::Dependency
|
|
55
55
|
name: activerecord
|
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
|
57
57
|
requirements:
|
|
58
58
|
- - '='
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: 8.1.
|
|
60
|
+
version: 8.1.3
|
|
61
61
|
type: :runtime
|
|
62
62
|
prerelease: false
|
|
63
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
64
64
|
requirements:
|
|
65
65
|
- - '='
|
|
66
66
|
- !ruby/object:Gem::Version
|
|
67
|
-
version: 8.1.
|
|
67
|
+
version: 8.1.3
|
|
68
68
|
- !ruby/object:Gem::Dependency
|
|
69
69
|
name: marcel
|
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -192,10 +192,10 @@ licenses:
|
|
|
192
192
|
- MIT
|
|
193
193
|
metadata:
|
|
194
194
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
|
195
|
-
changelog_uri: https://github.com/rails/rails/blob/v8.1.
|
|
196
|
-
documentation_uri: https://api.rubyonrails.org/v8.1.
|
|
195
|
+
changelog_uri: https://github.com/rails/rails/blob/v8.1.3/activestorage/CHANGELOG.md
|
|
196
|
+
documentation_uri: https://api.rubyonrails.org/v8.1.3/
|
|
197
197
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
|
198
|
-
source_code_uri: https://github.com/rails/rails/tree/v8.1.
|
|
198
|
+
source_code_uri: https://github.com/rails/rails/tree/v8.1.3/activestorage
|
|
199
199
|
rubygems_mfa_required: 'true'
|
|
200
200
|
rdoc_options: []
|
|
201
201
|
require_paths:
|