penfold 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +0 -1
- data/lib/market.rb +1 -3
- data/lib/penfold.rb +1 -1
- metadata +9 -23
data/Rakefile
CHANGED
data/lib/market.rb
CHANGED
@@ -56,13 +56,11 @@ class Market
|
|
56
56
|
response = @http.request(uri, request)
|
57
57
|
data = response.body
|
58
58
|
|
59
|
-
|
59
|
+
case response["content-encoding"]
|
60
60
|
when /gzip/ then Zlib::GzipReader.new(StringIO.new(data)).read
|
61
61
|
when /deflate/ then Zlib::Inflate.inflate(data)
|
62
62
|
else data
|
63
63
|
end
|
64
|
-
|
65
|
-
out
|
66
64
|
end
|
67
65
|
|
68
66
|
def fetch(ticker, opts = {})
|
data/lib/penfold.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: penfold
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 2
|
10
|
+
version: 1.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Andrew A. Smith
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-01-
|
18
|
+
date: 2011-01-22 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
type: :runtime
|
34
34
|
version_requirements: *id001
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
36
|
+
name: net-http-persistent
|
37
37
|
prerelease: false
|
38
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
@@ -46,24 +46,10 @@ dependencies:
|
|
46
46
|
version: "0"
|
47
47
|
type: :runtime
|
48
48
|
version_requirements: *id002
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: net-http-persistent
|
51
|
-
prerelease: false
|
52
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
53
|
-
none: false
|
54
|
-
requirements:
|
55
|
-
- - ">="
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
hash: 3
|
58
|
-
segments:
|
59
|
-
- 0
|
60
|
-
version: "0"
|
61
|
-
type: :runtime
|
62
|
-
version_requirements: *id003
|
63
49
|
- !ruby/object:Gem::Dependency
|
64
50
|
name: rubyforge
|
65
51
|
prerelease: false
|
66
|
-
requirement: &
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
67
53
|
none: false
|
68
54
|
requirements:
|
69
55
|
- - ">="
|
@@ -75,11 +61,11 @@ dependencies:
|
|
75
61
|
- 4
|
76
62
|
version: 2.0.4
|
77
63
|
type: :development
|
78
|
-
version_requirements: *
|
64
|
+
version_requirements: *id003
|
79
65
|
- !ruby/object:Gem::Dependency
|
80
66
|
name: hoe
|
81
67
|
prerelease: false
|
82
|
-
requirement: &
|
68
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
83
69
|
none: false
|
84
70
|
requirements:
|
85
71
|
- - ">="
|
@@ -91,7 +77,7 @@ dependencies:
|
|
91
77
|
- 0
|
92
78
|
version: 2.7.0
|
93
79
|
type: :development
|
94
|
-
version_requirements: *
|
80
|
+
version_requirements: *id004
|
95
81
|
description: |-
|
96
82
|
Penfold is an assistant for screening potentital and tracking current
|
97
83
|
covered call positions.
|