cryptocoin_fanboi 0.4.2 → 0.4.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: 98f848c11cba71805e0d72a61304caee942fb420
4
- data.tar.gz: cc1a5bbfaa5c0c4db2949e0c28a34172bad45fe3
3
+ metadata.gz: 94c838cdf13664783e64bec8c76ed8abc8225045
4
+ data.tar.gz: 55a28c21a5b1ed2aba3332275b0b985a4ea5516b
5
5
  SHA512:
6
- metadata.gz: 9556ed28d1166b3cc49b79b1d7e0d0e102be886734c7330a2498941fca1454b957ff3681ff57e8c56d1b70b5605c0b5a04f0215e68f11d0b033b0438e625cc10
7
- data.tar.gz: f7294af6c79c8635c46627ef7ed4630a159171ff7043b406798b6c73052734cce6b61cfcc0f8c7a073d84e374d3e2210512abdeeb21b2c1ce3a3b944c06dbb23
6
+ metadata.gz: 51e9a7dd69db19795abd339f3a6660f7c8baf70b5baf8bcea1b20b8e1665c35bacf80fb4e1fdb3254262426de441596a691d5483a19521b5a6d4f3c1e8eb8920
7
+ data.tar.gz: 696ab312d56b6cafa8d8fbf7754f428b29dd1c2691dc48f442fceda6a90bd0d17f0f124080db5dff1196dd5f5cf03f3766ebca7300ee749fa232aa177e714d5c
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -173,7 +173,8 @@ class CryptocoinFanboi
173
173
 
174
174
  a = Coinmarketcap.get_historical_price(coin, date, date)
175
175
  puts 'a: ' + a.inspect if @debug
176
- r = a.first[:close]
176
+
177
+ r = a.any? ? a.first[:close] : self.coin(coin).price_usd.to_f
177
178
 
178
179
  @history_prices[coin] ||= {}
179
180
  @history_prices[coin][date] = r
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptocoin_fanboi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -30,7 +30,7 @@ cert_chain:
30
30
  NgmsFfw10oaD3PWQ7UPxWJP14au2LUL+NGHkLrGHOMPphsZhYeXKugGO8NfcKukq
31
31
  fps=
32
32
  -----END CERTIFICATE-----
33
- date: 2018-03-08 00:00:00.000000000 Z
33
+ date: 2018-03-09 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: colored
metadata.gz.sig CHANGED
Binary file