diff options
author | Carl Lerche <carllerche@mac.com> | 2010-06-01 13:36:27 -0700 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-06-01 13:36:27 -0700 |
commit | 085465ae33574b43cd9a097937c56d1e3013ff1a (patch) | |
tree | fcd1dc043e153b57c15ff8d44d7f85e080c9cefb /lib/bundler/index.rb | |
parent | 1639a9763a94af23e77a179f936069ddd13ebc52 (diff) | |
download | bundler-085465ae33574b43cd9a097937c56d1e3013ff1a.tar.gz |
Have the resolver filter by platform instead of the sources
Diffstat (limited to 'lib/bundler/index.rb')
-rw-r--r-- | lib/bundler/index.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/index.rb b/lib/bundler/index.rb index 08e7afde02..ca3a3ec9ab 100644 --- a/lib/bundler/index.rb +++ b/lib/bundler/index.rb @@ -77,7 +77,7 @@ module Bundler wants_prerelease = dependency.requirement.prerelease? only_prerelease = specs.all? {|spec| spec.version.prerelease? } - found = specs.select { |spec| dependency =~ spec } + found = specs.select { |spec| dependency =~ spec && Gem::Platform.match(spec.platform) } unless wants_prerelease || only_prerelease found.reject! { |spec| spec.version.prerelease? } |