validy 1.1.5 → 1.1.5.1
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/lib/validy.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6879285b4152539ec21a22301c44dde44677bd5bace7f9dbf2a06dc8b17dff9f
|
|
4
|
+
data.tar.gz: 9894b76aef7cae5ed3d814227a6af9358cb66d83dd14cec4adeead016185db42
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8f9adb3f505ef053e0b0abb28c9ee2d6da8b88456435db42ae5b8fcd48942ebbe49cc6dbb43dff2919d08d71217bdc27d6f4cc683bd732c4d3d3833c346cff3e
|
|
7
|
+
data.tar.gz: 5d3c7eba42b4a836648a6e5194ba9b8f2948c2931dc803a79ac0b4d074c8b17bc32dda87db926dba44cc733ab944b5208fa18007c62b8f4f26bf45ac722d5717
|
data/lib/validy.rb
CHANGED
|
@@ -196,7 +196,7 @@ module Validy
|
|
|
196
196
|
end
|
|
197
197
|
|
|
198
198
|
def validate_condition(condition, error = nil, &block)
|
|
199
|
-
return if condition
|
|
199
|
+
return if condition.nil? # bugfix for boolean condition that can return false
|
|
200
200
|
|
|
201
201
|
error_hash = error_hash error
|
|
202
202
|
add_error error_hash
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: validy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.5
|
|
4
|
+
version: 1.1.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Oleg Saltykov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-09-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email:
|