stocktracker 0.0.1 → 0.0.2
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.
- data/.gitignore +1 -0
- data/lib/stocktracker/version.rb +1 -1
- data/spec/stocktracker_spec.rb +22 -3
- data/stocktracker.gemspec +1 -1
- metadata +8 -13
- data/.idea/encodings.xml +0 -5
- data/.idea/misc.xml +0 -11
- data/.idea/modules.xml +0 -9
- data/.idea/stocktracker.iml +0 -9
- data/.idea/vcs.xml +0 -7
data/.gitignore
CHANGED
data/lib/stocktracker/version.rb
CHANGED
data/spec/stocktracker_spec.rb
CHANGED
@@ -3,10 +3,29 @@ require 'spec_helper'
|
|
3
3
|
describe StockTracker do
|
4
4
|
context :quote do
|
5
5
|
context :current do
|
6
|
+
before(:each) do
|
7
|
+
@quote = StockTracker::CurrentQuote.new("GOOG")
|
8
|
+
end
|
9
|
+
it "will return a current quote for Google" do
|
10
|
+
@quote.results.should be
|
11
|
+
@quote.results["symbol"].should == "GOOG"
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'will have a close greater than 0' do
|
15
|
+
@quote.results["lastTrade"].should > 0
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
context :historical do
|
20
|
+
before(:each) do
|
21
|
+
@quote = StockTracker::HistoricalQuote.new("GOOG", Date.parse('01/10/2010'), Date.parse('01/10/2010'))
|
22
|
+
end
|
6
23
|
it "will return a current quote for Google" do
|
7
|
-
|
8
|
-
|
9
|
-
|
24
|
+
@quote.results.should be
|
25
|
+
end
|
26
|
+
|
27
|
+
it 'will have a close greater than 0' do
|
28
|
+
@quote.results["Close"].should > 0
|
10
29
|
end
|
11
30
|
end
|
12
31
|
end
|
data/stocktracker.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.version = Stocktracker::VERSION
|
8
8
|
s.authors = ["Aaron Worsham"]
|
9
9
|
s.email = ["aaronworsham@gmail.com"]
|
10
|
-
s.homepage = ""
|
10
|
+
s.homepage = "https://github.com/aaronworsham/stocktracker"
|
11
11
|
s.summary = %q{Returns Yahoo Finance Quotes for stock symbols}
|
12
12
|
s.description = %q{Returns Yahoo Finance Quotes for stock symbols}
|
13
13
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stocktracker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-10-16 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
|
-
requirement: &
|
16
|
+
requirement: &2158448960 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2158448960
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rspec
|
27
|
-
requirement: &
|
27
|
+
requirement: &2158448540 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2158448540
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: yahoofinance
|
38
|
-
requirement: &
|
38
|
+
requirement: &2158448120 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2158448120
|
47
47
|
description: Returns Yahoo Finance Quotes for stock symbols
|
48
48
|
email:
|
49
49
|
- aaronworsham@gmail.com
|
@@ -52,11 +52,6 @@ extensions: []
|
|
52
52
|
extra_rdoc_files: []
|
53
53
|
files:
|
54
54
|
- .gitignore
|
55
|
-
- .idea/encodings.xml
|
56
|
-
- .idea/misc.xml
|
57
|
-
- .idea/modules.xml
|
58
|
-
- .idea/stocktracker.iml
|
59
|
-
- .idea/vcs.xml
|
60
55
|
- Gemfile
|
61
56
|
- Rakefile
|
62
57
|
- lib/stocktracker.rb
|
@@ -65,7 +60,7 @@ files:
|
|
65
60
|
- spec/spec_helper.rb
|
66
61
|
- spec/stocktracker_spec.rb
|
67
62
|
- stocktracker.gemspec
|
68
|
-
homepage:
|
63
|
+
homepage: https://github.com/aaronworsham/stocktracker
|
69
64
|
licenses: []
|
70
65
|
post_install_message:
|
71
66
|
rdoc_options: []
|
data/.idea/encodings.xml
DELETED
data/.idea/misc.xml
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<project version="4">
|
3
|
-
<component name="DependencyValidationManager">
|
4
|
-
<option name="SKIP_IMPORT_STATEMENTS" value="false" />
|
5
|
-
</component>
|
6
|
-
<component name="ProjectResources">
|
7
|
-
<default-html-doctype>http://www.w3.org/1999/xhtml</default-html-doctype>
|
8
|
-
</component>
|
9
|
-
<component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-1.9.2-head [cb]" project-jdk-type="RUBY_SDK" />
|
10
|
-
</project>
|
11
|
-
|
data/.idea/modules.xml
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<project version="4">
|
3
|
-
<component name="ProjectModuleManager">
|
4
|
-
<modules>
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/.idea/stocktracker.iml" filepath="$PROJECT_DIR$/.idea/stocktracker.iml" />
|
6
|
-
</modules>
|
7
|
-
</component>
|
8
|
-
</project>
|
9
|
-
|
data/.idea/stocktracker.iml
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<module type="RUBY_MODULE" version="4">
|
3
|
-
<component name="NewModuleRootManager">
|
4
|
-
<content url="file://$MODULE_DIR$" />
|
5
|
-
<orderEntry type="inheritedJdk" />
|
6
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
7
|
-
</component>
|
8
|
-
</module>
|
9
|
-
|