bitzlato 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/bitzlato/client.rb +1 -1
- data/lib/bitzlato/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0a89268c8cb7ff848c3d653f7e3e2adae06630b834896f8057123983317a9556
|
|
4
|
+
data.tar.gz: 2e49d78b376fdb0e2f52b5c6b1d0e019b1c08ed9c7bc51fa43de73385ac17ca3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 187352800cc314d3b6462b65912a37ab112215241b7ce159e7ff426e7c856171378dca31c7e6c09915b823e02dfc7b038559fadbb99e6e0a021851c36270fa04
|
|
7
|
+
data.tar.gz: 8c4b547b3370949fdf52dadaf0fc5289dfaf483a267398f567acedb12d4cb8ffec6ae8d1a2c963d421df96aaff22cc41d4c0ecbdea85c1d26b8249ff34f351db
|
data/lib/bitzlato/client.rb
CHANGED
|
@@ -36,7 +36,7 @@ module Bitzlato
|
|
|
36
36
|
private
|
|
37
37
|
|
|
38
38
|
def parse_response(response)
|
|
39
|
-
raise WrongResponse, "Wrong response status (#{response.status})" unless response.success?
|
|
39
|
+
raise WrongResponse, "Wrong response status (#{response.status}) with body #{response.body}" unless response.success?
|
|
40
40
|
return nil if response.body.empty?
|
|
41
41
|
raise WrongResponse, "Wrong content type (#{response['content-type']})" if response['content-type'] != 'application/json'
|
|
42
42
|
JSON.parse response.body
|
data/lib/bitzlato/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bitzlato
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Danil Pismenny
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-05-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|