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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 95a8a27a89ab0f4be63e4f466fcf5a7eedf15ed806d7b061257ab56aafadc1a6
4
- data.tar.gz: 4f7046ccc16df5fb3bd06080e914fb54c0ad2009d5dbcb1080dcab7bf945f1e3
3
+ metadata.gz: 2a42fb3f7bbc7e2032f582d6d934bfb06245afdd8fe2db1b07b35d6c8223a617
4
+ data.tar.gz: aefc082d3ed704bf9c675e40560d9eb3be6f2e315ea28d7313ceabb493a95b93
5
5
  SHA512:
6
- metadata.gz: f187b18f73b712921f1dc2252fe5a645ce83b84dad1dc97d6b24be9f136a634e2b0da3290d2a8f9284ae6134bfc8b62fc8e7a7b9f4974b9f3dee6a6ed0af17aa
7
- data.tar.gz: 24b2da33d24f7f2d34623482b2a2c818e3d87d7dfa8a165e1ff6091134548e37b8dc9eb3908a69231d3e8e9fa3320f75db1a0dabcb54b048e4e543319ec2f555
6
+ metadata.gz: c5c63ac998f475f5b3b9fb11d6bd57f0697b1ece83903f4283b35eefe490a0b0a6edb4e9b8d6d2fc4673c67948296c66af79bc25821a16ed9ad3144d76bdef5e
7
+ data.tar.gz: 12412531395d736326f067fdb7cdbe23f4a99a3167d4921d1882191baf4d5c79d6260d9ef598b1bcc90c0ffc35a78a2b898bcad9d8d2332c5f5749378eceeaca
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## Rails 8.1.3 (March 24, 2026) ##
2
+
3
+ * Fix `ActiveStorage::Blob` content type predicate methods to handle `nil`.
4
+
5
+ *Daichi KUDO*
6
+
7
+
1
8
  ## Rails 8.1.2.1 (March 23, 2026) ##
2
9
 
3
10
  * Filter user supplied metadata in DirectUploadController
@@ -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.start_with?("image")
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.start_with?("audio")
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.start_with?("video")
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.start_with?("text")
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
@@ -9,8 +9,8 @@ module ActiveStorage
9
9
  module VERSION
10
10
  MAJOR = 8
11
11
  MINOR = 1
12
- TINY = 2
13
- PRE = "1"
12
+ TINY = 3
13
+ PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.1/activestorage/CHANGELOG.md
196
- documentation_uri: https://api.rubyonrails.org/v8.1.2.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.2.1/activestorage
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: