terminal-table

Ruby ASCII Table Generator, simple and feature rich.

MIT License

Downloads
257.9M
Stars
1.5K
Committers
41

Bot releases are visible (Hide)

terminal-table - 3.0.1 Latest Release

Published by nateberkopec over 3 years ago

3.0.1 / 2021-05-10

  • Support for unicode-display_width 2.0
  • Fix issue where last row of an empty table changed format
terminal-table - 3.0.0

Published by nateberkopec over 3 years ago

  • Support for (optional) Unicode border styles on tables. In order to support decent looking Unicode borders, different types of intersections get different types of intersection characters. This has the side effect of subtle formatting differences even for the ASCII table border case due to removal of certain intersections near colspans.

For example, previously the output of a table may be:
+------+-----+
| Title |
+------+-----+
| Char | Num |
+------+-----+
| a | 1 |
| b | 2 |
| c | 3 |
+------+-----+

And now the + character above the word Title is removed, as it is no longer considered an intersection:

    +------------+
    |   Title    |
    +------+-----+
    | Char | Num |
    +------+-----+
    | a    | 1   |
    | b    | 2   |
    +------+-----+
  • The default border remains an ASCII border for backwards compatibility, however multiple border classes are included / documented, and user defined border types can be applied as needed.

In support of this update, the following issues were addressed:

  • colspan creates conflict with colorize (#95)
  • Use nice UTF box-drawing characters by default (#99)
    • Note that AsciiBorder is stll the default
  • Border-left and border-right style (#100)
  • Helper function to style as Markdown (#111)
    • Achieved using MarkdownBorder
terminal-table - 2.0.0

Published by nateberkopec almost 4 years ago

Requires Ruby 2.4+

  • Protect against nil in column/row loop (#92)
  • Remove unicode display string extensions (#104)
terminal-table - 1.8.0

Published by nateberkopec over 7 years ago

  • Top and bottom borders can be disabled (@kubakrzempek, #83)

  • unicode-display-width dependency relaxes (@mvz, #88)

  • Readme and docs fixes (@loualrid, #82 and @leoarnold, #86)

  • Fixed some test-related warnings (@juanitofatas, #81 and @mvz, #89)

terminal-table - 1.7.3

Published by nateberkopec over 7 years ago

  • Fixed compatibility issues for Ruby 1.9, 2.0, 2.1. (@vivekbisen, #80)
terminal-table - 1.6.0

Published by nateberkopec over 8 years ago

  • Added table styles - margin_left, all_separators.
terminal-table - 1.5.2

Published by nateberkopec over 9 years ago

terminal-table - 1.5.1

Published by nateberkopec over 9 years ago