lib/aruba/platforms/simple_table.rb in aruba-2.1.0 vs lib/aruba/platforms/simple_table.rb in aruba-2.2.0

- old
+ new

@@ -30,10 +30,10 @@ return "" if longest_key.nil? name_size = longest_key.length rows = hash.map do |k, v| - format("# %-#{name_size}s => %s", k, v) + format("# %-*s => %s", name_size, k, v) end if opts[:sort] == true rows.sort.join("\n") else