ystock 0.1.5 → 0.2.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.
Files changed (5) hide show
  1. data/Manifest +1 -0
  2. data/Rakefile +1 -1
  3. data/lib/ystock.rb +5 -5
  4. data/ystock.gemspec +1 -1
  5. metadata +1 -1
data/Manifest CHANGED
@@ -3,3 +3,4 @@ README.rdoc
3
3
  Rakefile
4
4
  init.rb
5
5
  lib/ystock.rb
6
+ ystock.gemspec
data/Rakefile CHANGED
@@ -2,7 +2,7 @@
2
2
  require 'rubygems'
3
3
  require 'rake'
4
4
  require 'echoe'
5
- Echoe.new('ystock', '0.1.5') do |p|
5
+ Echoe.new('ystock', '0.2.1') do |p|
6
6
  p.description = "Get stock information from Yahoo Finance"
7
7
  p.url = "http://github.com/gregwinn/ystock"
8
8
  p.author = "Greg Winn"
@@ -21,11 +21,11 @@ module Ystock
21
21
  output = Array.new
22
22
  s = send_request(stock)
23
23
  a = s.chomp.split(",")
24
- output << { :symbol => stock,
25
- :price => a[0],
26
- :change => a[1],
27
- :volume => a[2]
28
- }
24
+ output = {:symbol => stock,
25
+ :price => a[0],
26
+ :change => a[1],
27
+ :volume => a[2]
28
+ }
29
29
  return output
30
30
  end
31
31
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{ystock}
5
- s.version = "0.1.5"
5
+ s.version = "0.2.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Greg Winn"]
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ystock
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.5
5
+ version: 0.2.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Greg Winn