tabulo 3.0.0 → 3.0.2
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/.github/workflows/tests.yml +4 -3
- data/CHANGELOG.md +9 -0
- data/README.md +8 -8
- data/VERSION +1 -1
- data/lib/tabulo/version.rb +1 -1
- data/tabulo.gemspec +5 -5
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 153db22fc83d4c3494f08247d4bba23df2f17031ff474b56ce16541567204229
|
4
|
+
data.tar.gz: 35bddcbe55d8a0102bcac2ca4e45b5325720354d0acae81672b2fe16929c61f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 282e0952ec4240a964c880cb59dd7e89b45f7ec8b9db1fa32f29d6681dd62b59db7c80e2dd2d6c3ed66f22500050fbdfb6109ee454cdaa552d89080b2c43bf02
|
7
|
+
data.tar.gz: 20d18823d34be0919d9f9883ea99c1ba59c70b1f9f922268e1d68a82ca8b8ddf204bcd666f2cffdfc65f5c61f6da1adabd74702a6d667ae8cef0d58cdd4548e4
|
data/.github/workflows/tests.yml
CHANGED
@@ -20,17 +20,18 @@ jobs:
|
|
20
20
|
matrix:
|
21
21
|
ruby-version: [
|
22
22
|
'3.1.4',
|
23
|
-
'3.2.
|
23
|
+
'3.2.5',
|
24
|
+
'3.3.4',
|
24
25
|
]
|
25
26
|
steps:
|
26
|
-
- uses: actions/checkout@
|
27
|
+
- uses: actions/checkout@v4
|
27
28
|
- name: Set up Ruby
|
28
29
|
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
29
30
|
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
30
31
|
uses: ruby/setup-ruby@v1 # Was: uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
|
31
32
|
with:
|
32
33
|
ruby-version: ${{ matrix.ruby-version }}
|
33
|
-
bundler: 2.
|
34
|
+
bundler: 2.5.18
|
34
35
|
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
35
36
|
- name: Run tests
|
36
37
|
run: bundle exec rspec
|
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.2/Tabulo/Table#autosize_columns-instance_method)
|
548
|
+
and [`#shrink_to`](https://www.rubydoc.info/gems/tabulo/3.0.2/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.2/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.2/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.2/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.2/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.2/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.2-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.2
|
data/lib/tabulo/version.rb
CHANGED
data/tabulo.gemspec
CHANGED
@@ -28,12 +28,12 @@ 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
|
-
spec.add_development_dependency "bundler", "~> 2.
|
35
|
-
spec.add_development_dependency "rake", "~> 13.
|
36
|
-
spec.add_development_dependency "rspec", "~> 3.
|
34
|
+
spec.add_development_dependency "bundler", "~> 2.5"
|
35
|
+
spec.add_development_dependency "rake", "~> 13.2.1"
|
36
|
+
spec.add_development_dependency "rspec", "~> 3.13"
|
37
37
|
spec.add_development_dependency "simplecov"
|
38
38
|
spec.add_development_dependency "simplecov-lcov"
|
39
39
|
spec.add_development_dependency "yard"
|
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.2
|
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-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tty-screen
|
@@ -16,70 +16,70 @@ 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
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '2.
|
47
|
+
version: '2.5'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '2.
|
54
|
+
version: '2.5'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 13.
|
61
|
+
version: 13.2.1
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 13.
|
68
|
+
version: 13.2.1
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '3.
|
75
|
+
version: '3.13'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '3.
|
82
|
+
version: '3.13'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: simplecov
|
85
85
|
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.9
|
212
212
|
signing_key:
|
213
213
|
specification_version: 4
|
214
214
|
summary: Terminal table generator
|