bitstamp_client 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 668a5e511c84ba9820c123900ae2fd6fb7a71bf52cff88e3de004687c5b03d10
4
- data.tar.gz: 473dffa2f501d69394a92aa882a35d5f9b9ca406e98d2df2eb2b352d79df57ab
3
+ metadata.gz: 2576e794d88ec74414b95244a440d9eeb4fb84e1260ed49329822653a95816ac
4
+ data.tar.gz: ac8592282d6aa12ebfd17d0e302940d7b3adc9e2a51214d62582a1537d34a53e
5
5
  SHA512:
6
- metadata.gz: 7a7aeb838bfa7df943db2776f8b2fdd64659fdb51e737dc0bbb719e10e6913732e63c2f2b266746d5d06d12c91da7e86eb2a4c8338daaba3dc26a544812c720b
7
- data.tar.gz: db3637dd196c7272fa9a49ee7f70db0b927c6b0333e9ba8908285d1b003884c53b3f2161a8705913ffa7574072b254a117323074639ba95a5c8c10c77339a637
6
+ metadata.gz: b9a0f9d97001b5db5241110d973546a20dbd3a61eecefc9cdda1f50c279a4faa7e6e52a0bd60d56382c506458a7b5f4ebae375d72853d8d645d688969bf157ec
7
+ data.tar.gz: 3fefb6c26826fef8199bf1c5d5107698647b8eeef7a8bcc720c1f29a43c62c0130fe33fa2eb164a424ff75bd9da43e7fb6d2b1ad0f93e856604ee0f86053917f
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## [1.2.1] - 2019-02-15
8
+ ### Fixed
9
+ - OrderBook: do not blow up with `JSON::ParserError` when response isn't JSON
10
+
7
11
  ## [1.2.0] - 2019-01-09
8
12
  ### Added
9
13
  - Add `balance` API call to get balances
@@ -17,6 +17,7 @@ module BitstampClient
17
17
 
18
18
  def default_parsed_body
19
19
  JSON.parse(body)
20
+ rescue JSON::ParserError
20
21
  end
21
22
 
22
23
  end
@@ -9,7 +9,8 @@ module BitstampClient
9
9
  private
10
10
 
11
11
  def default_order_book
12
- OrderBook.new(JSON.parse(body))
12
+ return nil if parsed_body.nil?
13
+ OrderBook.new(parsed_body)
13
14
  end
14
15
 
15
16
  end
@@ -1,3 +1,3 @@
1
1
  module BitstampClient
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitstamp_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramon Tayag
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-09 00:00:00.000000000 Z
11
+ date: 2019-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: api_client_base