diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2017-04-08 11:48:33 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2017-04-08 11:48:33 -0500 |
commit | 5b3b3ad0116d319aaf5c4c6d6dd2796480912d59 (patch) | |
tree | 655ee4b856c8629bf7baf865905b5012f1db4516 | |
parent | 401daf4cf4f9367b1e856993ffcd03bd7247ece7 (diff) | |
download | bundler-5b3b3ad0116d319aaf5c4c6d6dd2796480912d59.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.rb | 4 |
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") |