Sha256: 5b4232a5531f589a6701b400b489958910549cd4418f51ae8f3da9681e77f383
Contents?: true
Size: 696 Bytes
Versions: 6
Compression:
Stored size: 696 Bytes
Contents
require 'rubycritic/colorize' module Rubycritic module Analyser class Churn include Colorize attr_writer :source_control_system def initialize(analysed_modules) @analysed_modules = analysed_modules @source_control_system = Config.source_control_system end def run @analysed_modules.each do |analysed_module| analysed_module.churn = @source_control_system.revisions_count(analysed_module.path) analysed_module.committed_at = @source_control_system.date_of_last_commit(analysed_module.path) print green '.' end puts '' end def to_s 'churn' end end end end
Version data entries
6 entries across 6 versions & 1 rubygems