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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d921bdb8ea062bd0633ce29f929a60027ba339f7c76f04d39863dcdece71c24d
4
- data.tar.gz: d9673b03798fdbe67afdc797423b3038d683822fa7092c460797e7d67dde2185
3
+ metadata.gz: 07406453bacb702787a228be27841c6b0f05b5a490b36831034690162d6dc016
4
+ data.tar.gz: a0ff2baf14c20a12f8e1c32ccc491cbb05878c1d6a43811908014cb0343051b0
5
5
  SHA512:
6
- metadata.gz: 0f2e429edc9541f279484cefd15717f68168e5a84af9a46fd6cb133d43f5d1aa03dff4a6814d4e9f559acb65a152ae275690cbb2961a7967e9fc902b0636177f
7
- data.tar.gz: 5996b697980f716744a97afaa7b13833618fda6a8cdab7fd7ad90cd363a4cf0c5d470f351b50bcb8fced514e51e46348618c5c4972693560806b4454fd1dbbcc
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Excon
4
- VERSION = '0.107.0'
4
+ VERSION = '0.108.0'
5
5
  end
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.107.0
4
+ version: 0.108.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - dpiddy (Dan Peterson)