83249 Commits

Author SHA1 Message Date
Nobuyoshi Nakada
4a11f50f79
[DOC] Update command_injection.rdoc
- Add missing `Kernel.exec` and `Kernel.spawn`.
- Elaborate arguments that can cause injections.
2024-01-22 12:06:00 +09:00
KJ Tsanaktsidis
33290896dc Disable NSS modules when using the leakchecker
The leakchecker will report leaked file descriptors when tests do things
like access `Etc.getgrgid`, for example, if NSS modules (like `sss`)
handle these lookups by connecting to a daemon like `sssd` and leave the
connection open.

To address this, we can call glibc's `__nss_configure_lookup` to
override NSS modules configured in /etc/nsswitch.conf and only use
ordinary file/DNS lookups.

(This is a cherry-pick of a patch applied to ruby/mspec here:
https://github.com/ruby/mspec/pull/62)
2024-01-22 13:44:52 +11:00
git
0fadac4c7d Update bundled gems list at 52fc93cab71e56699fb2b216faca12 [ci skip] 2024-01-22 02:09:35 +00:00
Hiroshi SHIBATA
52fc93cab7 added redirect wrapper for envutil 2024-01-22 11:08:59 +09:00
Hiroshi SHIBATA
220f7c9d8e Re-use drb from bundled gems 2024-01-22 11:08:59 +09:00
Hiroshi SHIBATA
854b1f6072 Document about drb at Ruby 3.4 2024-01-22 11:08:59 +09:00
Hiroshi SHIBATA
87f16fbc6d spec/mspec/tool/wrap_with_guard.rb 'ruby_version_is ""..."3.4"' spec/ruby/library/drb/start_service_spec.rb 2024-01-22 11:08:59 +09:00
Hiroshi SHIBATA
36fc5ee64f Extract drb 2024-01-22 11:08:59 +09:00
Stan Hu
67b00f721d Make tests play with upstream Ruby tests
CI broke in https://github.com/ruby/ruby/pull/9604 because if any Ruby
tests run `require 'net/http'`, they will pollute the
`$LOADED_FEATURES` for the RubyGems tests. We can fix this by renaming
the test default gem from `net-http` to `my-http`.

See https://github.com/rubygems/rubygems/pull/7379#issuecomment-1901241299
for more details.
2024-01-22 09:57:10 +09:00
Hiroshi SHIBATA
00dc1cace8 Reapply "[rubygems/rubygems] Fix activation conflicts when circularly requiring a gem"
This reverts commit 04cf66765a8a9d48baea6d9aee266dc9aa21df27.
2024-01-22 09:57:10 +09:00
Hiroshi SHIBATA
d51f4c9288 Reapply "[rubygems/rubygems] Fix require of a default gem when unresolved gems depend on it"
This reverts commit 54552b89e73fc616ba47c1c87d33625af99cbce9.
2024-01-22 09:57:10 +09:00
Hiroshi SHIBATA
94af1e5b81 [ruby/uri] Removed commented-out code
https://github.com/ruby/uri/commit/feb8e0dd73
2024-01-22 00:19:51 +00:00
Charles Oliver Nutter
34c5e78760 [ruby/nkf] Drop GPL and add licenses to gemspec
https://github.com/ruby/nkf/commit/19df7138f7
2024-01-22 00:12:49 +00:00
Charles Oliver Nutter
c6b548accb [ruby/nkf] Add JRuby extension to the gem
This pulls in the nkf extension implementation from JRuby. The
build and load logic has been updated along the same lines as
ruby/digest and the gem appears to build correctly for the -java
platform.

Fixes https://github.com/ruby/nkf/pull/13

https://github.com/ruby/nkf/commit/18f57f36ed
2024-01-22 00:12:45 +00:00
Nobuyoshi Nakada
e2e15ddd67
[DOC] echo command may not be a shell built-in 2024-01-21 18:41:41 +09:00
BurdetteLamar
366b14c0cd More tests 2024-01-20 10:27:19 -05:00
Kevin Newton
99d6e2f1ee [PRISM] Revisit target nodes 2024-01-19 20:12:07 -05:00
Adam Hess
ac4046d34b [ruby/prism] switch unless to if
https://github.com/ruby/prism/commit/29bdbf4212

Co-authored-by: Kevin Newton <kddnewton@gmail.com>
2024-01-19 22:57:46 +00:00
Adam Hess
cfabe9c51c [ruby/prism] Handle stovetop start in constant path fullname
https://github.com/ruby/prism/commit/3a216e63fe
2024-01-19 22:57:45 +00:00
eileencodes
ed50161bd6 [PRISM] Fix ensure code running twice
Fixes: ruby/prism#2212
2024-01-19 13:04:01 -08:00
Aaron Patterson
4778b0eeda Fix kwarg ordering
Required keyword arguments need to come first.

Fixes: https://github.com/ruby/prism/issues/2158

Co-authored-by: Kevin Newton <kddnewton@gmail.com>
2024-01-19 12:32:20 -08:00
Takashi Kokubun
e0f7cee8c5
YJIT: Avoid doubly splitting Opnd::Value on CSel (#9617)
YJIT: Avoid doubly splitting Opnd::Value
2024-01-19 11:51:35 -08:00
Peter Zhu
740f0b52e0 [PRISM] Fix typo with pm_scope_node_destroy
We need to run the pm_scope_node_destroy after compiling the iseq.
2024-01-19 14:09:32 -05:00
Aaron Patterson
efe4b8ac0f Fix ensure code when running break in a while loop
We need to run ensure code when breaking from a while loop

Co-authored-by: John Hawthorn <jhawthorn@github.com>
Co-authored-by: Kevin Newton <kddnewton@gmail.com>
2024-01-19 09:35:36 -08:00
Aaron Patterson
200d3cc14d add assert on SP 2024-01-19 09:35:36 -08:00
Kevin Newton
400341aee9
[PRISM] Sync to latest 2024-01-19 11:22:40 -05:00
Peter Zhu
5a5cf23d02 [PRISM] Fix indentation for PM_SCOPE_NODE [ci skip] 2024-01-19 11:18:47 -05:00
git
ba4b00d31c * remove trailing spaces. [ci skip] 2024-01-19 16:12:34 +00:00
Kevin Newton
da521fc92c [ruby/prism] Parsing rules document
https://github.com/ruby/prism/commit/57a9575543
2024-01-19 16:12:25 +00:00
Takashi Kokubun
3c9290173a
YJIT: Optimize defined?(yield) (#9599)
* YJIT: Optimize defined?(yield)

* Remove an irrelevant comment

* s/get/gen/
2024-01-19 11:00:46 -05:00
Matthew Healy
a58e091686 [ruby/prism] Extract identifier lexing documentation to separate file
https://github.com/ruby/prism/commit/c9df17e3c0
2024-01-19 15:43:29 +00:00
Matthew Healy
9c06297cbb [ruby/prism] Remove non-ASCII examples from ReadNode fields documentation
This is due to a constraint, enforced in `templates/template.rb`,
relating to non-UTF-8 locales prohibiting non-ASCII characters in C
source files.

https://github.com/ruby/prism/commit/74e9a890be
2024-01-19 15:43:28 +00:00
Matthew Healy
57c138c5f4 [ruby/prism] Document ConstantReadNode fields
https://github.com/ruby/prism/commit/a1623f6451
2024-01-19 15:43:28 +00:00
Matthew Healy
b7d37e274a [ruby/prism] Document LocalVariableReadNode fields
https://github.com/ruby/prism/commit/5e9afd3729
2024-01-19 15:43:27 +00:00
Matthew Healy
1c5e54069f [ruby/prism] Document NumberedReferenceReadNode fields
https://github.com/ruby/prism/commit/c3148b4519
2024-01-19 15:43:27 +00:00
Matthew Healy
3fa6dbf304 [ruby/prism] Document BackReferencedReadNode fields
https://github.com/ruby/prism/commit/99a5660623
2024-01-19 15:43:26 +00:00
Matthew Healy
512be6cee1 [ruby/prism] Document GlobalVariableReadNode fields
https://github.com/ruby/prism/commit/5d092e6389
2024-01-19 15:43:26 +00:00
Matthew Healy
9031fd08dc [ruby/prism] Document ClassVariableReadNode fields
https://github.com/ruby/prism/commit/23ed81dd15
2024-01-19 15:43:26 +00:00
Matthew Healy
88810f7109 [ruby/prism] Document InstanceVariableReadNode fields
https://github.com/ruby/prism/commit/c0747103b0
2024-01-19 15:43:25 +00:00
Peter Zhu
d0b774cfb8 Remove null checks for xfree
xfree can handle null values, so we don't need to check it.
2024-01-19 10:25:02 -05:00
Kevin Newton
d29cd972f7 [ruby/prism] Use inttypes for more accurate printf formatting
https://github.com/ruby/prism/commit/2a22b9b72f
2024-01-19 14:49:09 +00:00
git
7b0f6d6d94 Update bundled gems list at c46d23cde7c6bfc2af762525a767cd [ci skip] 2024-01-19 11:02:59 +00:00
Hiroshi SHIBATA
c46d23cde7 Added dependencies rinda and drb 2024-01-19 20:02:19 +09:00
Hiroshi SHIBATA
fa5094e183 Stop sync rinda repo 2024-01-19 20:02:19 +09:00
Hiroshi SHIBATA
ce73fbd717 Document about rinda at Ruby 3.4 2024-01-19 20:02:19 +09:00
Hiroshi SHIBATA
411cda2d5c Extract rinda 2024-01-19 20:02:19 +09:00
git
0f315216bb Update bundled gems list as of 2024-01-19 2024-01-19 08:57:54 +00:00
Hiroshi SHIBATA
31a5d4a0cd Skip test task for resolv-replace 2024-01-19 17:44:58 +09:00
Hiroshi SHIBATA
36095ed3db Removed sync task for resolv-replace 2024-01-19 17:44:58 +09:00
Hiroshi SHIBATA
6c098d145a Document about resolv-replace at Ruby 3.4 2024-01-19 17:44:58 +09:00