From f5b88d93ae58dd8a956782f08a435e452f5eba12 Mon Sep 17 00:00:00 2001 From: David Rodríguez Date: Mon, 30 May 2022 21:46:47 +0200 Subject: [rubygems/rubygems] Remove code that seems unnecessary This change was never covered with a spec, and we have recently covered the case of partially deleted gems with specs and it works fine (installation is "auto-healed"). https://github.com/rubygems/rubygems/commit/6e66ee4235 --- lib/bundler/stub_specification.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/bundler/stub_specification.rb b/lib/bundler/stub_specification.rb index fa071901e5..4a23b2cfe8 100644 --- a/lib/bundler/stub_specification.rb +++ b/lib/bundler/stub_specification.rb @@ -64,9 +64,7 @@ module Bundler end def full_gem_path - # deleted gems can have their stubs return nil, so in that case grab the - # expired path from the full spec - stub.full_gem_path || method_missing(:full_gem_path) + stub.full_gem_path end def full_require_paths -- cgit v1.2.3