nas-yahoo_stock 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -73,4 +73,9 @@ Major changes in the public API. Check the README.rdoc file and individual class
73
73
  * adds cucumber features
74
74
 
75
75
  * 1 changes:
76
- * changes README file to remove git source add for github
76
+ * changes README file to remove git source add for github
77
+
78
+ === 1.0.5 2010-05-07
79
+
80
+ * 1 change:
81
+ * made the case statement in YahooStock::Interface::History on line 86 ruby 1.9.1 compatible
data/README.rdoc CHANGED
@@ -10,6 +10,8 @@ If you don't know the stock / scrip symbol of the company then you can find that
10
10
  The kind of parameters to be passed can be found after initializing the
11
11
  YahooStock::Quote object and passing valid_parameters message to the quote object, example is given below in the USAGE section.
12
12
 
13
+ For details : http://nasir.wordpress.com/2009/10/28/ruby-gem-for-finance-data
14
+
13
15
 
14
16
  == INSTALL:
15
17
 
@@ -124,6 +126,9 @@ symbols.store('filename')
124
126
 
125
127
  history.results.store('filename')
126
128
 
129
+ ==Docs
130
+
131
+ http://rdoc.info/projects/nas/yahoo_stock
127
132
 
128
133
  == TESTS:
129
134
 
@@ -83,9 +83,9 @@ module YahooStock
83
83
  # Generate full uri with the help of uri method of the superclass
84
84
  def uri
85
85
  frequency = case interval
86
- when :daily : 'd'
87
- when :weekly : 'w'
88
- when :monthly : 'm'
86
+ when :daily then 'd'
87
+ when :weekly then 'w'
88
+ when :monthly then 'm'
89
89
  end
90
90
  @uri_parameters = {:a => sprintf("%02d", start_date.month-1), :b => start_date.day,
91
91
  :c => start_date.year, :d => sprintf("%02d", end_date.month-1),
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nas-yahoo_stock
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 0
8
+ - 5
9
+ version: 1.0.5
5
10
  platform: ruby
6
11
  authors:
7
12
  - Nasir Jamal
@@ -9,19 +14,23 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2009-10-23 00:00:00 +01:00
17
+ date: 2010-05-07 00:00:00 +01:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: builder
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 2
29
+ - 1
30
+ - 2
23
31
  version: 2.1.2
24
- version:
32
+ type: :runtime
33
+ version_requirements: *id001
25
34
  description: Yahoo Stock is a Ruby library for extracting information about stocks from yahoo finance
26
35
  email: nas35_in@yahoo.com
27
36
  executables: []
@@ -61,18 +70,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
61
70
  requirements:
62
71
  - - ">="
63
72
  - !ruby/object:Gem::Version
73
+ segments:
74
+ - 1
75
+ - 8
64
76
  version: "1.8"
65
- version:
66
77
  required_rubygems_version: !ruby/object:Gem::Requirement
67
78
  requirements:
68
79
  - - ">="
69
80
  - !ruby/object:Gem::Version
81
+ segments:
82
+ - 0
70
83
  version: "0"
71
- version:
72
84
  requirements: []
73
85
 
74
86
  rubyforge_project:
75
- rubygems_version: 1.3.4
87
+ rubygems_version: 1.3.6
76
88
  signing_key:
77
89
  specification_version: 2
78
90
  summary: Yahoo Stock is a Ruby library for extracting information about stocks from yahoo finance.