io-wait 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/io/wait/wait.c +4 -4
- metadata +2 -3
- data/Gemfile +0 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8b23249d7a91732a3ca99233b9e8e3a312f9eee5c265bc10d48bb2dddc1f12e2
|
|
4
|
+
data.tar.gz: beb457a9e11965bd25c17b3b52cd45ad2bb422e8316aa251cc2eec3bf371e440
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1852c5c78c91a6cf13576311275b0b2b69488018a378511c74027016c6adf4804dcc5d9ef99f0a6012b7aa82b6c0ca9e8a8277132d395785ee62db259ecd09d9
|
|
7
|
+
data.tar.gz: 90ad10e5b5037bb7ee93f6ee317541a59213776669d99c69d49aeef767973f762d908dbdc698a65f6cd88e181e8eed4b8da1c627fa0fc387ef392eb9ae2e0904
|
data/ext/io/wait/wait.c
CHANGED
|
@@ -84,7 +84,7 @@ io_nread(VALUE io)
|
|
|
84
84
|
ioctl_arg n;
|
|
85
85
|
|
|
86
86
|
GetOpenFile(io, fptr);
|
|
87
|
-
|
|
87
|
+
rb_io_check_char_readable(fptr);
|
|
88
88
|
len = rb_io_read_pending(fptr);
|
|
89
89
|
if (len > 0) return INT2FIX(len);
|
|
90
90
|
|
|
@@ -143,7 +143,7 @@ io_ready_p(VALUE io)
|
|
|
143
143
|
#endif
|
|
144
144
|
|
|
145
145
|
GetOpenFile(io, fptr);
|
|
146
|
-
|
|
146
|
+
rb_io_check_char_readable(fptr);
|
|
147
147
|
if (rb_io_read_pending(fptr)) return Qtrue;
|
|
148
148
|
|
|
149
149
|
#ifndef HAVE_RB_IO_WAIT
|
|
@@ -178,7 +178,7 @@ io_wait_readable(int argc, VALUE *argv, VALUE io)
|
|
|
178
178
|
#endif
|
|
179
179
|
|
|
180
180
|
GetOpenFile(io, fptr);
|
|
181
|
-
|
|
181
|
+
rb_io_check_char_readable(fptr);
|
|
182
182
|
|
|
183
183
|
#ifndef HAVE_RB_IO_WAIT
|
|
184
184
|
tv = get_timeout(argc, argv, &timerec);
|
|
@@ -252,7 +252,7 @@ io_wait_priority(int argc, VALUE *argv, VALUE io)
|
|
|
252
252
|
rb_io_t *fptr = NULL;
|
|
253
253
|
|
|
254
254
|
RB_IO_POINTER(io, fptr);
|
|
255
|
-
|
|
255
|
+
rb_io_check_char_readable(fptr);
|
|
256
256
|
|
|
257
257
|
if (rb_io_read_pending(fptr)) return Qtrue;
|
|
258
258
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: io-wait
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nobu Nakada
|
|
8
8
|
- Charles Oliver Nutter
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-11-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Waits until IO is readable or writable without blocking.
|
|
14
14
|
email:
|
|
@@ -22,7 +22,6 @@ files:
|
|
|
22
22
|
- ".document"
|
|
23
23
|
- ".rdoc_options"
|
|
24
24
|
- COPYING
|
|
25
|
-
- Gemfile
|
|
26
25
|
- README.md
|
|
27
26
|
- _doc/io.rb
|
|
28
27
|
- ext/io/wait/depend
|
data/Gemfile
DELETED