Skip to content

Commit

Permalink
textproc/ruby-terminal-table: update to 3.0.2
Browse files Browse the repository at this point in the history
3.0.2 (2021-09-19)

* fix align_column for nil values and colspan

3.0.1 / 2021-05-10

* Support for unicode-display_width 2.0

* Fix issue where last row of an empty table changed format

3.0.0 / 2020-01-27

* 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`
  • Loading branch information
taca committed Dec 4, 2022
1 parent 25b82de commit 443f905
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
7 changes: 3 additions & 4 deletions textproc/ruby-terminal-table/Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
# $NetBSD: Makefile,v 1.4 2021/06/19 07:47:33 taca Exp $
# $NetBSD: Makefile,v 1.5 2022/12/04 16:32:33 taca Exp $

DISTNAME= terminal-table-2.0.0
PKGREVISION= 1
DISTNAME= terminal-table-3.0.2
CATEGORIES= textproc

MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/tj/terminal-table
COMMENT= Simple, feature rich ascii table generation library
LICENSE= mit

DEPENDS+= ${RUBY_PKGPREFIX}-unicode-display_width>=1:../../textproc/ruby-unicode-display_width
DEPENDS+= ${RUBY_PKGPREFIX}-unicode-display_width>=1.1.1:../../textproc/ruby-unicode-display_width

USE_LANGUAGES= # none

Expand Down
14 changes: 11 additions & 3 deletions textproc/ruby-terminal-table/PLIST
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
@comment $NetBSD: PLIST,v 1.2 2021/01/18 14:52:59 taca Exp $
@comment $NetBSD: PLIST,v 1.3 2022/12/04 16:32:33 taca Exp $
${GEM_HOME}/cache/${GEM_NAME}.gem
${GEM_LIBDIR}/.github/workflows/ci.yml
${GEM_LIBDIR}/.gitignore
${GEM_LIBDIR}/Gemfile
${GEM_LIBDIR}/Gemfile.lock
${GEM_LIBDIR}/History.rdoc
${GEM_LIBDIR}/LICENSE.txt
${GEM_LIBDIR}/Manifest
${GEM_LIBDIR}/README.rdoc
${GEM_LIBDIR}/README.md
${GEM_LIBDIR}/Rakefile
${GEM_LIBDIR}/Todo.rdoc
${GEM_LIBDIR}/examples/data.csv
${GEM_LIBDIR}/examples/examples.rb
${GEM_LIBDIR}/examples/examples_unicode.rb
${GEM_LIBDIR}/examples/issue100.rb
${GEM_LIBDIR}/examples/issue111.rb
${GEM_LIBDIR}/examples/issue118.rb
${GEM_LIBDIR}/examples/issue95.rb
${GEM_LIBDIR}/examples/show_csv_table.rb
${GEM_LIBDIR}/examples/strong_separator.rb
${GEM_LIBDIR}/lib/terminal-table.rb
${GEM_LIBDIR}/lib/terminal-table/cell.rb
${GEM_LIBDIR}/lib/terminal-table/import.rb
Expand All @@ -19,6 +26,7 @@ ${GEM_LIBDIR}/lib/terminal-table/separator.rb
${GEM_LIBDIR}/lib/terminal-table/style.rb
${GEM_LIBDIR}/lib/terminal-table/table.rb
${GEM_LIBDIR}/lib/terminal-table/table_helper.rb
${GEM_LIBDIR}/lib/terminal-table/util.rb
${GEM_LIBDIR}/lib/terminal-table/version.rb
${GEM_LIBDIR}/terminal-table.gemspec
${GEM_HOME}/specifications/${GEM_NAME}.gemspec
8 changes: 4 additions & 4 deletions textproc/ruby-terminal-table/distinfo
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.4 2021/10/26 11:23:28 nia Exp $
$NetBSD: distinfo,v 1.5 2022/12/04 16:32:33 taca Exp $

BLAKE2s (terminal-table-2.0.0.gem) = 19b978ac7ad2bfb969909a97c5b5ad7a735510460a69377257b33108a3b98b9f
SHA512 (terminal-table-2.0.0.gem) = 7394f830ac5e2b24d0d9553031a1a53e7b76b903a43239eb70531af9cbb54d1c81d526fa9ed805a6ed937e343b7dc65fe36d036467471c33f2b4955da220fd03
Size (terminal-table-2.0.0.gem) = 14336 bytes
BLAKE2s (terminal-table-3.0.2.gem) = 85b6b0a1b567065e729ae77989219b46cbcd506ce4ea0d107bd94d954eed3392
SHA512 (terminal-table-3.0.2.gem) = 9d625a5903c7511f59f2e083ed2db72d337405019c41461b97590411a5028a061ce4a42eeb75c19b0e6deb2ef81f18ad80bb74d4ebdb9eca9ff6004631ddd994
Size (terminal-table-3.0.2.gem) = 22016 bytes

0 comments on commit 443f905

Please sign in to comment.