Rakefile in panko_serializer-0.5.9 vs Rakefile in panko_serializer-0.5.10
- old
+ new
@@ -35,12 +35,11 @@
stdout.each do |line|
print_and_flush '.'
lines << line
end
rescue Errno::EIO
- puts "Errno:EIO error, but this probably just means " +
- "that the process has finished giving output - #{cmd}"
+ # ignore this
end
end
lines
rescue PTY::ChildExited
@@ -54,15 +53,13 @@
lines = run_process "ITEMS_COUNT=#{items_count} RAILS_ENV=production ruby #{benchmark_file}"
rows = lines.map do |line|
begin
row = JSON.parse(line)
+ row.values
rescue JSON::ParserError
- puts "> Failed parsing json"
- puts lines.join
- exit
+ puts "> [ERROR] Failed running #{benchmark_file} - #{lines.join}"
end
- row.values
end
puts "\n\n"
title = File.basename(benchmark_file, ".rb")
table = Terminal::Table.new title: title, headings: headings, rows: rows