stock_index 0.8.6 → 0.8.7

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: dc376488f014e79117bbc733f58daf5976e72647
4
- data.tar.gz: dfd6f5ef8da962de8aabced9b4ca132585f50468
3
+ metadata.gz: cfab9b39ccc9ebec601e06715fda111ee1e0db98
4
+ data.tar.gz: 4c2ca0e3f9bb2745255d3114fd7a1e45bda1b879
5
5
  SHA512:
6
- metadata.gz: b2087b710eb5f655edbd8f0e827c6cf97ca7f441cdbf0d3099da3f8d19a7b526ff8c4c1b6c480bb5efd3099ac4ef4d4ac0e0836e033527adf05679290d4c9e59
7
- data.tar.gz: 484344af8358015b685721043abb0228418cfe88c1fabd9fad7ea137263107a5fe55116619485df1da5376b273ecc8ac087739406d7eb3b94177c55f40b0f37f
6
+ metadata.gz: 756bbd553b18cdfd2d1de5d67f183119fd63e3409497e9d2c4c2c53388b089c934136609f2136608ddccb09a2967e0002e21e695b20a1dbc131274e680360b77
7
+ data.tar.gz: 6849e7266f57ada31cb126a522709f1a38c3938892f14c91f5223b6ec0d5a4cca83b3a933bf96657f59c39422fbfbee99b7d534bc545c6cc2914fc7e306075fa
@@ -1,5 +1,10 @@
1
1
  # Change Log
2
2
 
3
+ ## [0.8.7] - 2015-11-39
4
+
5
+ ### Fixed
6
+ - [NIKKEI 225 scraper has stopped working](https://github.com/javiervidal/stock_index/issues/4)
7
+
3
8
  ## [0.8.6] - 2015-11-27
4
9
 
5
10
  ### Fixed
data/README.md CHANGED
@@ -103,7 +103,7 @@ Share's name, and bbgid are cached using [PStore](http://ruby-doc.org/stdlib-1.9
103
103
 
104
104
  ## Code Status
105
105
 
106
- [![Gem Version](http://img.shields.io/badge/gem-v0.8.6-blue.svg)](https://rubygems.org/gems/stock_index)
106
+ [![Gem Version](http://img.shields.io/badge/gem-v0.8.7-blue.svg)](https://rubygems.org/gems/stock_index)
107
107
  [![Build Status](https://travis-ci.org/javiervidal/stock_index.svg?branch=master)](https://travis-ci.org/javiervidal/stock_index)
108
108
  [![Coverage Status](https://coveralls.io/repos/javiervidal/stock_index/badge.png?branch=master)](https://coveralls.io/r/javiervidal/stock_index?branch=master)
109
109
  [![Code Climate](https://codeclimate.com/github/javiervidal/stock_index/badges/gpa.svg)](https://codeclimate.com/github/javiervidal/stock_index)
Binary file
@@ -3,14 +3,14 @@ class NikkeiScraper < StockIndex::BaseScraper
3
3
  def scrape
4
4
  doc = Nokogiri::HTML(open(StockIndex::INDICES['^N225'][:url]))
5
5
  @wikipedia_hash = parse_wikipedia_page(Nokogiri::HTML(open(StockIndex::INDICES['^N225'][:wikipedia_url])))
6
- parse_rows doc.css('table.cmn-table tr.cmn-charcter')
6
+ parse_rows doc.css('div.row.component-list')
7
7
  end
8
8
 
9
9
  private
10
10
 
11
11
  def parse_rows(rows)
12
12
  rows.inject([]) do |array, tr|
13
- symbol = tr.css('td')[0].text
13
+ symbol = tr.css('div').text
14
14
  market = 'XJPX'
15
15
  if symbol && market
16
16
  component = StockIndex::Component.new(symbol, market, @wikipedia_hash[symbol], :jp)
@@ -32,4 +32,4 @@ class NikkeiScraper < StockIndex::BaseScraper
32
32
  end
33
33
  end
34
34
 
35
- end
35
+ end
@@ -1,3 +1,3 @@
1
1
  class StockIndex
2
- VERSION = "0.8.6"
2
+ VERSION = "0.8.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stock_index
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.6
4
+ version: 0.8.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Vidal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-27 00:00:00.000000000 Z
11
+ date: 2015-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler