7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/lapidarist/outdated.rb', line 7
def run
Lapidarist.logger.('Detecting outdated gems')
gems = outdated_gems.each_with_object([]) do |gem, results|
reason = reason_to_skip(gem)
if reason.nil?
Lapidarist.logger.info(" + #{gem.log_s}")
results.push Gem.from(gem, position: results.length)
else
Lapidarist.logger.info(" - (#{reason}) #{gem.log_s}")
results.push Gem.from(gem, position: results.length, status: :skipped, reason: reason)
end
end
Lapidarist.logger.debug(gems.map(&:name), :order)
Gems.new(gems)
end
|