Commit graph

380 commits

Author SHA1 Message Date
Hiroshi SHIBATA
146ddf614b [ruby/io-wait] Bump up 0.3.2
1d2b668457
2025-07-17 11:16:30 +09:00
Hiroshi SHIBATA
2ffd6c28ed [ruby/io-nonblock] Bump up 0.3.2
7285725885
2025-07-15 06:26:44 +00:00
Hiroshi SHIBATA
8ea57040f0 [ruby/io-console] Bump up 0.8.1
01071a174a
2025-07-15 06:01:01 +00:00
Nobuyoshi Nakada
dbf7a0c713 [ruby/io-wait] [Bug #21509] [DOC] Correct IO#wait description
c65af887a1
2025-07-12 13:32:33 +00:00
Jeremy Evans
0b23a8db60 Update dependencies for addition of set.h to public headers 2025-07-11 15:24:23 +09:00
Nobuyoshi Nakada
ba246c5a16
[ruby/io-wait] Revert "Fix dependency for ruby 2.6"
This reverts commit 2eb3841e9c.

Ruby 2.6 support has been dropped.

bcc343683e
2025-07-09 20:18:32 +09:00
Nobuyoshi Nakada
0c1c3ffa22 [ruby/io-wait] Revert https://github.com/ruby/io-wait/pull/9 "Make
the gem a noop on Rubies older than
2.6"

This reverts commit 75fcb74c32.

The version that does nothing with pre-ruby 2.6 has already been
released, so there is no longer need to consider older rubies in newer
versions.

930d2f0d07
2025-07-09 10:34:56 +00:00
Nobuyoshi Nakada
ddeefa2e7e [ruby/io-wait] Bump up the required ruby version
io-wait became a default gem at ruby 3.0.
Even it can be installed on earlier versions, but the standard library
will be loaded instead of the installed gem.

15b96736cd
2025-07-09 10:34:54 +00:00
Nobuyoshi Nakada
3f0e0d5c8b [ruby/io-nonblock] Bump up the required ruby version
io-nonblock became a default gem at ruby 3.0.
Even it can be installed on earlier versions, but the standard library
will be loaded instead of the installed gem.

c86d0d37af
2025-07-09 06:59:58 +00:00
Nobuyoshi Nakada
8903166648 [ruby/io-wait] Run have_func with the header providing the declarations
48309d7877
2025-07-01 11:03:11 +00:00
Nobuyoshi Nakada
ac72a25a57 [ruby/io-nonblock] Run have_func with the header providing the declarations
70909f5362
2025-07-01 11:02:27 +00:00
Nobuyoshi Nakada
134bdf2d34 [ruby/io-console] Run have_func with the header providing the declarations
dd013030dd
2025-07-01 11:00:58 +00:00
Hiroshi SHIBATA
ddf0080fd3 [ruby/io-console] Bump up 0.8.0
467508a0c6
2024-12-03 05:05:14 +00:00
Hiroshi SHIBATA
9bd1e6ee04 [ruby/io-nonblock] Bump up 0.3.1
16727a8ab3
2024-12-03 04:38:16 +00:00
Nobuyoshi Nakada
8ec58a91f7 [ruby/io-console] Add IO#ttyname that returns the tty name or nil
fdad351501
2024-12-02 08:03:30 +00:00
Nobuyoshi Nakada
9948a8c8df [ruby/io-console] Freeze the version string
aa79919f79
2024-12-02 05:00:47 +00:00
Nobuyoshi Nakada
decc02996a [ruby/io-console] Check if rb_syserr_fail_str is available
Truffle ruby seems to lack it.

839c1e80eb
2024-12-02 03:37:15 +00:00
Alan Wu
c41af37ee6 [ruby/io-console] Read errno before calling rb_io_path()
Possible fix for recent crashes seen on CI.

     [BUG] rb_sys_fail_str(<STDIN>) - errno == 0

rb_io_path() calls rb_obj_dup(), which could call initialize_dup in Ruby
and clobber errno before rb_sys_fail_str() gets to read errno. So
save it out first.

(Using separate statements because order of evaluation in function call
list is unspecified, and order is important here.)

0ba400b5e7
2024-11-27 03:19:39 +00:00
Yusuke Endoh
3face42d8a Revert "Add a temporal debugging code"
This reverts commit 5bd144c1bb.
2024-11-27 11:43:02 +09:00
Yusuke Endoh
5bd144c1bb Add a temporal debugging code
... to check the return value of ioctl

http://ci.rvm.jp/results/trunk_asan@ruby-sp1/5423172
```
/tmp/ruby/src/trunk_asan/lib/reline/io/ansi.rb:192: [BUG] rb_sys_fail_str(<STDIN>) - errno == 0
```
2024-11-22 15:00:20 +09:00
HoneyryderChuck
002438767d [ruby/io-nonblock] mark extension as ractor safe
ba445b37d5
2024-11-16 04:18:14 +00:00
Hiroshi SHIBATA
da151ab1e7 [ruby/io-console] Bump up v0.8.0.beta1
8ec27d403e
2024-11-12 06:04:57 +00:00
Hiroshi SHIBATA
0452b3fabb [ruby/io-console] Update license files same as ruby/ruby
c9e3f44268
2024-11-12 05:25:15 +00:00
Nobuyoshi Nakada
185602e696 [ruby/io-console] Fix mixing declarations and code for older versions
504292b487
2024-09-01 03:46:44 +00:00
Nobuyoshi Nakada
37db194c02 [ruby/io-console] Support older rubies
cad8169568
2024-09-01 03:46:43 +00:00
Nobuyoshi Nakada
afd12873e0
Update dependencies of io-console 2024-09-01 12:00:12 +09:00
Nobuyoshi Nakada
e69945fc57 [ruby/io-console] Workaround for old TruffleRuby
f10c946ac7
2024-08-31 08:43:59 +00:00
Nobuyoshi Nakada
4a1ea9b63a [ruby/io-console] Store console IO in Ractor-local storage
Ractor requires a shareable class has shareable constants only, but IO
is not shareable unless frozen.

65e0ff895c
2024-08-31 08:43:59 +00:00
Nobuyoshi Nakada
365ededfdf [ruby/io-console] io-console is considered Ractor-safe
b1adc15af7
2024-08-31 05:46:05 +00:00
Nobuyoshi Nakada
12a5400a88 [ruby/io-console] Remove no longer used variable
651797ff8a
2024-07-31 13:20:01 +00:00
Nobuyoshi Nakada
e428ee7bbe [ruby/io-console] Use locale insensitive casecmp
4b2e876dd7
2024-06-24 15:38:11 +00:00
Nobuyoshi Nakada
f4f8aa0f89 [ruby/io-console] Use strcasecmp
f8ec8a0617
2024-06-24 15:38:10 +00:00
Nobuyoshi Nakada
25c2aa0a1c [ruby/io-console] Use gperf 3.1 to generate ANSI-C code
3798aae42d
2024-06-24 15:38:10 +00:00
Yuta Saito
b73dd8f6d0 [ruby/io-console] Skip building extension on WASI
WASI does not support concept to provide termios, so it is not possible
to build io/console extension on WASI at the moment.

However, `io/console` is used by many gems, and removing the dependency
from them *conditionally* is impossible. So, this commit adds a
check to skip building `io/console` extension on WASI just to pass `gem
install` for the platform.

ba9bf00184
2024-06-17 07:40:56 +00:00
卜部昌平
c844968b72 ruby tool/update-deps --fix 2024-04-27 21:55:28 +09:00
Hiroshi SHIBATA
af60cdf674 [ruby/io-console] Bump up version to 0.7.2
1f2877a185
2024-01-18 01:36:52 +00:00
Nobuyoshi Nakada
73fb9c35ef [ruby/io-console] IO_CONSOLE_VERSION is no longer a macro
14b35217dc
2024-01-03 02:12:30 +00:00
ima1zumi
8916b81bf4 [ruby/io-console] Define IO::ConsoleMode::VERSION from console.c
6302a2082c
2024-01-02 22:17:05 +00:00
Mark Young
65ec74a8dd [ruby/io-console] Provide a 'Changelog' link on rubygems.org/gems/io-console
By providing a 'changelog_uri' in the metadata of the gemspec
a 'Changelog' link will be shown on https://rubygems.org/gems/io-console
which makes it quick and easy for someone to check on the changes
introduced with a new version.

Details of this functionality can be found on https://guides.rubygems.org/specification-reference/

6bacdbf0e1
2023-12-25 21:12:49 +09:00
Nobuyoshi Nakada
a01c1e821c [ruby/io-console] bump up to 0.7.2.dev.1
08e41a3e4d
2023-12-25 21:12:49 +09:00
Nobuyoshi Nakada
e7f91fd74c [ruby/io-console] [DOC] Add missing documents
44dce34569
2023-12-25 21:12:49 +09:00
Nobuyoshi Nakada
4173c4bcfb [ruby/io-console] Extract CSI sequence
63dbeeecf4
2023-12-25 21:12:49 +09:00
Hiroshi SHIBATA
582862754f [ruby/io-console] Bump up v0.7.1
8ac766d870
2023-12-16 13:51:34 +08:00
Hiroshi SHIBATA
39023792db [ruby/io-console] Bump up 0.7.0
3e5586e632
2023-12-13 05:58:25 +00:00
Hiroshi SHIBATA
06edde22f4 [ruby/io-nonblock] Bump up 0.3.0
501e2ffea3
2023-12-13 05:42:58 +00:00
Hiroshi SHIBATA
5cabe1e9cc [ruby/io-wait] Bump up 0.3.1
5ec3db36c8
2023-12-13 05:10:54 +00:00
Matheus Richard
d69af4788a [ruby/io-console] [DOC] Add documentation for IO#cursor
ruby/io-console#50

ee752ce771
2023-12-07 10:50:00 +00:00
Nobuyoshi Nakada
cdd6127c82 [ruby/io-console] bump up to 0.6.1.dev.1
057ab96a73
2023-11-10 19:00:50 +09:00
Nobuyoshi Nakada
83064592a6 [ruby/io-console] Include FFI version version.rb
b0c688c57e
2023-11-10 19:00:48 +09:00
Nobuyoshi Nakada
f08400a07a [ruby/io-console] Define IO::ConsoleMode::VERSION from gemspec
ebdbebf461
2023-11-10 19:00:46 +09:00