lib/nicht/stats.rb in nicht-0.1.2 vs lib/nicht/stats.rb in nicht-0.1.3

- old
+ new

@@ -14,14 +14,15 @@ end output end private - + def scan_record(line, project_name) candidate = line.split(',').shift.split ' ' + return unless candidate.first == 'gem' gem_name = candidate.last - return unless candidate.first == 'gem' || %w[* #].include?(gem_name[0]) + return if %w[* #].include?(gem_name[0]) add_stat(gem_name, project_name) end def add_stat(gem_name, project_name) gem_name.delete!('\'') \ No newline at end of file