json-schema-lite 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: 247a51056f2bee93abfbd8e93b82f9f71d2b16c6
4
- data.tar.gz: 43d532e874729a437169e6d5a3eb3619e62ee523
3
+ metadata.gz: 90b0236550b791f3b4da1f151fe3f27636f2ba94
4
+ data.tar.gz: d76487b6fcdd15ef59ef76210d452dfb2452cb9f
5
5
  SHA512:
6
- metadata.gz: ccef8ee2a272e46fc5fe46b4490e178c7f77d13df69b9c03546d19a20201c2379721508f6c29ec811424a219c20f109473fd3b5e6bba2bf44f81f0a67b6983b0
7
- data.tar.gz: 446597031e9b571825acd2ae19b5d2072d12e8921a3b29c6708524445f34e5e3bc05d6c129d8bf2e3d8a49a213d8cdc3024dddd2d90e897e89d458afebe353d3
6
+ metadata.gz: 78b7b0f6e37862f9ff60109ed29f70d8cbfe915d882961a83da13d448988dd2887be7eb326c34395336d9b1932cc950b584d6ef6cbc550996114e4178de4ba79
7
+ data.tar.gz: d2d35063ac0d8cf5e0d3e83f6d768c5e34f6771b825c912db8a0c2c746e5413bc6c9c650786a7cf2d71322880e493da92ab02e0a52a1debb760bca233cfcdf2c
data/README.md CHANGED
@@ -72,7 +72,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
72
72
 
73
73
  ## Contributing
74
74
 
75
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/json-schema-lite. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
75
+ Bug reports and pull requests are welcome on GitHub at https://github.com/munky69rock/json-schema-lite. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
76
76
 
77
77
 
78
78
  ## License
@@ -11,7 +11,7 @@ module JSON
11
11
  if definition.is_a? Hash
12
12
  definition.each_pair do |k, v|
13
13
  if k.to_s == 'properties' || option[:properties]
14
- v[:option] = { properties: true } if v.is_a? Hash
14
+ v[:option] = { properties: true } if v.is_a?(Hash) && v[:properties].nil?
15
15
  json_schema[k] = define v
16
16
  else
17
17
  json_schema[k] = v
@@ -1,7 +1,7 @@
1
1
  module JSON
2
2
  class Schema
3
3
  module Lite
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json-schema-lite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masayuki Uehara