summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-02-22 11:31:52 +1100
committerSamuel Giddins <segiddins@segiddins.me>2017-02-22 11:31:52 +1100
commit961756b517548cbd2b4252c05c06fd89c478e0ac (patch)
tree30431087aa6797c2e31483a0b80d3014f9713bfc
parent747fee18e234d3794d7106995e5d86e88de6b127 (diff)
downloadbundler-961756b517548cbd2b4252c05c06fd89c478e0ac.tar.gz
[LazySpecification] Handle when platform is nil in __materialize__seg-lazy-specification-nil-platform
-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 adafa42342..891495c1d4 100644
--- a/lib/bundler/lazy_specification.rb
+++ b/lib/bundler/lazy_specification.rb
@@ -73,7 +73,7 @@ module Bundler
source.gemspec.tap {|s| s.source = source }
else
search = source.specs.search(search_object).last
- if search && search.platform != platform && !search.runtime_dependencies.-(dependencies.reject {|d| d.type == :development }).empty?
+ if search && Gem::Platform.new(search.platform) != Gem::Platform.new(platform) && !search.runtime_dependencies.-(dependencies.reject {|d| d.type == :development }).empty?
Bundler.ui.warn "Unable to use the platform-specific (#{search.platform}) version of #{name} (#{version}) " \
"because it has different dependencies from the #{platform} version. " \
"To use the platform-specific version of the gem, run `bundle config specific_platform true` and install again."