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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3362ef0fb1bd825601c2476c06e99d32aa911a4e66b189b1518f40b6246b1ab6
4
- data.tar.gz: a41015ab836dd0e28656427001882a87ba26a424395babb81aecd0e6d07d5fdd
3
+ metadata.gz: f4bd8777ff57783824a685d4e0908529f5d01e9b92a2a6658e23eedb375b3057
4
+ data.tar.gz: 10357b88e548e2ac27c41c3c2a2fec2b50597e2a0f7a4bf4e848b3791ae13cc5
5
5
  SHA512:
6
- metadata.gz: e1563b616697985daed4bb585bfdeaec00f6dfbaa9f377e99b278a9070f5ee32b475136e0f8f7626e4238a0d623a0bdb745ef03a612ec0de4b7f2eb9ef2f4510
7
- data.tar.gz: d061bea14bd722ae77eddc68e81d0c4138a5de1b1b12e6fce22a45bc62391c7bf3d9dd25cf0f876361309b04d9e480a06c9752128103c999a504d01e6ffb78d3
6
+ metadata.gz: 9ff2f5f264f709a85b25914d85fdff972e52fd49473e4c989324ee97de37956510c59546f3e5615a0c88457c88f9b3efb49d96ecb61a505220f0e96ae1845f23
7
+ data.tar.gz: edc21d2c9e319d0688a3806c3d34029e9d98bf77aeee125542d3daeac1ac2b21e4023c7e30fbc1d5d30b8d5e70ea6ee8e7c5630e37157759eb8e2f9086ff6d8a
checksums.yaml.gz.sig CHANGED
Binary file
data/ext/io/event/event.h CHANGED
@@ -22,8 +22,6 @@
22
22
 
23
23
  #include <ruby.h>
24
24
 
25
- #include "extconf.h"
26
-
27
25
  void Init_IO_Event(void);
28
26
 
29
27
  #ifdef HAVE_LIBURING_H
@@ -20,7 +20,7 @@
20
20
 
21
21
  #pragma once
22
22
 
23
- #include "extconf.h"
23
+ #include <ruby.h>
24
24
 
25
25
  #ifdef HAVE_SYS_EVENTFD_H
26
26
  struct IO_Event_Interrupt {
@@ -3,6 +3,7 @@
3
3
 
4
4
  // Provides a simple implementation of unique pointers to elements of the given size.
5
5
 
6
+ #include <ruby.h>
6
7
  #include <stdlib.h>
7
8
  #include <errno.h>
8
9
  #include <assert.h>
@@ -18,7 +18,7 @@
18
18
  // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
19
  // THE SOFTWARE.
20
20
 
21
- #include "kqueue.h"
21
+ #include "epoll.h"
22
22
  #include "selector.h"
23
23
  #include "list.h"
24
24
  #include "array.h"
@@ -1,6 +1,7 @@
1
1
  // Released under the MIT License.
2
2
  // Copyright, 2023, by Samuel Williams.
3
3
 
4
+ #include <ruby.h>
4
5
  #include <stdio.h>
5
6
  #include <assert.h>
6
7
 
@@ -18,6 +18,8 @@
18
18
  // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
19
  // THE SOFTWARE.
20
20
 
21
+ #include <ruby.h>
22
+
21
23
  #include <sys/types.h>
22
24
  #include <sys/syscall.h>
23
25
  #include <unistd.h>
@@ -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! io_uring bugs prevent efficient io_read/io_write hooks.
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) {
@@ -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
@@ -5,6 +5,6 @@
5
5
 
6
6
  class IO
7
7
  module Event
8
- VERSION = "1.3.3"
8
+ VERSION = "1.4.1"
9
9
  end
10
10
  end
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.3.3
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: 2023-10-24 00:00:00.000000000 Z
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.0'
93
+ version: '3.1'
94
94
  required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  requirements:
96
96
  - - ">="
metadata.gz.sig CHANGED
Binary file