ruby-changes:72842
From: David <ko1@a...>
Date: Sat, 6 Aug 2022 15:42:03 +0900 (JST)
Subject: [ruby-changes:72842] 8dd63b89d9 (master): [rubygems/rubygems] Move comment where the actual replacement happens
https://git.ruby-lang.org/ruby.git/commit/?id=8dd63b89d9 From 8dd63b89d97a0ab149288f2e46d814fb60cb3ba5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Mon, 17 Jan 2022 23:01:01 +0100 Subject: [rubygems/rubygems] Move comment where the actual replacement happens https://github.com/rubygems/rubygems/commit/d60acdf80d --- lib/bundler/definition.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb index 71322d6d41..536099a20a 100644 --- a/lib/bundler/definition.rb +++ b/lib/bundler/definition.rb @@ -740,9 +740,9 @@ module Bundler https://github.com/ruby/ruby/blob/trunk/lib/bundler/definition.rb#L740 end specs.each do |s| - # Replace the locked dependency's source with the equivalent source from the Gemfile dep = @dependencies.find {|d| s.satisfies?(d) } + # Replace the locked dependency's source with the equivalent source from the Gemfile s.source = (dep && dep.source) || sources.get_with_fallback(s.source) next if @unlock[:sources].include?(s.source.name) -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/