active_storage_validations 0.5.2 → 0.5.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 +5 -5
- data/README.md +11 -0
- data/lib/active_storage_validations/version.rb +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3c309d722907560012bd41f805b1a0469c234e39a1087c4c8a9e9ff11d8ab58a
|
4
|
+
data.tar.gz: 9bae813ffb0cd86479ac7b451eaa682602261a6c2daa3357b474e0dbcf7935f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 167aa259ec9011e638ed5c5ca67b5402d51fa11293f31766400ce9bddf028901ee4733345797ad2bf34acbb653652f16b8c150341fc867a36a4688c8c12bc8ff
|
7
|
+
data.tar.gz: 1c86899eb90a09dfb27f2c35693098c01de8b1a6e92573a10f3163fa19006b45c27a302d5b86f2616132e18739e7688b648b9088ba7d789b46e794f7f11bd1ee
|
data/README.md
CHANGED
@@ -87,6 +87,17 @@ To run tests in root folder of gem `rake test`.
|
|
87
87
|
|
88
88
|
To play with app `cd test/dummy` and `rails s -b 0.0.0.0` (before `rails db:migrate`).
|
89
89
|
|
90
|
+
## Known issues
|
91
|
+
|
92
|
+
- there is an issue in Rails which it possible to get if you have aadded a validation and generating for example an image preview of atachments. It can be fixed with this:
|
93
|
+
|
94
|
+
```
|
95
|
+
<% if @user.avatar.attached? && @user.avatar.attachment.blob.present? && @user.avatar.attachment.blob.persisted? %>
|
96
|
+
<%= image_tag @user.avatar %>
|
97
|
+
<% end %>
|
98
|
+
```
|
99
|
+
This is Rails issue. And according to commits it will be fixed in Rails 6.
|
100
|
+
|
90
101
|
## Contributing
|
91
102
|
You are welcome to contribute.
|
92
103
|
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_storage_validations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
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: 2019-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 5.2.0
|
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
26
|
version: 5.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -90,8 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
90
|
- !ruby/object:Gem::Version
|
91
91
|
version: '0'
|
92
92
|
requirements: []
|
93
|
-
|
94
|
-
rubygems_version: 2.6.8
|
93
|
+
rubygems_version: 3.0.2
|
95
94
|
signing_key:
|
96
95
|
specification_version: 4
|
97
96
|
summary: Validations for Active Storage
|