2853 Commits

Author SHA1 Message Date
nagachika
d6dbd1dc4c merge revision(s) ef67c377508ea3a07516c1fa413a038b5268fc1c: [Backport #22133]
[PATCH] Respect `handle_interrupt` for default `SIGINT`. (#17533)

	[[Bug #22133]]
2026-08-09 15:51:00 +09:00
Hiroshi SHIBATA
6f72f416de Disable git background maintenance in bundler specs
Since Git 2.46, commands like `git commit` spawn a detached
`git maintenance run --auto` process, which briefly creates
`.git/objects/maintenance.lock`. Specs copying a just-committed
repository with FileUtils.cp_r can hit the lock file disappearing
between readdir and lstat, causing flaky Errno::ENOENT failures on
macOS CI runners with newer Git.

https://github.com/ruby/ruby/actions/runs/28764006107/job/85284933867

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 06:51:22 +09:00
Hiroshi SHIBATA
397e9bec1b [ruby/rubygems] Fix incompatible function pointer type error with Xcode 26.5 beta
Xcode 26.5 beta ships a clang that promotes -Wincompatible-function-pointer-types to an error by default. The test's inline C extension defined `VALUE foo()` (taking no arguments) but passed it to `rb_define_global_function` which expects `VALUE (*)(VALUE)` through Ruby's RBIMPL_ANYARGS dispatch macro. Adding the `VALUE self` parameter fixes the signature mismatch.

https://github.com/ruby/rubygems/commit/393490d8a5

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
(cherry picked from commit 27f24a3753177728b18443afa5e30cef04d601a7)
2026-06-29 19:13:31 +09:00
Hiroshi SHIBATA
963085bcb9 [ruby/syntax_suggest] Resolve to lint failure of standardrb
https://github.com/ruby/syntax_suggest/commit/ce7b87184e
2026-05-09 15:16:03 +09:00
Hiroshi SHIBATA
c61a2f79f4 [ruby/syntax_suggest] Make benchmark exapmles as optional
https://github.com/ruby/syntax_suggest/commit/ea73ed586a
2026-05-09 15:16:03 +09:00
Mike Dalessio
0097b87b1e Fix UnboundMethod#== for methods from included/extended modules [Backport #21873]
Method#unbind clones the method entry, preserving its defined_class.
For methods mixed in via include/extend, defined_class is an ICLASS,
causing UnboundMethod#== to return false when comparing against the
same method obtained via Module#instance_method.

Resolve ICLASS defined_class in method_eq.

[Bug #21873]
2026-03-07 14:41:17 +09:00
Earlopain
6dc27d14a0 Interpolation with only string literals must not be frozen
Basically a redo of a1403fb7cb
but respecting the frozen string literal magic comment

Fixes [Bug #21187]
2025-12-08 15:30:35 -08:00
Takashi Kokubun
1adfd3ec40 merge revision(s) c5bd4acd30320a8e180ce9fcb24acdab4e10c73a: [Backport #21666]
[PATCH] [Bug #21666] Get rid of use of unspecified values
2025-12-08 14:29:57 -08:00
Hiroshi SHIBATA
3f6cdb1246
Update next stable version to 4.0 from 3.5 (#15146) 2025-11-12 11:02:23 -08:00
K.Takata
3150a1d989 [Backport #13671] Fix that "ss" in look-behind causes syntax error
Fixes k-takata/Onigmo#92.

This fix was ported from oniguruma:
257082dac8

b1a5445fbe
2025-11-06 10:25:26 -08:00
Nobuyoshi Nakada
d2cd7eaa11 Update rubyspec as of CVE-2025-27221 2025-10-07 09:15:46 -07:00
Janosch Müller
5a42d267bf Make word prop match join_control to conform to UTS 18
See <https://bugs.ruby-lang.org/issues/19417#note-3>.

https://unicode.org/reports/tr18/#word states word should match join_control chars.

It did not previously:

```ruby
[*0x0..0xD799, *0xE000..0x10FFFF].map { |n| n.chr 'utf-8' } => all_chars
all_chars.grep(/\p{join_control}/) => jc
jc.count # => 2
jc.grep(/\p{word}/).count # => 0
```
[Backport #19417]

---

Backporting note: I regenerated `enc/unicode/15.0.0/name2ctype.h` using
`make update-unicode`.
2025-08-27 15:17:15 -07:00
Jeremy Evans
fd036dbc3f Do not respect ruby2_keywords on method/proc with post arguments
Previously, ruby2_keywords could be used on a method or proc with
post arguments, but I don't think the behavior is desired:

```ruby
def a(*c, **kw) [c, kw] end
def b(*a, b) a(*a, b) end
ruby2_keywords(:b)

b({foo: 1}, bar: 1)
```

This changes ruby2_keywords to emit a warning and not set the
flag on a method/proc with post arguments.

While here, fix the ruby2_keywords specs for warnings, since they
weren't testing what they should be testing.  They all warned
because the method didn't accept a rest argument, not because it
accepted a keyword or keyword rest argument.

[Backport #21402]
2025-08-27 14:29:42 -07:00
Takashi Kokubun
e68adac82a merge revision(s) 097d742a1ed53afb91e83aef01365d68b763357b: [Backport #20009]
[Bug #20009] Support marshaling non-ASCII name class/module
2025-07-14 14:14:34 -07:00
David Rodríguez
baa5f15b33 Sync Bundler and adapt to new spec setup 2025-05-28 14:14:49 -04:00
David Rodríguez
89bcc631f4 Revert "Revert d74fa0fdda"
This reverts commit 7dcfdf1d7d1b1d13ab9bdc6f2b4bb89c78629332.
2025-05-28 14:14:49 -04:00
David Rodríguez
877ae93e83 Initialize gems tmp when initializing bundled_gems_spec suite
That way it works even if no Bundler specs have run before.
2025-05-28 14:14:49 -04:00
Hiroshi SHIBATA
439428c8c5 Skip failing example on Ubuntu runner of ruby/ruby
https://github.com/ruby/ruby/actions/runs/14585602800/job/40910453142
2025-05-23 12:56:37 +09:00
Hiroshi SHIBATA
7dcfdf1d7d Revert d74fa0fdda 2025-05-23 12:56:37 +09:00
Hiroshi SHIBATA
616771e34e Merge RubyGems-3.6.9 and Bundler-2.6.9 2025-05-22 09:20:28 -07:00
Hiroshi SHIBATA
d766eceb48 Merge RubyGems-3.6.8 and Bundler-2.6.8 2025-05-22 09:20:28 -07:00
Hiroshi SHIBATA
e580145171 Merge RubyGems-3.6.7 and Bundler-2.6.7 2025-04-08 17:54:29 -07:00
Hiroshi SHIBATA
db2bf9f078 Merge RubyGems-3.6.6 and Bundler-2.6.6 2025-04-08 17:54:29 -07:00
Nobuyoshi Nakada
5b3970f68b [Bug #21094] Update nested module names when setting temporary name
[Backport #21094]
2025-03-20 09:41:35 -07:00
Nobuyoshi Nakada
5cc4398297 Check LoadError first
The message from dlerror is not our concern.
2025-03-13 09:28:17 -07:00
Hiroshi SHIBATA
adc7f046ec Added assertion strings with Xcode 16.3 beta 2025-03-13 09:28:17 -07:00
Hiroshi SHIBATA
06451f0dec Merge RubyGems-3.6.5 and Bundler-2.6.5 2025-02-20 16:50:20 -08:00
Hiroshi SHIBATA
a0025b6e5d Merge RubyGems-3.6.4 and Bundler-2.6.4 2025-02-20 16:50:20 -08:00
Hiroshi SHIBATA
19c69f382b Merge RubyGems-3.6.3 and Bundler-2.6.3 2025-02-20 16:50:20 -08:00
Nobuyoshi Nakada
24f48c83e7 [Bug #20982] Put spaces in ENV.inspect results as well as Hash 2025-02-13 21:43:19 -08:00
Takashi Kokubun
feb4a688a2 merge revision(s) 46b544c54955348ef1ea9692b837b061f59f91cd, d3abee739f4feb91bb9aaae33877d70c8c576db0: [Backport #21095]
Prefer `uname -n` over `hostname`. (#12647)

	Add fallback for `hostname` if `uname` isn't available. (#12655)
2025-02-13 21:12:07 -08:00
Nobuyoshi Nakada
94df8a0cae Postpone spec of eszett with ignore case in look behind 2024-12-24 17:50:01 +09:00
David Rodríguez
42026ec3da Fix bundled gems warning for sub feature locations 2024-12-24 12:07:54 +09:00
David Rodríguez
9e0eb9778d Merge RubyGems-3.6.2 and Bundler-2.6.2 2024-12-24 07:21:10 +09:00
Nobuyoshi Nakada
bf5f8ecef1
[Bug #20978] Use ruby_bug instead of ruby_version_is 2024-12-23 19:21:46 +09:00
Nobuyoshi Nakada
adad97a031
[Bug #20978] Stringize Fiber storage keys 2024-12-23 18:16:28 +09:00
Hiroshi SHIBATA
4de6680a88
Added limitation of bundled_gems.rb with sub-feature example 2024-12-23 16:21:27 +09:00
David Rodríguez
3cbfd21916 Fix code location in bundled gems warnings 2024-12-23 16:01:30 +09:00
David Rodríguez
62a727536c Fix spec description
We're actually expecting the warning to not be displayed here.
2024-12-23 16:01:30 +09:00
Nobuyoshi Nakada
99d5e6ab7a
Suppress WIN32OLE deprecation warnings for the time being 2024-12-22 22:10:02 +09:00
David Rodríguez
29d3ea1e84 [rubygems/rubygems] Fix bundle lock --add-checksums when gems are already installed
https://github.com/rubygems/rubygems/commit/a087c452ad
2024-12-16 19:51:16 +00:00
Camden Narzt
6cde41bc52 [rubygems/rubygems] Fix restarting with locked version when $PROGRAM_NAME has been changed
Use Process.argv0 instead of $PROGRAM_NAME because $PROGRAM_NAME is
liable to be changed but Process.argv0 is not.

https://github.com/rubygems/rubygems/commit/43b747dc9e
2024-12-13 14:23:30 +00:00
David Rodríguez
3a32867762 [rubygems/rubygems] Add note about why we don't use Open3
https://github.com/rubygems/rubygems/commit/72316ed2fa
2024-12-13 11:20:44 +09:00
David Rodríguez
4fe134fab9 [rubygems/rubygems] No need for --quiet since we hide output by default
https://github.com/rubygems/rubygems/commit/77133a23f5
2024-12-13 11:20:44 +09:00
David Rodríguez
706cabb135 [rubygems/rubygems] Don't print a bunch of blank lines when setting up dependencies
https://github.com/rubygems/rubygems/commit/48fd2d0514
2024-12-13 11:20:43 +09:00
Naoto Ono
46e8a26c17
Launchable: Start recording test-spec results (#12302) 2024-12-12 16:32:35 +09:00
git
52be46ab50 * append newline at EOF. [ci skip] 2024-12-12 05:43:17 +00:00
Hiroshi SHIBATA
58f3cdad26 tmp/test-pipes is no longer needed 2024-12-12 14:43:07 +09:00
Hiroshi SHIBATA
5d5525e3a8 Use directory structure and GEM_HOME for ruby-core repository 2024-12-12 14:43:07 +09:00
Hiroshi SHIBATA
1967ae20b9 Use patched version of turbo_tests 2024-12-12 14:43:07 +09:00