Browse files

gem update of multiple gems should identify those already up to date

  • Loading branch information...
1 parent d086073 commit 23c6a0eebf33a14f7bc5772ac51430002b3113c7 Tejas Bubane committed Jan 8, 2014
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/rubygems/commands/update_command.rb
View
7 lib/rubygems/commands/update_command.rb
@@ -97,10 +97,14 @@ def execute
updated = update_gems gems_to_update
+ updated_names = updated.map { |spec| spec.name }
+ not_updated_names = options[:args].uniq - updated_names
+
if updated.empty? then
say "Nothing to update"
else
- say "Gems updated: #{updated.map { |spec| spec.name }.join ' '}"
+ say "Gems updated: #{updated_names.join(' ')}"
+ say "Gems already up-to-date: #{not_updated_names.join(' ')}" unless not_updated_names.empty?
end
end
@@ -272,4 +276,3 @@ def which_to_update highest_installed_gems, gem_names, system = false
end
end
-

0 comments on commit 23c6a0e

Please sign in to comment.