summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-08-05 17:04:15 -0500
committerSamuel Giddins <segiddins@segiddins.me>2016-08-25 11:16:58 -0500
commit3707f568f1cfcdf7798e623561ec4d35870b7f7d (patch)
treefef74c95a6b3d06d2f96561578f1fad0c14b2977
parentea664dabd11f4e36b2842b31a59884cbcff7d5e2 (diff)
downloadbundler-3707f568f1cfcdf7798e623561ec4d35870b7f7d.tar.gz
[Source] Always print the platform when installing
-rw-r--r--lib/bundler/source.rb2
-rw-r--r--spec/bundler/source_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/source.rb b/lib/bundler/source.rb
index e18d8ba1cb..b6f3a4311d 100644
--- a/lib/bundler/source.rb
+++ b/lib/bundler/source.rb
@@ -14,7 +14,7 @@ module Bundler
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 25abd90c96..4e99411a17 100644
--- a/spec/bundler/source_spec.rb
+++ b/spec/bundler/source_spec.rb
@@ -22,7 +22,7 @@ describe Bundler::Source do
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