excon 0.34.0 → 0.35.0

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.

checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- N2M4Mjg5MGIyMmMzZmU0MzU3MWQ3MzkwMWMxNzk1NWI3N2NjYmEyNQ==
4
+ YjBhZDU0MzQxYTIxMjM5OGMzNWEzOTA0YjBlNWU5OTUyNTQ2MmQ5Ng==
5
5
  data.tar.gz: !binary |-
6
- YmIwZDllZDA5YWE5YTc4OTgyNTA5MDJhZmU3ZGVmYjBkNTFkYTNkZA==
6
+ NTAzN2ZjNGRhZjMxMWM3NjAxNzMzYjk2ZGZmNzdmMjUwNWY3ZmNmYg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzZmZDc4ZDFhMjRkM2IxNWRmMzM3ZGFlNWQ3YWFiYmEzM2UwOWUwYTQzNjU0
10
- NGU1NzllYzNkNDBhYjE3ZWFlMGMwNTBjNDI2NDBlZmYwYzAzMjMxYTBiNzlh
11
- YTU0MjU4OGJmYzc0MjNmYmVhMzVkNzZiN2NiZTI5ZWE2Y2M5MDc=
9
+ MWYxYzdmZTU1YzY0ZTk5MjZhMDQ4OTVhNmVmMzZmYmYyNTc0YWFjOGFjNmRj
10
+ NDM2ZjllM2MzZmVjYmZmYjdmMGQzOWJkMGVmYTlmNDM0ZGY3OWQ4NTU2NmEz
11
+ MmU3NTczMWU1ZWExMGQ1ZWJkODYyNTU5YWFkMTc4OWJhZTg3ODc=
12
12
  data.tar.gz: !binary |-
13
- NWU4NGRiM2RjMmY5OGVlYWQzMjFjY2Q3OThhMjBjY2UwNmY5MDllNTk5NGEx
14
- MTYzNmU4Y2MzNDBjNzA4ZWU4M2QyOTM2YTc3YTBmZDAwMDllNDc2MWQ0ODMz
15
- OWY0MTExMTIyOWU5ZDk5ZTI1OWI4MmEzNTZjNTA0ODVlOWJkMTA=
13
+ ODFkZWNlNTY3Nzk3MWQxYWY4OTQ3ZmMwZTllMDBmZjBjYjUxZTcxYzlkNGUy
14
+ ZWVmZTQ2MTlmOGYxNDU0NTYyMGZkOWQ5YTU3NmQwNWI5MjZiMmU0YzVkMDU3
15
+ YzY4Y2MwMGNjZmMxNzA1OWFhNTQ1Y2YyNWY5ZGEyMzcxNzI1NTU=
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- excon (0.34.0)
4
+ excon (0.35.0)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -1,3 +1,8 @@
1
+ 0.34.0 06/03/2014
2
+ =================
3
+
4
+ fix for responses with content_length
5
+
1
6
  0.34.0 05/29/2014
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.34.0'
17
- s.date = '2014-05-29'
16
+ s.version = '0.35.0'
17
+ s.date = '2014-06-03'
18
18
  s.rubyforge_project = 'excon'
19
19
 
20
20
  ## Make sure your summary is short. The description may be as long
@@ -1,6 +1,6 @@
1
1
  module Excon
2
2
 
3
- VERSION = '0.34.0'
3
+ VERSION = '0.35.0'
4
4
 
5
5
  CR_NL = "\r\n"
6
6
 
@@ -90,13 +90,15 @@ module Excon
90
90
  elsif remaining = content_length
91
91
  if response_block
92
92
  while remaining > 0
93
- response_block.call(socket.read([datum[:chunk_size], remaining].min), [remaining - datum[:chunk_size], 0].max, content_length)
94
- remaining -= datum[:chunk_size]
93
+ chunk = socket.read([datum[:chunk_size], remaining].min)
94
+ response_block.call(chunk, [remaining - chunk.length, 0].max, content_length)
95
+ remaining -= chunk.length
95
96
  end
96
97
  else
97
98
  while remaining > 0
98
- datum[:response][:body] << socket.read([datum[:chunk_size], remaining].min)
99
- remaining -= datum[:chunk_size]
99
+ chunk = socket.read([datum[:chunk_size], remaining].min)
100
+ datum[:response][:body] << chunk
101
+ remaining -= chunk.length
100
102
  end
101
103
  end
102
104
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: excon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.34.0
4
+ version: 0.35.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - dpiddy (Dan Peterson)
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-05-29 00:00:00.000000000 Z
13
+ date: 2014-06-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport