aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/source
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2022-06-30 11:54:53 +0200
committergit <svn-admin@ruby-lang.org>2022-07-02 19:41:02 +0900
commit9101269e948d838c916ea8342b8e6edce2e0957c (patch)
treeaf7e80f5ee23253aa4082156adec08fb41bde8a1 /lib/bundler/source
parent0f06b8fa3eb4387882adb949c311203d78628833 (diff)
downloadruby-9101269e948d838c916ea8342b8e6edce2e0957c.tar.gz
[rubygems/rubygems] Move rubygems source specific logic to rubygems source
https://github.com/rubygems/rubygems/commit/6aa4c422a7
Diffstat (limited to 'lib/bundler/source')
-rw-r--r--lib/bundler/source/rubygems.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/source/rubygems.rb b/lib/bundler/source/rubygems.rb
index 04ba4a654c..7200f54a9c 100644
--- a/lib/bundler/source/rubygems.rb
+++ b/lib/bundler/source/rubygems.rb
@@ -242,7 +242,7 @@ module Bundler
end
def cache(spec, custom_path = nil)
- cached_path = cached_gem(spec)
+ cached_path = Bundler.settings[:cache_all_platforms] ? fetch_gem(spec) : cached_gem(spec)
raise GemNotFound, "Missing gem file '#{spec.file_name}'." unless cached_path
return if File.dirname(cached_path) == Bundler.app_cache.to_s
Bundler.ui.info " * #{File.basename(cached_path)}"