stock_index 0.8.0 → 0.8.1

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: 59e50b528179c1a7cb7ec0fc076425b89470d55f
4
- data.tar.gz: 27d06ee3c996ce7965c4a92109113bef75436882
3
+ metadata.gz: b0db1b7bab310495643f57159fe0135dad1ad6d7
4
+ data.tar.gz: c8aa685dab13254d701afe5fc184aa15af04faff
5
5
  SHA512:
6
- metadata.gz: 49cb96dd848a9b13602883ec844c6baf3e771d6a7d9e7675646b1e282513c60457ba404b2de4fa86a0fcf147232b2b69741f2f3b6f534aa923843e7f5ce109b9
7
- data.tar.gz: 00b78d9c9a7636446cbd3df9f5587b6db194f0bde6924f1b1ad9b2ef1f9d08568408b324da28c2eae4337590d90ccba45e0e68e7efcb54cfa15347256bec348c
6
+ metadata.gz: 843ddc701caad0366add79236d3542a6bf02c5c16bdb003df5d9d53c43e92eb5d55e3239d4f5c8d5600e819278b7c23800d11c197101eba9dcb0c69fca932d83
7
+ data.tar.gz: 51ab457b54f14354e0a1edd2a23ea18313eaa37b178e2c65f3f350781a669ab0d0aa3d47f274cfa84feae8abd91606aba95817a713d0ba1ffe1354f7ec2ab6b0
data/README.md CHANGED
@@ -21,15 +21,27 @@ Or install it yourself as:
21
21
 
22
22
  There is no a standard for indices symbols, so this gem uses Yahoo Finance symbols.
23
23
 
24
- | Symbol | Index Name | Reference page |
24
+ | Symbol | Index Name | Reference pages |
25
25
  | ------ | ---------- | -------------- |
26
26
  | ^DJI | DOW JONES INDUSTRIAL AVERAGE | http://en.wikipedia.org/wiki/Dow_Jones_Industrial_Average |
27
27
  | ^GSPC | S&P 500 | http://en.wikipedia.org/wiki/List_of_S%26P_500_companies |
28
28
  | ^NDX | NASDAQ 100 | https://indexes.nasdaqomx.com/Index/Weighting/NDX<br/>http://en.wikipedia.org/wiki/NASDAQ-100 |
29
29
  | ^N225 | NIKKEI 225 | http://indexes.nikkei.co.jp/en/nkave/index/component?idx=nk225<br/>http://en.wikipedia.org/wiki/Nikkei_225 |
30
- | ^STOXX50E | EURO STOXX 50 | http://www.stoxx.com/indices/index_information.html?symbol=SX5E |
31
30
  | ^FTSE | FTSE 100 | http://www.londonstockexchange.com/exchange/prices-and-markets/stocks/indices/summary/summary-indices-constituents.html?index=UKX<br/>http://en.wikipedia.org/wiki/FTSE_100_Index#Current_constituents |
32
31
 
32
+ ## Roadmap
33
+
34
+ These indices will be supported in the future:
35
+
36
+ | Symbol | Index Name | Reference pages |
37
+ | ------ | ---------- | -------------- |
38
+ | ^STOXX50E | EURO STOXX 50 | http://www.stoxx.com/indices/index_information.html?symbol=SX5E |
39
+ | ^GDAXI | DAX | http://en.wikipedia.org/wiki/DAX |
40
+ | ^FCHI | CAC 40 | http://en.wikipedia.org/wiki/CAC_40 |
41
+ | FTSEMIB.MI | FTSE MIB | http://en.wikipedia.org/wiki/FTSE_MIB |
42
+ | ^IBEX | IBEX 35 | http://en.wikipedia.org/wiki/IBEX_35 |
43
+ | ^AEX | AEX | http://en.wikipedia.org/wiki/AEX_index |
44
+
33
45
  ## Usage
34
46
 
35
47
  ```ruby
@@ -53,7 +65,7 @@ This method returns an array of components. Each component is a Hash with this f
53
65
  | market | Market symbol according to [ISO 10383](https://github.com/javiervidal/mic) |
54
66
  | symbol | Component symbol |
55
67
  | name | Component name according to [Bloomberg Open Symbology](http://bsym.bloomberg.com/sym/) |
56
- | wikipedia | Link to the wikipedia page of the component |
68
+ | wikipedia | Link to the wikipedia page of the component, when possible. |
57
69
  | cik | Component CIK (Central Index Key) assigned to the company by the SEC. Only for US components. |
58
70
  | bbgid | BBGID (Bloomberg Security Identifier) according to [Bloomberg Open Symbology](http://bsym.bloomberg.com/sym/)|
59
71
 
@@ -76,6 +88,7 @@ The name, cik, and bbgid are cached using [PStore](http://ruby-doc.org/stdlib-1.
76
88
  [![Gem Version](http://img.shields.io/badge/gem-v0.8.0-blue.svg)](https://rubygems.org/gems/stock_index)
77
89
  [![Build Status](https://travis-ci.org/javiervidal/stock_index.svg?branch=master)](https://travis-ci.org/javiervidal/stock_index)
78
90
  [![Coverage Status](https://coveralls.io/repos/javiervidal/stock_index/badge.png?branch=master)](https://coveralls.io/r/javiervidal/stock_index?branch=master)
91
+ [![Code Climate](https://codeclimate.com/github/javiervidal/stock_index/badges/gpa.svg)](https://codeclimate.com/github/javiervidal/stock_index)
79
92
 
80
93
  ## Copyright
81
94
 
@@ -32,7 +32,7 @@ class StockIndex
32
32
  end
33
33
 
34
34
  def cache_file
35
- "cache/#{@market}.pstore"
35
+ File.expand_path("../../cache/#{@market}.pstore", File.dirname(__FILE__))
36
36
  end
37
37
 
38
38
  def attributes_lookup
@@ -1,3 +1,3 @@
1
1
  class StockIndex
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
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.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Vidal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-11 00:00:00.000000000 Z
11
+ date: 2014-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler