lib/docparser/output/json_output.rb in docparser-0.1.6 vs lib/docparser/output/json_output.rb in docparser-0.2.0

- old
+ new

@@ -9,10 +9,10 @@ @file << '[' @doc = {} end def write_row(row) - raise MissingHeaderException if @header.nil? || @header.length == 0 + fail MissingHeaderException if @header.nil? || @header.length == 0 @file << ',' unless @file.pos <= 1 0.upto(@header.length - 1) do |counter| @doc[@header[counter]] = row.length > counter ? row[counter] : ''