All Versions
48
Latest Version
Avg Release Cycle
16 days
Latest Release
-
Changelog History
Page 3
Changelog History
Page 3
-
v2.0.1 Changes
November 04, 2019- ๐ Minor documentation fix
-
v2.0.0 Changes
๐ New features
- ๐ New
border
option forTabulo::Table
initializer allows for better customization of border and divider characters, using a preset list of options, viz.::ascii
,:modern
,:markdown
,:blank
and:classic
. In particular, the:modern
border option uses smoothly drawn Unicode line characters; and the:markdown
option renders a GitHub-flavoured Markdown table. Tabulo::Table#horizontal_rule
method accepts:top
,:bottom
and:middle
options to allow the appropriate border characters to be used depending on its intended position in the table.- When iterating a
Tabulo::Row
, it's now possible to get the formatted string value of an individualTabulo::Cell
, not just its underlying "raw" value. - ๐ง Column padding can now optionally be configured separately for left and right column sides, by
passing a 2-element Array to the
column_padding
option of theTabulo::Table
initializer.
๐ฅ Breaking changes
- A
Tabulo::Row
is now a collection ofTabulo::Cell
, not a collection of underlying "raw" values. This makes it easier to get at both formatted string values and underlying "raw" values ofCell
s when traversing aRow
. To get at the raw underlying value, callTabulo::Cell#value
. - โ Remove deprecated
columns
option fromTabulo::Table
initializer (existingcols
positional parameter now renamed tocolumns
). - โ Remove deprecated
shrinkwrap!
method (usepack
instead). - 0๏ธโฃ By default, table now has a border line at the bottom. Pass
:classic
to theborder
option of theTabulo::Table
initializer to get the old behaviour. - Removal of
horizontal_rule_character
,vertical_rule_character
andintersection
character options fromTabulo::Table
initializer, and fromTabulo::Table#transpose
method. Use theborder
option instead.
Other noteworthy changes
- โ Test coverage is now at exactly 100%
hirb
gem now mentioned in README
- ๐ New
-
v1.5.1 Changes
- โฌ๏ธ Dependency version upgrades
- ๐ Minor documentation fixes
-
v1.5.0 Changes
- ๐ Support use of ANSI escape sequences to add colours and other styling to table elements without breaking the formatting.
- ๐จ Major refactor, moving various computations into a new Cell class.
-
v1.4.1 Changes
- ๐ Minor documentation fix
-
v1.4.0 Changes
- ๐ New
#transpose
function to produce a new Table in which the rows and columns are transposed relative to the original one. - Properly handle multibyte characters when calculating widths, wrapping etc..
- ๐ New
-
v1.3.0 Changes
- More ergonomic Table initializer, allowing you to specify columns directly as varargs rather
than as an array passed to
columns:
option (the latter is now deprecated) - ๐ New
#pack
method to autosize table, capping total table width at width of terminal by default (replaces#shrinkwrap!
method, now deprecated) - 0๏ธโฃ Ability to set table-level defaults for column header and body cell alignments
- Accessor methods for
source
attribute, representing the underlying collection being tabulated, facilitating reuse of the same table to tabulate different collections - ๐ Documentation improvements
- More ergonomic Table initializer, allowing you to specify columns directly as varargs rather
than as an array passed to
-
v1.2.2 Changes
- ๐ Improve documentation.
-
v1.2.1 Changes
- ๐ Improve documentation in README.
- โก๏ธ Update Travis config.
- ๐ Change homepage in Gemspec
-
v1.2.0 Changes
- ๐ Allow customization of padding.