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 +8 -8
- data/Gemfile.lock +1 -1
- data/changelog.txt +5 -0
- data/excon.gemspec +2 -2
- data/lib/excon/constants.rb +1 -1
- data/lib/excon/response.rb +6 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjBhZDU0MzQxYTIxMjM5OGMzNWEzOTA0YjBlNWU5OTUyNTQ2MmQ5Ng==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTAzN2ZjNGRhZjMxMWM3NjAxNzMzYjk2ZGZmNzdmMjUwNWY3ZmNmYg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWYxYzdmZTU1YzY0ZTk5MjZhMDQ4OTVhNmVmMzZmYmYyNTc0YWFjOGFjNmRj
|
10
|
+
NDM2ZjllM2MzZmVjYmZmYjdmMGQzOWJkMGVmYTlmNDM0ZGY3OWQ4NTU2NmEz
|
11
|
+
MmU3NTczMWU1ZWExMGQ1ZWJkODYyNTU5YWFkMTc4OWJhZTg3ODc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODFkZWNlNTY3Nzk3MWQxYWY4OTQ3ZmMwZTllMDBmZjBjYjUxZTcxYzlkNGUy
|
14
|
+
ZWVmZTQ2MTlmOGYxNDU0NTYyMGZkOWQ5YTU3NmQwNWI5MjZiMmU0YzVkMDU3
|
15
|
+
YzY4Y2MwMGNjZmMxNzA1OWFhNTQ1Y2YyNWY5ZGEyMzcxNzI1NTU=
|
data/Gemfile.lock
CHANGED
data/changelog.txt
CHANGED
data/excon.gemspec
CHANGED
@@ -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.
|
17
|
-
s.date = '2014-
|
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
|
data/lib/excon/constants.rb
CHANGED
data/lib/excon/response.rb
CHANGED
@@ -90,13 +90,15 @@ module Excon
|
|
90
90
|
elsif remaining = content_length
|
91
91
|
if response_block
|
92
92
|
while remaining > 0
|
93
|
-
|
94
|
-
remaining
|
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
|
-
|
99
|
-
|
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.
|
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-
|
13
|
+
date: 2014-06-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|