table-formatter 0.6.1 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5acef05c758dd7d03732006f0fc3e03ffff4f3ed7a1244825b63ebf29ac0ef3
4
- data.tar.gz: 22d4291c3a34e511d442f955b4c52745a9f2d1a626c4f756f67f8388663075a3
3
+ metadata.gz: 99bff45abbcb0e6f020804352e4faa54beea585bdac75ba2e4ae7f9849b79b32
4
+ data.tar.gz: 4b94ff40326c1330dcd0f92d73676886d8be8ae37de72d79dce9bb3793515a22
5
5
  SHA512:
6
- metadata.gz: 999d08efe2501691cb58a17c3369a2c7c4158e86b8f573fd509e1b33d1a6d4bf0cc950c43e895ad1f2f3c0902f075dfdb8bafa6940cc562c51cd73f7fa2d60d9
7
- data.tar.gz: ac8034f96d501c479e2fe31c2648dc1f051d1e49765eb3c0c4427310a8ce91e284951e76824803410bff948b02e47dd15f168ae5c175fa52c4696080d5b90374
6
+ metadata.gz: 486bda4aa80ad85c1baeda484d2093491eb23aa06eb06ac63e8bf1e5cd7b863ef6876bb7de7d2664ad75cd6c1043546ff95e248e218c75d5d22a9d403105b6a2
7
+ data.tar.gz: 49986df1c497eabc6642d3955d5b7a577c42c61a20b5b030165ec617bfb5452de4c2b4762377b2174f5cb27b42e13b95c79996e182c0d70df8e5bb50a4f451d4
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -74,7 +74,9 @@ class TableFormatter
74
74
  #width ||= @maxwidth
75
75
  @width = width
76
76
  @maxwidth = width if width
77
- a = @source.map {|x| x.map{|y| y.length > 0 ? y : ' ' }}.to_a
77
+ a = @source.map do |x|
78
+ x.map{|y| col = y.to_s; col.length > 0 ? col : ' ' }
79
+ end.to_a
78
80
 
79
81
  column_widths = widths ? widths : fetch_column_widths(a)
80
82
 
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.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -35,28 +35,28 @@ cert_chain:
35
35
  QkN6g5cVjI7UG/Nt/FtwczGA26N85iGdqVPWE9AHT1oVUQiw3i2nwT9+5ZV0gQ+J
36
36
  N57xZmcfbl5HIXM+VKr8LbZg
37
37
  -----END CERTIFICATE-----
38
- date: 2019-03-11 00:00:00.000000000 Z
38
+ date: 2019-05-25 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: c32
42
42
  requirement: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - "~>"
45
- - !ruby/object:Gem::Version
46
- version: '0.1'
47
44
  - - ">="
48
45
  - !ruby/object:Gem::Version
49
- version: 0.1.2
46
+ version: 0.2.0
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '0.2'
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - "~>"
55
- - !ruby/object:Gem::Version
56
- version: '0.1'
57
54
  - - ">="
58
55
  - !ruby/object:Gem::Version
59
- version: 0.1.2
56
+ version: 0.2.0
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '0.2'
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: rdiscount
62
62
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file