summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatijs van Zuijlen <matijs@matijs.net>2014-04-20 11:19:52 +0200
committerAndre Arko <andre@arko.net>2014-07-17 22:32:50 -0700
commitb4a39e8cc408aca7669bdb7bd86600df4ae47122 (patch)
tree7a651255d5a281ee30ed442d85ac49d21c04119f
parent70c4ecd9d90286278fa10ed34a93a486699b277c (diff)
downloadbundler-b4a39e8cc408aca7669bdb7bd86600df4ae47122.tar.gz
Skip non-local dependencies more rigourously
-rw-r--r--lib/bundler/definition.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb
index d843c00b70..527c021db8 100644
--- a/lib/bundler/definition.rb
+++ b/lib/bundler/definition.rb
@@ -580,6 +580,7 @@ module Bundler
deps = []
dependencies.each do |dep|
dep = Dependency.new(dep, ">= 0") unless dep.respond_to?(:name)
+ next unless remote || dep.current_platform?
dep.gem_platforms(@platforms).each do |p|
deps << DepProxy.new(dep, p) if remote || p == generic(Gem::Platform.local)
end