Sha256: dca86a2a53bd16ff9ff34bb81b562eb5b0f1a8dabf97190bce19a913545937b0
Contents?: true
Size: 505 Bytes
Versions: 15
Compression:
Stored size: 505 Bytes
Contents
module MetricFu class Churn < Generator def initialize(options={}) super end def emit @output = `churn --yaml` yaml_start = @output.index("---") @output = @output[yaml_start...@output.length] if yaml_start end def analyze if @output.match(/Churning requires a subversion or git repo/) @churn = [:churn => {}] else @churn = YAML::load(@output) end end def to_h {:churn => @churn[:churn]} end end end
Version data entries
15 entries across 15 versions & 4 rubygems