tabulo 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/tests.yml +2 -1
- data/CHANGELOG.md +5 -0
- data/README.md +8 -8
- data/VERSION +1 -1
- data/lib/tabulo/version.rb +1 -1
- data/tabulo.gemspec +2 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82b707a4b6a0e56d6c91cf983c53df929b418b7e2d5b8759af5361df9d41c919
|
4
|
+
data.tar.gz: 476897e017466a4a0ae0ba0a205cae7470d9cc9addb040599edad4827eb90638
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40ad2978c7da37070cd58d7903c91b231b8c828c8ae7f7cb3d9759b402fe72b2c26092ec965e80186c81b8c421ed97f85ead42f0489cc4dd7b289836b633f20a
|
7
|
+
data.tar.gz: 3256e3e277f2aebe5fd933437d6beaddcf329e0d0e8bee9697a38804e6721761ef2e6232c59e73134d1bc6c2d667f7de614a3f0f3fc7d830af0215e3736adb91
|
data/.github/workflows/tests.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -544,8 +544,8 @@ linebreaks in your data. When using this option, other columns might be shrunk m
|
|
544
544
|
the table fit within the `max_table_width`.
|
545
545
|
|
546
546
|
For even finer-grained control over column and table resizing, see the
|
547
|
-
for the [`#autosize_columns`](https://www.rubydoc.info/gems/tabulo/3.0.
|
548
|
-
and [`#shrink_to`](https://www.rubydoc.info/gems/tabulo/3.0.
|
547
|
+
for the [`#autosize_columns`](https://www.rubydoc.info/gems/tabulo/3.0.1/Tabulo/Table#autosize_columns-instance_method)
|
548
|
+
and [`#shrink_to`](https://www.rubydoc.info/gems/tabulo/3.0.1/Tabulo/Table#shrink_to-instance_method) methods.
|
549
549
|
|
550
550
|
Note that `pack`ing the table necessarily involves traversing the entire collection up front as
|
551
551
|
the maximum cell width needs to be calculated for each column. You may not want to do this
|
@@ -810,7 +810,7 @@ the table.
|
|
810
810
|
The `formatter` callback also has an alternative, 2-parameter version. If `formatter` is passed
|
811
811
|
a 2-parameter callable, the second parameter will be given a `CellData` instance,
|
812
812
|
containing additional information about the cell that may be useful in determining how to format
|
813
|
-
it—see the [documentation](https://www.rubydoc.info/gems/tabulo/3.0.
|
813
|
+
it—see the [documentation](https://www.rubydoc.info/gems/tabulo/3.0.1/Tabulo/CellData.html)
|
814
814
|
for details.
|
815
815
|
|
816
816
|
<a name="colours-and-styling"></a>
|
@@ -856,7 +856,7 @@ number is even). The second parameter represents the formatted string value of t
|
|
856
856
|
content after any processing by the [formatter](#formatting-cell-values). The third and fourth
|
857
857
|
parameters are optional, and contain further information about the cell and its contents that may be useful in
|
858
858
|
determining how to style it. See the
|
859
|
-
[documentation](https://www.rubydoc.info/gems/tabulo/3.0.
|
859
|
+
[documentation](https://www.rubydoc.info/gems/tabulo/3.0.1/Tabulo/Table#add_column-instance_method) for details.
|
860
860
|
|
861
861
|
If the content of a cell is wrapped over multiple lines, then the `styler` will be called once
|
862
862
|
per line, so that each line of the cell will have the escape sequence applied to it separately
|
@@ -876,7 +876,7 @@ table.add_column(:even?, header_styler: -> (s) { "\033[32m#{s}\033[0m" })
|
|
876
876
|
```
|
877
877
|
|
878
878
|
The `header_styler` option accepts a 1-, 2- or 3-parameter callable. See the
|
879
|
-
[documentation](https://www.rubydoc.info/gems/tabulo/3.0.
|
879
|
+
[documentation](https://www.rubydoc.info/gems/tabulo/3.0.1/Tabulo/Table#add_column-instance_method)
|
880
880
|
for details.
|
881
881
|
|
882
882
|
<a name="styling-title"></a>
|
@@ -890,7 +890,7 @@ table = Tabulo::Table.new(1..5, :itself, :even?, :odd?, title: "Numbers", title_
|
|
890
890
|
```
|
891
891
|
|
892
892
|
The `title_styler` option accepts a 1- or 2-parameter callable. See the
|
893
|
-
[documentation](https://www.rubydoc.info/gems/tabulo/3.0.
|
893
|
+
[documentation](https://www.rubydoc.info/gems/tabulo/3.0.1/Tabulo/Table#initialize-instance_method)
|
894
894
|
for details.
|
895
895
|
|
896
896
|
<a name="styling-borders"></a>
|
@@ -1091,7 +1091,7 @@ a new table in which the rows and columns are swapped:
|
|
1091
1091
|
By default, a header row is added to the new table, showing the string value of the element
|
1092
1092
|
represented in that column. This can be configured, however, along with other aspects of
|
1093
1093
|
`transpose`’s behaviour. For details, see the
|
1094
|
-
[documentation](https://www.rubydoc.info/gems/tabulo/3.0.
|
1094
|
+
[documentation](https://www.rubydoc.info/gems/tabulo/3.0.1/Tabulo/Table#transpose-instance_method).
|
1095
1095
|
|
1096
1096
|
<a name="borders"></a>
|
1097
1097
|
### Configuring borders [↑](#contents)
|
@@ -1494,7 +1494,7 @@ License](http://opensource.org/licenses/MIT).
|
|
1494
1494
|
[Awesome Ruby]: https://github.com/markets/awesome-ruby#cli-utilities
|
1495
1495
|
|
1496
1496
|
[GV img]: https://img.shields.io/gem/v/tabulo.svg
|
1497
|
-
[DC img]: https://img.shields.io/badge/documentation-v3.0.
|
1497
|
+
[DC img]: https://img.shields.io/badge/documentation-v3.0.1-blue.svg
|
1498
1498
|
[BS img]: https://github.com/matt-harvey/tabulo/actions/workflows/tests.yml/badge.svg
|
1499
1499
|
[CS img]: https://img.shields.io/coveralls/matt-harvey/tabulo.svg
|
1500
1500
|
[AR img]: https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1
|
data/lib/tabulo/version.rb
CHANGED
data/tabulo.gemspec
CHANGED
@@ -28,8 +28,8 @@ Gem::Specification.new do |spec|
|
|
28
28
|
"changelog_uri" => "https://raw.githubusercontent.com/matt-harvey/tabulo/master/CHANGELOG.md"
|
29
29
|
}
|
30
30
|
|
31
|
-
spec.add_runtime_dependency "tty-screen", "0.8.
|
32
|
-
spec.add_runtime_dependency "unicode-display_width", "~> 2.
|
31
|
+
spec.add_runtime_dependency "tty-screen", "0.8.2"
|
32
|
+
spec.add_runtime_dependency "unicode-display_width", "~> 2.5"
|
33
33
|
|
34
34
|
spec.add_development_dependency "bundler", "~> 2.4"
|
35
35
|
spec.add_development_dependency "rake", "~> 13.0.6"
|
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: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Harvey
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tty-screen
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.8.
|
19
|
+
version: 0.8.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.8.
|
26
|
+
version: 0.8.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: unicode-display_width
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '2.
|
33
|
+
version: '2.5'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '2.
|
40
|
+
version: '2.5'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -208,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
208
208
|
- !ruby/object:Gem::Version
|
209
209
|
version: '0'
|
210
210
|
requirements: []
|
211
|
-
rubygems_version: 3.
|
211
|
+
rubygems_version: 3.5.3
|
212
212
|
signing_key:
|
213
213
|
specification_version: 4
|
214
214
|
summary: Terminal table generator
|