lib/bundler/rubygems_integration.rb in bundler-1.6.1 vs lib/bundler/rubygems_integration.rb in bundler-1.6.2

- old
+ new

@@ -91,9 +91,13 @@ def gem_path Gem.path end + def gem_cache + gem_path.map{|p| File.expand_path("cache", p) } + end + def spec_cache_dirs @spec_cache_dirs ||= begin dirs = gem_path.map {|dir| File.join(dir, 'specifications')} dirs << Gem.spec_cache_dir if Gem.respond_to?(:spec_cache_dir) # Not in Rubygems 2.0.3 or earlier dirs.uniq.select {|dir| File.directory? dir}