wolf_core 1.1.7 → 1.1.8

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: 8bb27b3865d67ca728059a36326454b9d85a4d789650917b1f5ae21841ece5df
4
- data.tar.gz: a159e3533c003566d51cbc21808a1ef75a6ae18103812522e21e499f9b346364
3
+ metadata.gz: 92ea9ad779e6f08068f60af09eebb33bc4e2b384bf77e4fdc5b2dadefd76fefc
4
+ data.tar.gz: 6fb952ab02fa06402f46907ce7dcaa481e5cdd3eda161d735fa49b821d02895a
5
5
  SHA512:
6
- metadata.gz: c743421274e60a6873e0344489786095c40192b58c2eb89d077b1ec7d414b900afc5c519a61efc899f0b32a51c5430b787d40f3424a0a2bc1a460e501b076273
7
- data.tar.gz: 682da307f7b87b7329512dc79400c34a0893dc9b0b128a2ceb57e50078e3fcbab15bbad6632c10400304857cf96ec25e87cdb06aec1dc1304ab078aa421e6876
6
+ metadata.gz: 575ef6f00ea7aae879cf88c8dec274f01975f4b907f491aedcaa6b96f4a4f70cdff7655527a49d694e448cd326c964883fee8aeaa069a6a3992bdc77ba958053
7
+ data.tar.gz: 9393bab11ace464363d0393cc9358c65b92916c367b228eb6f05c6d510128ea6917b97771c0db5b8729b49ebdbabdd821ab23a2d15fcdc76d91eb66a6d98efe9
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WolfCore
4
+ module HashUtils
5
+ def deep_to_h(hash)
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)
10
+ deep_to_h(value)
11
+ else
12
+ value
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "1.1.7"
4
+ VERSION = "1.1.8"
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.7
4
+ version: 1.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo
@@ -152,6 +152,7 @@ files:
152
152
  - lib/wolf_core/utils/async_utils.rb
153
153
  - lib/wolf_core/utils/file_utils.rb
154
154
  - lib/wolf_core/utils/friendly_model_id.rb
155
+ - lib/wolf_core/utils/hash_utils.rb
155
156
  - lib/wolf_core/utils/logging_utils.rb
156
157
  - lib/wolf_core/utils/result.rb
157
158
  - lib/wolf_core/utils/string_utils.rb