jimmy 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b76c959aa311808120ea671011bf0316c5a6ff8
4
- data.tar.gz: 6e0dfdb00bcbdabbbd54d907b57bc5a6deee49eb
3
+ metadata.gz: 4f56afab09fa575f4396854187cbd8f60cc4f4db
4
+ data.tar.gz: cf0cb53b1336b974477c9fc6392ae2e2ab10d0e0
5
5
  SHA512:
6
- metadata.gz: 28e2e3825046654937ef3026854784e534f824fb5d5eda8089c246645b351c5ccd1ce5b3140fadac4a194c00965ffbdfa58bdfbf2f9e9b7b9b1d56d464b25102
7
- data.tar.gz: c74f5544ba3bbb4b44be6de53571e52aa4901c76515aed8bcff76e0ff44f7d27f8f8b556e944443728da2e5b98210974c3ec470e95f796814e67b81402c4c67e
6
+ metadata.gz: ebc25c5eb271ded07d76e62c6f91283b47be21f93ec9e7d56c5c580c4b346873b1e745517d0bcd7eb00b614bb0ee73f490b1ac886bb330bf033b0e4d27789072
7
+ data.tar.gz: af47234f1b78af8dcdef5cfc32e157e2f9a229f31f4b06cac3c84b288436f9334d244e658c012fae5c61be4ba1b85942495bcefe202b00d29a25a3fd399a6232
data/lib/jimmy/schema.rb CHANGED
@@ -36,6 +36,7 @@ module Jimmy
36
36
  hash['links'] = links.map &:compile unless links.empty?
37
37
  hash.merge! data
38
38
  dsl.evaluate compiler, hash if compiler
39
+ hash['enum'] |= [nil] if nullable && hash.key?('enum')
39
40
  hash
40
41
  end
41
42
 
data/lib/jimmy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jimmy
2
- VERSION = '0.5.2'
2
+ VERSION = '0.5.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jimmy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neil E. Pearson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-08 00:00:00.000000000 Z
11
+ date: 2017-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json-schema
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  version: '0'
138
138
  requirements: []
139
139
  rubyforge_project:
140
- rubygems_version: 2.4.3
140
+ rubygems_version: 2.6.8
141
141
  signing_key:
142
142
  specification_version: 4
143
143
  summary: Jimmy the JSON Schema DSL