From c3110eb66464cbd55538149308cf9d349f1a9435 Mon Sep 17 00:00:00 2001 From: Ankit S Date: Thu, 14 Sep 2017 23:54:54 +0530 Subject: [PATCH] big fix --- lib/coinmarketcap.rb | 8 ++++---- lib/coinmarketcap/version.rb | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/coinmarketcap.rb b/lib/coinmarketcap.rb index f65b1ae..1da7f05 100644 --- a/lib/coinmarketcap.rb +++ b/lib/coinmarketcap.rb @@ -35,10 +35,10 @@ def self.get_historical_price(id, start_date, end_date) #20170908 price_bundle = {} each_row = Nokogiri::HTML(row.to_s).css('td') price_bundle[:date] = Date.parse(each_row[0].text) - price_bundle[:open] = each_row[0].text - price_bundle[:high] = each_row[1].text - price_bundle[:low] = each_row[2].text - price_bundle[:close] = each_row[3].text + price_bundle[:open] = each_row[1].text + price_bundle[:high] = each_row[2].text + price_bundle[:low] = each_row[3].text + price_bundle[:close] = each_row[4].text prices << price_bundle rescue => error next diff --git a/lib/coinmarketcap/version.rb b/lib/coinmarketcap/version.rb index 0684da4..e0b6d7b 100644 --- a/lib/coinmarketcap/version.rb +++ b/lib/coinmarketcap/version.rb @@ -1,3 +1,3 @@ module Coinmarketcap - VERSION = "0.2.0" + VERSION = "0.2.1" end