We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
spec.source
1 parent 000f019 commit 192e57dCopy full SHA for 192e57d
lib/bundler/runtime.rb
@@ -130,11 +130,14 @@ def cache(custom_path = nil, local = false)
130
131
specs_to_cache.each do |spec|
132
next if spec.name == "bundler"
133
- next if spec.source.is_a?(Source::Gemspec)
134
- if spec.source.respond_to?(:migrate_cache)
135
- spec.source.migrate_cache(custom_path, local: local)
136
- elsif spec.source.respond_to?(:cache)
137
- spec.source.cache(spec, custom_path)
+
+ source = spec.source
+ next if source.is_a?(Source::Gemspec)
+ if source.respond_to?(:migrate_cache)
138
+ source.migrate_cache(custom_path, local: local)
139
+ elsif source.respond_to?(:cache)
140
+ source.cache(spec, custom_path)
141
end
142
143
0 commit comments