Commit a6323df7 authored by Eloy Durán's avatar Eloy Durán

Handle pods in (case-insensitive) alphabetical order.

The output of this looks better.
parent cb2d9967
......@@ -47,9 +47,9 @@ module Pod
# @return [void]
#
def install_dependencies!
pods.each do |pod|
pods.sort_by { |pod| pod.top_specification.name.downcase }.each do |pod|
name = pod.top_specification.name
should_install = @resolver.should_install?(name) || !pod.exists?
should_install = @resolver.should_install?(name) || !pod.exists?
unless config.silent?
marker = config.verbose ? "\n-> ".green : ''
......@@ -58,7 +58,7 @@ module Pod
else
name = pod.to_s
end
puts marker << ( should_install ? "Installing #{name}".green : "Using #{name}" )
puts marker << ( should_install ? "Installing #{name}".green : "Using #{name}" )
end
if should_install
......
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