diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2022-07-23 09:19:34 +0200 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-08-02 16:10:13 +0900 |
commit | 7cc5a657eed1a537b33b7b2ec71fdb5ad9323950 (patch) | |
tree | 095ec4a57465a3b630e111914438452f450ca75c /lib | |
parent | 6ec8f684aa1ff6182b4be3fc67b2fa5bad3f0bec (diff) |
[rubygems/rubygems] Remove unnecessary special case for Bundler
https://github.com/rubygems/rubygems/commit/2777e79b8e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/definition.rb | 6 | ||||
-rw-r--r-- | 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 |