binance-ruby 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/binance/api/request.rb +6 -1
- data/lib/binance/api/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: e74c503800c58d470ef98deb95f32629f9954938dd64945dff998b50651d2733
|
4
|
+
data.tar.gz: 5a7977d1840a0a710bdbd825934b4fbb7ed991dba686f7c8aa4aa8251a0722aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea8fe1a34c96744a54e1e67aa589e336fb63ca843ce7e7b6c6d65e14e8a3142f9fdf523ff3df311c5ad1bd483ec26bb0dbb874abd5a2054af0dbafc970fce112
|
7
|
+
data.tar.gz: e39a5fe7430cd9055400eb4886a07e3ce679327af63ba2f03739c100fb9e00b29a344a2a06c7e7aaf357d84480c669072f923c30eb3c5d6c66d9aaa9d3856305
|
data/lib/binance/api/request.rb
CHANGED
@@ -37,7 +37,12 @@ module Binance
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def process!(response:)
|
40
|
-
json =
|
40
|
+
json = begin
|
41
|
+
JSON.parse(response.body, symbolize_names: true)
|
42
|
+
rescue JSON::ParserError => error
|
43
|
+
# binance 500 errors are html format
|
44
|
+
raise Error.new(message: error)
|
45
|
+
end
|
41
46
|
raise Error.new(json: json) if Error.is_error_response?(response: response)
|
42
47
|
json
|
43
48
|
end
|
data/lib/binance/api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: binance-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jake Peterson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: codecov
|
@@ -206,5 +206,5 @@ requirements: []
|
|
206
206
|
rubygems_version: 3.0.8
|
207
207
|
signing_key:
|
208
208
|
specification_version: 4
|
209
|
-
summary: binance-ruby-0.6.
|
209
|
+
summary: binance-ruby-0.6.4
|
210
210
|
test_files: []
|