table-formatter 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/table-formatter.rb +3 -1
- metadata +10 -10
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99bff45abbcb0e6f020804352e4faa54beea585bdac75ba2e4ae7f9849b79b32
|
4
|
+
data.tar.gz: 4b94ff40326c1330dcd0f92d73676886d8be8ae37de72d79dce9bb3793515a22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 486bda4aa80ad85c1baeda484d2093491eb23aa06eb06ac63e8bf1e5cd7b863ef6876bb7de7d2664ad75cd6c1043546ff95e248e218c75d5d22a9d403105b6a2
|
7
|
+
data.tar.gz: 49986df1c497eabc6642d3955d5b7a577c42c61a20b5b030165ec617bfb5452de4c2b4762377b2174f5cb27b42e13b95c79996e182c0d70df8e5bb50a4f451d4
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/table-formatter.rb
CHANGED
@@ -74,7 +74,9 @@ class TableFormatter
|
|
74
74
|
#width ||= @maxwidth
|
75
75
|
@width = width
|
76
76
|
@maxwidth = width if width
|
77
|
-
a = @source.map
|
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.
|
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-
|
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.
|
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.
|
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
|