io-console 0.5.9 → 0.5.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/io/console/console.c +7 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a402e8ba6c8522b3b423e828a4575da34a084c97a5e6d27cbed65e35695a9c9e
|
4
|
+
data.tar.gz: 50fa0e88472bcdd8f3242c3957c8ed7c39d5f6c6f41f3d7db48a0eaf73cc64f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b190b4fb0d1dedaccc0613754d8c656f65dfa3766ac04624d0a0fd1943339a61aee118beed8be1274de764bfc8404697a303da30300377381d521fbc2d77acf
|
7
|
+
data.tar.gz: 70a62bd336c53ccd8ae25bacc7bb5a8d7a26d0d5eabcd26ee9541137f8d86345159f134d5f04bde13be0486d057ab7bdbbf2a3667d88b92b6350b6543de12c11
|
data/ext/io/console/console.c
CHANGED
@@ -90,6 +90,10 @@ extern VALUE rb_scheduler_timeout(struct timeval *timeout);
|
|
90
90
|
#define sys_fail_fptr(fptr) rb_sys_fail_str((fptr)->pathv)
|
91
91
|
|
92
92
|
#ifndef HAVE_RB_F_SEND
|
93
|
+
#ifndef RB_PASS_CALLED_KEYWORDS
|
94
|
+
# define rb_funcallv_kw(recv, mid, arg, argv, kw_splat) rb_funcallv(recv, mid, arg, argv)
|
95
|
+
#endif
|
96
|
+
|
93
97
|
static ID id___send__;
|
94
98
|
|
95
99
|
static VALUE
|
@@ -104,7 +108,7 @@ rb_f_send(int argc, VALUE *argv, VALUE recv)
|
|
104
108
|
else {
|
105
109
|
vid = id___send__;
|
106
110
|
}
|
107
|
-
return
|
111
|
+
return rb_funcallv_kw(recv, vid, argc, argv, RB_PASS_CALLED_KEYWORDS);
|
108
112
|
}
|
109
113
|
#endif
|
110
114
|
|
@@ -555,8 +559,8 @@ console_getch(int argc, VALUE *argv, VALUE io)
|
|
555
559
|
if (w < 0) rb_eof_error();
|
556
560
|
if (!(w & RB_WAITFD_IN)) return Qnil;
|
557
561
|
# else
|
558
|
-
VALUE result = rb_io_wait(io, RUBY_IO_READABLE, timeout);
|
559
|
-
if (result
|
562
|
+
VALUE result = rb_io_wait(io, RB_INT2NUM(RUBY_IO_READABLE), timeout);
|
563
|
+
if (!RTEST(result)) return Qnil;
|
560
564
|
# endif
|
561
565
|
}
|
562
566
|
else if (optp->vtime) {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: io-console
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nobu Nakada
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: add console capabilities to IO instances.
|
14
14
|
email: nobu@ruby-lang.org
|
@@ -37,14 +37,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.
|
40
|
+
version: 2.6.0
|
41
41
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
42
42
|
requirements:
|
43
43
|
- - ">="
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '0'
|
46
46
|
requirements: []
|
47
|
-
rubygems_version: 3.2.
|
47
|
+
rubygems_version: 3.2.32
|
48
48
|
signing_key:
|
49
49
|
specification_version: 4
|
50
50
|
summary: Console interface
|