aycabta
6e55facdb3
Run interrupt test except on Windows
2021-08-04 18:29:42 +09:00
aycabta
aba10ea61e
Add a load path to require 'helper'
2021-08-04 18:29:42 +09:00
aycabta
335c12826a
Show the log of test_interrupt_in_other_thread when failed
2021-08-04 18:29:42 +09:00
aycabta
17ef7a98ef
Check the existence of the test classes
2021-08-04 18:29:42 +09:00
aycabta
5ca0a51ffd
Add a test for handling SIGINT in other thread
2021-08-04 18:29:42 +09:00
aycabta
de93b8b069
Handle SIGINT in other thread correctly
...
Co-authored-by: Koichi Sasada <ko1@atdot.net>
2021-08-04 18:29:42 +09:00
aycabta
5bb7b57129
Use Symbol of signal for trap
2021-08-04 18:29:42 +09:00
Nobuyoshi Nakada
1f2b3f2529
Remove an extraneous escape
...
Since a3fb97465d
, this string is not inside the here-document.
2021-08-04 16:59:18 +09:00
git
6e8bbabc2b
* 2021-08-04 [ci skip]
2021-08-04 05:39:21 +09:00
Peter Zhu
c463a5e008
Fix indentation in string.c
...
7 spaces were used for 2 levels of indentation. This commit changes it
to use 8 spaces.
2021-08-03 16:39:02 -04:00
Samuel Williams
2d4f29e77e
Fix potential hang when joining threads.
...
If the thread termination invokes user code after `th->status` becomes
`THREAD_KILLED`, and the user unblock function causes that `th->status` to
become something else (e.g. `THREAD_RUNNING`), threads waiting in
`thread_join_sleep` will hang forever. We move the unblock function call
to before the thread status is updated, and allow threads to join as soon
as `th->value` becomes defined.
This reverts commit 6505c77501
.
2021-08-03 22:23:48 +12:00
Nobuyoshi Nakada
785c70e764
[DOC] mention how the command is passed to the shell [ci skip]
2021-08-03 18:16:32 +09:00
git
b5e94916bf
* 2021-08-03 [ci skip]
2021-08-03 12:10:56 +09:00
Nobuyoshi Nakada
4c3140d60f
Add keyrest to ruby2_keywords parameters [Bug #18011 ]
2021-08-03 10:56:50 +09:00
Hiroshi SHIBATA
731315bf55
Use codeql-config.yml for codeql-action/init
2021-08-02 17:23:18 +09:00
Hiroshi SHIBATA
0292ec9b8a
Removed paths-ignore because it's not affect with cpp
2021-08-02 17:23:18 +09:00
Hiroshi SHIBATA
954852f7a6
Removed unnecessary configuration for the latest version of actions/checkout
2021-08-02 17:23:18 +09:00
Hiroshi SHIBATA
8b466ea5fc
Use `${{}}` for if statement
2021-08-02 12:39:50 +09:00
Troy Chance
7f4e86804d
Fix documentation of #<=> and #casecmp [ci skip]
...
Descriptions for return values of -1 and 1 were reversed.
2021-08-02 12:09:07 +09:00
S.H
378e8cdad6
Using RBOOL macro
2021-08-02 12:06:44 +09:00
git
3688b47671
* 2021-08-02 [ci skip]
2021-08-02 10:18:46 +09:00
Nobuyoshi Nakada
4453280bb4
Stop infinite object allocation to get rid of OOM killer
2021-08-02 10:18:22 +09:00
Nobuyoshi Nakada
605421f4eb
gcc 10.3.0 says "__VA_OPT__ is not available until C++2a"
2021-08-01 09:54:36 +09:00
git
d99b10acb7
* 2021-08-01 [ci skip]
2021-08-01 06:49:23 +09:00
Nobuyoshi Nakada
3b52230452
Define functions using rb_wait_for_single_fd [Bug #18046 ]
2021-08-01 06:49:07 +09:00
Masataka Pocke Kuwabara
242f024bcb
[ruby/error_highlight] Keep it work if paren exists after receiver
...
https://github.com/ruby/error_highlight/commit/b79d679bbd
2021-07-31 22:15:16 +09:00
git
4ab5281601
* 2021-07-31 [ci skip]
2021-07-31 11:40:45 +09:00
Nobuyoshi Nakada
e294beb731
[DOC] Fix Process::exec documentation [ci skip]
...
Shell reserved words and special built-in commands can be placed
at only the beginning of the command (except for leading white
spaces).
2021-07-31 11:38:27 +09:00
Nobuyoshi Nakada
01d9e7f26c
[DOC] Fix Process::exec documentation [ci skip]
...
The environment variable `RUBYSHELL` is used only on Windows, as
well as `COMSPEC`.
2021-07-30 19:36:17 +09:00
Benoit Daloze
ff6c176028
Tweak rb_str_modify_expand() + read() spec to try to find out why it fails on some platforms
...
* Use a longer string as <= 23 characters it's embedded on CRuby and
the value of rb_str_capacity() is implementation-specific.
2021-07-30 11:36:20 +02:00
Nobuyoshi Nakada
fd96503f7b
Fix bundled gems locations
...
Changed since 55bf0ef1aa
.
2021-07-30 12:21:38 +09:00
Jeremy Evans
2aecb95acb
Skip test_ensure_after_nomemoryerror
...
This test appears to cause failures in some environments.
2021-07-29 18:54:20 -07:00
Jeremy Evans
9931e2f509
Improve performance of Integer#digits
...
This speeds up performance by multiple orders of magnitude for
large integers.
Fixes [Bug #14391 ]
Co-authored-by: tompng (tomoya ishida) <tomoyapenguin@gmail.com>
2021-07-29 15:19:12 -07:00
Jeremy Evans
64ac984129
Make RubyVM::AbstractSyntaxTree.of raise for method/proc created in eval
...
This changes Thread::Location::Backtrace#absolute_path to return
nil for methods/procs defined in eval. If the realpath of an iseq
is nil, that indicates it was defined in eval, in which case you
cannot use RubyVM::AbstractSyntaxTree.of.
Fixes [Bug #16983 ]
Co-authored-by: Koichi Sasada <ko1@atdot.net>
2021-07-29 13:51:03 -07:00
Benoit Daloze
6998d75824
Update to ruby/spec@b65d01f
2021-07-29 22:11:21 +02:00
Benoit Daloze
15d05f8120
Update to ruby/mspec@9542a88
2021-07-29 22:11:19 +02:00
aycabta
41e2ab88c3
Use test-unit assertions
2021-07-30 02:56:29 +09:00
aycabta
1c9cb9da8f
[ruby/reline] Support Terminfo on Cygwin and macOS
...
https://github.com/ruby/reline/commit/b0b75fcd27
2021-07-30 02:27:02 +09:00
aycabta
f1b5cb7e5d
[ruby/reline] Don't check the existence of Terminfo on Windows
...
https://github.com/ruby/reline/commit/320f09055c
2021-07-30 02:27:02 +09:00
aycabta
b158b4666d
[ruby/reline] Check TYPE_VARIADIC
...
https://github.com/ruby/reline/commit/8e62e46e33
2021-07-30 02:27:02 +09:00
aycabta
0f496b9b29
[ruby/reline] Define StringWithTiparm instead of singular method
...
https://github.com/ruby/reline/commit/de234dc875
2021-07-30 02:27:02 +09:00
SilverPhoenix99
5b9f3ed326
[ruby/reline] Fixed Ctrl+Enter key in Windows.
...
https://github.com/ruby/reline/commit/0c38e39023
2021-07-30 02:27:02 +09:00
aycabta
46c6da9c37
[ruby/reline] Check empty .inputrc
...
https://github.com/ruby/reline/commit/b60b3b76cd
2021-07-30 02:27:02 +09:00
aycabta
51ee24e7f7
[ruby/reline] Add original C function declarations comment for each function
...
https://github.com/ruby/reline/commit/9a25ee9f12
2021-07-30 02:27:02 +09:00
Jeremy Evans
44a9337a46
[ruby/reline] Fix reline on OpenBSD
...
OpenBSD doesn't support tiparm, only tparm. I'm not sure if the
two are compatible, but this at least this allows me to run irb
on OpenBSD.
https://github.com/ruby/reline/commit/0ce2b34e2b
2021-07-30 02:27:02 +09:00
SilverPhoenix99
1bf768d2e1
[ruby/reline] Added support for Numpad divide key on Windows.
...
https://github.com/ruby/reline/commit/84577da0c4
2021-07-30 02:27:02 +09:00
aycabta
750359ce81
[ruby/reline] Support Enter key of numpad on Windows
...
The yamatanooroti gem can't emulate numpad key pressing...
https://github.com/ruby/reline/commit/8e9da1aeaf
2021-07-30 02:27:02 +09:00
Lars Kanis
03f8c27179
[ruby/reline] Windows cmd: Don't type anything when pressing ALT keys alone
...
Fixes #298
https://github.com/ruby/reline/commit/72acfcd27a
2021-07-30 02:27:02 +09:00
aycabta
5313d234e0
[ruby/reline] Use "omit" instead of "return"
...
https://github.com/ruby/reline/commit/940cdaa301
2021-07-30 02:27:02 +09:00
aycabta
b0633ee4b3
[ruby/reline] Add TODO comment to implement tigetflag() and tigetnum()
...
https://github.com/ruby/reline/commit/a0d946a398
2021-07-30 02:27:02 +09:00