diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-08-03 18:43:24 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-08-25 11:16:40 -0500 |
commit | a7163e32c3045b25c7bf2b90329971f3788da358 (patch) | |
tree | 806d10f9ec7df71df758f13c611fb0a269684157 /lib/bundler/runtime.rb | |
parent | 8513ed1481dde5b47eead96dd0a1cfe3d77c4c84 (diff) | |
download | bundler-a7163e32c3045b25c7bf2b90329971f3788da358.tar.gz |
Resolve for specific platforms
Diffstat (limited to 'lib/bundler/runtime.rb')
-rw-r--r-- | lib/bundler/runtime.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler/runtime.rb b/lib/bundler/runtime.rb index fda499cf5a..45f445aec1 100644 --- a/lib/bundler/runtime.rb +++ b/lib/bundler/runtime.rb @@ -140,7 +140,8 @@ module Bundler Bundler.ui.info "Updating files in #{Bundler.settings.app_cache_path}" - specs.each do |spec| + specs_to_cache = Bundler.settings[:cache_all_platforms] ? @definition.resolve.materialized_for_all_platforms : specs + specs_to_cache.each do |spec| next if spec.name == "bundler" next if spec.source.is_a?(Source::Gemspec) spec.source.send(:fetch_gem, spec) if Bundler.settings[:cache_all_platforms] && spec.source.respond_to?(:fetch_gem, true) |