Skip to content

Commit

Permalink
made stats parsing a bit more robust (now works with rails3 in test e…
Browse files Browse the repository at this point in the history
…nvironment)
  • Loading branch information
MSNexploder committed Nov 14, 2010
1 parent fff2f88 commit 03c02d3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/generators/stats.rb
Expand Up @@ -26,8 +26,7 @@ def to_h


def remove_noise(output) def remove_noise(output)
lines = output.split("\n") lines = output.split("\n")
lines = lines.find_all {|line| line[0].chr != "+" } lines = lines.find_all {|line| line =~ /^\s*[C|]/ }
lines = lines.find_all {|line| line[0].chr != "(" }
lines.shift lines.shift
lines lines
end end
Expand Down

0 comments on commit 03c02d3

Please sign in to comment.