serialized-hashie 1.1.3 → 1.1.4
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 +4 -4
- data/lib/serialized_hashie/hash.rb +7 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 300103bd38c44cb166420b1acc239e8ef20bc0f1c7d9f4bf12e929834a44666c
|
4
|
+
data.tar.gz: daaf36066c71f252d3d33f38f3ac6bcab310a1491b18badad7f985d9fbad1a3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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)
|