texttable 1.1.11 → 1.1.12

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: 2880607f51cf22460623d451767a3364a5ae0c0fcd009e50626ae612d67b1c53
4
- data.tar.gz: ea66bd41f51fee3aeaae9a4c0520635c7e709d65125d40ab8236cbcd1841b8ec
3
+ metadata.gz: 87e25e891adb38fb970af89bcde4da535c6358a56e5174ecf7672e0b4b08bf38
4
+ data.tar.gz: 371c68f35b9dd4a489db7f60401a1613b8a1a49a1ba8bf61ea4e7ae318bac74c
5
5
  SHA512:
6
- metadata.gz: b14ff4573aa2104b9ddce63a4b223e7198667a353639bf947066df75a13de55d72578e6c4c3dfdb2a80bf75692c1740ea6bedb30313dd0a99ae35f0d47884cb5
7
- data.tar.gz: 6c21c5feefd81c76fe7b4f805767b45e54154369d5542eaad9530550ed16be40a551ea11c296286baa8e77943002eb4c85f85c8d093a082b8c803af88a776ce8
6
+ metadata.gz: 3f21e246ab40d03a44b8c57c53e5f98383fc716b8dca109015fd3f9153ad69810d368d8c63b4da05115fe1e150b6ec152b002772562567cff46ba2a82f603230
7
+ data.tar.gz: b1e542914ee61d821dfcfacb9fe83aa734fc919b1bbe76a37f8581d61d47973fd6596d80e64b887949a05799efa8e73a047601ba9b3e47b7748b1b229dfe27ba
data/lib/texttable.rb CHANGED
@@ -170,7 +170,7 @@ class TextTable
170
170
 
171
171
  def show!(list=nil)
172
172
  meth = list.is_a?(Array) ? list.method(:push) : method(:puts)
173
- join = " | "
173
+ join = " "
174
174
  size = @cols.size
175
175
  full = [@cols.keys] + rows
176
176
  full.each_with_index do |vals, i| # only when asymmetric
@@ -181,7 +181,7 @@ class TextTable
181
181
  lens = full.map {|r| r.map {|c| c.to_s.size}}.transpose.map(&:max)
182
182
  pict = lens.map {|len| "%-#{len}.#{len}s" }.join(join)
183
183
  pict = [join, pict, join].join.strip
184
- line = (pict % ([""] * size)).tr("| ", "+-")
184
+ line = (pict % ([""] * size)).tr(" ", "•─")
185
185
  seen = -1
186
186
  meth["", line]
187
187
  full.each do |vals|
data/texttable.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "texttable"
5
- s.version = "1.1.11"
5
+ s.version = "1.1.12"
6
6
  s.author = "Steve Shreeve"
7
7
  s.email = "steve.shreeve@gmail.com"
8
8
  s.summary = "An easy way to work with rows and columns as simple tables"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: texttable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.11
4
+ version: 1.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Shreeve
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-03 00:00:00.000000000 Z
11
+ date: 2023-02-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This gem will auto-size based on column widths.
14
14
  email: steve.shreeve@gmail.com
@@ -16,7 +16,6 @@ executables: []
16
16
  extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
- - ".ruby-version"
20
19
  - Gemfile
21
20
  - LICENSE
22
21
  - README.md
@@ -41,7 +40,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
41
40
  - !ruby/object:Gem::Version
42
41
  version: '0'
43
42
  requirements: []
44
- rubygems_version: 3.3.26
43
+ rubygems_version: 3.4.6
45
44
  signing_key:
46
45
  specification_version: 4
47
46
  summary: An easy way to work with rows and columns as simple tables
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 3.1.2