kraken_client 1.0.3 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/kraken_client.rb +1 -1
- data/lib/kraken_client/requests/get.rb +7 -1
- data/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94c1bf46988852a77f096554d7e253209d01e821
|
4
|
+
data.tar.gz: c94550fe347df08a865971a49254c80160389d84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e859b44a953e0fc33003e692da86bb13dd06fcc022ece079720ca518386812c2425d331dd27dcfd2c0b91305d138499cc0ea7138992454e0a0eaf389f255192
|
7
|
+
data.tar.gz: 8497cb258f41bb82e49c618b770892fa80c6378cef3d0c5aea3d975f2a16c585e84f3d76dc2c3d0fbd9e80b00c9c47796b1a69224e8aa7e7bc6d88fa39e12fda
|
data/Gemfile.lock
CHANGED
data/lib/kraken_client.rb
CHANGED
@@ -5,7 +5,13 @@ module KrakenClient
|
|
5
5
|
def call(url, params, *)
|
6
6
|
super
|
7
7
|
|
8
|
-
HTTParty.get(url, query: params)
|
8
|
+
HTTParty.get(url, query: parsed_params(params))
|
9
|
+
end
|
10
|
+
|
11
|
+
private
|
12
|
+
|
13
|
+
def parsed_params(params)
|
14
|
+
params.is_a?(Hash) ? params : { pair: params }
|
9
15
|
end
|
10
16
|
|
11
17
|
end
|
data/lib/version.rb
CHANGED