tabulo 3.0.2 → 3.0.3
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 +4 -3
- data/CHANGELOG.md +7 -0
- data/README.md +8 -8
- data/lib/tabulo/version.rb +1 -1
- data/tabulo.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f20b09a671b938e9ce0b5ab90a3eadc978ab7fa294a144fe1eb958ab237e54a
|
4
|
+
data.tar.gz: 9bd7df6309c956a4240f8feda904b0766472c6d434509fa811ba42f30405f1f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc316d9ccbbbd50a7f8bac59ba266155024105c8c1dc5889c797d88479727d852c5897edd1f3ea93ef052d4f4e2aacbb75f7235162fd5eb7b522fe01e738f4eb
|
7
|
+
data.tar.gz: 14216658336102d78bf3f89032419ccc768db9b0c7d9768c9c011d79f10e106eaaf3c3123316ce477bd9fb153461d766f43f56d8c2f7793e7841ac8a6413cfed
|
data/.github/workflows/tests.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
### v3.0.3
|
4
|
+
|
5
|
+
* Improved Unicode support via updated version of the `unicode-display_width` dependency.
|
6
|
+
Thanks, Janosch Müller ([@jaynetics](https://github.com/jaynetics)):
|
7
|
+
https://github.com/matt-harvey/tabulo/pull/24.
|
8
|
+
* Cover Ruby 3.4 in CI config
|
9
|
+
|
3
10
|
### v3.0.2
|
4
11
|
|
5
12
|
* Upgrade dependency versions
|
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.3/Tabulo/Table#autosize_columns-instance_method)
|
548
|
+
and [`#shrink_to`](https://www.rubydoc.info/gems/tabulo/3.0.3/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.3/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.3/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.3/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.3/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.3/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.3-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/lib/tabulo/version.rb
CHANGED
data/tabulo.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
}
|
30
30
|
|
31
31
|
spec.add_runtime_dependency "tty-screen", "0.8.2"
|
32
|
-
spec.add_runtime_dependency "unicode-display_width", "~>
|
32
|
+
spec.add_runtime_dependency "unicode-display_width", "~> 3.0"
|
33
33
|
|
34
34
|
spec.add_development_dependency "bundler", "~> 2.5"
|
35
35
|
spec.add_development_dependency "rake", "~> 13.2.1"
|
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.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:
|
11
|
+
date: 2025-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tty-screen
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '3.0'
|
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: '
|
40
|
+
version: '3.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|