From 1c84a7cd265f107f5f6360d902d9621186f71a4b Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Fri, 5 Aug 2016 14:26:20 -0500 Subject: [LazySpecification] Only materialize for the current platform when :specific_platform is enabled --- lib/bundler/lazy_specification.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/bundler/lazy_specification.rb') diff --git a/lib/bundler/lazy_specification.rb b/lib/bundler/lazy_specification.rb index 0c7b4f2c..f4cd3614 100644 --- a/lib/bundler/lazy_specification.rb +++ b/lib/bundler/lazy_specification.rb @@ -55,7 +55,8 @@ module Bundler end def __materialize__ - @specification = source.specs.search(self).last + search_object = Bundler.settings[:specific_platform] ? self : Dependency.new(name, version) + @specification = source.specs.search(search_object).last end def respond_to?(*args) -- cgit v1.2.3