json_world 0.1.2 → 0.1.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: f47fd3e6fa82da31da36b53d47496945da7852fb
4
- data.tar.gz: 0e638d6c731d1ccccd98ab5607ffef275c334273
3
+ metadata.gz: 548550510a3d4677c1ad3fccde272e0d0a918d2f
4
+ data.tar.gz: b72123974bfe91891a884f1d52d1f833247ea094
5
5
  SHA512:
6
- metadata.gz: 460be1b1b095b4c64cbaaba1d777a72c59bd49ac04dbd12dff490cf1ec2b169045edfb70bd7fdadfe5c4304149e3fded79d1a57099afab2bff3b67354fad931a
7
- data.tar.gz: fab931e7015a9c94b8117921fd82b65eec50138e7a79f893f8713d3dfb985b78492a0210fa385f9b0859c8aeeb7d27ddf3fc58f79142d4f1a9b89e82f73334ab
6
+ metadata.gz: 1320f37b8e132cc830486996c556ae8c9b02e627d8952938d5fb098eec19b01e93fd9cf8bf99af839a8239251be3909fa7b49de963fb2306dbdec3b8b9895124
7
+ data.tar.gz: 0ea1eb0e8c725629733942f6703b0fdc5985bfbe964f842d4b1801943882d9827e72535259d343fdf564c469578b528b9fe5e5b9fdcef420866ee55897c388e4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.1.3
2
+ - Support boolean type on property definition
3
+
1
4
  ## 0.1.2
2
5
  - Remove links property from embedded object
3
6
  - Fix bug that links are unexpectedly shared by other classes
@@ -113,6 +113,8 @@ module JsonWorld
113
113
  case
114
114
  when this_type == Array
115
115
  "array"
116
+ when this_type == FalseClass || this_type == TrueClass
117
+ "boolean"
116
118
  when this_type == Float
117
119
  "float"
118
120
  when this_type == Hash
@@ -124,7 +126,7 @@ module JsonWorld
124
126
  when this_type == String || this_type == Time
125
127
  "string"
126
128
  end
127
- end.compact
129
+ end.compact.uniq
128
130
  strings.length >= 2 ? strings : strings.first
129
131
  end
130
132
 
@@ -1,3 +1,3 @@
1
1
  module JsonWorld
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_world
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura