bitzlato 0.1.5 → 0.1.6
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/bitzlato/client.rb +1 -1
- data/lib/bitzlato/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c5615a8307850e0657588e3e5fe2fec0c2512933b8ba15ae86461d3311fcbe7
|
4
|
+
data.tar.gz: f9fac4b86cc4ecb7f42fb2f4efc649c27b6d686614cac3e438384fc9adf7cfac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 007dccd9fb93d607ca4bdee887f2c4486a5867503b995ef848567427c4f14cd2af139390b5f8c8a6ec34cd5272ffebda17ff8e9311328c8d1de2a0245ee0219b
|
7
|
+
data.tar.gz: f478a7bc31f8e1010f99c938c9cdd96de4d6bfcb5eebd936ea7166e9ee13b4fa41038b49e458841e6bb72002d64c486daeede97e12d6dfa18994bf33644d9664
|
data/Gemfile.lock
CHANGED
data/lib/bitzlato/client.rb
CHANGED
@@ -35,7 +35,7 @@ module Bitzlato
|
|
35
35
|
|
36
36
|
def parse_response(response)
|
37
37
|
raise WrongResponse, "Wrong response status (#{response.status})" unless response.success?
|
38
|
-
raise WrongResponse, "Wrong content type (#{response['content-type']})" if !response.body.
|
38
|
+
raise WrongResponse, "Wrong content type (#{response['content-type']})" if !response.body.empty? && response['content-type'] != 'application/json'
|
39
39
|
JSON.parse response.body
|
40
40
|
end
|
41
41
|
|
data/lib/bitzlato/version.rb
CHANGED