summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-09-21 13:43:56 +0200
committerSamuel Giddins <segiddins@segiddins.me>2016-09-21 13:56:42 +0200
commit0ce612b6c2f165e4505f1b17fe81e35274b51acc (patch)
treef9ed2c013bd2430d5ed4c52e4e9ff0d1bc8b7452
parent03633e15bfb4763ab7015f4abe6ca4ec1938d759 (diff)
downloadbundler-0ce612b6c2f165e4505f1b17fe81e35274b51acc.tar.gz
[LazySpecification] Select the best platform match when materializing
-rw-r--r--lib/bundler/lazy_specification.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/lazy_specification.rb b/lib/bundler/lazy_specification.rb
index 0b667f7dbe..2fcb2a788e 100644
--- a/lib/bundler/lazy_specification.rb
+++ b/lib/bundler/lazy_specification.rb
@@ -70,7 +70,7 @@ module Bundler
def __materialize__
search_object = Bundler.settings[:specific_platform] ? self : Dependency.new(name, version)
- @specification = source.specs.search(search_object).last
+ @specification = select_best_platform_match(source.specs.search(search_object), Gem::Platform.new(platform))
end
def respond_to?(*args)