summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-08-04Handle SIGINT in other thread correctlyaycabta
Co-authored-by: Koichi Sasada <ko1@atdot.net> Notes: Merged: https://github.com/ruby/ruby/pull/4704
2021-08-04Use Symbol of signal for trapaycabta
Notes: Merged: https://github.com/ruby/ruby/pull/4704
2021-08-04Remove an extraneous escapeNobuyoshi Nakada
Since a3fb97465df3, this string is not inside the here-document.
2021-08-04* 2021-08-04 [ci skip]git
2021-08-03Fix indentation in string.cPeter Zhu
7 spaces were used for 2 levels of indentation. This commit changes it to use 8 spaces. Notes: Merged: https://github.com/ruby/ruby/pull/4706
2021-08-03Fix potential hang when joining threads.Samuel Williams
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 6505c77501f1924571b2fe620c5c7b31ede0cd22. Notes: Merged: https://github.com/ruby/ruby/pull/4689
2021-08-03[DOC] mention how the command is passed to the shell [ci skip]Nobuyoshi Nakada
2021-08-03* 2021-08-03 [ci skip]git
2021-08-03Add keyrest to ruby2_keywords parameters [Bug #18011]Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/4705
2021-08-02Use codeql-config.yml for codeql-action/initHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/4702
2021-08-02Removed paths-ignore because it's not affect with cppHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/4702
2021-08-02Removed unnecessary configuration for the latest version of actions/checkoutHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/4702
2021-08-02Use `${{}}` for if statementHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/4700
2021-08-02Fix documentation of #<=> and #casecmp [ci skip]Troy Chance
Descriptions for return values of -1 and 1 were reversed. Notes: Merged: https://github.com/ruby/ruby/pull/4698 Merged-By: nobu <nobu@ruby-lang.org>
2021-08-02Using RBOOL macroS.H
Notes: Merged: https://github.com/ruby/ruby/pull/4695 Merged-By: nobu <nobu@ruby-lang.org>
2021-08-02* 2021-08-02 [ci skip]git
2021-08-02Stop infinite object allocation to get rid of OOM killerNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/4697
2021-08-01gcc 10.3.0 says "__VA_OPT__ is not available until C++2a"Nobuyoshi Nakada
2021-08-01* 2021-08-01 [ci skip]git
2021-08-01Define functions using rb_wait_for_single_fd [Bug #18046]Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/4696 Merged-By: nobu <nobu@ruby-lang.org>
2021-07-31[ruby/error_highlight] Keep it work if paren exists after receiverMasataka Pocke Kuwabara
https://github.com/ruby/error_highlight/commit/b79d679bbd
2021-07-31* 2021-07-31 [ci skip]git
2021-07-31[DOC] Fix Process::exec documentation [ci skip]Nobuyoshi Nakada
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-30[DOC] Fix Process::exec documentation [ci skip]Nobuyoshi Nakada
The environment variable `RUBYSHELL` is used only on Windows, as well as `COMSPEC`. Notes: Merged: https://github.com/ruby/ruby/pull/4694
2021-07-30Tweak rb_str_modify_expand() + read() spec to try to find out why it fails ↵Benoit Daloze
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-30Fix bundled gems locationsNobuyoshi Nakada
Changed since 55bf0ef1aa7c936b564b883196de1ace4be4cc7e.
2021-07-29Skip test_ensure_after_nomemoryerrorJeremy Evans
This test appears to cause failures in some environments.
2021-07-29Improve performance of Integer#digitsJeremy Evans
This speeds up performance by multiple orders of magnitude for large integers. Fixes [Bug #14391] Co-authored-by: tompng (tomoya ishida) <tomoyapenguin@gmail.com> Notes: Merged: https://github.com/ruby/ruby/pull/4584
2021-07-29Make RubyVM::AbstractSyntaxTree.of raise for method/proc created in evalJeremy Evans
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> Notes: Merged: https://github.com/ruby/ruby/pull/4519
2021-07-29Update to ruby/spec@b65d01fBenoit Daloze
2021-07-29Update to ruby/mspec@9542a88Benoit Daloze
2021-07-30Use test-unit assertionsaycabta
Notes: Merged: https://github.com/ruby/ruby/pull/4693
2021-07-30[ruby/reline] Support Terminfo on Cygwin and macOSaycabta
https://github.com/ruby/reline/commit/b0b75fcd27
2021-07-30[ruby/reline] Don't check the existence of Terminfo on Windowsaycabta
https://github.com/ruby/reline/commit/320f09055c
2021-07-30[ruby/reline] Check TYPE_VARIADICaycabta
https://github.com/ruby/reline/commit/8e62e46e33
2021-07-30[ruby/reline] Define StringWithTiparm instead of singular methodaycabta
https://github.com/ruby/reline/commit/de234dc875
2021-07-30[ruby/reline] Fixed Ctrl+Enter key in Windows.SilverPhoenix99
https://github.com/ruby/reline/commit/0c38e39023
2021-07-30[ruby/reline] Check empty .inputrcaycabta
https://github.com/ruby/reline/commit/b60b3b76cd
2021-07-30[ruby/reline] Add original C function declarations comment for each functionaycabta
https://github.com/ruby/reline/commit/9a25ee9f12
2021-07-30[ruby/reline] Fix reline on OpenBSDJeremy Evans
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[ruby/reline] Added support for Numpad divide key on Windows.SilverPhoenix99
https://github.com/ruby/reline/commit/84577da0c4
2021-07-30[ruby/reline] Support Enter key of numpad on Windowsaycabta
The yamatanooroti gem can't emulate numpad key pressing... https://github.com/ruby/reline/commit/8e9da1aeaf
2021-07-30[ruby/reline] Windows cmd: Don't type anything when pressing ALT keys aloneLars Kanis
Fixes #298 https://github.com/ruby/reline/commit/72acfcd27a
2021-07-30[ruby/reline] Use "omit" instead of "return"aycabta
https://github.com/ruby/reline/commit/940cdaa301
2021-07-30[ruby/reline] Add TODO comment to implement tigetflag() and tigetnum()aycabta
https://github.com/ruby/reline/commit/a0d946a398
2021-07-30[ruby/reline] Add Terminfo testsaycabta
https://github.com/ruby/reline/commit/17721e477e
2021-07-30[ruby/reline] Add require 'reline/terminfo' to use Reline::Terminfo.enabled?aycabta
https://github.com/ruby/reline/commit/7ef9805b35
2021-07-29Do not check pending interrupts when running finalizersJeremy Evans
This fixes cases where exceptions raised using Thread#raise are swallowed by finalizers and not delivered to the running thread. This could cause issues with finalizers that rely on pending interrupts, but that case is expected to be rarer. Fixes [Bug #13876] Fixes [Bug #15507] Co-authored-by: Koichi Sasada <ko1@atdot.net> Notes: Merged: https://github.com/ruby/ruby/pull/4366
2021-07-29Fix use-after-free on -DUSE_EMBED_CI=0Alan Wu
On -DUSE_EMBED_CI=0, there are more GC allocations and the old code didn't keep old_operands[0] reachable while allocating. On a Debian based system, I get a crash requiring erb under GC stress mode. On macOS, tool/transcode-tblgen.rb runs incorrectly if I put GC.stress=true as the first line. Notes: Merged: https://github.com/ruby/ruby/pull/4662 Merged-By: XrXr
2021-07-30* 2021-07-30 [ci skip]git