tabulo 2.1.0 → 2.1.1

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: 6f88dea9e9986d3d6483bb082ff61131192f8c347f5a8ef8d9bb1db020d327ce
4
- data.tar.gz: 5fac068d5c1966a942246bf5ca404d0d21e9169337d024873b4d20c83c563a49
3
+ metadata.gz: 1417a8a8aa4d8bbeea0b0c983e49fee669e0717cc01e2aa2b04c0e80d1d38a8c
4
+ data.tar.gz: 3f45955cce5a731536f7b9e11fcc11bc637f29ba7952d33c4361a13dc4efb7ca
5
5
  SHA512:
6
- metadata.gz: 6979e838018800f81ca9fb062d34fdd4c19068efac1b5442998ec1f9b9808ec4d43a9aa5f91306abdc7535016bc1efd947af3b394bb93fd1be2b3979dd65c523
7
- data.tar.gz: f764c67975c9409ab0b3646af6f396cb76407490940179e16071527ab6bf00a08a87a8aa62c1b7b8f4d21ada8ae1d25bdb34ed6eebdec4d22f22910331e01f60
6
+ metadata.gz: 499bcbd5686f20554c1e08d6945883f9cdbd930933f422e550c6254a0b8f7ace45949deb95c7963fcf48b044ae7931d4c298d3449a61b0bc03ca798ca12ea2aa
7
+ data.tar.gz: 81d5531791eff6a85f8e0f9a41887cd193526ccd31472763660da66cdd312639a48529cac1b33239e096c6976975c8b33d45ed1cb9c609b80de748f3c62cba12
@@ -7,3 +7,4 @@ rvm:
7
7
  - 2.4.9
8
8
  - 2.5.7
9
9
  - 2.6.5
10
+ - 2.7.0
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ### v2.1.1
4
+
5
+ * Fix issue where blank lines appear in table when certain border types (e.g. `:classic`) are
6
+ used with a non-nil `:border_styler`.
7
+
3
8
  ### v2.1.0
4
9
 
5
10
  * New `:reduced_ascii` and `:reduced_modern` border options
data/README.md CHANGED
@@ -651,7 +651,7 @@ a new table in which the rows and columns are swapped:
651
651
  By default, a header row is added to the new table, showing the string value of the element
652
652
  represented in that column. This can be configured, however, along with other aspects of
653
653
  `transpose`'s behaviour. For details, see the
654
- [documentation](https://www.rubydoc.info/gems/tabulo/2.1.0/Tabulo/Table#transpose-instance_method).
654
+ [documentation](https://www.rubydoc.info/gems/tabulo/2.1.1/Tabulo/Table#transpose-instance_method).
655
655
 
656
656
  <a name="borders"></a>
657
657
  ### Configuring borders
@@ -662,7 +662,7 @@ This is done using the `border` option passed to `Table.new`. The options are as
662
662
  `:ascii`&mdash;this is the default; the table is drawn entirely with characters in the ASCII set:
663
663
 
664
664
  ```
665
- > puts Tabulo::Table.new(1...3, :itself, :even?, :odd?, border: :ascii)
665
+ > puts Tabulo::Table.new(1..3, :itself, :even?, :odd?, border: :ascii)
666
666
  +--------------+--------------+--------------+
667
667
  | itself | even? | odd? |
668
668
  +--------------+--------------+--------------+
@@ -699,7 +699,7 @@ This is done using the `border` option passed to `Table.new`. The options are as
699
699
  `:blank`&mdash;no border or divider characters are printed:
700
700
 
701
701
  ```
702
- > puts Tabulo::Table.new(1...3, :itself, :even?, :odd?, border: :blank)
702
+ > puts Tabulo::Table.new(1..3, :itself, :even?, :odd?, border: :blank)
703
703
  itself even? odd?
704
704
  1 false true
705
705
  2 true false
@@ -709,7 +709,7 @@ This is done using the `border` option passed to `Table.new`. The options are as
709
709
  `:reduced_ascii`&mdash;similar to `:ascii`, but without vertical lines:
710
710
 
711
711
  ```
712
- > puts Tabulo::Table.new(1...3, :itself, :even?, :odd?, border: :reduced_modern)
712
+ > puts Tabulo::Table.new(1..3, :itself, :even?, :odd?, border: :reduced_modern)
713
713
  -------------- -------------- --------------
714
714
  itself even? odd?
715
715
  -------------- -------------- --------------
@@ -722,7 +722,7 @@ This is done using the `border` option passed to `Table.new`. The options are as
722
722
  `:reduced_modern`&mdash;similar to `:modern`, but without vertical lines:
723
723
 
724
724
  ```
725
- > puts Tabulo::Table.new(1...3, :itself, :even?, :odd?, border: :reduced_ascii)
725
+ > puts Tabulo::Table.new(1..3, :itself, :even?, :odd?, border: :reduced_ascii)
726
726
  ────────────── ────────────── ──────────────
727
727
  itself even? odd?
728
728
  ────────────── ────────────── ──────────────
@@ -736,7 +736,7 @@ This is done using the `border` option passed to `Table.new`. The options are as
736
736
  but without a bottom border:
737
737
 
738
738
  ```
739
- > puts Tabulo::Table.new(1...3, :itself, :even?, :odd?, border: :classic)
739
+ > puts Tabulo::Table.new(1..3, :itself, :even?, :odd?, border: :classic)
740
740
  +--------------+--------------+--------------+
741
741
  | itself | even? | odd? |
742
742
  +--------------+--------------+--------------+
@@ -847,14 +847,14 @@ The gem is available as open source under the terms of the [MIT
847
847
  License](http://opensource.org/licenses/MIT).
848
848
 
849
849
  [Gem Version]: https://rubygems.org/gems/tabulo
850
- [Documentation]: http://www.rubydoc.info/gems/tabulo/2.1.0
850
+ [Documentation]: http://www.rubydoc.info/gems/tabulo/2.1.1
851
851
  [Build Status]: https://travis-ci.org/matt-harvey/tabulo
852
852
  [Coverage Status]: https://coveralls.io/r/matt-harvey/tabulo
853
853
  [Code Climate]: https://codeclimate.com/github/matt-harvey/tabulo
854
854
  [Awesome Ruby]: https://github.com/markets/awesome-ruby#cli-utilities
855
855
 
856
856
  [GV img]: https://img.shields.io/gem/v/tabulo.svg
857
- [DC img]: https://img.shields.io/badge/documentation-v2.1.0-blue.svg
857
+ [DC img]: https://img.shields.io/badge/documentation-v2.1.1-blue.svg
858
858
  [BS img]: https://img.shields.io/travis/matt-harvey/tabulo.svg
859
859
  [CS img]: https://img.shields.io/coveralls/matt-harvey/tabulo.svg
860
860
  [CC img]: https://codeclimate.com/github/matt-harvey/tabulo/badges/gpa.svg
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.0
1
+ 2.1.1
@@ -194,7 +194,7 @@ module Tabulo
194
194
  end
195
195
 
196
196
  def style(s)
197
- @styler ? @styler.call(s) : s
197
+ (@styler && !s.empty?) ? @styler.call(s) : s
198
198
  end
199
199
  end
200
200
  end
@@ -1,3 +1,3 @@
1
1
  module Tabulo
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.1"
3
3
  end
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.1.0
4
+ version: 2.1.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: 2019-12-21 00:00:00.000000000 Z
11
+ date: 2019-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tty-screen