monobank 0.2.1 → 0.2.2

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: 5b4a8fe5377d68a7feb0514ab4b087e8a5da2bd3158013ebb3556882f6f1fd92
4
- data.tar.gz: '09761860c78574c0833d45e666758ed7b581b636f5b14fda57ff58f84713a440'
3
+ metadata.gz: 73cb15683ac9c427b190ecd483b37a84608e331e3061462726be37361a335ccc
4
+ data.tar.gz: 4001f554c2a0f943120108bafd6e94b5a47a8ebb9d21d76ed167f2c608956df0
5
5
  SHA512:
6
- metadata.gz: 66037354fd50ecb654157dbe1e4763f8f73b0576a92b7ca4b24400ee0dbcab624f49fc2225fcbcccbf407837165113de979cbfa6cbbfd57c93ca540c4a420723
7
- data.tar.gz: 2c042c611c212bd6911e5cb458d912bde35ced1469ac77cb5ab816d0cd871107c4c5d84d15491d2b7afbb599a69f8b514ce198722f30df3bbfa7eb48b09a3111
6
+ metadata.gz: 7b27ee3c538ae1bf24ba28468ffec64dd259ba1bd7b34823662603a0641f295abe209c6b0f1515d12e9536fc5d2dc9dd2423ea670edad9f4ca8b2da68078d49e
7
+ data.tar.gz: aa45f2126a880c33313ed1263a0fe430f4e47470ba285477278b4cef9b747c2d875e2a2879dfe7e40e47706eade5fc798545737d0afe7fcd57c3e5f2cf670965
@@ -18,11 +18,13 @@ module Monobank
18
18
  end
19
19
 
20
20
  def deep_snake_case(hash)
21
+ return hash unless hash.is_a?(Array) || hash.is_a?(Hash)
22
+
21
23
  hash.each_with_object({}) do |(key, value), object|
22
24
  object[method_name(key)] =
23
- if value.kind_of? Hash
25
+ if value.is_a? Hash
24
26
  deep_snake_case(value)
25
- elsif value.kind_of? Array
27
+ elsif value.is_a? Array
26
28
  value.map { |element| deep_snake_case(element) }
27
29
  else
28
30
  value
@@ -1,3 +1,3 @@
1
1
  module Monobank
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monobank
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - vergilet
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-02-01 00:00:00.000000000 Z
12
+ date: 2020-02-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  requirements: []
77
- rubygems_version: 3.0.6
77
+ rubygems_version: 3.0.8
78
78
  signing_key:
79
79
  specification_version: 4
80
80
  summary: Unofficial Ruby Gem for Monobank API.