[rubygems/rubygems] Don't rely on globals when not matching regexp for "local."

https://github.com/rubygems/rubygems/commit/e79ccdafd8
This commit is contained in:
Martin Emde 2023-08-18 09:31:48 -07:00 committed by git
parent b5a0630cd0
commit f0bf9391dc

View File

@ -161,7 +161,7 @@ module Bundler
def local_overrides
repos = {}
all.each do |k|
repos[$'] = self[k] if k.start_with?("local.")
repos[k.delete_prefix("local.")] = self[k] if k.start_with?("local.")
end
repos
end