From f0bf9391dc61a8cf2500c9e6f361d1c336edf7bd Mon Sep 17 00:00:00 2001 From: Martin Emde Date: Fri, 18 Aug 2023 09:31:48 -0700 Subject: [PATCH] [rubygems/rubygems] Don't rely on globals when not matching regexp for "local." https://github.com/rubygems/rubygems/commit/e79ccdafd8 --- lib/bundler/settings.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bundler/settings.rb b/lib/bundler/settings.rb index 0c2fefb027..ce8112b793 100644 --- a/lib/bundler/settings.rb +++ b/lib/bundler/settings.rb @@ -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