io-event 1.3.3 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/ext/io/event/event.h +0 -2
- data/ext/io/event/interrupt.h +1 -1
- data/ext/io/event/selector/array.h +1 -0
- data/ext/io/event/selector/epoll.c +1 -1
- data/ext/io/event/selector/list.h +1 -0
- data/ext/io/event/selector/pidfd.c +2 -0
- data/ext/io/event/selector/uring.c +1 -1
- data/lib/io/event/support.rb +4 -1
- data/lib/io/event/version.rb +1 -1
- data/readme.md +1 -1
- data.tar.gz.sig +0 -0
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4bd8777ff57783824a685d4e0908529f5d01e9b92a2a6658e23eedb375b3057
|
4
|
+
data.tar.gz: 10357b88e548e2ac27c41c3c2a2fec2b50597e2a0f7a4bf4e848b3791ae13cc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ff2f5f264f709a85b25914d85fdff972e52fd49473e4c989324ee97de37956510c59546f3e5615a0c88457c88f9b3efb49d96ecb61a505220f0e96ae1845f23
|
7
|
+
data.tar.gz: edc21d2c9e319d0688a3806c3d34029e9d98bf77aeee125542d3daeac1ac2b21e4023c7e30fbc1d5d30b8d5e70ea6ee8e7c5630e37157759eb8e2f9086ff6d8a
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/ext/io/event/event.h
CHANGED
data/ext/io/event/interrupt.h
CHANGED
@@ -602,7 +602,7 @@ static inline off_t io_seekable(int descriptor) {
|
|
602
602
|
return -1;
|
603
603
|
}
|
604
604
|
#else
|
605
|
-
#warning Upgrade your kernel to 5.16
|
605
|
+
#warning Upgrade your kernel to 5.16+! io_uring bugs prevent efficient io_read/io_write hooks.
|
606
606
|
static inline off_t io_seekable(int descriptor)
|
607
607
|
{
|
608
608
|
if (lseek(descriptor, 0, SEEK_CUR) == -1) {
|
data/lib/io/event/support.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Released under the MIT License.
|
4
|
-
# Copyright, 2022, by Samuel Williams.
|
4
|
+
# Copyright, 2022-2023, by Samuel Williams.
|
5
5
|
|
6
6
|
class IO
|
7
7
|
module Event
|
@@ -20,6 +20,9 @@ class IO
|
|
20
20
|
|
21
21
|
def self.fiber_scheduler_v3?
|
22
22
|
if fiber_scheduler_v2?
|
23
|
+
return true if RUBY_VERSION >= "3.3"
|
24
|
+
|
25
|
+
# Feature detection if required:
|
23
26
|
begin
|
24
27
|
IO::Buffer.new.slice(0, 0).write(STDOUT)
|
25
28
|
return true
|
data/lib/io/event/version.rb
CHANGED
data/readme.md
CHANGED
@@ -28,4 +28,4 @@ This project uses the [Developer Certificate of Origin](https://developercertifi
|
|
28
28
|
|
29
29
|
### Contributor Covenant
|
30
30
|
|
31
|
-
This project is governed by [Contributor Covenant](https://www.contributor-covenant.org/). All contributors and participants agree to abide by its terms.
|
31
|
+
This project is governed by the [Contributor Covenant](https://www.contributor-covenant.org/). All contributors and participants agree to abide by its terms.
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: io-event
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -42,7 +42,7 @@ cert_chain:
|
|
42
42
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
43
43
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
44
44
|
-----END CERTIFICATE-----
|
45
|
-
date:
|
45
|
+
date: 2024-01-10 00:00:00.000000000 Z
|
46
46
|
dependencies: []
|
47
47
|
description:
|
48
48
|
email:
|
@@ -90,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
90
90
|
requirements:
|
91
91
|
- - ">="
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version: '3.
|
93
|
+
version: '3.1'
|
94
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
95
|
requirements:
|
96
96
|
- - ">="
|
metadata.gz.sig
CHANGED
Binary file
|