serialized-hashie 1.1.3 → 1.1.4

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
  SHA256:
3
- metadata.gz: adf5116d3184f67d700de3786bb6d3265229e0fe8232fd28020cfd8eb359c574
4
- data.tar.gz: 9b1f1dd779738b72377c0771868c21b7e6120d553d51d14c8237a3dc84c33706
3
+ metadata.gz: 300103bd38c44cb166420b1acc239e8ef20bc0f1c7d9f4bf12e929834a44666c
4
+ data.tar.gz: daaf36066c71f252d3d33f38f3ac6bcab310a1491b18badad7f985d9fbad1a3c
5
5
  SHA512:
6
- metadata.gz: 6f6115c1441227095a2e5f4dd7eebd1984be759f821438f9cda7dec4c275df7e875019387691abca751947409185b240f9f6945cedf741a69be9fd3f540d53e7
7
- data.tar.gz: 393287f6c178c9401a93a9dd4d6f095d9867470398206455a22d99ec86888120989c95c129116d5e4b73dd985a763fe894ad0c6841f5cd38a4cdbab2b3bc5187
6
+ metadata.gz: 4eb43c83b54941b0b81628aa37441741a931205b73ce8c0f52e5d0ffc260b0fc1e845795748c0745a8faf108a2ad13413ed696f88cb52ab1cea9b5da32ed7f80
7
+ data.tar.gz: bfc8aa01bfdbe685901ab35952ad5ba437570b4bdc6d50b1fabe3780b2d133166398d8024888aed392787096271f7f41f6a2f64afa2f9a9d9620b80eb634babc
@@ -65,7 +65,13 @@ module SerializedHashie
65
65
  def load_value(value)
66
66
  if value.is_a?(::Hash)
67
67
  hash = SerializedHashie.load_hash_extensions.run(value)
68
- return load_hash(hash)
68
+
69
+ # If the result is still a hash, we'll return that here
70
+ return load_hash(hash) if hash.is_a?(::Hash)
71
+
72
+ # If the result is not a hash, we'll just return whatever
73
+ # was returned as a normal value.
74
+ return load_value(hash)
69
75
  end
70
76
 
71
77
  return value.map { |v| load_value(v) } if value.is_a?(Array)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serialized-hashie
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Cooke