escape_escape_escape 1.5.0 → 1.5.1

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: 917266705f94b9a5286d0e59afcbb995d55714c3
4
- data.tar.gz: e19d6689d8dbefae94448b59d86bc0d4e0231b57
3
+ metadata.gz: b3f2670b659a6e2db5264b09fa0867aebb759c87
4
+ data.tar.gz: 7e6dcb8be999b12eca501b4a11ed9b07190cc7a6
5
5
  SHA512:
6
- metadata.gz: b902a308aca05401ed3794cec7ed6cb13f549babb5174056b802a98018806999333e4db1b0597c3e1335e4c46ab3543fed7b8b16add5514e2914e421d98ffb9c
7
- data.tar.gz: 7812d9a8aac3446e92ef33803911bae0a63f85b16ed4d3767e36a13259bd79aa785af5e40434dd0f5e07dff59a12dbf97fdf87a2602661dd93f266507cf52b1a
6
+ metadata.gz: 8dc29c74e9cbc84fd4d6675c254ddbc5cd1eb4a007d2c428670e504fa58235609879632ee6a4ca0b4646cda5ff18b846131dbeb52b900975ecdee5612710a3a3
7
+ data.tar.gz: 9beb6a73c47e598a09eeb421055ae31891a70588734ec9cf9a13723a28ca6b3d8a5743365e22f3e536ea15d65abfe878f49046f05152f0476cf82a0fc3e31fe8
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.5.0
1
+ 1.5.1
@@ -327,7 +327,7 @@ class Escape_Escape_Escape
327
327
  o.map { |v| clean_for_json v }
328
328
  when Symbol
329
329
  o.to_s
330
- when String, Numeric, NilClass
330
+ when String, Numeric, NilClass, TrueClass, FalseClass
331
331
  o
332
332
  else
333
333
  fail ArgumentError, "Unknown Class for json: #{o.inspect}"
@@ -22,3 +22,8 @@ raises Escape_Escape_Escape::Invalid, /Not an object\/hash/
22
22
  it 'turns Symbol keys and values into Strings'
23
23
  input( {:a=>:c} )
24
24
  output '{"a":"c"}'
25
+
26
+
27
+ it 'allows True/False as values'
28
+ input( {:a=>true, :b=>false} )
29
+ output '{"a":true,"b":false}'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: escape_escape_escape
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - da99