Permalink
Browse files

made stats parsing a bit more robust (now works with rails3 in test e…

…nvironment)
  • Loading branch information...
1 parent fff2f88 commit 03c02d3144d541fc88a1b84957b98deea9e074ad @MSNexploder MSNexploder committed Nov 14, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/generators/stats.rb
@@ -26,8 +26,7 @@ def to_h
def remove_noise(output)
lines = output.split("\n")
- lines = lines.find_all {|line| line[0].chr != "+" }
- lines = lines.find_all {|line| line[0].chr != "(" }
+ lines = lines.find_all {|line| line =~ /^\s*[C|]/ }
lines.shift
lines
end

0 comments on commit 03c02d3

Please sign in to comment.