cryptoexchange 0.17.0 → 0.17.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f05ebf8131e8107046a6a7893c2407de3d563c59
4
- data.tar.gz: 05184ce6f50078417f8fcbe62f12760df8daeb01
3
+ metadata.gz: 3bf943982b7cb4d5f61a435b74316ab68e20c8fd
4
+ data.tar.gz: d1072edb24bb7c559c13409dad7f4934f603fe3e
5
5
  SHA512:
6
- metadata.gz: e8d5a17dc883537bee6f7badb78b4c003195fd4c5a6e0caddbe25331e712934fb62e679276aa642dab99fdf8c4ea67e5c3bfb4d379dbe6eb8722b6efe35ead9e
7
- data.tar.gz: 80be3c919cd8e0b33d1f4db18536b7e689b952b3baeaf90e7eacca0440e773c09ae0e2b4c47955dbcdfff50b7986f7818f847ee3294dbe7912699511f7e81a76
6
+ metadata.gz: 80663402c49fb5d50b781bcd202ec27f7b78ea6c338d8d50b70dca400daeae47cdc5688cee5096caff250b7350a04231e3142173bd32e4a5d11f2db97cb50b98
7
+ data.tar.gz: e2c93937e009961afed31c72eefbaf04c1e4602ec9f2b4bc25b86ba75e36ab070a8086210f5c5a75641cc2070e3538c18c5fad92a188702c1b65e47e729f625d
@@ -37,7 +37,7 @@ module Cryptoexchange::Exchanges
37
37
  ticker.ask = NumericHelper.to_d(market['lastsell'])
38
38
  ticker.high = NumericHelper.to_d(market['high'])
39
39
  ticker.low = NumericHelper.to_d(market['low'])
40
- ticker.volume = NumericHelper.to_d(volume)/ticker.last
40
+ ticker.volume = volume ? NumericHelper.to_d(volume)/ticker.last : 0
41
41
  ticker.timestamp = DateTime.now.to_time.to_i
42
42
  ticker.payload = market
43
43
  ticker
@@ -1,3 +1,3 @@
1
1
  module Cryptoexchange
2
- VERSION = "0.17.0"
2
+ VERSION = "0.17.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptoexchange
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - TM Lee
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-12-07 00:00:00.000000000 Z
11
+ date: 2017-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler