serialized-hashie 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/serialized_hashie.rb +4 -0
- data/lib/serialized_hashie/hash.rb +5 -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: adf5116d3184f67d700de3786bb6d3265229e0fe8232fd28020cfd8eb359c574
|
4
|
+
data.tar.gz: 9b1f1dd779738b72377c0771868c21b7e6120d553d51d14c8237a3dc84c33706
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f6115c1441227095a2e5f4dd7eebd1984be759f821438f9cda7dec4c275df7e875019387691abca751947409185b240f9f6945cedf741a69be9fd3f540d53e7
|
7
|
+
data.tar.gz: 393287f6c178c9401a93a9dd4d6f095d9867470398206455a22d99ec86888120989c95c129116d5e4b73dd985a763fe894ad0c6841f5cd38a4cdbab2b3bc5187
|
data/lib/serialized_hashie.rb
CHANGED
@@ -63,7 +63,11 @@ module SerializedHashie
|
|
63
63
|
end
|
64
64
|
|
65
65
|
def load_value(value)
|
66
|
-
|
66
|
+
if value.is_a?(::Hash)
|
67
|
+
hash = SerializedHashie.load_hash_extensions.run(value)
|
68
|
+
return load_hash(hash)
|
69
|
+
end
|
70
|
+
|
67
71
|
return value.map { |v| load_value(v) } if value.is_a?(Array)
|
68
72
|
|
69
73
|
SerializedHashie.load_extensions.run(value)
|