summaryrefslogtreecommitdiff
path: root/lib/bundler/definition.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2022-01-17 21:47:32 +0100
committergit <svn-admin@ruby-lang.org>2022-08-06 15:41:45 +0900
commitaf40af45b28a9576d5ae6a46d9678c0e3d6be005 (patch)
tree6fb0c0c4f86628c02881c3423107601b052022d4 /lib/bundler/definition.rb
parent27173e3735ff509dc8d9cc9b410baff84adf57dc (diff)
[rubygems/rubygems] Extract `SourceList#get_with_fallback`
https://github.com/rubygems/rubygems/commit/9dbc4757a8
Diffstat (limited to 'lib/bundler/definition.rb')
-rw-r--r--lib/bundler/definition.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb
index ccb3ab1cec..30e1820eec 100644
--- a/lib/bundler/definition.rb
+++ b/lib/bundler/definition.rb
@@ -743,7 +743,7 @@ module Bundler
# Replace the locked dependency's source with the equivalent source from the Gemfile
dep = @dependencies.find {|d| s.satisfies?(d) }
- s.source = (dep && dep.source) || sources.get(s.source) || sources.default_source
+ s.source = (dep && dep.source) || sources.get_with_fallback(s.source)
next if @unlock[:sources].include?(s.source.name)