ruby-changes:72784
From: David <ko1@a...>
Date: Tue, 2 Aug 2022 16:10:45 +0900 (JST)
Subject: [ruby-changes:72784] 7cc5a657ee (master): [rubygems/rubygems] Remove unnecessary special case for Bundler
https://git.ruby-lang.org/ruby.git/commit/?id=7cc5a657ee From 7cc5a657eed1a537b33b7b2ec71fdb5ad9323950 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Sat, 23 Jul 2022 09:19:34 +0200 Subject: [rubygems/rubygems] Remove unnecessary special case for Bundler https://github.com/rubygems/rubygems/commit/2777e79b8e --- lib/bundler/definition.rb | 6 ++---- lib/bundler/spec_set.rb | 4 ---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb index 3e93b45171..34c23796e8 100644 --- a/lib/bundler/definition.rb +++ b/lib/bundler/definition.rb @@ -524,10 +524,8 @@ module Bundler https://github.com/ruby/ruby/blob/trunk/lib/bundler/definition.rb#L524 end end - unless specs["bundler"].any? - bundler = sources.metadata_source.specs.search(Gem::Dependency.new("bundler", VERSION)).last - specs["bundler"] = bundler - end + bundler = sources.metadata_source.specs.search(Gem::Dependency.new("bundler", VERSION)).last + specs["bundler"] = bundler specs end diff --git a/lib/bundler/spec_set.rb b/lib/bundler/spec_set.rb index 4e339ffe91..de2ad97330 100644 --- a/lib/bundler/spec_set.rb +++ b/lib/bundler/spec_set.rb @@ -35,10 +35,6 @@ module Bundler https://github.com/ruby/ruby/blob/trunk/lib/bundler/spec_set.rb#L35 end end - if spec = lookup["bundler"].first - specs << spec - end - specs end -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/