Commit graph

89597 commits

Author SHA1 Message Date
Nobuyoshi Nakada
e433e6515e
[DOC] Exclude 'Class' and 'Module' from RDoc's autolinking 2025-01-02 12:36:06 +09:00
Nobuyoshi Nakada
b4ec22fe6c
[DOC] Exclude 'Method' from RDoc's autolinking 2025-01-02 12:23:49 +09:00
Nobuyoshi Nakada
d441d35107
[DOC] Exclude 'Process' from RDoc's autolinking 2025-01-02 11:58:15 +09:00
Nobuyoshi Nakada
e4fff86faf
[DOC] .document under lib/rdoc is split now 2025-01-02 11:26:51 +09:00
Stan Lo
afeb17270b Link to Ruby module 2025-01-02 11:05:33 +09:00
Stan Lo
2dd4801e9c Update 'Set's references in docs
- When linking to 'Set', we should use `rdoc-ref:Set` explicitly.
- "Set"'s normal usages don't need to be escaped anymore.
2025-01-02 11:05:33 +09:00
Stan Lo
8e34346afe Exclude 'Ruby' and 'Set' from RDoc's autolinking 2025-01-02 11:05:33 +09:00
Nobuyoshi Nakada
e2081861ae [ruby/rdoc] [DOC] Ignore racc-generated files
(https://github.com/ruby/rdoc/pull/1265)

* [DOC] Ignore racc-generated files

Not only `.ry` sources, generated `.rb` files seem duplicate and
unnecessary.

* [DOC] Select files by .document files for syncing

fb7041ec98
2025-01-02 00:30:14 +00:00
tomoya ishida
3e8f0e5589 [ruby/reline] Support inserting C-c C-z C-\ with quoted_insert
(https://github.com/ruby/reline/pull/798)

e6eb5d2d3c
2025-01-01 14:41:58 +00:00
Benoit Daloze
341503d1a3 Fix leak in Socket#connect spec
* Found by 3501841252
2024-12-31 16:19:18 +01:00
Benoit Daloze
e43d9cbfcb Update to latest setup-ruby manually since dependabot is broken 2024-12-31 16:19:18 +01:00
Benoit Daloze
180bee3177 Run spec_guards when changing its workflow definition 2024-12-31 16:19:18 +01:00
Benoit Daloze
da1c06e747 Add 3.4 to the spec_guards workflow 2024-12-31 16:19:18 +01:00
Stan Lo
c0e2623966 [ruby/rdoc] Add autolink_excluded_words option to ignore
cross-references
(https://github.com/ruby/rdoc/pull/1259)

This config will be handy when the project name is the same as a class or
module name, which is often the case for most of the projects.

ce77f51f63
2024-12-31 12:17:07 +00:00
Nobuyoshi Nakada
63b141ef21 [ruby/rdoc] Documentation for #1240
(https://github.com/ruby/rdoc/pull/1263)

5dfccda4c0
2024-12-31 12:16:50 +00:00
Charles Oliver Nutter
89c9a9fd03 [ruby/net-http] Don't double-interrupt the test HTTP server
The shutdown process here attempted to terminate the test server
by interrupting it with Thread#kill, and then proceeded to close
the server and join the thread. The kill does indeed interrupt
the accept call, but the close call could also interrupt the
thread as part of notifying blocked threads waiting on that
socket call.

In JRuby, where all of this can happen at the same time, it leads
to the following scenario:

* The server thread enters TCPServer#accept and blocks.
* The main thread calls Thread#kill to interrupt the accept call.
* The server thread wakes up and starts to propagate the kill.
  There is a slight delay between this wakeup and removing the
  server thread from the TCPServer's blocked threads list.
* The main thread calls TCPServer#close, which sees that the server
  thread is still in the blocked list, so it initiates a second
  interrupt to raise IOError "closed in another thread" on the
  server thread.
* As the kill is bubbling out, another check for interrupts occurs,
  causing it to see the new raise interrupt and propagate that
  instead of the active kill.
* Because the server is now closed and the rescue here is empty,
  the server loop will endlessly attempt and fail to call accept.

I was unable to determine how CRuby avoids this race. There may be
code that prevents an active kill interrupt from triggering
further interrupts.

In order to get these tests running on JRuby, I've made the
following changes:

* Only kill the thread; one interrupt is sufficient to break it
  out of the accept call.
* Ensure outside the server loop that the server gets closed. This
  happens within the server thread, so triggers no new interrupts.
* Minor cleanup for the pattern of using @ssl_server or @server.

This change avoids the race in JRuby (and possibly other parallel-
threaded implementations) and does not impact the behavior of the
tests.

54025b3870
2024-12-31 10:00:41 +00:00
Nobuyoshi Nakada
3cd809deb5
Win32: Fix rm.bat
- `if exist` and `del` ignore directories matching the wildcard,
  remove both separately.

- `rd /s` ignores wildcards, while `del` removes ordinary files by the
  wildcard, iterate over matching directories by `for /D`.
2024-12-31 14:53:07 +09:00
Nobuyoshi Nakada
5fec930832
[Bug #20992] Test for local variable name encodings 2024-12-30 17:04:09 +09:00
sanfrecce-osaka
3650f2460f [ruby/irb] Fix broken history command with -g
(https://github.com/ruby/irb/pull/1057)

Local variable `grep` was always nil because the regular expression parsing options contained an unnecessary `\n`. `test_history_grep` did not detect this because it only asserted what was included in the output.

a282bbc0cf
2024-12-29 11:00:11 +00:00
Nobuyoshi Nakada
a33c944ba8
[Bug #20988] [prism] Fix escaped octal character literals 2024-12-29 10:32:33 +09:00
Stan Lo
689bb193cc [ruby/irb] Use the documentation site as the source of truth
(https://github.com/ruby/irb/pull/1055)

* Use the documentation site as the source of truth

1. Remove detailed content from README.md and point links to the documentation site.
2. Remove the content of EXTEND_IRB.md and point links to the documentation site.

* Use GitHub pages as Rubygems' documentation target

d2b73cb91e
2024-12-28 19:17:06 +00:00
Stan Lo
609a555ee0 [ruby/irb] Add ri an alias to the show_doc command
(https://github.com/ruby/irb/pull/1054)

52e77dd113
2024-12-28 15:55:27 +00:00
Nobuyoshi Nakada
e4ec2128ae
[Bug #20990] Reject escaped multibyte char with control/meta prefix 2024-12-28 18:40:37 +09:00
Nobuyoshi Nakada
0ccc7657f3
Ripper: Fix duplicate regexp errors 2024-12-28 11:35:00 +09:00
Nobuyoshi Nakada
fb18bb183c
[Bug #20989] Ripper: Pass compile_error
For the universal parser, `rb_parser_reg_fragment_check` function is
shared between the parser and ripper.  However `parser_params` struct
is partially different, and `compile_error` function depends on that
part indirectly.
2024-12-28 11:25:57 +09:00
git
827a19e778 Update bundled gems list at 175770bb6c [ci skip] 2024-12-28 02:19:36 +00:00
Hiroshi SHIBATA
175770bb6c BigDecimal('0.') with bigdecimal-3.1.9 returns 0.0 2024-12-28 11:18:54 +09:00
Hiroshi SHIBATA
b82ad36d7c Update bundled_gems 2024-12-28 11:18:54 +09:00
Nobuyoshi Nakada
081767656d
Abandon connection test if off line 2024-12-28 09:00:53 +09:00
Luiz Eduardo Kowalski
8fa1db79bd [rubygems/rubygems] Expand and comment the regex
0dd0e93bde
2024-12-27 18:54:54 +00:00
Luiz Eduardo Kowalski
6e46b9b8b3 [rubygems/rubygems] Add support for mise.toml file
809a2a17a7
2024-12-27 18:54:53 +00:00
Nobuyoshi Nakada
adbbc9109e
Win32: Update clean commands for bundled gems 2024-12-27 16:27:30 +09:00
Nobuyoshi Nakada
e109400748
Win32: Fix sub make commands
`cmd.exe` built-in `cd` does not recognize slashes as path separators,
replace to backslashes.
2024-12-27 16:26:14 +09:00
Nobuyoshi Nakada
3a2d1feb1e
Win32: Rewrite rm.bat
`rd` cannot remove ordinary files, use `del` or `rd` for each entry.
2024-12-27 16:25:49 +09:00
Nobuyoshi Nakada
6be0ae35e8
Win32: Remove win32 directory if empty 2024-12-27 14:25:07 +09:00
Nobuyoshi Nakada
731a53253f
Win32: clean extra object file 2024-12-27 12:33:28 +09:00
Nobuyoshi Nakada
a37a2f5fef
Clear failure_log by assignment like as appending by assignment 2024-12-27 11:23:23 +09:00
Nobuyoshi Nakada
7962f32b70
Fix hello when transforming program names 2024-12-27 10:29:34 +09:00
Kevin Newton
4cf4cad4ab [ruby/prism] Turn off unescape tests for Ruby >= 3.4.0
f982769314
2024-12-27 01:26:54 +00:00
Nobuyoshi Nakada
f226bc20f6
[Bug #20986] [Prism] Allow escaped multibyte character 2024-12-27 09:01:08 +09:00
Kevin Newton
4d8c9c1310 [ruby/prism] Handle escaped characters after controls
Fixes [Bug #20986]

fd0c563e9e
2024-12-26 22:35:28 +00:00
Kevin Newton
c859e15875 Handle defined? with call chains with blocks
Ensures we can handle expressions like `defined?(a {}.b)`.
2024-12-26 17:34:58 -05:00
David Rodríguez
11c9e4f1ce [rubygems/rubygems] Fix bundle outdated <GEM> failing if gems not installed
694d5f444e
2024-12-26 18:09:15 +00:00
Nobuyoshi Nakada
d78ff6a767 [Bug #20984] Fix test with locale encoding 2024-12-27 00:21:41 +09:00
Koichi ITO
f459d8dfb7 [ruby/prism] Support Ruby 3.5 for Prism::Translation::Parser
Follow up https://github.com/ruby/prism/pull/3336.

Development for Ruby 3.5 has begun on the master branch:
2f064b3b4b

aa49c1bd78
2024-12-26 14:15:00 +00:00
Nobuyoshi Nakada
9a5ad1b558
Fix -Wsign-compare warning on mingw 2024-12-26 18:21:05 +09:00
Nobuyoshi Nakada
c6dbb10b74
[Bug #20982] Put spaces in ENV.inspect results as well as Hash 2024-12-26 15:01:48 +09:00
Nobuyoshi Nakada
19c39e4cfa
[Bug #20984] ENV.inspect should be encoding aware 2024-12-26 13:42:56 +09:00
Nobuyoshi Nakada
037bffec07
Refine ENV tests 2024-12-26 13:02:29 +09:00
Nobuyoshi Nakada
16665c3623
"test" environment variable is unset in setup 2024-12-26 12:31:56 +09:00