diff options
author | Colby Swandale <me@colby.fyi> | 2018-09-23 00:15:32 +1000 |
---|---|---|
committer | Colby Swandale <me@colby.fyi> | 2018-10-05 16:15:43 +1000 |
commit | e6de3b9c098538dac8a862fed01ccb4dc01a49b4 (patch) | |
tree | 4ae60abeac2b932badca048c5b65b31d833c4927 | |
parent | 5bf0bc55de9b9ca958131d09d40d6f77583835f1 (diff) | |
download | bundler-e6de3b9c098538dac8a862fed01ccb4dc01a49b4.tar.gz |
check for extensions_dir during bundle pristine
-rw-r--r-- | lib/bundler/cli/pristine.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/cli/pristine.rb b/lib/bundler/cli/pristine.rb index 532b3e0b5b..4a411a83fc 100644 --- a/lib/bundler/cli/pristine.rb +++ b/lib/bundler/cli/pristine.rb @@ -33,7 +33,7 @@ module Bundler if extension_cache_path = source.extension_cache_path(spec) FileUtils.rm_rf extension_cache_path end - FileUtils.rm_rf spec.extension_dir + FileUtils.rm_rf spec.extension_dir if spec.respond_to?(:extension_dir) FileUtils.rm_rf spec.full_gem_path else Bundler.ui.warn("Cannot pristine #{gem_name}. Gem is sourced from local path.") |