hatetepe 0.5.0.pre.3 → 0.5.0

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.
@@ -95,12 +95,15 @@ module Hatetepe::Client
95
95
  # The request will +#fail+ with a +nil+ response if the connection was
96
96
  # closed for whatever reason.
97
97
  #
98
+ # TODO find out if there are more cases where the response body
99
+ # should automatically be closed.
100
+ #
98
101
  # @api public
99
102
  def <<(request)
100
103
  Fiber.new do
101
104
  response = @app.call(request)
102
105
 
103
- if response && request.verb == "HEAD"
106
+ if response && (request.verb == "HEAD" || response.status == 204)
104
107
  response.body.close_write
105
108
  end
106
109
 
@@ -1,3 +1,3 @@
1
1
  module Hatetepe
2
- VERSION = "0.5.0.pre.3"
2
+ VERSION = "0.5.0"
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hatetepe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0.pre.3
5
- prerelease: 6
4
+ version: 0.5.0
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Lars Gierth
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-13 00:00:00.000000000 Z
12
+ date: 2012-08-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: http_parser.rb
@@ -200,9 +200,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
200
200
  required_rubygems_version: !ruby/object:Gem::Requirement
201
201
  none: false
202
202
  requirements:
203
- - - ! '>'
203
+ - - ! '>='
204
204
  - !ruby/object:Gem::Version
205
- version: 1.3.1
205
+ version: '0'
206
206
  requirements: []
207
207
  rubyforge_project:
208
208
  rubygems_version: 1.8.24