excon 0.107.0 → 0.108.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/excon/socket.rb +3 -3
- data/lib/excon/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07406453bacb702787a228be27841c6b0f05b5a490b36831034690162d6dc016
|
4
|
+
data.tar.gz: a0ff2baf14c20a12f8e1c32ccc491cbb05878c1d6a43811908014cb0343051b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 853991efa85334ac125bae28cd8ff4d0338580d36814dfc3a9c7a25ae7ecbb55e15ac0dc055dad8ad06e7659e95ed82a9680025226fac4c625bb765cb918e655
|
7
|
+
data.tar.gz: 7c0921846b6382aa94a5f24ec6a0a301c7674fe4d3bc957744958b29bc84672c2b086468043ec49fa5074bfdee9abae8ae822a49dbcbf39b782e4bc7adbcc162
|
data/lib/excon/socket.rb
CHANGED
@@ -81,7 +81,7 @@ module Excon
|
|
81
81
|
if idx.nil?
|
82
82
|
result << block
|
83
83
|
else
|
84
|
-
result << block[..idx]
|
84
|
+
result << block[0..idx]
|
85
85
|
rewind_read_buffer(block, idx)
|
86
86
|
break
|
87
87
|
end
|
@@ -210,7 +210,7 @@ module Excon
|
|
210
210
|
|
211
211
|
# Consume any bytes remaining in the read buffer before making a system call.
|
212
212
|
def consume_read_buffer
|
213
|
-
block = @read_buffer[@read_offset
|
213
|
+
block = @read_buffer[@read_offset..-1]
|
214
214
|
|
215
215
|
@read_offset = @read_buffer.length
|
216
216
|
|
@@ -289,7 +289,7 @@ module Excon
|
|
289
289
|
@read_offset = @read_buffer.length
|
290
290
|
@eof = @backend_eof
|
291
291
|
|
292
|
-
@read_buffer[start
|
292
|
+
@read_buffer[start..-1]
|
293
293
|
end
|
294
294
|
end
|
295
295
|
|
data/lib/excon/version.rb
CHANGED