Skip to content

Commit

Permalink
Temporary fix for CSV output
Browse files Browse the repository at this point in the history
which fixes #15
  • Loading branch information
Justin Collins committed Nov 14, 2011
1 parent 66eff12 commit 49cc9c5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@
require 'processors/output_processor'
require 'util'

#Fix for Ruport under 1.9
#as reported here: https://github.com/ruport/ruport/pull/7
module Ruport
class Formatter::CSV < Formatter
def csv_writer
@csv_writer ||= options.formatter ||
FCSV.instance(output, options.format_options || {})
end
end
end

#Generates a report based on the Tracker and the results of
#Tracker#run_checks. Be sure to +run_checks+ before generating
#a report.
Expand Down

0 comments on commit 49cc9c5

Please sign in to comment.