mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
parent
4868cfcf1d
commit
f4b073ef7a
5 changed files with 31 additions and 31 deletions
|
@ -47,14 +47,14 @@ class Gem::Commands::CheckCommand < Gem::Command
|
|||
end
|
||||
|
||||
Gem::Validator.new.alien(gems).sort.each do |key, val|
|
||||
unless val.empty?
|
||||
if val.empty?
|
||||
say "#{key} is error-free" if Gem.configuration.verbose
|
||||
else
|
||||
say "#{key} has #{val.size} problems"
|
||||
val.each do |error_entry|
|
||||
say " #{error_entry.path}:"
|
||||
say " #{error_entry.problem}"
|
||||
end
|
||||
else
|
||||
say "#{key} is error-free" if Gem.configuration.verbose
|
||||
end
|
||||
say
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue