Commit 68b63814 authored by Fabio Pelosin's avatar Fabio Pelosin

Fix incorrect name for specs with preferred dependency in podfile.lock

parent 9027f200
...@@ -48,7 +48,8 @@ module Pod ...@@ -48,7 +48,8 @@ module Pod
pods.each do |pod| pods.each do |pod|
unless config.silent? unless config.silent?
marker = config.verbose ? "\n-> ".green : '' marker = config.verbose ? "\n-> ".green : ''
puts marker << ( pod.exists? ? "Using #{pod}" : "Installing #{pod}".green ) name = pod.top_specification.preferred_dependency ? "#{pod.top_specification.name}/#{pod.top_specification.preferred_dependency} (#{pod.top_specification.version})" : pod.name
puts marker << ( pod.exists? ? "Using #{name}" : "Installing #{name}".green )
end end
should_install = !pod.exists? should_install = !pod.exists?
......
...@@ -406,7 +406,7 @@ module Pod ...@@ -406,7 +406,7 @@ module Pod
end end
def to_s def to_s
preferred_dependency ? "#{name}/#{preferred_dependency} (#{version})" : "#{name} (#{version})" "#{name} (#{version})"
end end
def inspect def inspect
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment