summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-04-08 11:48:33 -0500
committerSamuel Giddins <segiddins@segiddins.me>2017-04-08 11:48:33 -0500
commit5b3b3ad0116d319aaf5c4c6d6dd2796480912d59 (patch)
tree655ee4b856c8629bf7baf865905b5012f1db4516
parent401daf4cf4f9367b1e856993ffcd03bd7247ece7 (diff)
downloadbundler-seg-stubs-no-load-full-spec.tar.gz
[StubSpecification] Return a path in #full_gem_path even if the gem is deletedseg-stubs-no-load-full-spec
-rw-r--r--lib/bundler/stub_specification.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bundler/stub_specification.rb b/lib/bundler/stub_specification.rb
index 85680d3da0..257a472224 100644
--- a/lib/bundler/stub_specification.rb
+++ b/lib/bundler/stub_specification.rb
@@ -37,7 +37,9 @@ module Bundler
end
def full_gem_path
- stub.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)
end
if Bundler.rubygems.provides?(">= 2.2.0")