GoogleFinance 0.1.0
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 +7 -0
- data/.byebug_history +7 -0
- data/.gitignore +10 -0
- data/.rspec +2 -0
- data/Gemfile +4 -0
- data/GoogleFinance.gemspec +36 -0
- data/LICENSE.txt +21 -0
- data/README.md +41 -0
- data/Rakefile +5 -0
- data/bin/console +13 -0
- data/bin/setup +8 -0
- data/lib/GoogleFinance.rb +7 -0
- data/lib/GoogleFinance/Company.rb +54 -0
- data/lib/GoogleFinance/Financials.rb +109 -0
- data/lib/GoogleFinance/HistoricalPrices.rb +143 -0
- data/lib/GoogleFinance/version.rb +3 -0
- metadata +130 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 82b593dbe5d0a90f4ba0e21df89c9a90e8a1f75a
|
4
|
+
data.tar.gz: cc590ad4618180bf14d709f53db68764b08213b5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d189b973babb39dd879ee5e589f4bb46210643ad9c012e64a92de1518cf01a4b6643eb961d73e73c78dc9042bf2186f8c4f3cdb6791096195bbfc363153f34bb
|
7
|
+
data.tar.gz: 4683e4cb4e6ec04384ea8b959e3b061fd355ba633642a8d61609dc8138aef2cc33838e8044904e7f21caef1ef162017449f8888d3e5bd944275f6845ea97eeec
|
data/.byebug_history
ADDED
data/.gitignore
ADDED
data/.rspec
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'GoogleFinance/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "GoogleFinance"
|
8
|
+
spec.version = GoogleFinance::VERSION
|
9
|
+
spec.authors = ["Max Brunet"]
|
10
|
+
spec.email = ["maxime.brunet@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Simple GEM to Query Google Finance information - draft}
|
13
|
+
spec.description = %q{}
|
14
|
+
spec.homepage = "http://www.google.com"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
21
|
+
else
|
22
|
+
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
|
+
end
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
+
spec.bindir = "exe"
|
27
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
+
spec.require_paths = ["lib"]
|
29
|
+
|
30
|
+
spec.add_development_dependency "bundler", "~> 1.12"
|
31
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
32
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
33
|
+
spec.add_development_dependency "byebug"
|
34
|
+
|
35
|
+
spec.add_dependency 'nokogiri'
|
36
|
+
end
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 TODO: Write your name
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# GoogleFinance
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/GoogleFinance`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'GoogleFinance'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install GoogleFinance
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/GoogleFinance.
|
36
|
+
|
37
|
+
|
38
|
+
## License
|
39
|
+
|
40
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "GoogleFinance"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
@c = GoogleFinance::Company.new "NYSE:ORCL"
|
10
|
+
@c.get_historical_prices("2012-01-01", "2013-01-01")
|
11
|
+
|
12
|
+
require "irb"
|
13
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'nokogiri'
|
3
|
+
require 'open-uri'
|
4
|
+
require 'GoogleFinance/HistoricalPrices'
|
5
|
+
|
6
|
+
module GoogleFinance
|
7
|
+
|
8
|
+
#
|
9
|
+
# Google Company class
|
10
|
+
class Company
|
11
|
+
|
12
|
+
attr_accessor :ticker, :name, :employees, :prices
|
13
|
+
|
14
|
+
#
|
15
|
+
# get the ticker with the initialize
|
16
|
+
def initialize(ticker)
|
17
|
+
@ticker = ticker
|
18
|
+
end
|
19
|
+
|
20
|
+
#
|
21
|
+
# Get company name as in Google Finance
|
22
|
+
def name
|
23
|
+
name_url = "https://google.com/finance?q=" + @ticker
|
24
|
+
page = Nokogiri::HTML(open(name_url))
|
25
|
+
|
26
|
+
# use xpath to get the string, remove the end newline
|
27
|
+
@name = page.xpath("//meta[@itemprop='name']/@content").to_s.gsub("\n", "")
|
28
|
+
@name
|
29
|
+
end
|
30
|
+
|
31
|
+
#
|
32
|
+
# Parse the number of employees
|
33
|
+
def employees
|
34
|
+
return @employees unless @employees.nil?
|
35
|
+
|
36
|
+
name_url = "https://google.com/finance?q=" + @ticker
|
37
|
+
page = Nokogiri::HTML(open(name_url))
|
38
|
+
@employees = page.xpath("//div[@class='sfe-section']/table/tr[6]/td[@class='period']").inner_html.gsub(/\n|,|-/, "").to_i
|
39
|
+
@employees
|
40
|
+
|
41
|
+
end # employees
|
42
|
+
|
43
|
+
#
|
44
|
+
# load the historical prices iwth the current ticker
|
45
|
+
def get_historical_prices(date_start, date_end)
|
46
|
+
|
47
|
+
@prices = GoogleFinance::HistoricalPrices.new(@ticker, date_start, date_end)
|
48
|
+
|
49
|
+
end # get_historical_prices
|
50
|
+
|
51
|
+
|
52
|
+
end # class Company
|
53
|
+
|
54
|
+
end #module
|
@@ -0,0 +1,109 @@
|
|
1
|
+
require 'date'
|
2
|
+
require 'nokogiri'
|
3
|
+
require 'open-uri'
|
4
|
+
require 'byebug'
|
5
|
+
|
6
|
+
module GoogleFinance
|
7
|
+
|
8
|
+
#
|
9
|
+
#
|
10
|
+
class Statement
|
11
|
+
|
12
|
+
attr_accessor :revenue, :cost_of_rev, :sg_and_a, :r_and_d
|
13
|
+
attr_accessor :d_and_a, :interest, :unusual, :others, :net_income, :fiscal_year
|
14
|
+
|
15
|
+
end # Statement
|
16
|
+
|
17
|
+
#
|
18
|
+
#
|
19
|
+
class Financials
|
20
|
+
|
21
|
+
# year positions in the HTML grid
|
22
|
+
YEAR_1 = 2
|
23
|
+
YEAR_2 = 3
|
24
|
+
YEAR_3 = 4
|
25
|
+
YEAR_4 = 5
|
26
|
+
|
27
|
+
# Row positions in the HTML grid
|
28
|
+
REV_ROW = 3
|
29
|
+
COR_ROW = 4
|
30
|
+
SGA_ROW = 6
|
31
|
+
RND_ROW = 7
|
32
|
+
DNA_ROW = 8
|
33
|
+
INT_ROW = 9
|
34
|
+
UNU_ROW = 10
|
35
|
+
OTH_ROW = 11
|
36
|
+
NET_ROW = 25
|
37
|
+
|
38
|
+
|
39
|
+
attr_accessor :years
|
40
|
+
|
41
|
+
#
|
42
|
+
#
|
43
|
+
def initialize(ticker)
|
44
|
+
|
45
|
+
@years = {}
|
46
|
+
|
47
|
+
# build URL in the right format, in pages of 100 day quotes
|
48
|
+
@financial_url = "https://www.google.com/finance?q=#{ticker}&fstype=ii"
|
49
|
+
@page = Nokogiri::HTML(open(@financial_url))
|
50
|
+
|
51
|
+
#
|
52
|
+
yr1 = Statement.new
|
53
|
+
yr2 = Statement.new
|
54
|
+
yr3 = Statement.new
|
55
|
+
yr4 = Statement.new
|
56
|
+
|
57
|
+
# map the value to the correct areas in the financial statement objects
|
58
|
+
yr1.revenue, yr2.revenue, yr3.revenue, yr4.revenue = get_figures(REV_ROW, @page)
|
59
|
+
yr1.cost_of_rev, yr2.cost_of_rev, yr3.cost_of_rev, yr4.cost_of_rev = get_figures(COR_ROW, @page)
|
60
|
+
yr1.sg_and_a, yr2.sg_and_a, yr3.sg_and_a, yr4.sg_and_a = get_figures(SGA_ROW, @page)
|
61
|
+
yr1.r_and_d, yr2.r_and_d, yr3.r_and_d, yr4.r_and_d = get_figures(RND_ROW, @page)
|
62
|
+
yr1.d_and_a, yr2.d_and_a, yr3.d_and_a, yr4.d_and_a = get_figures(DNA_ROW, @page)
|
63
|
+
yr1.interest, yr2.interest, yr3.interest, yr4.interest = get_figures(INT_ROW, @page)
|
64
|
+
yr1.unusual, yr2.unusual, yr3.unusual, yr4.unusual = get_figures(UNU_ROW, @page)
|
65
|
+
yr1.others, yr2.others, yr3.others, yr4.others = get_figures(OTH_ROW, @page)
|
66
|
+
yr1.net_income, yr2.net_income, yr3.net_income, yr4.net_income = get_figures(NET_ROW, @page)
|
67
|
+
|
68
|
+
|
69
|
+
# get the fiscal years as in the statements
|
70
|
+
@years[get_fiscal_date(YEAR_1, @page)] = yr1
|
71
|
+
@years[get_fiscal_date(YEAR_2, @page)] = yr2
|
72
|
+
@years[get_fiscal_date(YEAR_3, @page)] = yr3
|
73
|
+
@years[get_fiscal_date(YEAR_4, @page)] = yr4
|
74
|
+
|
75
|
+
end
|
76
|
+
|
77
|
+
#
|
78
|
+
# Based on reequest row (class constant) will get the figures for the 4 years
|
79
|
+
def get_figures(row, page)
|
80
|
+
|
81
|
+
# get the requested figure for the 4 years that are shown
|
82
|
+
element = page.xpath("//div[@id='incannualdiv']/table[1]/tbody/tr[#{row}]/td[#{YEAR_1}]")
|
83
|
+
figure_yr1 = element.inner_html.gsub(",", "").to_f
|
84
|
+
|
85
|
+
element = page.xpath("//div[@id='incannualdiv']/table[1]/tbody/tr[#{row}]/td[#{YEAR_2}]")
|
86
|
+
figure_yr2 = element.inner_html.gsub(",", "").to_f
|
87
|
+
|
88
|
+
element = page.xpath("//div[@id='incannualdiv']/table[1]/tbody/tr[#{row}]/td[#{YEAR_3}]")
|
89
|
+
figure_yr3 = element.inner_html.gsub(",", "").to_f
|
90
|
+
|
91
|
+
element = page.xpath("//div[@id='incannualdiv']/table[1]/tbody/tr[#{row}]/td[#{YEAR_4}]")
|
92
|
+
figure_yr4 = element.inner_html.gsub(",", "").to_f
|
93
|
+
|
94
|
+
return [figure_yr1, figure_yr2, figure_yr3, figure_yr4]
|
95
|
+
|
96
|
+
end # get_figures
|
97
|
+
|
98
|
+
#
|
99
|
+
# get the end date of the fiscale period associated with the years [1..4]
|
100
|
+
def get_fiscal_date(year, page)
|
101
|
+
|
102
|
+
element = page.xpath("//div[@id='incannualdiv']/table/thead/tr/th[#{year}]")
|
103
|
+
return element.inner_html.gsub(/^.*ending /, "").gsub("\n", "")
|
104
|
+
|
105
|
+
end # get_fiscal_date
|
106
|
+
|
107
|
+
end # class Financials
|
108
|
+
|
109
|
+
end # module GoogleFinance
|
@@ -0,0 +1,143 @@
|
|
1
|
+
require 'date'
|
2
|
+
require 'byebug'
|
3
|
+
|
4
|
+
module GoogleFinance
|
5
|
+
|
6
|
+
class HistoricalPrices
|
7
|
+
|
8
|
+
# xpath positions on which Google Finance returns the prices
|
9
|
+
STOCK_OPEN = 0
|
10
|
+
STOCK_HIGH = 1
|
11
|
+
STOCK_LOW = 2
|
12
|
+
STOCK_CLOSE = 3
|
13
|
+
NUM_COLS = STOCK_CLOSE + 1
|
14
|
+
NUM_ROWS = 100
|
15
|
+
|
16
|
+
attr_reader :stock_perf
|
17
|
+
|
18
|
+
#
|
19
|
+
#
|
20
|
+
def initialize(ticker, date_start, date_end)
|
21
|
+
|
22
|
+
@ticker = ticker
|
23
|
+
@date_start = Date.strptime(date_start, "%Y-%m-%d")
|
24
|
+
@date_end = Date.strptime(date_end, "%Y-%m-%d")
|
25
|
+
@stock_perf = {}
|
26
|
+
|
27
|
+
load_share_prices()
|
28
|
+
|
29
|
+
end # def initialize
|
30
|
+
|
31
|
+
#
|
32
|
+
# Load the historical prices in the internal hash
|
33
|
+
def load_share_prices()
|
34
|
+
|
35
|
+
# build URL in the right format, in pages of 100 day quotes
|
36
|
+
historical_url = @@URL_HIS + @ticker + "&startdate=" + HistoricalPrices.fix_date(@date_start) +
|
37
|
+
"&enddate=" + HistoricalPrices.fix_date(@date_end) + "&num=#{NUM_ROWS}&start=0"
|
38
|
+
page = Nokogiri::HTML(open(historical_url))
|
39
|
+
|
40
|
+
# pagination element is in javascript, 9th script element in the page
|
41
|
+
element = page.search("script")[9]
|
42
|
+
@rows = element.text.scan(/applyPagination\(\n[0-9]+,\n[0-9]*,\n([0-9]+)/)[0].first.to_i
|
43
|
+
num_calls = @rows / NUM_ROWS # we are going to make this many page calls to get all the data
|
44
|
+
|
45
|
+
# first page is already acquired, don't make another call
|
46
|
+
extract_prices_from_page(page)
|
47
|
+
for i in 1..num_calls
|
48
|
+
|
49
|
+
historical_url = @@URL_HIS + @ticker + "&startdate=" + HistoricalPrices.fix_date(@date_start) +
|
50
|
+
"&enddate=" + HistoricalPrices.fix_date(@date_end) + "&num=#{NUM_ROWS}&start=#{i * NUM_ROWS}"
|
51
|
+
page = Nokogiri::HTML(open(historical_url))
|
52
|
+
extract_prices_from_page(page)
|
53
|
+
end
|
54
|
+
|
55
|
+
|
56
|
+
end # load_share_prices
|
57
|
+
|
58
|
+
#
|
59
|
+
#
|
60
|
+
def extract_prices_from_page(page)
|
61
|
+
|
62
|
+
quote_dates = []
|
63
|
+
quote_close = []
|
64
|
+
quote_open = []
|
65
|
+
quote_high = []
|
66
|
+
quote_low = []
|
67
|
+
quote_volume = []
|
68
|
+
|
69
|
+
# extract the dates
|
70
|
+
dates = page.xpath("//td[@class='lm']")
|
71
|
+
dates.each do |date|
|
72
|
+
quote_dates.push(HistoricalPrices.google_date_to_ruby(date.content.gsub("\n","")))
|
73
|
+
end
|
74
|
+
|
75
|
+
# get the stock prices
|
76
|
+
counter = 0
|
77
|
+
figures = page.xpath("//td[@class='rgt']")
|
78
|
+
figures.each do |figure|
|
79
|
+
val = figure.content.gsub("\n", "")
|
80
|
+
if counter.modulo(GoogleFinance::HistoricalPrices::NUM_COLS) == GoogleFinance::HistoricalPrices::STOCK_OPEN then
|
81
|
+
quote_open.push(val)
|
82
|
+
elsif counter.modulo(GoogleFinance::HistoricalPrices::NUM_COLS) == GoogleFinance::HistoricalPrices::STOCK_HIGH then
|
83
|
+
quote_high.push(val)
|
84
|
+
elsif counter.modulo(GoogleFinance::HistoricalPrices::NUM_COLS) == GoogleFinance::HistoricalPrices::STOCK_LOW then
|
85
|
+
quote_low.push(val)
|
86
|
+
elsif counter.modulo(GoogleFinance::HistoricalPrices::NUM_COLS) == GoogleFinance::HistoricalPrices::STOCK_CLOSE then
|
87
|
+
quote_close.push(val)
|
88
|
+
end
|
89
|
+
counter = counter + 1
|
90
|
+
end
|
91
|
+
|
92
|
+
# get the volumnes
|
93
|
+
volumes = page.xpath("//td[@class='rgt rm']")
|
94
|
+
volumes.each do |volume|
|
95
|
+
quote_volume.push(volume.content.gsub("\n",""))
|
96
|
+
end
|
97
|
+
|
98
|
+
# we've extracted everything - build the share price hash
|
99
|
+
for i in 0..(quote_dates.length - 1)
|
100
|
+
@stock_perf[quote_dates[i]] = [quote_open[i], quote_high[i], quote_low[i], quote_close[i], quote_volume[i]]
|
101
|
+
end
|
102
|
+
|
103
|
+
end # extract_prices_from_page
|
104
|
+
|
105
|
+
|
106
|
+
#
|
107
|
+
# Input date should be in dd-mm-yyyy format
|
108
|
+
def self.fix_date(input_date)
|
109
|
+
|
110
|
+
months = %w{Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec}
|
111
|
+
d = Date.strptime(input_date.to_s, "%Y-%m-%d") unless input_date.class == "Date"
|
112
|
+
|
113
|
+
# add '+' between all paramters, and for some reason, the ',' is equal to %2C but won't
|
114
|
+
# escape to it using addresable, whatever, it works this way
|
115
|
+
"#{months[d.mon - 1]}+#{d.day}%2C+#{d.year}"
|
116
|
+
|
117
|
+
end # fix_date
|
118
|
+
|
119
|
+
#
|
120
|
+
# Take the Gooel date format, bring it in to YYYY-mm-dd
|
121
|
+
def self.google_date_to_ruby(input_date)
|
122
|
+
|
123
|
+
dump, mon, day, year = input_date.split(/(...) ([0-9]*), (....)/)
|
124
|
+
|
125
|
+
# change month to numerical stuff
|
126
|
+
months = { "Jan" => 1, "Feb" => 2, "Mar" => 3, "Apr" => 4,
|
127
|
+
"May" => 5, "Jun" => 6, "Jul" => 7, "Aug" => 8,
|
128
|
+
"Sep" => 9, "Oct" => 10,"Nov" => 11, "Dec" => 12}
|
129
|
+
mon = months[mon]
|
130
|
+
mon = "0" + mon.to_s unless mon > 10
|
131
|
+
day = "0" + day.to_s unless day.to_i > 10
|
132
|
+
|
133
|
+
return "#{year}-#{mon}-#{day}"
|
134
|
+
|
135
|
+
end # google_date_to_ruby
|
136
|
+
|
137
|
+
@@URL_HIS = "https://www.google.com/finance/historical?q="
|
138
|
+
|
139
|
+
end # class
|
140
|
+
|
141
|
+
end # module
|
142
|
+
|
143
|
+
|
metadata
ADDED
@@ -0,0 +1,130 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: GoogleFinance
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Max Brunet
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-12-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.12'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.12'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: byebug
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: nokogiri
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
description: ''
|
84
|
+
email:
|
85
|
+
- maxime.brunet@gmail.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- ".byebug_history"
|
91
|
+
- ".gitignore"
|
92
|
+
- ".rspec"
|
93
|
+
- Gemfile
|
94
|
+
- GoogleFinance.gemspec
|
95
|
+
- LICENSE.txt
|
96
|
+
- README.md
|
97
|
+
- Rakefile
|
98
|
+
- bin/console
|
99
|
+
- bin/setup
|
100
|
+
- lib/GoogleFinance.rb
|
101
|
+
- lib/GoogleFinance/Company.rb
|
102
|
+
- lib/GoogleFinance/Financials.rb
|
103
|
+
- lib/GoogleFinance/HistoricalPrices.rb
|
104
|
+
- lib/GoogleFinance/version.rb
|
105
|
+
homepage: http://www.google.com
|
106
|
+
licenses:
|
107
|
+
- MIT
|
108
|
+
metadata:
|
109
|
+
allowed_push_host: https://rubygems.org
|
110
|
+
post_install_message:
|
111
|
+
rdoc_options: []
|
112
|
+
require_paths:
|
113
|
+
- lib
|
114
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
requirements: []
|
125
|
+
rubyforge_project:
|
126
|
+
rubygems_version: 2.5.1
|
127
|
+
signing_key:
|
128
|
+
specification_version: 4
|
129
|
+
summary: Simple GEM to Query Google Finance information - draft
|
130
|
+
test_files: []
|