jimmy 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/jimmy.gemspec +1 -1
- data/lib/jimmy/declaration/number.rb +4 -4
- data/lib/jimmy/declaration/string.rb +1 -2
- data/lib/jimmy/schema.rb +1 -0
- data/lib/jimmy/version.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: f7676c81813716230b7a6069a61ff4627c673dcc6f15086e80db7cc24e8d5657
|
4
|
+
data.tar.gz: 494461f91262f612c27ecbc9205ffda3a9a3d3c4832b7747afe98fcc6d8fbb1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 998722e56117d5d550f0b85453c3ff9bce1e04c672c03063aaadf93148f70a75feb3d9580ccea81b8b8559046f8514af0e07e9c339642d64360a4df67372da86
|
7
|
+
data.tar.gz: 2bd6809263817866fbff585537d54dfc0145d3d5e9e670070486a45fecef8ee1ad7215b35c9cfcbf7f3064cb449f1e309db56a629d2e55b116279b636598e11d
|
data/jimmy.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.summary = 'Jimmy the Gem'
|
12
12
|
spec.description = 'Jimmy the Gem'
|
13
13
|
spec.homepage = 'https://github.com/hx/jimmy'
|
14
|
-
spec.required_ruby_version = Gem::Requirement.new('>= 2.
|
14
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.6.0')
|
15
15
|
|
16
16
|
spec.metadata['homepage_uri'] = spec.homepage
|
17
17
|
spec.metadata['source_code_uri'] = spec.homepage
|
@@ -17,11 +17,11 @@ module Jimmy
|
|
17
17
|
# @return [self] self, for chaining
|
18
18
|
def range(range)
|
19
19
|
assert_range range
|
20
|
-
schema
|
21
|
-
|
22
|
-
|
20
|
+
schema do |s|
|
21
|
+
s.type range.begin.is_a?(Integer) ? 'integer' : 'number'
|
22
|
+
s.minimum range.begin
|
23
|
+
s.maximum range.end, exclusive: range.exclude_end? unless range.end.nil?
|
23
24
|
end
|
24
|
-
self
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
data/lib/jimmy/schema.rb
CHANGED
data/lib/jimmy/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jimmy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neil E. Pearson
|
@@ -79,7 +79,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 2.
|
82
|
+
version: 2.6.0
|
83
83
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
84
84
|
requirements:
|
85
85
|
- - ">="
|