diff options
author | Martin Emde <martinemde@users.noreply.github.com> | 2023-08-18 09:31:48 -0700 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-08-20 09:06:54 +0000 |
commit | f0bf9391dc61a8cf2500c9e6f361d1c336edf7bd (patch) | |
tree | b68adc2a6285c34abcb3391ec45de959381b8474 /lib/bundler/settings.rb | |
parent | b5a0630cd039afe1aaf523bfe0dd66e282b0c587 (diff) |
[rubygems/rubygems] Don't rely on globals when not matching regexp for "local."
https://github.com/rubygems/rubygems/commit/e79ccdafd8
Diffstat (limited to 'lib/bundler/settings.rb')
-rw-r--r-- | lib/bundler/settings.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |