lib/tableware/parser.rb in tableware-0.2.1 vs lib/tableware/parser.rb in tableware-0.3.2

- old
+ new

@@ -27,10 +27,10 @@ end private def prepare_lines(input) lines = input.strip.lines - @data_start = lines[1] =~ /^\s*[-=\| ]+\s*$/ ? 2 : 0 + @data_start = lines[1] =~ /^\s*[-=+\| ]+\s*$/ ? 2 : 0 if @data_start.nonzero? @headers = parse_line(lines[0]) .map!(&:downcase) .map! { |head| head.gsub(/\s+/, '_') } .map!(&:to_sym)