From 7cc5a657eed1a537b33b7b2ec71fdb5ad9323950 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Sat, 23 Jul 2022 09:19:34 +0200 Subject: [PATCH] [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 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 end end - if spec = lookup["bundler"].first - specs << spec - end - specs end