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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e828a1d5d4b44e8871df9d42113a60f4c7e2efd2
4
- data.tar.gz: f87691e91a80444b8538b7f93eb0e66dc6f753cd
3
+ metadata.gz: 247b6c897ce537e5627774e9b175435699dbf548
4
+ data.tar.gz: b02f2c46bd1a50bbadfdb133f1f1f5ea82c7cacf
5
5
  SHA512:
6
- metadata.gz: 53a6edabef8341451c30f9d33a9b0c0855d20f4ea16518fe1ea6e3827d621ae42e5fa7350a0df9fc536abe8f0d5dc7721a7f2fe60e2c8a011c55f8d8c8aa9b22
7
- data.tar.gz: 296fd4b9114b66769babcbbc424a9083d114b024e35c0bb7a0f0a72446af45e07c652b9e71212be5347a51e554385f65738abb57dd2f0bf0ce76a267cb021834
6
+ metadata.gz: 256c4d129858ef37c3d998c8fbe8c2522087a92779851a340d7d708e7ef9ab75839bc1d04357dcf0040d64289d29cdeb29130ff7cb1331640ecb3cc35cfefbe0
7
+ data.tar.gz: 19dc775866bfcc8ddd46062341f67aa8e517989ee09f1ead8d4993e1e7ed4f637e3d98331edbcd51203e33a1576383cf64156a54d05fff972b5dc8393c7da14b
@@ -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
@@ -1,3 +1,3 @@
1
1
  module SuperStruct
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: super_struct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bram Swenson