Charles Oliver Nutter
270b16e70c
[ruby/io-console] Move FFI console under lib
...
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.
881010447c
2021-04-22 11:53:13 +09:00
Duncan MacGregor
042860bd65
[ruby/io-console] Enable building the C extension on TruffleRuby.
...
c17b8cf3a9
2021-04-22 11:51:37 +09:00
卜部昌平
6413dc27dc
dependency updates
2021-04-13 14:30:21 +09:00
Nobuyoshi Nakada
989e22f394
[ruby/io-console] bump up to 0.5.9
...
302e86a28c
0690862526
2021-03-28 23:42:38 +09:00
Nobuyoshi Nakada
6bb103f012
[ruby/console] Updated depend
2021-02-09 17:49:28 +09:00
Nobuyoshi Nakada
5bfca88f76
[ruby/io-console] Fixed typo
2021-02-09 17:39:00 +09:00
Nobuyoshi Nakada
df4f8aa248
[ruby/io-console] Fixed regression against 3.0
2021-02-09 17:38:52 +09:00
Samuel Williams
5f69a7f604
Expose scheduler as public interface & bug fixes. ( #3945 )
...
* 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.
2021-02-09 19:39:56 +13:00
Nobuyoshi Nakada
35a047301b
[ruby/io-console] Rubygems 3.2 supports --platform
option
...
c8046fde84
2021-01-16 19:42:53 +09:00
Nobuyoshi Nakada
6ab5504fe5
[ruby/io-console] Moved JRuby version files into particular path
...
b0691d2c20
2021-01-16 19:42:52 +09:00
Nobuyoshi Nakada
92da224d22
[ruby/io-console] Delegate to JRuby version
...
Add `--platform` option tentatively.
3bf1a7b753
2021-01-16 19:42:52 +09:00
Nobuyoshi Nakada
c143a2f947
[ruby/io-console] bump up to 0.5.7
...
f55d7ebff6
2021-01-16 19:42:52 +09:00
Nobuyoshi Nakada
83e62d7798
[ruby/io-console] Shrink struct query_args
...
720be0a3e5
2021-01-05 21:26:15 +09:00
Nobuyoshi Nakada
4272395982
[ruby/io-console] Pre-define chomp! ID
...
028e1c9497
2021-01-05 21:26:13 +09:00
Nobuyoshi Nakada
ead8d89bd7
[ruby/io-console] Ignore chomp! result and return the modified string
...
09e5ccc729
2021-01-05 21:26:11 +09:00
Marcus Stollsteimer
451b456051
[ruby/io-console] [DOC] Note that IO#getpass returns a chomped string
...
IO#getpass uses String#chomp! on the read input line.
1e98c93bc8
2021-01-05 12:59:53 +09:00
Nobuyoshi Nakada
71428ac264
[ruby/io-console] Refined getch warnings
...
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.
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>'
```
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.
813806079f
2020-10-11 01:27:15 +09:00
Samuel Williams
7fca274198
Rework console to use rb_io_wait
.
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
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
...
2b8ba023c8
2020-05-09 17:05:14 +09:00
Nobuyoshi Nakada
0ce45db115
[ruby/io-console] Show path name at error
...
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
...
41b6f09574
2020-02-18 11:33:06 +09:00
Nobuyoshi Nakada
dec802d8b5
[ruby/io-console] [DOC] Improved about intr:
...
82b630cd79
2020-02-17 12:05:09 +09:00
Nobuyoshi Nakada
78282d4655
[ruby/io-console] Prefer keyword arguments
...
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
8c8b0b6757
2020-01-18 00:15:02 +09:00
Hiroshi SHIBATA
4e1a7678cd
[ruby/io-console] Update the minimum requirement of Ruby version
...
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
...
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>
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.
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.
e9e8e3ff17
2019-12-17 13:55:04 +09:00
Nobuyoshi Nakada
a9d17af242
[ruby/io-console] Removed dead code
...
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
...
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
...
21338ab287
2019-12-10 16:06:11 +09:00