async-io 1.18.3 → 1.18.4

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: 316ad4a29714cbc95c2b264ba6346f7bb4dfbebdd1cb87bdfdcaef30f86e309d
4
- data.tar.gz: 10f97c613207b25398889aacfe0e4898d7399d977f215bfea4f88d87320825aa
3
+ metadata.gz: d9b90003500ec4d5f02d1f8ff39fd03ddd75c05988002ed38518e3f41b310e19
4
+ data.tar.gz: 6f2963634feaa4adb76146cf69ef981e3d5d184e53afe75026041f9ff0bebe8b
5
5
  SHA512:
6
- metadata.gz: 33529f95bf9d54e4249cfa8b2f7588fc8985f336500c975e75d61a767123a164ff4369da1c34d5d0f8946ddcbbd806cd3d62b8d01021f36bbe17d48252249002
7
- data.tar.gz: b6f84aed9ab41abef7abc0ea2a5ce0033625bfeb2fb2f6c0a5e473ec0cdf8e730730fdf6d95157a8e63c55118e471eb980a9da147a753c61a834b364ab378b01
6
+ metadata.gz: 476989a61aaf04cbde81d7b470e536670ac1a86e5309355dc2712915ee2977999bb8ae2618f34d5d9ef6679dfcc7f0c7ec4b480b671e7129472d3e66075a57a5
7
+ data.tar.gz: 2ad64389173a06b27db796bf61c2310348c8c79b9c09e2146cd5ed63ffd9c3bd2d3d12a058f41c531bcfb5918764a92e91077a28a7ec572c3869b45a65aaf793
@@ -89,7 +89,9 @@ module Async
89
89
  split_offset = pattern.bytesize - 1
90
90
 
91
91
  until index = @read_buffer.index(pattern, offset)
92
- offset = [0, @read_buffer.size - split_offset].max
92
+ offset = @read_buffer.size - split_offset
93
+
94
+ offset = 0 if offset < 0
93
95
 
94
96
  return unless fill_read_buffer
95
97
  end
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Async
22
22
  module IO
23
- VERSION = "1.18.3"
23
+ VERSION = "1.18.4"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-io
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.18.3
4
+ version: 1.18.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams