diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-09-21 13:43:56 +0200 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-09-21 13:56:42 +0200 |
commit | 0ce612b6c2f165e4505f1b17fe81e35274b51acc (patch) | |
tree | f9ed2c013bd2430d5ed4c52e4e9ff0d1bc8b7452 | |
parent | 03633e15bfb4763ab7015f4abe6ca4ec1938d759 (diff) | |
download | bundler-0ce612b6c2f165e4505f1b17fe81e35274b51acc.tar.gz |
[LazySpecification] Select the best platform match when materializing
-rw-r--r-- | lib/bundler/lazy_specification.rb | 2 |
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) |