deeply_valid 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/deeply_valid.gemspec +1 -1
- data/lib/deeply_valid/validation_helpers.rb +2 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
data/deeply_valid.gemspec
CHANGED
@@ -90,14 +90,14 @@ module DeeplyValid
|
|
90
90
|
#
|
91
91
|
# @return [Validation] The validation
|
92
92
|
#
|
93
|
-
def json
|
93
|
+
def json(size=nil)
|
94
94
|
Validation.new do |d|
|
95
95
|
begin
|
96
96
|
JSON.parse(d)
|
97
97
|
rescue
|
98
98
|
false
|
99
99
|
else
|
100
|
-
|
100
|
+
in_range?(d.size, size)
|
101
101
|
end
|
102
102
|
end
|
103
103
|
end
|