active_storage_validations 3.0.3 → 3.0.4
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c9e520d661a4b3d715e39dce23621e6de7da202b278609169cee57ad4082b875
|
|
4
|
+
data.tar.gz: 49ae08217195dc2ba5bf5a9e53e454da34e402c1fd722c602d3c5fd5d509c4de
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 67efad39ce64c6bab2bd4e658e362397742a9ddded4066a96f23c3c52f29006fec54e13cb0f0be03625577261df459993791916bebd33763015553b64477b53b
|
|
7
|
+
data.tar.gz: 1306cc07470a4b5bd9c17b072c0f349b94f3a22a5262f3b09ebbeecba54f6af31addb7621fd451fa1c52b2e698f743b6e7c070587083b79630ec1fd11dfcd99c
|
data/MIT-LICENSE
CHANGED
|
@@ -33,6 +33,7 @@ module ActiveStorageValidations
|
|
|
33
33
|
case file
|
|
34
34
|
when ActiveStorage::Attached, ActiveStorage::Attachment then file.blob&.filename&.to_s
|
|
35
35
|
when ActiveStorage::Blob then file.filename
|
|
36
|
+
when String then ActiveStorage::Blob.find_signed!(file)&.filename
|
|
36
37
|
when Hash then file[:filename]
|
|
37
38
|
end.to_s
|
|
38
39
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: active_storage_validations
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Igor Kasyanchuk
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-03-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activejob
|