excon 0.6.1 → 0.6.2

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.

@@ -1,3 +1,8 @@
1
+ 0.6.2 04/11/11
2
+ ==============
3
+
4
+ * fix block arguments for connection close. thanks ggoodale
5
+
1
6
  0.6.1 04/05/11
2
7
  ==============
3
8
 
@@ -13,8 +13,8 @@ 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.6.1'
17
- s.date = '2011-04-05'
16
+ s.version = '0.6.2'
17
+ s.date = '2011-04-11'
18
18
  s.rubyforge_project = 'excon'
19
19
 
20
20
  ## Make sure your summary is short. The description may be as long
@@ -13,7 +13,7 @@ require 'excon/response'
13
13
 
14
14
  module Excon
15
15
  unless const_defined?(:VERSION)
16
- VERSION = '0.6.1'
16
+ VERSION = '0.6.2'
17
17
  end
18
18
 
19
19
  unless const_defined?(:CHUNK_SIZE)
@@ -24,7 +24,7 @@ module Excon
24
24
 
25
25
  until ((data = socket.readline).chop!).empty?
26
26
  key, value = data.split(': ', 2)
27
- response.headers[key] = value
27
+ response.headers[key] = ([*response.headers[key]] << value).compact.join(', ')
28
28
  if key.casecmp('Content-Length') == 0
29
29
  content_length = value.to_i
30
30
  elsif (key.casecmp('Transfer-Encoding') == 0) && (value.casecmp('chunked') == 0)
@@ -49,7 +49,8 @@ module Excon
49
49
  end
50
50
  socket.read(2)
51
51
  elsif connection_close
52
- yield(socket.read, remaining, content_length)
52
+ remaining = socket.read
53
+ yield(remaining, remaining.length, content_length)
53
54
  else
54
55
  remaining = content_length
55
56
  while remaining > 0
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: excon
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 1
10
- version: 0.6.1
9
+ - 2
10
+ version: 0.6.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - geemus (Wesley Beary)
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-05 00:00:00 -07:00
18
+ date: 2011-04-11 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency