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 CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
data/deeply_valid.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{deeply_valid}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Starr Horne"]
@@ -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
- true
100
+ in_range?(d.size, size)
101
101
  end
102
102
  end
103
103
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 3
9
- version: 0.1.3
8
+ - 4
9
+ version: 0.1.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Starr Horne