tabulo 2.7.2 → 2.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +6 -6
- data/VERSION +1 -1
- data/lib/tabulo/table.rb +1 -1
- data/lib/tabulo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d0744fe4dfb79a4a05cf2f7c0e2222c3364dfc907897ed7f1d304f9b2702ba9
|
4
|
+
data.tar.gz: 9008fd0d0ce6a4df33650bfd317030d5ed36aede411cb476f0d2774352b87b8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a076fadf6d1fcb905f52c735396bdbed69b03718ca8bac21fa25d2f6c64f16e5b20b196b9f0d16d73b34b9d25b71abac6485fe68bbc733d7474348f84f6dc768
|
7
|
+
data.tar.gz: 72a96aa1c8d9152d95a77a98cd0478701cfd97d56fed4da51534d199bc7165f255b0001accea4bc9602d67291cd5725d0c2db03043e1e1f742014985ea183f97
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -792,7 +792,7 @@ the table.
|
|
792
792
|
The `formatter` callback also has an alternative, 2-parameter version. If `formatter` is passed
|
793
793
|
a 2-parameter callable, the second parameter will be given a `CellData` instance,
|
794
794
|
containing additional information about the cell that may be useful in determining how to format
|
795
|
-
it—see the [documentation](https://www.rubydoc.info/gems/tabulo/2.7.
|
795
|
+
it—see the [documentation](https://www.rubydoc.info/gems/tabulo/2.7.3/Tabulo/CellData.html)
|
796
796
|
for details.
|
797
797
|
|
798
798
|
<a name="colours-and-styling"></a>
|
@@ -838,7 +838,7 @@ number is even). The second parameter represents the formatted string value of t
|
|
838
838
|
content after any processing by the [formatter](#formatting-cell-values). The third and fourth
|
839
839
|
parameters are optional, and contain further information about the cell and its contents that may be useful in
|
840
840
|
determining how to style it. See the
|
841
|
-
[documentation](https://www.rubydoc.info/gems/tabulo/2.7.
|
841
|
+
[documentation](https://www.rubydoc.info/gems/tabulo/2.7.3/Tabulo/Table#add_column-instance_method) for details.
|
842
842
|
|
843
843
|
If the content of a cell is wrapped over multiple lines, then the `styler` will be called once
|
844
844
|
per line, so that each line of the cell will have the escape sequence applied to it separately
|
@@ -858,7 +858,7 @@ table.add_column(:even?, header_styler: -> (s) { "\033[32m#{s}\033[0m" })
|
|
858
858
|
```
|
859
859
|
|
860
860
|
The `header_styler` option accepts a 1-, 2- or 3-parameter callable. See the
|
861
|
-
[documentation](https://www.rubydoc.info/gems/tabulo/2.7.
|
861
|
+
[documentation](https://www.rubydoc.info/gems/tabulo/2.7.3/Tabulo/Table#add_column-instance_method)
|
862
862
|
for details.
|
863
863
|
|
864
864
|
<a name="styling-title"></a>
|
@@ -872,7 +872,7 @@ table = Tabulo::Table.new(1..5, :itself, :even?, :odd?, title: "Numbers", title_
|
|
872
872
|
```
|
873
873
|
|
874
874
|
The `title_styler` option accepts a 1- or 2-parameter callable. See the
|
875
|
-
[documentation](https://www.rubydoc.info/gems/tabulo/2.7.
|
875
|
+
[documentation](https://www.rubydoc.info/gems/tabulo/2.7.3/Tabulo/Table#initialize-instance_method)
|
876
876
|
for details.
|
877
877
|
|
878
878
|
<a name="styling-borders"></a>
|
@@ -1073,7 +1073,7 @@ a new table in which the rows and columns are swapped:
|
|
1073
1073
|
By default, a header row is added to the new table, showing the string value of the element
|
1074
1074
|
represented in that column. This can be configured, however, along with other aspects of
|
1075
1075
|
`transpose`’s behaviour. For details, see the
|
1076
|
-
[documentation](https://www.rubydoc.info/gems/tabulo/2.7.
|
1076
|
+
[documentation](https://www.rubydoc.info/gems/tabulo/2.7.3/Tabulo/Table#transpose-instance_method).
|
1077
1077
|
|
1078
1078
|
<a name="borders"></a>
|
1079
1079
|
### Configuring borders [↑](#contents)
|
@@ -1475,7 +1475,7 @@ License](http://opensource.org/licenses/MIT).
|
|
1475
1475
|
[Awesome Ruby]: https://github.com/markets/awesome-ruby#cli-utilities
|
1476
1476
|
|
1477
1477
|
[GV img]: https://img.shields.io/gem/v/tabulo.svg
|
1478
|
-
[DC img]: https://img.shields.io/badge/documentation-v2.7.
|
1478
|
+
[DC img]: https://img.shields.io/badge/documentation-v2.7.3-blue.svg
|
1479
1479
|
[BS img]: https://github.com/matt-harvey/tabulo/actions/workflows/tests.yml/badge.svg
|
1480
1480
|
[CS img]: https://img.shields.io/coveralls/matt-harvey/tabulo.svg
|
1481
1481
|
[AR img]: https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.7.
|
1
|
+
2.7.3
|
data/lib/tabulo/table.rb
CHANGED
@@ -125,7 +125,7 @@ module Tabulo
|
|
125
125
|
# defaults to {DEFAULT_TRUNCATION_INDICATOR}. If passed something other than <tt>nil</tt> or
|
126
126
|
# a single-character String, raises {InvalidTruncationIndicatorError}.
|
127
127
|
# @param [Symbol] wrap_preserve Specifies what unit of text the wrapping mechanism will try to
|
128
|
-
#
|
128
|
+
# preserve intact when wrapping column content when the column width is reached:
|
129
129
|
# * If passed `:rune` (the default), then it will wrap at the "character" level (approximately
|
130
130
|
# speaking, the Unicode grapheme cluster level). This means the maximum number of what
|
131
131
|
# readers usually think of as "characters" will be fit on each line, within the column's allocated
|
data/lib/tabulo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tabulo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Harvey
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tty-screen
|