super_struct 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/super_struct.rb +1 -1
- data/lib/super_struct/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 247b6c897ce537e5627774e9b175435699dbf548
|
4
|
+
data.tar.gz: b02f2c46bd1a50bbadfdb133f1f1f5ea82c7cacf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 256c4d129858ef37c3d998c8fbe8c2522087a92779851a340d7d708e7ef9ab75839bc1d04357dcf0040d64289d29cdeb29130ff7cb1331640ecb3cc35cfefbe0
|
7
|
+
data.tar.gz: 19dc775866bfcc8ddd46062341f67aa8e517989ee09f1ead8d4993e1e7ed4f637e3d98331edbcd51203e33a1576383cf64156a54d05fff972b5dc8393c7da14b
|
data/lib/super_struct.rb
CHANGED
@@ -23,7 +23,7 @@ module SuperStruct
|
|
23
23
|
|
24
24
|
def deep_convert!
|
25
25
|
members.each do |member|
|
26
|
-
if self[member].respond_to?(:has_key?)
|
26
|
+
if self[member].respond_to?(:has_key?) && self[member].size > 0
|
27
27
|
self[member] = ::SuperStruct.from_hash(self[member])
|
28
28
|
self[member].deep_convert!
|
29
29
|
end
|
data/lib/super_struct/version.rb
CHANGED