Commit graph

67695 commits

Author SHA1 Message Date
aycabta
51ee24e7f7 [ruby/reline] Add original C function declarations comment for each function
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.

0ce2b34e2b
2021-07-30 02:27:02 +09:00
SilverPhoenix99
1bf768d2e1 [ruby/reline] Added support for Numpad divide key on Windows.
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...

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

72acfcd27a
2021-07-30 02:27:02 +09:00
aycabta
5313d234e0 [ruby/reline] Use "omit" instead of "return"
940cdaa301
2021-07-30 02:27:02 +09:00
aycabta
b0633ee4b3 [ruby/reline] Add TODO comment to implement tigetflag() and tigetnum()
a0d946a398
2021-07-30 02:27:02 +09:00
aycabta
8fc98295cb [ruby/reline] Add Terminfo tests
17721e477e
2021-07-30 02:27:02 +09:00
aycabta
2a7e86844b [ruby/reline] Add require 'reline/terminfo' to use Reline::Terminfo.enabled?
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 60b02db516 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.

947a84d0dd
2021-07-29 15:54:41 +09:00
Pavel Rosický
b11638eed2 [ruby/psych] require 'delegate' explicitly
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

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
76b056c3b9
2021-07-29 14:18:52 +09:00
BurdetteLamar
2bd68e32e7 [ruby/set] Improve What's Here links
dd787a3988
2021-07-29 14:18:42 +09:00
Olle Jonsson
899194f3a6 [ruby/set] gemspec: This gem exposes 0 executables
This change removes unused configuration.

6c2338d699
2021-07-29 14:18:33 +09:00
Jeremy Evans
52e602edda [ruby/set] Update documentation for intersect?/disjoint?
35b69e9d69
2021-07-29 14:18:25 +09:00
Jeremy Evans
cafa7d8975 [ruby/set] Allow the use of any enumerable in intersect?/disjoint?
1a73ab9047
2021-07-29 14:18:18 +09:00
Jeremy Evans
571dafdc7f [ruby/set] Allow Set#intersect? and #disjoint? to accept array argument
Implements [Feature #17838]

d9b389bafa
2021-07-29 14:18:10 +09:00
Yusuke Endoh
27fb9d272d test/socket/test_socket.rb: skip on Solaris
The test fails on Solaris 10. Maybe due to the IPv6 configuration on the
server, but I have no idea at all. I've asked @ngoto to investigate the
issue, so will tentatively skip the tests on Solaris

20210729T040002Z.fail.html.gz
2021-07-29 13:51:43 +09:00
S.H
64adeeadaa
Add RBOOL macro and use it 2021-07-29 12:51:10 +09:00
Soutaro Matsumoto
656b49ec47
Bundle RBS 1.3.3 (#4688) 2021-07-29 10:49:09 +09:00
Peter Zhu
f06f1981e2 Don't export rb_gc_ractor_newobj_cache_clear 2021-07-28 13:51:22 -04:00
Koichi Sasada
fa0279d947 should not share same def for specialized method
Because the key of redefine table is `def`, `def` should be
unique for each optimized method (`alias` is not allowed).
2021-07-29 00:56:48 +09:00
Koichi Sasada
fb4cf204a6 use me->def instead of me for opt_table
`vm_opt_method_table` is me=>bop table to manage the optimized
methods (by specialized instruction). However, `me` can be invalidated
to invalidate the method cache entry.
[Bug #17725]

To solve the issue, use `me-def` instead of `me` which simply copied
at invalidation timing.

A test by @jeremyevans https://github.com/ruby/ruby/pull/4376
2021-07-29 00:56:48 +09:00
git
7af750af8e * 2021-07-29 [ci skip] 2021-07-29 00:51:10 +09:00
Jeremy Evans
3b9fe3e15a Handle Timeout::Error instead of NoMemoryError in test
Solaris 11 CI times out instead of raising NoMemoryError for large
allocations, so it cannot test ensure after NoMemoryError.
2021-07-28 08:48:01 -07:00
Kazuhiro NISHIYAMA
d04ba0906c
Update bundled_gems 2021-07-28 22:54:24 +09:00
Hiroshi SHIBATA
0dcae3bd4a
Support document sync for optparse 2021-07-28 20:13:39 +09:00
Hiroshi SHIBATA
23ef326656
Manually picking https://github.com/ruby/optparse/pull/14 2021-07-28 20:13:39 +09:00
Olle Jonsson
3026ee56b1
[ruby/optparse] Remove an errant { character (https://github.com/ruby/optparse/pull/26)
47417f1b4c
2021-07-28 20:13:39 +09:00
Burdette Lamar
c4556a2022
[ruby/optparse] Fix link in included file
bf03038d95
2021-07-28 20:13:39 +09:00
Burdette Lamar
1333620afd
[ruby/optparse] More on tutorial (https://github.com/ruby/optparse/pull/24)
- Adds section "Parsing" to tutorial.rdoc.
- Removes section "Terminators" from option_params.rdoc. (Terminator '--' is not an option parameter.)

40d51ccbad
2021-07-28 20:13:39 +09:00
Burdette Lamar
27679b349e
[ruby/optparse] More on tutorial (https://github.com/ruby/optparse/pull/23)
- Removed a largish block of repeated text.
- Added sections "Top List and Base List" and "Methods for Defining Options" (on, define, etc.).
- Linked from class OptionParser doc to the tutorial.

7f3195b9db
2021-07-28 20:13:39 +09:00
Nobuyoshi Nakada
a10db32003
[ruby/optparse] Removed a duplicate section
7ef3d89e78
2021-07-28 20:13:39 +09:00
Burdette Lamar
98ccb49ac3
[ruby/optparse] More on tutorial (https://github.com/ruby/optparse/pull/22)
Adds argument abbreviation in option_params.rdoc.
    Adds entire Argument Values section to tutorial.rdoc.

9c5b3f244b
2021-07-28 20:13:39 +09:00
Burdette Lamar
43af561e08
[ruby/optparse] Rdoc for help (https://github.com/ruby/optparse/pull/21)
d07cb96a96
2021-07-28 20:13:39 +09:00
Burdette Lamar
a15f0b9fe2
[ruby/optparse] Tutorial: explain custom argument converters (https://github.com/ruby/optparse/pull/19)
385dd4322d
2021-07-28 20:13:39 +09:00
Nobuyoshi Nakada
bf175e7ec2
[ruby/optparse] nodoc private methods
f23d750d14
2021-07-28 20:13:38 +09:00
Nobuyoshi Nakada
311eb328c8
[ruby/optparse] Fixed mismatched <tt> tag
7e65ef3cfa
2021-07-28 20:13:38 +09:00
Burdette Lamar
a4631a4273
[ruby/optparse] Enhanced doc for option parameters (https://github.com/ruby/optparse/pull/11)
5618eeb49e
2021-07-28 20:13:38 +09:00