async 2.1.0 → 2.2.1

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: 130279c953352582553baf6b9dc32293157c02f8b9d276c0a12c5e693196a91f
4
- data.tar.gz: bee93186f33f084170e34eb7865a21200b2bd2d023545e27b2e63123c9db9642
3
+ metadata.gz: 74fa09c162a2702195d38adcb921dec7c9b53563a81b5d7cc117bf3a3f1402f3
4
+ data.tar.gz: 37e7fae58da9e1a0ca928a1c9f34b376da95b8cdfcb89949fb9200dfb7253351
5
5
  SHA512:
6
- metadata.gz: 13ce1034c5e0f64414a8cbefe99f429ab27572427e912c9d3d768fc8db5f18bf102c9ab3c9417c5b497a3e472f57309a2d1f034b8b220f5bee655373b0bf2c84
7
- data.tar.gz: 4fab2993acc867b6b4b6ad40021ddf01802cfbab3d56760dca122c1bae38a864cc345ed27c60efc59394c57e9e4be967bd1611c709988b5fbdc55624ea5ab13a
6
+ metadata.gz: 9b17a23c9c0d7affeb9c75d8c1058fb0c25d2c8ebac6568ebf5834885f6379dc799c3bc9f92699441cc8cfd387cadbce993c52ca5b576fcedc0e1d68a4fd9c21
7
+ data.tar.gz: 80a3a72ab5e9c49af4018a34564c7a7d72314dd9c640f306a4c7eab8b99fa9682a55135eb0b67614c370a4526908832b91cf94436089f4b48670a12d8b4a2896
checksums.yaml.gz.sig CHANGED
Binary file
@@ -160,13 +160,13 @@ module Async
160
160
  timer&.cancel
161
161
  end
162
162
 
163
- if IO.const_defined?(:Buffer)
164
- def io_read(io, buffer, length)
165
- @selector.io_read(Fiber.current, io, buffer, length)
163
+ if ::IO::Event::Support.buffer?
164
+ def io_read(io, buffer, length, offset = 0)
165
+ @selector.io_read(Fiber.current, io, buffer, length, offset)
166
166
  end
167
167
 
168
- def io_write(io, buffer, length)
169
- @selector.io_write(Fiber.current, io, buffer, length)
168
+ def io_write(io, buffer, length, offset = 0)
169
+ @selector.io_write(Fiber.current, io, buffer, length, offset)
170
170
  end
171
171
  end
172
172
 
data/lib/async/version.rb CHANGED
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2017-2022, by Samuel Williams.
5
5
 
6
6
  module Async
7
- VERSION = "2.1.0"
7
+ VERSION = "2.2.1"
8
8
  end
data/readme.md CHANGED
@@ -40,7 +40,7 @@ We welcome contributions to this project.
40
40
 
41
41
  - [ciri](https://github.com/ciri-ethereum/ciri) — An Ethereum implementation written in Ruby.
42
42
  - [falcon](https://github.com/socketry/falcon) — A rack compatible server built on top of `async-http`.
43
- - [rubydns](https://github.com/ioquatix/rubydns) — A easy to use Ruby DNS server.
43
+ - [rubydns](https://github.com/ioquatix/rubydns) — An easy to use Ruby DNS server.
44
44
  - [slack-ruby-bot](https://github.com/slack-ruby/slack-ruby-bot) — A client for making slack bots.
45
45
 
46
46
  ## License
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -54,7 +54,7 @@ cert_chain:
54
54
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
55
55
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
56
56
  -----END CERTIFICATE-----
57
- date: 2022-09-05 00:00:00.000000000 Z
57
+ date: 2022-10-13 00:00:00.000000000 Z
58
58
  dependencies:
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: console
@@ -76,14 +76,14 @@ dependencies:
76
76
  requirements:
77
77
  - - "~>"
78
78
  - !ruby/object:Gem::Version
79
- version: 1.0.0
79
+ version: 1.1.0
80
80
  type: :runtime
81
81
  prerelease: false
82
82
  version_requirements: !ruby/object:Gem::Requirement
83
83
  requirements:
84
84
  - - "~>"
85
85
  - !ruby/object:Gem::Version
86
- version: 1.0.0
86
+ version: 1.1.0
87
87
  - !ruby/object:Gem::Dependency
88
88
  name: timers
89
89
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file