cryptoexchange 0.15.2 → 0.15.3

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: f1a26929f5c499323c06cc8f2855e6dfd8f5a869
4
- data.tar.gz: 60a0c2198df1a22e9f0b302e1242f99f43cd01ce
3
+ metadata.gz: 176be07e7dffa4e9edfdd3b86e8ab4275c1e85f9
4
+ data.tar.gz: 247c1c0adf1b7bce1f609f1ac95c466f82e286b8
5
5
  SHA512:
6
- metadata.gz: 752a7eeca4f2d9ac7075b2f75f059acc10f048aa01924ad633c2db298b5a4992a7c284344bdf317d19c458a712a737235e2951352b360028fa88dee01449e8b5
7
- data.tar.gz: 34e1abd1f3a6c61e048801e4de0e30d49953374bb3fe1002299cfdee2784545dd178ce1da9a69cb82e9809853dca56be376e95b589636b3bc205f07950cd38df
6
+ metadata.gz: a3c58733f6640d090b761b05a87724931945b39ecf37be1a3bb3d1dbcf0fd8ef19c4c9048a8271af1ed6f858dad9fb86ddabad116cd864b85e4744bafb02f4d3
7
+ data.tar.gz: 3a5b193f456d18adb069af76241289fb9aec3e4ede8b2ad9bf95fb7bbe37d3b9549ce01b1928f4cac6ca1bee1865731205435cb7c3f20c152a11c16953f02617
@@ -6,7 +6,7 @@ module Cryptoexchange::Exchanges
6
6
  class Market < Cryptoexchange::Services::Market
7
7
  class << self
8
8
  def supports_individual_ticker_query?
9
- true
9
+ false
10
10
  end
11
11
  end
12
12
 
@@ -1,7 +1,11 @@
1
1
  class NumericHelper
2
2
  class << self
3
3
  def to_d(number)
4
- number ? BigDecimal.new(number.to_s) : nil
4
+ if number
5
+ number.empty? ? nil : BigDecimal.new(number.to_s)
6
+ else
7
+ nil
8
+ end
5
9
  end
6
10
 
7
11
  def divide(number, divisor)
@@ -1,3 +1,3 @@
1
1
  module Cryptoexchange
2
- VERSION = "0.15.2"
2
+ VERSION = "0.15.3"
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.15.2
4
+ version: 0.15.3
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-11-10 00:00:00.000000000 Z
11
+ date: 2017-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler