ruby-changes:74079
From: David <ko1@a...>
Date: Tue, 18 Oct 2022 16:33:38 +0900 (JST)
Subject: [ruby-changes:74079] 56ad79694b (master): [rubygems/rubygems] Simplify fetching spec group dependencies
https://git.ruby-lang.org/ruby.git/commit/?id=56ad79694b From 56ad79694ba18789cb26a85dd693d51d96a092c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Mon, 12 Sep 2022 18:46:01 +0200 Subject: [rubygems/rubygems] Simplify fetching spec group dependencies https://github.com/rubygems/rubygems/commit/62c2edd255 --- lib/bundler/resolver/spec_group.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/bundler/resolver/spec_group.rb b/lib/bundler/resolver/spec_group.rb index dfe15a5052..2c00af3b84 100644 --- a/lib/bundler/resolver/spec_group.rb +++ b/lib/bundler/resolver/spec_group.rb @@ -19,9 +19,6 @@ module Bundler https://github.com/ruby/ruby/blob/trunk/lib/bundler/resolver/spec_group.rb#L19 @source = @exemplary_spec.source @activated_platforms = relevant_platforms - @dependencies = Hash.new do |dependencies, platforms| - dependencies[platforms] = dependencies_for(platforms) - end @specs = specs end @@ -45,7 +42,7 @@ module Bundler https://github.com/ruby/ruby/blob/trunk/lib/bundler/resolver/spec_group.rb#L42 end def dependencies_for_activated_platforms - @dependencies[activated_platforms] + @dependencies_for_activated_platforms ||= dependencies_for(activated_platforms) end def ==(other) -- cgit v1.2.3 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/