[前][次][番号順一覧][スレッド一覧]

ruby-changes:70035

From: David <ko1@a...>
Date: Fri, 3 Dec 2021 20:01:09 +0900 (JST)
Subject: [ruby-changes:70035] d19c266b49 (master): [rubygems/rubygems] Reuse `locked_dependencies` helper

https://git.ruby-lang.org/ruby.git/commit/?id=d19c266b49

From d19c266b49022e6788a4e14be86fef22a73d5871 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...>
Date: Wed, 17 Nov 2021 12:02:24 +0100
Subject: [rubygems/rubygems] Reuse `locked_dependencies` helper

It makes the code more consistent with the above line.

https://github.com/rubygems/rubygems/commit/f28d05a548
---
 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 24d877a8fa5..58612e5c168 100644
--- a/lib/bundler/definition.rb
+++ b/lib/bundler/definition.rb
@@ -400,7 +400,7 @@ module Bundler https://github.com/ruby/ruby/blob/trunk/lib/bundler/definition.rb#L400
 
       both_sources = Hash.new {|h, k| h[k] = [] }
       @dependencies.each {|d| both_sources[d.name][0] = d }
-      @locked_deps.each  {|name, d| both_sources[name][1] = d.source }
+      locked_dependencies.each {|d| both_sources[d.name][1] = d.source }
 
       both_sources.each do |name, (dep, lock_source)|
         next if lock_source.nil? || lock_source.can_lock?(dep)
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]