Nobuyoshi Nakada
eab4aa4178
[ruby/io-wait] Added extensions
...
https://github.com/ruby/io-wait/commit/664c93b2ff
2020-12-03 17:35:29 +09:00
Nobuyoshi Nakada
09266eccf4
[ruby/io-wait] Fixed regexp to reject .travis* at the toplevel only
...
https://github.com/ruby/io-wait/commit/4434b10e46
2020-12-03 17:35:29 +09:00
Nobuyoshi Nakada
7fcbe07d61
[ruby/io-wait] Exclude dot-files for CIs
...
https://github.com/ruby/io-wait/commit/12cce69ddf
2020-12-03 17:35:29 +09:00
Nobuyoshi Nakada
09bcb935ec
[ruby/io-wait] Fix ls-files matching regexp
...
See rubygems/rubygems@8a81183236 .
https://github.com/ruby/io-wait/commit/04857e0cf5
2020-12-03 17:35:29 +09:00
Nobuyoshi Nakada
2800e9f347
[ruby/io-nonblock] Added extensions
...
https://github.com/ruby/io-nonblock/commit/8b7abbd1b5
2020-12-03 17:35:29 +09:00
Nobuyoshi Nakada
7820162018
[ruby/io-nonblock] Exclude dot-files for CIs
...
https://github.com/ruby/io-nonblock/commit/9fa3ad9c7a
2020-12-03 17:35:28 +09:00
Nobuyoshi Nakada
7d0a6e28f2
[ruby/io-nonblock] Fix ls-files matching regexp
...
See rubygems/rubygems@8a81183236 .
https://github.com/ruby/io-nonblock/commit/e14f7952c1
2020-12-03 17:35:28 +09:00
Nobuyoshi Nakada
27b48089e2
Adjusted indents [ci skip]
2020-10-11 14:22:43 +09:00
Nobuyoshi Nakada
fddffa4c7a
Respect the original styles [ci skip]
2020-10-11 11:57:32 +09:00
Nobuyoshi Nakada
71428ac264
[ruby/io-console] Refined getch warnings
...
https://github.com/ruby/io-console/commit/f84e6abcce
2020-10-11 02:00:28 +09:00
Nobuyoshi Nakada
37259e878f
[ruby/io-console] Relaxed min: option warning
...
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 02:00:26 +09:00
Nobuyoshi Nakada
a79966743c
[ruby/io-console] Fix timeout type error ( #18 )
...
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 02:00:24 +09:00
Nobuyoshi Nakada
b59640e155
[ruby/io-console] Fixed "Rework console to use `rb_io_wait`."
...
* Fixed backward compatibility.
* Added missing `rb_scheduler_timeout` declaration.
https://github.com/ruby/io-console/commit/813806079f
2020-10-11 01:27:15 +09:00
Nobuyoshi Nakada
73a626c078
[ruby/io-wait] update required_ruby_version
...
As d387029f39
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-19 17:47:40 +09:00
Nobuyoshi Nakada
702cebf104
strip trailing spaces [ci skip]
2020-09-19 17:40:54 +09:00
Samuel Williams
7fca274198
Rework console to use `rb_io_wait`.
2020-09-14 16:44:09 +12:00
Samuel Williams
d387029f39
Standardised scheduler interface.
2020-09-14 16:44:09 +12:00
卜部昌平
490010084e
sed -i '/rmodule.h/d'
2020-08-27 16:42:06 +09:00
卜部昌平
756403d775
sed -i '/r_cast.h/d'
2020-08-27 15:03:36 +09:00
卜部昌平
0da2a3f1fc
sed -i '\,2/extern.h,d'
2020-08-27 14:07:49 +09:00
Hiroshi SHIBATA
8fb02b7a97
Update the license for the default gems to dual licenses
2020-08-18 20:26:39 +09:00
Hiroshi SHIBATA
a114869905
Fixed the attribute name for multiple licenses.
2020-08-18 20:26:39 +09:00
Hiroshi SHIBATA
2bd1f827f1
Promote io-nonblock to the default gems.
2020-07-30 21:21:08 +09:00
Hiroshi SHIBATA
d75b42a70a
Promote io-wait to the default gems
2020-07-30 21:10:28 +09:00
Hiroshi SHIBATA
fdd475386d
Gem::Specification#date is set automatically by RubyGems.org.
2020-06-11 13:29:06 +09:00
卜部昌平
9e41a75255
sed -i 's|ruby/impl|ruby/internal|'
...
To fix build failures.
2020-05-11 09:24:08 +09:00
卜部昌平
d7f4d732c1
sed -i s|ruby/3|ruby/impl|g
...
This shall fix compile errors.
2020-05-11 09:24:08 +09:00
Nobuyoshi Nakada
be575a6eef
[ruby/io-console] Use sys_fail_fptr macro
...
https://github.com/ruby/io-console/commit/2b8ba023c8
2020-05-09 17:05:14 +09:00
Nobuyoshi Nakada
0ce45db115
[ruby/io-console] Show path name at error
...
https://github.com/ruby/io-console/commit/6a4b1c1a6d
2020-05-09 13:56:55 +09:00
卜部昌平
9e6e39c351
Merge pull request #2991 from shyouhei/ruby.h
...
Split ruby.h
2020-04-08 13:28:13 +09:00
Nobuyoshi Nakada
2115a3937d
[ruby/io-console] bump up to 0.5.6
2020-02-18 11:34:38 +09:00
Nobuyoshi Nakada
5ef383552d
[ruby/io-console] Just ignore the extension on other than CRuby
...
https://github.com/ruby/io-console/commit/41b6f09574
2020-02-18 11:33:06 +09:00
Nobuyoshi Nakada
dec802d8b5
[ruby/io-console] [DOC] Improved about `intr:`
...
https://github.com/ruby/io-console/commit/82b630cd79
2020-02-17 12:05:09 +09:00
Nobuyoshi Nakada
78282d4655
[ruby/io-console] Prefer keyword arguments
...
https://github.com/ruby/io-console/commit/5facbfc4c8
2020-02-14 20:30:34 +09:00
Nobuyoshi Nakada
199d829a51
[ruby/io-console] bump up to 0.5.5
2020-01-18 00:17:05 +09:00
Nobuyoshi Nakada
4e56ec4ef7
[ruby/io-console] Set `OPOST` when `intr` is true
...
To enable implementation-defined output processing, for the
compatibility with readline. [Bug #16509 ]
https://bugs.ruby-lang.org/issues/16509
https://github.com/ruby/io-console/commit/8c8b0b6757
2020-01-18 00:15:02 +09:00
Hiroshi SHIBATA
4e1a7678cd
[ruby/io-console] Update the minimum requirement of Ruby version
...
https://github.com/ruby/io-console/commit/73e7b6318a
2020-01-18 00:14:58 +09:00
Nobuyoshi Nakada
3e2418e2a6
[ruby/io-console] bump up to 0.5.4
2019-12-30 17:38:28 +09:00
Nobuyoshi Nakada
31e2f03512
[ruby/io-console] Enable only interrupt bits on `intr: true`
...
https://github.com/ruby/io-console/commit/baaf929041
2019-12-29 16:26:22 +09:00
Nobuyoshi Nakada
58527a7926
[ruby/io-console] bump up to 0.5.3
2019-12-22 13:52:59 +09:00
Nobuyoshi Nakada
77e3078ede
[ruby/io-console] Set raw mode strictly same as cfmakeraw
...
* Default VMIN and VTIME to minimum input.
* Disable parity check bits explicitly.
* Disable all bits for flow control on input.
Co-Authored-By: NARUSE, Yui <naruse@airemix.jp>
https://github.com/ruby/io-console/commit/5ce201a686
2019-12-18 10:33:05 +09:00
Nobuyoshi Nakada
e36319249b
[ruby/io-console] bump up to 0.5.2
2019-12-17 13:57:58 +09:00
Yusuke Endoh
b39d5da974
[ruby/io-console] Use TCSANOW to prevent from discarding the input buffer
...
TCSAFLUSH discards the buffer read before the mode change, which makes
IRB ignore the buffer input immediately after invoked. TCSANOW
preserves the buffer.
https://github.com/ruby/io-console/commit/b362920182
2019-12-17 13:55:05 +09:00
Nobuyoshi Nakada
81eb2d16ef
[ruby/io-console] Disable implementation-defined special control characters
...
In raw mode with interrupt enabled.
https://github.com/ruby/io-console/commit/e9e8e3ff17
2019-12-17 13:55:04 +09:00
Nobuyoshi Nakada
a9d17af242
[ruby/io-console] Removed dead code
...
https://github.com/ruby/io-console/commit/a49462ed97
2019-12-17 13:55:04 +09:00
Nobuyoshi Nakada
8e49ef5a69
[ruby/io-console] update depend for f9c0fe77c0
2019-12-10 23:13:40 +09:00
Nobuyoshi Nakada
58e5ab78d0
[ruby/io-console] bump up to 0.5.1
2019-12-10 16:06:12 +09:00
Nobuyoshi Nakada
2419b3dba6
[ruby/io-console] Suppress an unused-variable warning
...
https://github.com/ruby/io-console/commit/ae5c72e481
2019-12-10 16:06:11 +09:00
Nobuyoshi Nakada
f9c0fe77c0
[ruby/io-console] Use rb_thread_call_without_gvl instead of the deprecated function
...
https://github.com/ruby/io-console/commit/21338ab287
2019-12-10 16:06:11 +09:00
Nobuyoshi Nakada
09723b98f7
[ruby/io-console] Warn vtime option without intr flag
...
https://github.com/ruby/io-console/commit/499ff3de48
2019-12-10 16:06:11 +09:00