10 Commits
Author SHA1 Message Date
Hiroshi SHIBATA 8ef77c3dfe [ruby/rubygems] Load the worktree RubyGems in the dev binstubs
After flattening, lib/ holds both RubyGems and Bundler, so any dev binstub
that puts the worktree lib/ on $LOAD_PATH now overlays the already-booted
system RubyGems with the worktree one. bin/bundle hit this through the
Bundler gemspec activation: the partial overlay mixed a worktree Gem with
an older system Gem::ConfigFile, breaking native extension installs on Ruby
3.2/3.3 (undefined install_extension_in_lib) and corrupting spec names
elsewhere. The same overlay breaks bin/rake, bin/ronn, bin/rubocop and
bin/mdl, which unshift the worktree lib/ (or require it through
rubygems_ext) but boot on the system RubyGems. On a host whose RubyGems
differs from the worktree copy this double-loads files like rubygems/package
and raises (undefined method `spec=' for class Gem::Package::Old).

Route all of them through switch_rubygems, like bin/rspec and bin/test-unit
already do, so they re-exec onto the worktree RubyGems before anything is
loaded. Point the shared gem home job at the worktree copy too, since the
dev binstub can no longer load a separately installed RubyGems, and the
matrix is redundant for now.

https://github.com/ruby/rubygems/commit/f50eb4216d
2026-06-24 14:43:37 +09:00
Hiroshi SHIBATAandClaude Opus 4.6 a0093092fc [ruby/rubygems] Default RGV to "." and add switch_rubygems to bin/rspec
With spec/ at the repo root, rspec auto-adds lib/ to $LOAD_PATH,
which now points to the repo's rubygems lib instead of bundler's lib.
This causes a conflict between system and local rubygems. Adding
switch_rubygems ensures a clean local rubygems load from the start.

Also default RGV to "." so no environment variables are needed to
run bin/rspec or bin/parallel_rspec.

https://github.com/ruby/rubygems/commit/b4774e3aab

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 17:25:02 +09:00
Hiroshi SHIBATA 021d9c59b1 Revert "[ruby/rubygems] Move bundler/bin scripts to top-level bin/ for simpler test execution"
This reverts commit e98ed19ab0.
2026-03-23 16:22:49 +09:00
Hiroshi SHIBATAandClaude Opus 4.6 e98ed19ab0 [ruby/rubygems] Move bundler/bin scripts to top-level bin/ for simpler test execution
This allows running bundler tests directly from the repository root
without needing to chdir into the bundler directory first.

https://github.com/ruby/rubygems/commit/ba4edd7e06

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 07:16:38 +00:00
David Rodríguez 81da38b308 Sync RubyGems 2025-07-03 13:43:00 +09:00
David Rodríguez 3a6844a692 Tweak to spec setup so that rspec instead of our bin/rspec binstub still works 2025-06-12 08:45:02 +09:00
David Rodríguez ec897fd204 Fix make test-bundler 2025-06-11 09:38:56 +09:00
David Rodríguez 756479324f Sync Bundler and adapt to new spec setup 2025-04-10 19:21:51 +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