penfold 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +0 -1
  2. data/lib/market.rb +1 -3
  3. data/lib/penfold.rb +1 -1
  4. metadata +9 -23
data/Rakefile CHANGED
@@ -8,7 +8,6 @@ Hoe.spec 'penfold' do |p|
8
8
  p.readme_file = "README.rdoc"
9
9
  p.extra_deps.push *[
10
10
  %w(nokogiri >=0),
11
- %w(penfold >=0),
12
11
  %w(net-http-persistent >=0)
13
12
  ]
14
13
  end
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
- out = case response["content-encoding"]
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
@@ -16,5 +16,5 @@ require 'covered_call_expiry_otm_exit'
16
16
  require 'black_scholes'
17
17
 
18
18
  module Penfold
19
- VERSION = '1.0.1'
19
+ VERSION = '1.0.2'
20
20
  end
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: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
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-20 00:00:00 -08:00
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: penfold
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: &id004 !ruby/object:Gem::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: *id004
64
+ version_requirements: *id003
79
65
  - !ruby/object:Gem::Dependency
80
66
  name: hoe
81
67
  prerelease: false
82
- requirement: &id005 !ruby/object:Gem::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: *id005
80
+ version_requirements: *id004
95
81
  description: |-
96
82
  Penfold is an assistant for screening potentital and tracking current
97
83
  covered call positions.