coincapper 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 +4 -4
- data/lib/coincapper.rb +6 -6
- data/lib/coincapper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25b669f39a62bf53195629a741a6bfd544e651f2
|
4
|
+
data.tar.gz: 641aa74bf6841e64ff04a0d75e517bf959cfaa9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '085d53fad74174fa06a1e12b51dcdb48adf436d8cea2727158cb69370625e61b3ec880ab88743461d382c235129c77702d2b040c73023d3149083f48be08f1a8'
|
7
|
+
data.tar.gz: 0bd66782ab8336c0b5ef784777eaacf6f1ead7931cb95888960164ebd1944764122083ea40ab39215b84c6b053fdd483a7c822ca7b19c8dba62124630543ba69
|
data/lib/coincapper.rb
CHANGED
@@ -114,12 +114,12 @@ class CoinCapper
|
|
114
114
|
td = row.css('td')
|
115
115
|
daily = {
|
116
116
|
date: parse_date(td[0].text, format: '%F'),
|
117
|
-
open: td[1].text.to_f,
|
118
|
-
high: td[2].text.to_f,
|
119
|
-
low: td[3].text.to_f,
|
120
|
-
close: td[4].text.to_f,
|
121
|
-
volume: td[5].text.to_f,
|
122
|
-
market_cap: td[6].text.to_f
|
117
|
+
open: td[1].text.delete(',').to_f,
|
118
|
+
high: td[2].text.delete(',').to_f,
|
119
|
+
low: td[3].text.delete(',').to_f,
|
120
|
+
close: td[4].text.delete(',').to_f,
|
121
|
+
volume: td[5].text.delete(',').to_f,
|
122
|
+
market_cap: td[6].text.delete(',').to_f
|
123
123
|
}
|
124
124
|
|
125
125
|
daily[:average] = ((daily[:high] + daily[:low]).to_d / 2).to_f
|
data/lib/coincapper/version.rb
CHANGED