diff options
author | Andre Arko <andre@arko.net> | 2010-04-21 15:55:58 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2010-04-23 10:18:08 -0700 |
commit | 774fab56fc9f1c4e6527febfddf3de8d61f84b2f (patch) | |
tree | 2e3072c7791a7c13e7d0e052ceb6de22328b4f83 /lib | |
parent | 643b9f6b031b7eff8297ed7b7a529050e53c78ee (diff) | |
download | bundler-774fab56fc9f1c4e6527febfddf3de8d61f84b2f.tar.gz |
Gems with a platform of "ruby" still need to be pruned
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/runtime.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/runtime.rb b/lib/bundler/runtime.rb index f5bf62f0..de5e739e 100644 --- a/lib/bundler/runtime.rb +++ b/lib/bundler/runtime.rb @@ -83,7 +83,7 @@ module Bundler Bundler.ui.info "Removing outdated .gem files from vendor/cache" cache_path.children.each do |gem_path| cached_spec = Gem::Format.from_file_by_path(gem_path).spec - next unless cached_spec.platform =~ Gem::Platform.local + next unless Gem::Platform.match(cached_spec.platform) unless specs.any?{|s| s.full_name == cached_spec.full_name } Bundler.ui.info " * #{File.basename(gem_path)}" gem_path.rmtree |