diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-09-22 12:09:58 +0200 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-09-22 12:09:58 +0200 |
commit | ea86a1902ea34ddb10f4bc8cc96f58e8a0a7e946 (patch) | |
tree | dfa041ebd7775eef9de1575be87358fcf04413f7 | |
parent | 6c64e19a24f6ae92c5428d8b1be8f65c21c6c9db (diff) | |
download | bundler-seg-lazy-specification-materialize-platform.tar.gz |
[LazySpecification] Only use a Source::Gemspec#gemspec when its the right gemseg-lazy-specification-materialize-platform
-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 ecc6923439..13e7f5fc3c 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 = if source.is_a?(Source::Gemspec) + @specification = if source.is_a?(Source::Gemspec) && source.gemspec.name == name source.gemspec.tap {|s| s.source = source } else source.specs.search(search_object).last |