texttable 1.1.10 → 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: c8055fd1e6304a359eb5fd7a2cad2edd6a6f908e56d530d905b303a7d67bd767
4
- data.tar.gz: 47c438e04d322e05388e605123f7bcd477318634430d5ab5d8537f14997936a6
3
+ metadata.gz: 87e25e891adb38fb970af89bcde4da535c6358a56e5174ecf7672e0b4b08bf38
4
+ data.tar.gz: 371c68f35b9dd4a489db7f60401a1613b8a1a49a1ba8bf61ea4e7ae318bac74c
5
5
  SHA512:
6
- metadata.gz: 8f17047f82b879f67f4a0d89ccbd3ac18a92327ff2c8ae967625d382a0ee712e29fea7c2d8fc83b869e3eebe4f8a5159084383d224cf075000c6f9af081464fa
7
- data.tar.gz: bdfa482758d242886d149e93587c86109d0556dbca721a1db82e0cbaea82132a158df3db02e0c1a8a0e189c73f11b36b291fc8fe7d2ba51835407c556a6fcd1c
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|
@@ -230,9 +230,3 @@ class TextTable
230
230
  out
231
231
  end
232
232
  end
233
-
234
- class ActiveRecord::Result
235
- def +@
236
- TextTable.new(columns, rows)
237
- end
238
- end if defined?(ActiveRecord)
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.10"
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.10
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: 2021-11-27 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.2.16
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
- 2.6.5