occi-core 5.0.0.beta.12 → 5.0.0.beta.13

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: 7fac8305b97465339c2c6a44616f3ceb7fdd730f
4
- data.tar.gz: 5f25b9057c15e7f2f652c7ee1c09c21f05f9bdc1
3
+ metadata.gz: 0ba70af71d28f630d26bd15b7d246c3538135281
4
+ data.tar.gz: c0b7a49461f31edede784d889f73b504bbce2ded
5
5
  SHA512:
6
- metadata.gz: 37d60f5af4d17f5ffdfc9a1a086b97e26d4428ad29f376ba32cadf5ec48ce75c0d7ac7d039aa58c62b6ae19d45ea90fbebee453d28f1d1435332ac25c6fd70b5
7
- data.tar.gz: 0c3e720535038f78c8ffcb2d1171706f337135513c7e8cc3ffe483472c43f35fea6a8f569f10c05b8f5973ffca8f97b69383e0a136211e5da0acac8279d1d8ee
6
+ metadata.gz: 4ec18abe34016c2008ff2363796dad9a52da376135c8494cf095211b8e279cd6794dcadc115b4345a6c4abf017062abf1e33d2a11992fe085cf4c697418b8ab3
7
+ data.tar.gz: 11927b07adb05e674c400cfd16bd2a72274447378de1e40c00b2c0447d6cffcb4e148b5667d3250f2f111b7c367de1e2340fb4e7a0d00961a057c4fee66f6370
@@ -25,7 +25,7 @@ module Occi
25
25
  DEFAULT_LAMBDA = ->(val) { raise "#{self} -> Cannot typecast #{val.inspect} to an unknown type" }
26
26
 
27
27
  FLOAT_LAMBDA = ->(val) { val.to_f }
28
- JSON_LAMBDA = ->(val) { JSON.parse(val) }
28
+ JSON_LAMBDA = ->(val) { JSON.parse(val.gsub('\"', '"')) }
29
29
 
30
30
  TYPECASTER_HASH = {
31
31
  IPAddr => ->(val) { IPAddr.new val },
@@ -72,7 +72,7 @@ module Occi
72
72
  if (QUOTABLE_TYPES & type_ancestors).any?
73
73
  "\"#{value}\""
74
74
  elsif (JSONABLE_TYPES & type_ancestors).any?
75
- "\"#{value.to_json}\""
75
+ value.to_json.inspect
76
76
  elsif (PRIMITIVE_TYPES & type_ancestors).any?
77
77
  value.inspect
78
78
  else
@@ -3,7 +3,7 @@ module Occi
3
3
  MAJOR_VERSION = 5 # Major update constant
4
4
  MINOR_VERSION = 0 # Minor update constant
5
5
  PATCH_VERSION = 0 # Patch/Fix version constant
6
- STAGE_VERSION = 'beta.12'.freeze # use `nil` for production releases
6
+ STAGE_VERSION = 'beta.13'.freeze # use `nil` for production releases
7
7
 
8
8
  unless defined?(::Occi::Core::VERSION)
9
9
  VERSION = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: occi-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0.beta.12
4
+ version: 5.0.0.beta.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boris Parak