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 55bf0ef1aa7c936b564b883196de1ace4be4cc7e.
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
aycabta
8fc98295cb
[ruby/reline] Add Terminfo tests
...
https://github.com/ruby/reline/commit/17721e477e
2021-07-30 02:27:02 +09:00
aycabta
2a7e86844b
[ruby/reline] Add require 'reline/terminfo' to use Reline::Terminfo.enabled?
...
https://github.com/ruby/reline/commit/7ef9805b35
2021-07-30 02:27:02 +09:00
Jeremy Evans
87b327efe6
Do not check pending interrupts when running finalizers
...
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>
2021-07-29 09:44:11 -07:00
Alan Wu
cbecf9c7ba
Fix use-after-free on -DUSE_EMBED_CI=0
...
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.
2021-07-29 12:04:36 -04:00
git
12d4da7478
* 2021-07-30 [ci skip]
2021-07-30 00:14:57 +09:00
Jeremy Evans
693ce6af0a
Update documentation for ruby2_keywords
...
Point out that the method should be used for backwards compatibility
with code prior to Ruby 3.0 instead of Ruby 2.7. It's still needed
in Ruby 2.7. It isn't needed in Ruby 3.0, as the methods using it
could switch to delegating both positional and keyword arguments.
Add a link to the www.ruby-lang.org web page that goes into detail
describing when and how ruby2_keywords should be used.
2021-07-29 08:10:20 -07:00
Nobuyoshi Nakada
7564e066ff
Renamed thraed_fd_close as thread_fd
2021-07-29 21:15:04 +09:00
Hiroshi SHIBATA
f8ad51dd9a
Fix test failure of 60b02db5161625dd5f7d22d31989dd966837333c with Windows
2021-07-29 20:54:54 +09:00
Hiroshi SHIBATA
a4df7cb338
Partly picking 25ef7dbeda (diff-1ce41a048bf2c08aa7bf25b741e9d3a4e08ea03f0d80bc6b8ee6d1c3c259704dR1022)
2021-07-29 16:26:15 +09:00
Hiroshi SHIBATA
672796575e
Update the latest version of readline.gemspec
2021-07-29 16:20:10 +09:00
Hiroshi SHIBATA
a889ab486e
Update the latest version of json.gemspec from flori/json
2021-07-29 15:57:58 +09:00
Rhys Powell
e99d2d066f
[ruby/psych] fix: use git repository link for LibYAML in docs
...
LibYAML has moved from their previous Mercurial based hosting on BitBucket to a git repository on GitHub. This commit updates the `Psych` module's documentation to point to this new repository, instead of the old one which is now a 404.
https://github.com/ruby/psych/commit/947a84d0dd
2021-07-29 15:54:41 +09:00
Pavel Rosický
b11638eed2
[ruby/psych] require 'delegate' explicitly
...
https://github.com/ruby/psych/commit/51a9ce13db
2021-07-29 15:54:34 +09:00
Miguel Teixeira
60b02db516
[ruby/net-http] Enforce write timeout when body_stream is used
...
The existing implementation of `Net::HTTP#write_timeout` relies on
`Net::BefferedIO` to trigger the `Net::WriteTimeout` error. This commit
changes `send_request_with_body_stream` to remove the optimization that
was making `Net::HTTP#write_timeout` not work when `body_stream` is
used.
Open issue:
https://bugs.ruby-lang.org/issues/17933
https://github.com/ruby/net-http/commit/a0fab1ab52
2021-07-29 15:53:54 +09:00
Hiroshi SHIBATA
b3413914d9
Partly picked from 20d0b8c065
2021-07-29 15:52:32 +09:00
BurdetteLamar
1e04571da0
[ruby/set] Improve What's Here links
...
https://github.com/ruby/set/commit/76b056c3b9
2021-07-29 14:18:52 +09:00
BurdetteLamar
2bd68e32e7
[ruby/set] Improve What's Here links
...
https://github.com/ruby/set/commit/dd787a3988
2021-07-29 14:18:42 +09:00