tabulo 2.8.1 → 2.8.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0967716cb8ae0364c51187023e9515933615d25de080d95b08c931cbf17a11a0'
4
- data.tar.gz: e6497d0121eefcb8960370a5ee9d3884143b89a0a45336aaa30814095be3794d
3
+ metadata.gz: aa59f4b5fde7fbaa1f0bfdecb805a3025644c4500e3680f04ba4bbaafdc6dcc5
4
+ data.tar.gz: b84f3b9a98fd95c065f850a77e7f724bf4095a715c775ec56eb54fef97e2e015
5
5
  SHA512:
6
- metadata.gz: 9d49aeccc15b496344ae03b93ca10cce1b3c02d706f43e68f30285f7c0bf9c6a81bbcbec68768791b5cb37b0f75dcec33ce45999e87b33ee39a01eb8997217ca
7
- data.tar.gz: 846cfe4796836b485848b6f9fdcd1b1e8f0907587b5c32debb50734ded99e6992e56a4b62d6d755740e03d5831182fb4e7f0c9fe67e04bad636baac2cc090deb
6
+ metadata.gz: 1b20d2a15dd344b052b8c9448062f3e1d25bc046ab8a7eb83b7842edaa8918a47c0f7a7f49f93c1121b398fea2ce35bbcb58be3358e6610eff1d9e42724f5973
7
+ data.tar.gz: 2f63da39400db49f793fa2f331afc1a86d687b34a62caba1068972533de0505e18f1c26bffb67bf87a914177a9931589cc8ee6a651eeb6974f77312bac39e824
@@ -24,12 +24,13 @@ jobs:
24
24
  '2.4.10',
25
25
  '2.5.9',
26
26
  '2.6.10',
27
- '2.7.6',
28
- '3.0.4',
29
- '3.1.2',
27
+ '2.7.7',
28
+ '3.0.5',
29
+ '3.1.3',
30
+ '3.2.0',
30
31
  ]
31
32
  steps:
32
- - uses: actions/checkout@v2
33
+ - uses: actions/checkout@v3
33
34
  - name: Set up Ruby
34
35
  # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
35
36
  # change this to (see https://github.com/ruby/setup-ruby#versioning):
data/CHANGELOG.md CHANGED
@@ -1,9 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ### v2.8.2
4
+
5
+ * Relax dependencies to address incompatibility with recent Rubocop version.
6
+ Thanks to Fabrizio Monti ([@delphaber](https://github.com/delphaber)) for this fix:
7
+ https://github.com/matt-harvey/tabulo/pull/23.
8
+ * Add CI coverage for Ruby 3.2
9
+ * Upgrade dependency versions in Github action to address deprecation warnings
10
+
11
+ ### v2.8.1
12
+
13
+ * Upgrade dependency versions
14
+ * Minor documentation fixes
15
+
3
16
  ### v2.8.0
4
17
 
5
18
  * Add `except:` param to `Tabulo::Table#pack` method, allowing specific
6
- columns to be excluded from the action of `.pack`
19
+ columns to be excluded from the action of `.pack`.
20
+ Thanks to Janosch Müller ([@jaynetics](https://github.com/jaynetics)) for this feature:
21
+ https://github.com/matt-harvey/tabulo/pull/21.
7
22
  * Provide method `Tabulo::Table#autosize_columns`, allowing columns to be auto-sized
8
23
  to fit their contents' widths, without having to call `.pack` (which also has
9
24
  other effects on the table). This method also has an `except:` param allowing columns
@@ -15,7 +30,9 @@
15
30
  * Fix `max_table_width:` param to `.pack` not being respected if table title was
16
31
  wider than terminal.
17
32
  * Documentation improvements
18
- * Fix broken documentation links
33
+ * Fix broken documentation links.
34
+ Thanks to Janosch Müller ([@jaynetics](https://github.com/jaynetics)):
35
+ https://github.com/matt-harvey/tabulo/pull/19.
19
36
  * Add Ruby 3.1 to CI config
20
37
 
21
38
  ### v2.7.3
data/CONTRIBUTORS.md ADDED
@@ -0,0 +1,10 @@
1
+ # Contributors
2
+
3
+ ## Original author
4
+
5
+ * Matt Harvey ([@matt-harvey](https://github.com/matt-harvey))
6
+
7
+ ## Contributors
8
+
9
+ * Janosch Müller ([@jaynetics](https://github.com/jaynetics))
10
+ * Fabrizio Monti ([@delphaber](https://github.com/delphaber))
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/2.8.1/Tabulo/Table#autosize_columns-instance_method)
548
- and [`#shrink_to`](https://www.rubydoc.info/gems/tabulo/2.8.1/Tabulo/Table#shrink_to-instance_method) methods.
547
+ for the [`#autosize_columns`](https://www.rubydoc.info/gems/tabulo/2.8.2/Tabulo/Table#autosize_columns-instance_method)
548
+ and [`#shrink_to`](https://www.rubydoc.info/gems/tabulo/2.8.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/2.8.1/Tabulo/CellData.html)
813
+ it—see the [documentation](https://www.rubydoc.info/gems/tabulo/2.8.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/2.8.1/Tabulo/Table#add_column-instance_method) for details.
859
+ [documentation](https://www.rubydoc.info/gems/tabulo/2.8.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/2.8.1/Tabulo/Table#add_column-instance_method)
879
+ [documentation](https://www.rubydoc.info/gems/tabulo/2.8.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/2.8.1/Tabulo/Table#initialize-instance_method)
893
+ [documentation](https://www.rubydoc.info/gems/tabulo/2.8.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`&#8217;s behaviour. For details, see the
1094
- [documentation](https://www.rubydoc.info/gems/tabulo/2.8.1/Tabulo/Table#transpose-instance_method).
1094
+ [documentation](https://www.rubydoc.info/gems/tabulo/2.8.2/Tabulo/Table#transpose-instance_method).
1095
1095
 
1096
1096
  <a name="borders"></a>
1097
1097
  ### Configuring borders [&#x2191;](#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-v2.8.1-blue.svg
1497
+ [DC img]: https://img.shields.io/badge/documentation-v2.8.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
- 2.8.1
1
+ 2.8.2
@@ -1,3 +1,3 @@
1
1
  module Tabulo
2
- VERSION = "2.8.1"
2
+ VERSION = "2.8.2"
3
3
  end
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.1"
32
- spec.add_runtime_dependency "unicode-display_width", "2.2.0"
32
+ spec.add_runtime_dependency "unicode-display_width", "~> 2.2"
33
33
 
34
34
  spec.add_development_dependency "bundler"
35
35
  spec.add_development_dependency "rake", "~> 13.0"
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.8.1
4
+ version: 2.8.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: 2022-07-27 00:00:00.000000000 Z
11
+ date: 2023-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tty-screen
@@ -28,16 +28,16 @@ dependencies:
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.2.0
33
+ version: '2.2'
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.2.0
40
+ version: '2.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -179,6 +179,7 @@ files:
179
179
  - ".simplecov"
180
180
  - ".yardopts"
181
181
  - CHANGELOG.md
182
+ - CONTRIBUTORS.md
182
183
  - Gemfile
183
184
  - LICENSE.txt
184
185
  - README.md