ystock 0.4.11 → 0.4.13

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: 714d1b3574d35826a84b09f3427b76b65548e98d
4
- data.tar.gz: bd38ea7454ec3c31c7bca4f44e177a121f700b0f
3
+ metadata.gz: dd474e2718bb24933c111cd3a482608bfa62df1a
4
+ data.tar.gz: 45ad35ee90730b30424bf93b3d44ff56ad855410
5
5
  SHA512:
6
- metadata.gz: af4c6bad050c6b2deed0e70d43589f300b18083f16833e46823646d293e967c7c87a05d0af5a353d6a63e522f9d84359cfd0f8ba3e5acd6b337f738ba0e36154
7
- data.tar.gz: 063f50b0a3ed2d12a49a50bc87006de5b36225f4c54bb0e80bbdfce55203bbb74b25314d12014e43750eb9200c5a1471f74bf28a1159dbe06e57dcd5060a532b
6
+ metadata.gz: 7ed2a399d41a4907e3cbe49f8466b7d17970046d8a16465691ff5885cb6821e4c63a1b32ba73806d68abe0b40742f515e8f0d9dfe2c613c2ff79f098e4e7288f
7
+ data.tar.gz: 2632235a5775724e03df1a3f546228f82ba4dcad3b62e1b1298c6cbdd94ae220e0e07717201866cb1fc633c222facb6a2d117c1fc97d99327bece1d7afbaff1a
@@ -1,15 +1,15 @@
1
1
  # Ystock
2
2
  This gem provides you with the latest market data avalable, pulling from Yahoo Finance.
3
3
 
4
- [![Gem Version](https://badge.fury.io/rb/ystock.png)](http://badge.fury.io/rb/ystock) [![Build Status](https://travis-ci.org/gregwinn/ystock.png?branch=master)](https://travis-ci.org/gregwinn/ystock) [![Code Climate](https://codeclimate.com/github/gregwinn/ystock.png)](https://codeclimate.com/github/gregwinn/ystock)
4
+ [![Gem Version](https://badge.fury.io/rb/ystock.png)](http://badge.fury.io/rb/ystock) [![Build Status](https://travis-ci.org/gregwinn/ystock.png?branch=master)](https://travis-ci.org/gregwinn/ystock) [![Code Climate](https://codeclimate.com/github/gregwinn/ystock.png)](https://codeclimate.com/github/gregwinn/ystock) [![Coverage Status](https://coveralls.io/repos/gregwinn/ystock/badge.svg?branch=master&service=github)](https://coveralls.io/github/gregwinn/ystock?branch=master)
5
5
 
6
6
  ## Install
7
7
  Add the following to your Gemfile
8
8
  ```ruby
9
- gem "ystock", "~> 0.4.11"
9
+ gem "ystock", "~> 0.4.13"
10
10
 
11
11
  # Or simply install it
12
- gem install ystock -v=0.4.11
12
+ gem install ystock -v=0.4.13
13
13
  ```
14
14
 
15
15
  ## Bundle
@@ -53,6 +53,7 @@ ma200 => 200 day moving average
53
53
  week52_range => 52 week range
54
54
  pe_ratio => P/E Ratio (Realtime)
55
55
  exchange
56
+ float
56
57
  ```
57
58
 
58
59
  ----
@@ -75,4 +76,3 @@ Ruby: 2.2.2
75
76
  ```
76
77
  rspec spec/yahoo_spec.rb
77
78
  ```
78
-
@@ -37,7 +37,8 @@
37
37
  :ma200 => stockdata[11],
38
38
  :week52_range => stockdata[12].gsub("\r\n", "").gsub('"', ''),
39
39
  :pe_ratio => stockdata[13],
40
- :exchange => stockdata[14]
40
+ :exchange => stockdata[14],
41
+ :float => stockdata[15]
41
42
  }
42
43
 
43
44
  end
@@ -47,7 +48,7 @@
47
48
  end
48
49
 
49
50
  def self.send_request(args)
50
- completed_path = @@service_uri + "?f=l1c1vsp2ohgpc8m3m4wr2x&s=" + args
51
+ completed_path = @@service_uri + "?f=l1c1vsp2ohgpc8m3m4wr2xf6&s=" + args
51
52
  uri = URI.parse(completed_path)
52
53
  response = Net::HTTP.start(uri.host, uri.port) do |http|
53
54
  http.get completed_path
@@ -1,8 +1,8 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'ystock'
3
- s.version = "0.4.11"
3
+ s.version = "0.4.13"
4
4
  s.authors = ["Greg Winn"]
5
- s.date = '2015-07-28'
5
+ s.date = '2015-09-16'
6
6
  s.description = %q{Grab stock information from Yahoo}
7
7
  s.email = %q{winn.greg@gmail.com}
8
8
  s.extra_rdoc_files = ["README.markdown", "lib/ystock.rb"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ystock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.11
4
+ version: 0.4.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Winn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-28 00:00:00.000000000 Z
11
+ date: 2015-09-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Grab stock information from Yahoo
14
14
  email: winn.greg@gmail.com