tabulo 3.0.1 → 3.0.2
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 -4
- data/CHANGELOG.md +4 -0
- data/README.md +8 -8
- data/VERSION +1 -1
- data/lib/tabulo/version.rb +1 -1
- data/tabulo.gemspec +3 -3
- metadata +9 -9
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,18 +20,18 @@ jobs:
|
|
20
20
|
matrix:
|
21
21
|
ruby-version: [
|
22
22
|
'3.1.4',
|
23
|
-
'3.2.
|
24
|
-
'3.3.
|
23
|
+
'3.2.5',
|
24
|
+
'3.3.4',
|
25
25
|
]
|
26
26
|
steps:
|
27
|
-
- uses: actions/checkout@
|
27
|
+
- uses: actions/checkout@v4
|
28
28
|
- name: Set up Ruby
|
29
29
|
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
30
30
|
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
31
31
|
uses: ruby/setup-ruby@v1 # Was: uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
|
32
32
|
with:
|
33
33
|
ruby-version: ${{ matrix.ruby-version }}
|
34
|
-
bundler: 2.
|
34
|
+
bundler: 2.5.18
|
35
35
|
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
36
36
|
- name: Run tests
|
37
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
@@ -31,9 +31,9 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.add_runtime_dependency "tty-screen", "0.8.2"
|
32
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: 2024-
|
11
|
+
date: 2024-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tty-screen
|
@@ -44,42 +44,42 @@ dependencies:
|
|
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.5.
|
211
|
+
rubygems_version: 3.5.9
|
212
212
|
signing_key:
|
213
213
|
specification_version: 4
|
214
214
|
summary: Terminal table generator
|