io-console 0.9.4 → 0.9.5
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/console/console.c +8 -3
- data/ext/io/console/extconf.rb +7 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eaabf419d9e7cc9769c5f7f9cbb23f633e70968ae54a12d157e00d9254239cad
|
|
4
|
+
data.tar.gz: 760a58845d223178eeb6366a820496c2afbd0800aa60a660758b4c30e45f5a72
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 72e524340699208f633385f7fb709e28842a5244cd1f51ffe7ef8bd47fd1370210bb0a7a3bc4b4cfc4f1a754218e59de0ab4fbb3ebdce4f062ca8547c962b9b6
|
|
7
|
+
data.tar.gz: 81b19af245d87f7c118bd314f4e9fdc8f8a27cc23a9665f0e551838047664b015995da199675b2c87dd45e27e42cf95682f9e91879c0b4a3fa17508bf2727d86
|
data/ext/io/console/console.c
CHANGED
|
@@ -4,12 +4,17 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
static const char *const
|
|
7
|
-
IO_CONSOLE_VERSION = "0.9.
|
|
7
|
+
IO_CONSOLE_VERSION = "0.9.5";
|
|
8
8
|
|
|
9
9
|
#include "ruby.h"
|
|
10
10
|
#include "ruby/io.h"
|
|
11
11
|
#include "ruby/thread.h"
|
|
12
12
|
|
|
13
|
+
#ifndef HAVE_RB_LEN_T
|
|
14
|
+
typedef long rb_len_t;
|
|
15
|
+
# define PRIdLEN "ld"
|
|
16
|
+
#endif
|
|
17
|
+
|
|
13
18
|
#ifdef HAVE_UNISTD_H
|
|
14
19
|
#include <unistd.h>
|
|
15
20
|
#endif
|
|
@@ -1033,12 +1038,12 @@ console_set_winsize(VALUE io, VALUE size)
|
|
|
1033
1038
|
#endif
|
|
1034
1039
|
VALUE row, col, xpixel, ypixel;
|
|
1035
1040
|
const VALUE *sz;
|
|
1036
|
-
|
|
1041
|
+
rb_len_t sizelen;
|
|
1037
1042
|
int fd;
|
|
1038
1043
|
|
|
1039
1044
|
size = rb_Array(size);
|
|
1040
1045
|
if ((sizelen = RARRAY_LEN(size)) != 2 && sizelen != 4) {
|
|
1041
|
-
rb_raise(rb_eArgError, "wrong number of arguments (given %
|
|
1046
|
+
rb_raise(rb_eArgError, "wrong number of arguments (given %"PRIdLEN", expected 2 or 4)", sizelen);
|
|
1042
1047
|
}
|
|
1043
1048
|
sz = RARRAY_CONST_PTR(size);
|
|
1044
1049
|
row = sz[0], col = sz[1], xpixel = ypixel = Qnil;
|
data/ext/io/console/extconf.rb
CHANGED
|
@@ -63,7 +63,11 @@ when true
|
|
|
63
63
|
end
|
|
64
64
|
end
|
|
65
65
|
have_func("rb_prepend_module") # not exported by TruffleRuby
|
|
66
|
-
|
|
66
|
+
|
|
67
|
+
if find_executable("gperf") and vk_mk = (File.read("#$srcdir/win32_vk.mk") rescue nil)
|
|
68
|
+
$cleanfiles.concat(%w'win32_vk.inc win32_vk.chksum')
|
|
69
|
+
end
|
|
70
|
+
|
|
67
71
|
create_makefile("io/console") {|conf|
|
|
68
72
|
conf << "###\n" "all: # the default target\n"
|
|
69
73
|
if vk_header
|
|
@@ -72,11 +76,11 @@ when true
|
|
|
72
76
|
console.#$OBJEXT: $(VK_HEADER)
|
|
73
77
|
MK
|
|
74
78
|
end
|
|
75
|
-
if
|
|
79
|
+
if vk_mk
|
|
76
80
|
unless conf.any? {|c| /^ *top_srcdir *=/.match?(c)}
|
|
77
81
|
conf << "top_srcdir = $(srcdir)/../../..\n"
|
|
78
82
|
end
|
|
79
|
-
conf
|
|
83
|
+
conf << depend_rules(vk_mk).join("")
|
|
80
84
|
end
|
|
81
85
|
conf
|
|
82
86
|
}
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: io-console
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nobu Nakada
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-
|
|
10
|
+
date: 2026-10-28 00:00:00.000000000 Z
|
|
11
11
|
dependencies: []
|
|
12
12
|
description: add console capabilities to IO instances.
|
|
13
13
|
email: nobu@ruby-lang.org
|