excon 0.0.23 → 0.0.24

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of excon might be problematic. Click here for more details.

data/excon.gemspec CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'excon'
16
- s.version = '0.0.23'
16
+ s.version = '0.0.24'
17
17
  s.date = '2010-05-10'
18
18
  s.rubyforge_project = 'excon'
19
19
 
data/lib/excon.rb CHANGED
@@ -15,7 +15,7 @@ require 'excon/response'
15
15
  module Excon
16
16
 
17
17
  unless const_defined?(:VERSION)
18
- VERSION = '0.0.23'
18
+ VERSION = '0.0.24'
19
19
  end
20
20
 
21
21
  CHUNK_SIZE = 1048576 # 1 megabyte
@@ -23,7 +23,7 @@ module Excon
23
23
  unless params[:method] == 'HEAD'
24
24
  if !block || (params[:expects] && ![*params[:expects]].include?(response.status))
25
25
  response.body = ''
26
- lambda { |chunk| response.body << chunk }
26
+ block = lambda { |chunk| response.body << chunk }
27
27
  end
28
28
 
29
29
  if response.headers['Connection'] == 'close'
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 23
9
- version: 0.0.23
8
+ - 24
9
+ version: 0.0.24
10
10
  platform: ruby
11
11
  authors:
12
12
  - geemus (Wesley Beary)