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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: abf67f77a662c7dcf3f16affda380303e99a125d
4
- data.tar.gz: 376e749846056dfcc3cb9576fa901896b5f26b35
3
+ metadata.gz: 25b669f39a62bf53195629a741a6bfd544e651f2
4
+ data.tar.gz: 641aa74bf6841e64ff04a0d75e517bf959cfaa9f
5
5
  SHA512:
6
- metadata.gz: c11a4b5442ba2b77e121403510112b6174a67f58f95e601b892e897c34cb95d6c8ccd4317c736f21d31791ca6c963de3bc302a3365cb8a6a6e1b02f1db135e61
7
- data.tar.gz: '081c4a84211e725a26aba7843a7406626923bde1ece5680b5a5071fabe514569819c33cffa9efdad328a3925cfc2554a7f3638513bc6ff70b0da61fce968043d'
6
+ metadata.gz: '085d53fad74174fa06a1e12b51dcdb48adf436d8cea2727158cb69370625e61b3ec880ab88743461d382c235129c77702d2b040c73023d3149083f48be08f1a8'
7
+ data.tar.gz: 0bd66782ab8336c0b5ef784777eaacf6f1ead7931cb95888960164ebd1944764122083ea40ab39215b84c6b053fdd483a7c822ca7b19c8dba62124630543ba69
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class CoinCapper
4
- VERSION = '1.2.0'
4
+ VERSION = '1.2.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coincapper
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
  - Kurt Smith