valideizer 1.0.8 → 1.0.9
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/valideizer/rules.rb +4 -0
- data/lib/valideizer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d039d77af3d6031e176e9bbb0b4b35b616e8c60e8394d4e828ef091911663eb5
|
|
4
|
+
data.tar.gz: 3a78fb07692676eb7331ee28a7cbde2454cb3318c18a98bde1883e2628b80f04
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 81897e23f8820450e8f1e1366b50b1ac130f0564d14b73df894a9cbeb92b93e5f6978d24f49b549c8e93f588c3417f05ecd0b38d4efe09db0ac7767a3f05a9dd
|
|
7
|
+
data.tar.gz: 9337568ab19e21dbbf4a64bc22ab861d87b503e39280738a49e4160a9c1197a39798c3656430d8cf0f3f86484efdc3c7786b077c5a50cea22c33360b5a8f533c
|
data/lib/valideizer/rules.rb
CHANGED
|
@@ -22,6 +22,7 @@ module Valideizer
|
|
|
22
22
|
]
|
|
23
23
|
|
|
24
24
|
def validate(param, rule, constraint)
|
|
25
|
+
begin
|
|
25
26
|
case rule
|
|
26
27
|
when :eql then validate_eql param, constraint
|
|
27
28
|
when :gt then validate_gt param, constraint
|
|
@@ -38,6 +39,9 @@ module Valideizer
|
|
|
38
39
|
when :length then validate_length param, constraint
|
|
39
40
|
when :active_record then validate_active_record param, constraint
|
|
40
41
|
end
|
|
42
|
+
rescue
|
|
43
|
+
false
|
|
44
|
+
end
|
|
41
45
|
end
|
|
42
46
|
|
|
43
47
|
private
|
data/lib/valideizer/version.rb
CHANGED