diff options
| author | Andre Arko <andre@arko.net> | 2013-02-24 21:15:05 -0800 |
|---|---|---|
| committer | Andre Arko <andre@arko.net> | 2013-02-24 21:15:05 -0800 |
| commit | 40f00ceaa9b0d630127cf914708647ff8848d7c2 (patch) | |
| tree | 2a70992ebfd744074cdda19b75c198f29d289dfa /lib/bundler/spec_set.rb | |
| parent | 54af1f2bf2656ffea5fc96a49bbe0b99cbcac66e (diff) | |
| download | bundler-40f00ceaa9b0d630127cf914708647ff8848d7c2.tar.gz | |
multiline ternary? gross
Diffstat (limited to 'lib/bundler/spec_set.rb')
| -rw-r--r-- | lib/bundler/spec_set.rb | 6 |
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 |
