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