ystock 0.4.2 → 0.4.3

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: 33c02d05a9af3bbdcc221fc308a0441ee0c6de29
4
- data.tar.gz: 747bea41a73333b0a7d93eaec448365caaa84e35
3
+ metadata.gz: 269807d55f98b19de935ecd5f07cd825bed43462
4
+ data.tar.gz: 7e8b9849504faa37b87b4762708da4f4ea8ad8d6
5
5
  SHA512:
6
- metadata.gz: d6ab6cbcf0e6572303c71f2d5befd084e2f32191fb09d060a80a9ef28757a74de8b97db740b869581b3b2f57c1cb18aca3fa945e27d9265b340a7db4c2256656
7
- data.tar.gz: 6efbf15c16c946d43755c0046d99f71ddd632e8bed9a4c0995aa9fc2f5605fe320b9dbc1981c7a69e1b1096698c1aa268b968d577a5590e984edce1f1bbfeb39
6
+ metadata.gz: c629fa37760f2917a44d13c5323aa4fa3c8518ae0f6f7b7ab73038711d2b0e8d08bf35e2e55a82eefdaf4cb51e54879fe54b63c6e31cbde22033935c2973041b
7
+ data.tar.gz: 0227bb5b7c872b9c1bf26550bdc0173178623a7805e7a27bb47968b488a5dabab4715530f2a32ca6f691b7daa1c6b618bc4bc8ddda0e6f59c48ab832de448ead
data/README.markdown CHANGED
@@ -6,10 +6,10 @@ This gem provides you with the latest market data avalable, pulling from both Go
6
6
  ## Install
7
7
  Add the following to your Gemfile
8
8
  ```ruby
9
- gem "ystock", "~> 0.4.1"
9
+ gem "ystock", "~> 0.4.2"
10
10
 
11
11
  # Or simply install it
12
- gem install ystock -v=0.4.1
12
+ gem install ystock -v=0.4.2
13
13
  ```
14
14
 
15
15
  ## Bundle
@@ -83,7 +83,7 @@ daylight_savings
83
83
  Ystock::Yahoo.quote("appl")
84
84
 
85
85
  # Multiple Stock lookup {Array}
86
- Ystock::Yahoo.find(["aapl", "f", "goog"])
86
+ Ystock::Yahoo.quote(["aapl", "f", "goog"])
87
87
  ```
88
88
 
89
89
  #### Available data
data/lib/ystock/yahoo.rb CHANGED
@@ -45,10 +45,10 @@ module Ystock
45
45
  if !stockdata[3].nil?
46
46
  stockdata[3] = stockdata[3].gsub("\r\n", "").gsub('"', '')
47
47
 
48
- output << [{:symbol => stockdata[3],
48
+ output << {:symbol => stockdata[3],
49
49
  :price => stockdata[0],
50
50
  :change => stockdata[1],
51
- :volume => stockdata[2]}]
51
+ :volume => stockdata[2]}
52
52
 
53
53
  end
54
54
  end
data/ystock.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'ystock'
3
- s.version = "0.4.2"
3
+ s.version = "0.4.3"
4
4
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
5
5
  s.authors = ["Greg Winn"]
6
6
  s.date = %q{2012-06-09}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ystock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Winn