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 +4 -4
- data/lib/monobank/resources/base.rb +4 -2
- data/lib/monobank/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73cb15683ac9c427b190ecd483b37a84608e331e3061462726be37361a335ccc
|
4
|
+
data.tar.gz: 4001f554c2a0f943120108bafd6e94b5a47a8ebb9d21d76ed167f2c608956df0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
25
|
+
if value.is_a? Hash
|
24
26
|
deep_snake_case(value)
|
25
|
-
elsif value.
|
27
|
+
elsif value.is_a? Array
|
26
28
|
value.map { |element| deep_snake_case(element) }
|
27
29
|
else
|
28
30
|
value
|
data/lib/monobank/version.rb
CHANGED
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.
|
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-
|
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.
|
77
|
+
rubygems_version: 3.0.8
|
78
78
|
signing_key:
|
79
79
|
specification_version: 4
|
80
80
|
summary: Unofficial Ruby Gem for Monobank API.
|