j2119 0.3.0 → 0.4.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a4635239f1817226f325284fbb3fe1137d2494f1eaacc9496b3752bf372d171e
4
- data.tar.gz: 8f836f4febc8770b538e9673b6483f7cb378efb1a75b858543a3c786375faa35
3
+ metadata.gz: 80f1db2d11ea4922b9beb89ab77365ba756b8ba806d6a36473250274d87ae582
4
+ data.tar.gz: cd83767cb20fd12dd328933e25dde147b0cb431e217f41871d41281162989a0b
5
5
  SHA512:
6
- metadata.gz: d8823f49caf8d3ddf5faa78d4e06ea762e83c5b74c135ccde18d916871d55396a74720b5582953d9009f6f449161bf5072aaf5cab2ba3e6994dcebfcd2d338b8
7
- data.tar.gz: b41163dd9edb46bbbbd0d8716975f6382a08da9a1d09bce32146215b7b623c91a9f82a7d113e613e7cafd6b193c6ceac8874d50dd8d3a3122255bb5c82c6d2f1
6
+ metadata.gz: 90f6c1b5e095227e85bd04e933752a73f26612fff5bf4897de5627f0b82d9db47d39612abc781a04be5fde87bf2e4d3776c684ed6fa8b8a6501aedb058d22846
7
+ data.tar.gz: b073e9bdacba6c0ce141cf523a2ad60beb702b5a035237ae85523596def74c69878a9ab8b18dfff0db568404e9668edd9d6c8d7a126548d263f6957a88969d60
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'j2119'
3
- s.version = '0.3.0'
3
+ s.version = '0.4.0'
4
4
  s.date = '2016-09-28'
5
5
  s.summary = "JSON DSL Validator"
6
6
  s.description = "Validates JSON objects based on constraints in RFC2119-like language"
@@ -56,7 +56,7 @@ module J2119
56
56
 
57
57
  # find inheritance-based roles for that field
58
58
  grandchild_roles = @parser.find_grandchild_roles(roles, name)
59
- if !@parser.allows_any?(grandchild_roles)
59
+ if (!grandchild_roles.empty?) && (!@parser.allows_any?(grandchild_roles))
60
60
  # recurse into grandkids
61
61
  if val.is_a? Hash
62
62
  val.each do |child_name, child_val|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: j2119
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Bray
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.0.3
72
+ rubygems_version: 3.0.2
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: JSON DSL Validator