9f4fb3efe9 (master): [ruby/rubygems] Add a filesystem access hook to Gem::CompactIndexClient

0 views
Skip to first unread message

Hiroshi SHIBATA

unread,
Aug 3, 2026, 10:35:17 PM (14 hours ago) Aug 3
to ruby...@g.ruby-lang.org
Hiroshi SHIBATA 2026-08-03 01:37:37 +0000 (Mon, 03 Aug 2026)

New Revision: 9f4fb3efe9

https://github.com/ruby/ruby/commit/9f4fb3efe9

Log:
[ruby/rubygems] Add a filesystem access hook to Gem::CompactIndexClient

Bundler's client wraps every cache read and write in
SharedHelpers.filesystem_access so permission problems surface as
friendly Bundler errors instead of bare Errno exceptions. Funnel the
same operations through an injectable hook, defaulting to a plain
yield, so Bundler can install its helper when it switches to this
client.

https://github.com/ruby/rubygems/commit/188c76539a

Co-Authored-By: Claude Fable 5 <nor...@anthropic.com>

Modified files:
lib/rubygems/compact_index_client.rb
lib/rubygems/compact_index_client/cache.rb
lib/rubygems/compact_index_client/cache_file.rb
test/rubygems/test_gem_compact_index_client.rb
Reply all
Reply to author
Forward
0 new messages