From 25d0a8e78055779c6052a8286e8368fe6de9bfae Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Fri, 5 Aug 2016 17:04:15 -0500 Subject: [PATCH] [Source] Always print the platform when installing --- lib/bundler/source.rb | 2 +- spec/bundler/source_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bundler/source.rb b/lib/bundler/source.rb index e18d8ba1cb7..b6f3a4311d8 100644 --- a/lib/bundler/source.rb +++ b/lib/bundler/source.rb @@ -14,7 +14,7 @@ def unmet_deps def version_message(spec) message = "#{spec.name} #{spec.version}" - message += " (#{spec.platform})" if Bundler.ui.debug? && spec.platform != Gem::Platform::RUBY + message += " (#{spec.platform})" if spec.platform != Gem::Platform::RUBY if Bundler.locked_gems locked_spec = Bundler.locked_gems.specs.find {|s| s.name == spec.name } diff --git a/spec/bundler/source_spec.rb b/spec/bundler/source_spec.rb index 25abd90c961..4e99411a17f 100644 --- a/spec/bundler/source_spec.rb +++ b/spec/bundler/source_spec.rb @@ -22,7 +22,7 @@ class ExampleSource < Bundler::Source end describe "#version_message" do - let(:spec) { double(:spec, :name => "nokogiri", :version => ">= 1.6") } + let(:spec) { double(:spec, :name => "nokogiri", :version => ">= 1.6", :platform => rb) } shared_examples_for "the lockfile specs are not relevant" do it "should return a string with the spec name and version" do