Hiroshi SHIBATA 2026-08-27 05:53:41 +0000 (Thu, 27 Aug 2026)
New Revision: ed0519b71a
https://github.com/ruby/ruby/commit/ed0519b71a
Log:
[ruby/rubygems] Only coerce exact true and false gemrc values to booleans
Alternation binds looser than the anchors, so `/\Atrue|false\Z/` reads as
`(\Atrue)|(false\Z)` and quietly turned every gemrc string starting with
`true` or ending with `false` into the boolean false. `:credential_store:
truestore` disabled the store while `RUBYGEMS_CREDENTIAL_STORE=truestore`
returned the backend name. The neighbouring branches move to `\z` for the
same reason, since `\Z` also accepts a trailing newline and let `":foo\n"`
become a symbol that still carried it.
https://github.com/ruby/rubygems/commit/3cfada30ba
Co-Authored-By: Claude Opus 5 <
nor...@anthropic.com>
Modified files:
lib/rubygems/config_file.rb
test/rubygems/test_gem_config_file.rb