aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/runtime.rb
diff options
context:
space:
mode:
authorCody Cutrer <cody@instructure.com>2014-09-08 22:26:08 -0600
committerCody Cutrer <cody@instructure.com>2014-12-23 11:04:38 -0700
commit288420b8069f07f0d11e8403128544ce0138a905 (patch)
treec9e9fb9a882dae87009a97a224e3db3e8617dc7c /lib/bundler/runtime.rb
parent17919e790cd8f6fb369d6afc81f0afec6fb5ad8b (diff)
downloadbundler-288420b8069f07f0d11e8403128544ce0138a905.tar.gz
implement all_platforms options for cache/package
so that a single cache directory can be used with multiple ruby versions
Diffstat (limited to 'lib/bundler/runtime.rb')
-rw-r--r--lib/bundler/runtime.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/runtime.rb b/lib/bundler/runtime.rb
index 905cd1d7..52377d27 100644
--- a/lib/bundler/runtime.rb
+++ b/lib/bundler/runtime.rb
@@ -112,6 +112,7 @@ module Bundler
Bundler.ui.info "Updating files in vendor/cache"
specs.each do |spec|
next if spec.name == 'bundler'
+ spec.source.send(:fetch_gem, spec) if Bundler.settings[:cache_all_platforms] && spec.source.respond_to?(:fetch_gem, true)
spec.source.cache(spec, custom_path) if spec.source.respond_to?(:cache)
end