summaryrefslogtreecommitdiff
path: root/ext/io
AgeCommit message (Collapse)Author
2022-02-01merge revision(s) ↵NARUSE, Yui
f27eb8148f5a72bbacfebfecc7de9305471bb5c9,d75f7078c831d45ab5ba2fae4fbb308d01a21e46,d5836db1b398a7936b0461b3011db66f6cc8c490: [Backport #18443] Sync io-console gem. --- ext/io/console/console.c | 8 ++++++-- test/io/console/test_io_console.rb | 8 ++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) [ruby/io-console] bump up to 0.5.11 https://github.com/ruby/io-console/commit/ad3805200c --- ext/io/console/io-console.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Fix `Leaked file descriptor: TestIO_Console#test_console_kw` ``` Leaked file descriptor: TestIO_Console#test_console_kw: 10 : #<File:/dev/tty> ``` --- test/io/console/test_io_console.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
2022-02-01Revert "Fix console.c usage of `rb_io_wait`."NARUSE, Yui
This reverts commit aa3b2c81c8de2e70bd100e92436f15c03523eaf7.
2022-01-31Fix console.c usage of `rb_io_wait`.Samuel Williams
2021-12-25[ruby/io-console] bump up to 0.5.10Nobuyoshi Nakada
https://github.com/ruby/io-console/commit/806c65e22b (cherry picked from commit 8247b193c0dd06db9ea56812954dda8fed89458d)
2021-12-25[ruby/io-console] No longer support dead versionsNobuyoshi Nakada
https://github.com/ruby/io-console/commit/e9478509e9 (cherry picked from commit 9368fa6c3073d5fe4380a5e84eb59f7cec2ce62c)
2021-12-25Prefer to use RTEST when checking result of `rb_io_wait`. (#5341)Samuel Williams
* Prefer to use RTEST when checking result of `rb_io_wait`. * Consistently use false for signifying no events ready. Notes: Merged-By: ioquatix <samuel@codeotaku.com>
2021-12-09[ruby/io-wait] Bump up 0.2.1Hiroshi SHIBATA
https://github.com/ruby/io-wait/commit/c97ab9a212
2021-11-21Update dependenciesNobuyoshi Nakada
2021-11-17ext/io/wait/depend: make it work for Ruby 3.1.0-devYusuke Endoh
Reverts https://github.com/ruby/io-wait/commit/2eb3841e9c8f3279955253a93d3db98b80787548 because it fails on "update-deps" check in the ruby/ruby CI. https://github.com/ruby/ruby/runs/4230891140?check_suite_focus=true ``` diff --git a/ext/io/wait/depend b/ext/io/wait/depend index 7b314b9..449e9fe 100644 --- a/ext/io/wait/depend +++ b/ext/io/wait/depend ... ``` Maybe now it does not work on Ruby 2.6. This file must be changed for each Ruby version. I have no good idea to fix this issue.
2021-11-16[ruby/io-wait] Fix dependency for ruby 2.6Nobuyoshi Nakada
https://github.com/ruby/io-wait/commit/2eb3841e9c
2021-11-16[ruby/io-wait] Allow earlier versionsNobuyoshi Nakada
https://github.com/ruby/io-wait/commit/1060f9348c
2021-11-16[ruby/io-wait] Fix backward compatibility with earlier versionsNobuyoshi Nakada
https://github.com/ruby/io-wait/commit/898248931f
2021-10-21[ruby/io-wait] Bump up io-wait version to 0.2.0Hiroshi SHIBATA
https://github.com/ruby/io-wait/commit/f6a1b10a59
2021-10-05ruby tool/update-deps --fix卜部昌平
Notes: Merged: https://github.com/ruby/ruby/pull/4909
2021-04-22[ruby/io-console] Move FFI console under libCharles Oliver Nutter
Having the separate dir makes testing difficult and doesn't reflect the structure the gem will eventually have. We can filter these files out if necessary when building the CRuby gem. https://github.com/ruby/io-console/commit/881010447c
2021-04-22[ruby/io-console] Enable building the C extension on TruffleRuby.Duncan MacGregor
https://github.com/ruby/io-console/commit/c17b8cf3a9
2021-04-21[ruby/io-wait] gemspec: Explicitly list 0 executablesOlle Jonsson
This gem exposes no executables, and this clarifies this. https://github.com/ruby/io-wait/commit/f491c6cc64
2021-04-13dependency updates卜部昌平
Notes: Merged: https://github.com/ruby/ruby/pull/4371
2021-03-28[ruby/io-console] bump up to 0.5.9Nobuyoshi Nakada
https://github.com/ruby/io-console/commit/302e86a28c https://github.com/ruby/io-console/commit/0690862526
2021-03-07[ruby/io-wait] Declare as Ractor-safeNobuyoshi Nakada
Fixes https://bugs.ruby-lang.org/issues/17659 https://github.com/ruby/io-wait/commit/ba338b4764 Notes: Merged: https://github.com/ruby/ruby/pull/4244
2021-03-07[ruby/io-wait] bump up to 0.1.1Nobuyoshi Nakada
https://github.com/ruby/io-wait/commit/88db082d60 Notes: Merged: https://github.com/ruby/ruby/pull/4244
2021-03-07[ruby/io-wait] Fixed required_ruby_versionNobuyoshi Nakada
Before 3.0.0, io-wait has not been gemified. https://github.com/ruby/io-wait/commit/6fed3da323 Notes: Merged: https://github.com/ruby/ruby/pull/4244
2021-03-07[ruby/io-wait] Revise IO#wait argumentsNobuyoshi Nakada
https://github.com/ruby/io-wait/commit/0599f6d4d6 https://github.com/ruby/io-wait/commit/4e982aea1b https://github.com/ruby/io-wait/commit/5b45685eb3 Notes: Merged: https://github.com/ruby/ruby/pull/4244
2021-02-09[ruby/console] Updated dependNobuyoshi Nakada
2021-02-09[ruby/io-console] Fixed typoNobuyoshi Nakada
2021-02-09[ruby/io-console] Fixed regression against 3.0Nobuyoshi Nakada
2021-02-09Expose scheduler as public interface & bug fixes. (#3945)Samuel Williams
* Rename `rb_scheduler` to `rb_fiber_scheduler`. * Use public interface if available. * Use `rb_check_funcall` where possible. * Don't use `unblock` unless the fiber was non-blocking. Notes: Merged-By: ioquatix <samuel@codeotaku.com>
2021-01-16[ruby/io-console] Rubygems 3.2 supports `--platform` optionNobuyoshi Nakada
https://github.com/ruby/io-console/commit/c8046fde84
2021-01-16[ruby/io-console] Moved JRuby version files into particular pathNobuyoshi Nakada
https://github.com/ruby/io-console/commit/b0691d2c20
2021-01-16[ruby/io-console] Delegate to JRuby versionNobuyoshi Nakada
Add `--platform` option tentatively. https://github.com/ruby/io-console/commit/3bf1a7b753
2021-01-16[ruby/io-console] bump up to 0.5.7Nobuyoshi Nakada
https://github.com/ruby/io-console/commit/f55d7ebff6
2021-01-05[ruby/io-console] Shrink struct query_argsNobuyoshi Nakada
https://github.com/ruby/io-console/commit/720be0a3e5
2021-01-05[ruby/io-console] Pre-define chomp! IDNobuyoshi Nakada
https://github.com/ruby/io-console/commit/028e1c9497
2021-01-05[ruby/io-console] Ignore chomp! result and return the modified stringNobuyoshi Nakada
https://github.com/ruby/io-console/commit/09e5ccc729
2021-01-05[ruby/io-console] [DOC] Note that IO#getpass returns a chomped stringMarcus Stollsteimer
IO#getpass uses String#chomp! on the read input line. https://github.com/ruby/io-console/commit/1e98c93bc8
2020-12-03[ruby/io-wait] Added extensionsNobuyoshi Nakada
https://github.com/ruby/io-wait/commit/664c93b2ff
2020-12-03[ruby/io-wait] Fixed regexp to reject .travis* at the toplevel onlyNobuyoshi Nakada
https://github.com/ruby/io-wait/commit/4434b10e46
2020-12-03[ruby/io-wait] Exclude dot-files for CIsNobuyoshi Nakada
https://github.com/ruby/io-wait/commit/12cce69ddf
2020-12-03[ruby/io-wait] Fix ls-files matching regexpNobuyoshi Nakada
See rubygems/rubygems@8a81183236c4475152798db99734e89779287331. https://github.com/ruby/io-wait/commit/04857e0cf5
2020-12-03[ruby/io-nonblock] Added extensionsNobuyoshi Nakada
https://github.com/ruby/io-nonblock/commit/8b7abbd1b5
2020-12-03[ruby/io-nonblock] Exclude dot-files for CIsNobuyoshi Nakada
https://github.com/ruby/io-nonblock/commit/9fa3ad9c7a
2020-12-03[ruby/io-nonblock] Fix ls-files matching regexpNobuyoshi Nakada
See rubygems/rubygems@8a81183236c4475152798db99734e89779287331. https://github.com/ruby/io-nonblock/commit/e14f7952c1
2020-10-11Adjusted indents [ci skip]Nobuyoshi Nakada
2020-10-11Respect the original styles [ci skip]Nobuyoshi Nakada
2020-10-11[ruby/io-console] Refined getch warningsNobuyoshi Nakada
https://github.com/ruby/io-console/commit/f84e6abcce
2020-10-11[ruby/io-console] Relaxed min: option warningNobuyoshi Nakada
When `min: 0` is given to `IO#getch` with `time:` option, it is expected to return nil if timed out, and needed for source code the compatibility with unixen platforms. https://github.com/ruby/io-console/commit/a2afbe72bd
2020-10-11[ruby/io-console] Fix timeout type error (#18)Nobuyoshi Nakada
Fixed TypeError when IO#getch timed out `rb_io_wait` returns a bit-flags Integer representing available events, or Qfalse if timed out. Also the result of `NUM2INT` is not a `VALUE`. ``` $ ./bin/ruby -v -rio/console -e "p IO.console.getch(intr: true, time: 0.1)" ruby 3.0.0dev (2020-10-09T20:27:30Z master 5ea2ea74cc) [x64-mingw32] -e:1:in `getch': no implicit conversion of false into Integer (TypeError) from -e:1:in `<main>' ``` https://github.com/ruby/io-console/commit/3bdfaf62df
2020-10-11[ruby/io-console] Fixed "Rework console to use `rb_io_wait`."Nobuyoshi Nakada
* Fixed backward compatibility. * Added missing `rb_scheduler_timeout` declaration. https://github.com/ruby/io-console/commit/813806079f
2020-09-19[ruby/io-wait] update required_ruby_versionNobuyoshi Nakada
As d387029f39d976565c955377117103499d47ff09 made io/wait unbuildable with older versions, drop older versions tentatively. Also the change seems to instroduce behavioral incompatibilities, may address them or bump up the version later.
2020-09-19strip trailing spaces [ci skip]Nobuyoshi Nakada