Commit graph

368 commits

Author SHA1 Message Date
Nobuyoshi Nakada
db71a04c2e [ruby/io-wait] Fix backward compatibility with earlier versions
898248931f
2021-11-16 20:25:43 +09:00
Hiroshi SHIBATA
7529fe82f0 [ruby/io-wait] Bump up io-wait version to 0.2.0
f6a1b10a59
2021-10-21 20:54:20 +09:00
卜部昌平
5c167a9778 ruby tool/update-deps --fix 2021-10-05 14:18:23 +09:00
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
Olle Jonsson
4ac72d37d7 [ruby/io-wait] gemspec: Explicitly list 0 executables
This gem exposes no executables, and this clarifies this.

f491c6cc64
2021-04-21 20:38:00 +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
f6d5de8f33 [ruby/io-wait] Declare as Ractor-safe
Fixes https://bugs.ruby-lang.org/issues/17659

ba338b4764
2021-03-07 09:54:35 +09:00
Nobuyoshi Nakada
ea81fff564 [ruby/io-wait] bump up to 0.1.1
88db082d60
2021-03-07 09:54:35 +09:00
Nobuyoshi Nakada
05d118feea [ruby/io-wait] Fixed required_ruby_version
Before 3.0.0, io-wait has not been gemified.

6fed3da323
2021-03-07 09:54:35 +09:00
Nobuyoshi Nakada
3ba1580d80 [ruby/io-wait] Revise IO#wait arguments
0599f6d4d6
4e982aea1b
5b45685eb3
2021-03-07 09:54:35 +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
eab4aa4178
[ruby/io-wait] Added extensions
664c93b2ff
2020-12-03 17:35:29 +09:00
Nobuyoshi Nakada
09266eccf4
[ruby/io-wait] Fixed regexp to reject .travis* at the toplevel only
4434b10e46
2020-12-03 17:35:29 +09:00
Nobuyoshi Nakada
7fcbe07d61
[ruby/io-wait] Exclude dot-files for CIs
12cce69ddf
2020-12-03 17:35:29 +09:00
Nobuyoshi Nakada
09bcb935ec
[ruby/io-wait] Fix ls-files matching regexp
See rubygems/rubygems@8a81183236.

04857e0cf5
2020-12-03 17:35:29 +09:00
Nobuyoshi Nakada
2800e9f347
[ruby/io-nonblock] Added extensions
8b7abbd1b5
2020-12-03 17:35:29 +09:00
Nobuyoshi Nakada
7820162018
[ruby/io-nonblock] Exclude dot-files for CIs
9fa3ad9c7a
2020-12-03 17:35:28 +09:00
Nobuyoshi Nakada
7d0a6e28f2
[ruby/io-nonblock] Fix ls-files matching regexp
See rubygems/rubygems@8a81183236.

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
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
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