aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2010-04-22 08:20:56 -0700
committerAndre Arko <andre@arko.net>2010-04-23 10:18:52 -0700
commiteb27834cf2c169b8b715ab8723b107b498c2435e (patch)
tree5bbbf8d7ce47b782e367362bf25e33e739cf9098 /lib
parent3ad9f43d13cb49249466457ca267dfbffde6dca5 (diff)
downloadbundler-eb27834cf2c169b8b715ab8723b107b498c2435e.tar.gz
Pruning should handle directories and non-gem files in vendor/cache
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/runtime.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/runtime.rb b/lib/bundler/runtime.rb
index de5e739e..e49b8d23 100644
--- a/lib/bundler/runtime.rb
+++ b/lib/bundler/runtime.rb
@@ -81,7 +81,7 @@ module Bundler
FileUtils.mkdir_p(cache_path)
Bundler.ui.info "Removing outdated .gem files from vendor/cache"
- cache_path.children.each do |gem_path|
+ Pathname.glob(cache_path.join("*.gem")).each do |gem_path|
cached_spec = Gem::Format.from_file_by_path(gem_path).spec
next unless Gem::Platform.match(cached_spec.platform)
unless specs.any?{|s| s.full_name == cached_spec.full_name }