lib/rawbotz/cli/order_result_table.rb in rawbotz-0.1.4 vs lib/rawbotz/cli/order_result_table.rb in rawbotz-0.1.5

- old
+ new

@@ -45,12 +45,15 @@ style: {width:60}).to_s out << "\n\n" end if !diffs[:extra].empty? + extra_items = diffs[:extra].map do |n,q| + [n[0..35], q] + end out << Terminal::Table.new(title: "Extra (not in rawbotz)", headings: ['Product', 'In Cart'], - rows: diffs[:extra], + rows: extra_items, style: {width:60}).to_s end end end end