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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af9dbd1ca9cb360970e4759f0576b56804aad529d47dfd6befeeb9c555c600b7
4
- data.tar.gz: be991673275fbe69133a4bb8ba0c54dc8e5d889912b3b7075b1d19b5c0e4dbac
3
+ metadata.gz: ef96fe05c0fa53097a043b4182d2d7e42207c273c96cfd53167eed80cf2e0f95
4
+ data.tar.gz: 38982fdf703c7eebf9afcb92e06743d08856e535560bc81abe209f39b8ad7520
5
5
  SHA512:
6
- metadata.gz: ac50ee8e3972a1ced70e2bafaf096755e0dbfca991f00227fe52ea5f8fc0980c751ffd455cde9144dfc5eecf95709e340d0a4d426ba9fbd921d61257fc98f26e
7
- data.tar.gz: 90710da92404a2705586b75df7defecde3851f20ad7c1e47b6eb9d0a89081610dfcc2c77f316014f5200432e85c55edf8ff96cccd042aa15eb254130cd441d8e
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
@@ -1,3 +1,3 @@
1
1
  module Istox
2
- VERSION = '0.1.81-test2'.freeze
2
+ VERSION = '0.1.81-test3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: istox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.81.pre.test2
4
+ version: 0.1.81.pre.test3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siong Leng