Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
[Source] Always print the platform when installing
Browse files Browse the repository at this point in the history
  • Loading branch information
segiddins committed Aug 6, 2016
1 parent bb5ddae commit 25d0a8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/bundler/source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion spec/bundler/source_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 25d0a8e

Please sign in to comment.