lib/peddler/flat_file_parser.rb in peddler-1.3.0 vs lib/peddler/flat_file_parser.rb in peddler-1.4.0

- old
+ new

@@ -43,10 +43,10 @@ .force_encoding(encoding) .encode('UTF-8', undef: :replace, replace: '?') end def summary? - body.start_with?('Feed Processing Summary') + body.include?("\n\n") end def summarize Hash[summary.split("\n\t")[1, 2].map { |line| line.split("\t\t") }] end