active_storage_validations 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 2a4209dd92d74b7758784e591d56cdc10616dd88
4
- data.tar.gz: cd79dca0cb3abd9d97d5431a96c5276e67b9fed5
2
+ SHA256:
3
+ metadata.gz: 3c309d722907560012bd41f805b1a0469c234e39a1087c4c8a9e9ff11d8ab58a
4
+ data.tar.gz: 9bae813ffb0cd86479ac7b451eaa682602261a6c2daa3357b474e0dbcf7935f7
5
5
  SHA512:
6
- metadata.gz: fdfba49b03a92b90ac28214775c7fc25e9223f5176fa2a1dd68f150f1bd2d297f95721c328ce50afa474d5f638d21dacbe826c2fbe51e414436602d396e94abb
7
- data.tar.gz: eb3b951a07f562fb8ec266b27405690ac404b314bb6aa2856b5f3d33e50ac8d9ded11419ce9c205cc04321d747349b15cccb0ae3a5225813ed84a7be03d203e0
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
 
@@ -1,3 +1,3 @@
1
1
  module ActiveStorageValidations
2
- VERSION = '0.5.2'
2
+ VERSION = '0.5.3'
3
3
  end
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.2
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: 2018-11-05 00:00:00.000000000 Z
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
- rubyforge_project:
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