securitytrails 0.1.4 → 0.1.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
  SHA256:
3
- metadata.gz: 44c325c548c7440852f81371215d2ed0c924138a6079d163a59b96a420cbf922
4
- data.tar.gz: a5a154295f36ad0d411e3633eac96142d3066e11d2fd42282c76eb96602db42e
3
+ metadata.gz: 5483c4d6c38eab1e5221427e34e881e56ee96a598803428b6b1eb3e434b0d451
4
+ data.tar.gz: 8105cc7a9dac696435ecdde62239c4e3c1abf67ff193f7953545d2629ef96e1e
5
5
  SHA512:
6
- metadata.gz: 2b2efa2c2f0e254f5b5736b7a2d96b0edbbaf20faceba31d289ae0675030e1e32855c40f1bc0c2787ce68e1517f4ad03d00ad2324a084f4bdb2af80ba496b344
7
- data.tar.gz: b4707d84034420dc820d4a0cd9762d004187a133853bda53aa54b51e044c8033315112d9dee3a68a86b979acc3d1e3eb5a34c1f51f212000545f483db8b673da
6
+ metadata.gz: c20d328670f8c6c76c3f57bca2933e58ca8360dc7bceed3b3faff1efbf2f6badb19be1b444dbccc3c46fff1dede6f3adae5d3e04cdffcaef7b32b59e9528adb8
7
+ data.tar.gz: '09efa1c991dca18805fdaba19fc21625ebf776aae32d144364ce0d5b6807fddde6dbb3eaeaa40418ae68904e4323c88d307ed39142ce8f2a0af51a71745ebff6'
@@ -5,6 +5,8 @@ require "ostruct"
5
5
  module SecurityTrails
6
6
  class Response < OpenStruct
7
7
  def openstruct_to_hash(object, hash = {})
8
+ return object unless object.respond_to?(:each_pair)
9
+
8
10
  object.each_pair do |key, value|
9
11
  hash[key] = case value
10
12
  when OpenStruct then openstruct_to_hash(value)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SecurityTrails
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.5"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: securitytrails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manabu Niseki