wolf_core 1.1.9 → 1.1.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f7331df364bc45b41ee4bc1a5e18f0a5d22aaaf03b42ac2483fcd523e17cce4
4
- data.tar.gz: 7c490a24dc86ed70f439555dd6d4150a00a84c265aed8a26b64d8ed6922f696f
3
+ metadata.gz: 582371e8721e4ea836fc68470cf19995a0872f3e69b4b890f566d28060b40c51
4
+ data.tar.gz: ce994a2f35afbad4561babec94d80d4dd7a0c70a8b47993f2ffc6e691e6b0bb5
5
5
  SHA512:
6
- metadata.gz: 561026eb9367fdda70812ba23dc451b44d687baacc7d340b7ccad663fca231bb7aca7dd26fd745e4ea2abbabec6b17b6cbb7cfc364c5f9318a6f248a2605192d
7
- data.tar.gz: 9dc9989507ecbe9aeb38a278d4f385432fb63ee1b8286375c3851e3b396ed12279441662ab5bd30d11e53bb6313bc14244d9b1624464d843aa84dbf57fd59938
6
+ metadata.gz: a39816fa8053c191af3034ead0c885048a4c1660faf4d6978e7445d9b416383c18ad4cf56c6fed2a1da24f8ea5ecf9627fbdc0c1315f9d7bc4cbf1bfed2da0fa
7
+ data.tar.gz: 56661a79d9b06654c6eca682ad5cbac09d909b9df15b1d0b47249350d588f02f4f5ccb9fe511d2824a7188be075051040a29213851a8dc16f236a102bf2291cd
@@ -4,10 +4,12 @@ module WolfCore
4
4
  module HashUtils
5
5
  def deep_to_h(hash)
6
6
  hash.transform_values do |value|
7
- if value.respond_to?(:to_h)
8
- deep_to_h(value.to_h)
9
- elsif value.is_a?(Hash)
7
+ if value.is_a?(Hash)
10
8
  deep_to_h(value)
9
+ elsif value.is_a?(Array)
10
+ value.map { |v| deep_to_h(v) }
11
+ elsif value.respond_to?(:to_h) && !value.is_a?(Hash)
12
+ deep_to_h(value.to_h)
11
13
  else
12
14
  value
13
15
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "1.1.9"
4
+ VERSION = "1.1.10"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wolf_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.9
4
+ version: 1.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo