istox 0.1.81.pre.test2 → 0.1.81.pre.test3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/istox/helpers/common_helper.rb +1 -1
- data/lib/istox/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef96fe05c0fa53097a043b4182d2d7e42207c273c96cfd53167eed80cf2e0f95
|
4
|
+
data.tar.gz: 38982fdf703c7eebf9afcb92e06743d08856e535560bc81abe209f39b8ad7520
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44f575e05c63bc5f46e828bfed55205289452faf240a8d3cd121da406cf42986c1f3cd87fdc0cd2b66302152f906c95bdc5c9b628d6387e2f6153f9186f0f86e
|
7
|
+
data.tar.gz: e6c0c3895790ad8d9d8fec3040d2beccfeecda85a518053e3e38725f960859fe3709445fa24522c635ef2817df9cb30d2d83601afa33426e7bc313b95b031033
|
@@ -31,7 +31,7 @@ module Istox
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def self.deep_to_h(obj)
|
34
|
-
if obj.is_a?(OpenStruct) || obj.is_a?(Hash)
|
34
|
+
if obj.is_a?(OpenStruct) || obj.is_a?(Hash) || obj.methods.include?(:to_h)
|
35
35
|
obj.to_h.transform_values do |v|
|
36
36
|
if v.is_a?(OpenStruct) || v.is_a?(Array)
|
37
37
|
deep_to_h(v)
|
data/lib/istox/version.rb
CHANGED