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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 453189d5dcb6f074f9b595cb427c339b44683a047d8226390106f0662ddb92f4
4
- data.tar.gz: 9e26fa8420bd8817094d51adc6949bf65204bb9dc9fbc73c1934c7c11a772a00
3
+ metadata.gz: adf5116d3184f67d700de3786bb6d3265229e0fe8232fd28020cfd8eb359c574
4
+ data.tar.gz: 9b1f1dd779738b72377c0771868c21b7e6120d553d51d14c8237a3dc84c33706
5
5
  SHA512:
6
- metadata.gz: 5173fefd9c87a94ec53d182975fe2ae26371aed4efdcfe5168c5e7b5bd826cc3dd2e87985c309b8c0c8bb2093878557212ef0ff3e4fd9582606af0beaf390b3c
7
- data.tar.gz: c66ac14e0de4f89586891a783424d2ca876a72b3145625eb2ed8065a3bd579d8eb5e2d40a86ef78a1c1b48e3a17ed67ecbb3b1cba448689ff2852d5481ba8d0b
6
+ metadata.gz: 6f6115c1441227095a2e5f4dd7eebd1984be759f821438f9cda7dec4c275df7e875019387691abca751947409185b240f9f6945cedf741a69be9fd3f540d53e7
7
+ data.tar.gz: 393287f6c178c9401a93a9dd4d6f095d9867470398206455a22d99ec86888120989c95c129116d5e4b73dd985a763fe894ad0c6841f5cd38a4cdbab2b3bc5187
@@ -19,6 +19,10 @@ module SerializedHashie
19
19
  @dump_extensions ||= Extensions.new
20
20
  end
21
21
 
22
+ def load_hash_extensions
23
+ @load_hash_extensions ||= Extensions.new
24
+ end
25
+
22
26
  end
23
27
 
24
28
  end
@@ -63,7 +63,11 @@ module SerializedHashie
63
63
  end
64
64
 
65
65
  def load_value(value)
66
- return load_hash(value) if value.is_a?(::Hash)
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)
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.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Cooke