table-formatter 0.6.0 → 0.6.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: 74a3f94f4924214594eb602953443dbe5adc068c9e768cb58825dd2a6144bbaa
4
- data.tar.gz: 9a7a70379585a2889d1ce10e7ca0d86d242041da7b37650a534328a01f01d925
3
+ metadata.gz: f5acef05c758dd7d03732006f0fc3e03ffff4f3ed7a1244825b63ebf29ac0ef3
4
+ data.tar.gz: 22d4291c3a34e511d442f955b4c52745a9f2d1a626c4f756f67f8388663075a3
5
5
  SHA512:
6
- metadata.gz: 6a40c99b50a6fd999e3d81123048cf43b5103dbf43bc25582c013b64015d71f97970e7daeb6f7d3ace478566328640d2b6518cbd1ae036995e710aaece47bd4e
7
- data.tar.gz: d7b600474bf1cae60ae05788f903dd23a06fe91fe6ac0afc16ca2f85610a170531a25520c7bbcb51225e73a68b25cc334bbf29558a5d42c7881d1e0f9bc46c8a
6
+ metadata.gz: 999d08efe2501691cb58a17c3369a2c7c4158e86b8f573fd509e1b33d1a6d4bf0cc950c43e895ad1f2f3c0902f075dfdb8bafa6940cc562c51cd73f7fa2d60d9
7
+ data.tar.gz: ac8034f96d501c479e2fe31c2648dc1f051d1e49765eb3c0c4427310a8ce91e284951e76824803410bff948b02e47dd15f168ae5c175fa52c4696080d5b90374
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -163,7 +163,7 @@ class TableFormatter
163
163
  vals).transpose.map{|x| x.max_by(&:length).length}
164
164
  end
165
165
 
166
- th = if @labels then
166
+ th = if @labels.map(&:strip).join.length > 0 then
167
167
  print_row.call(fields, widths)
168
168
  else
169
169
  ''
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: table-formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file