summaryrefslogtreecommitdiff
path: root/lib/bundler/spec_set.rb
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2013-02-24 21:15:05 -0800
committerAndre Arko <andre@arko.net>2013-02-24 21:15:05 -0800
commit40f00ceaa9b0d630127cf914708647ff8848d7c2 (patch)
tree2a70992ebfd744074cdda19b75c198f29d289dfa /lib/bundler/spec_set.rb
parent54af1f2bf2656ffea5fc96a49bbe0b99cbcac66e (diff)
downloadbundler-40f00ceaa9b0d630127cf914708647ff8848d7c2.tar.gz
multiline ternary? gross
Diffstat (limited to 'lib/bundler/spec_set.rb')
-rw-r--r--lib/bundler/spec_set.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/bundler/spec_set.rb b/lib/bundler/spec_set.rb
index 2149b64bad..2cdffdc83f 100644
--- a/lib/bundler/spec_set.rb
+++ b/lib/bundler/spec_set.rb
@@ -22,9 +22,11 @@ module Bundler
next if handled[dep] || skip.include?(dep.name)
spec = lookup[dep.name].find do |s|
- match_current_platform ?
- Gem::Platform.match(s.platform) :
+ if match_current_platform
+ Gem::Platform.match(s.platform)
+ else
s.match_platform(dep.__platform)
+ end
end
handled[dep] = true