table_print 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/table_print/column.rb +1 -1
- data/lib/table_print/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTNlNTA4MWFhMDUyZGZkMWE1MWQyZTY5NjUzNzI4MTg3NjRkMzE1ZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTQ4NjZkNzVlMTgyMjkxMmQxNWRkNWQ1ODE3NWM3YmZiOTE0YjFkOA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YjFjZjU5ZDFkYTZjM2VmNTA3MTMzN2VmY2ZjMDgxNWEwN2E0OTgwMTVhNWIy
|
10
|
+
NGRlYWM0ZTc3MTI5ZmQ0OTcxNzBkNmU1MGZmYmQ4Mzc0ZDc1N2E0ZjQ4OTlj
|
11
|
+
ZGZkNTAxMjdmZTYzMGJiNDMwYjBhOWMwMWU3YjJjYjQzNjE0MzM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjYxNjkxOGMwODYzZmRiNjMyNzI3YTU1OWM0YTI4MTQyY2IzZGQxN2FhMDcw
|
14
|
+
NGJhYTExYjVhMDBjNDk0ZjhiNWQxYjM0YWY4MjhmZTBlYzZlODcxNmY2NGY3
|
15
|
+
Yjk0NWQ1MzRmOTU1MzI1NDRlYThmZGE4ODg5M2I0YjI4MTg4MjI=
|
data/lib/table_print/column.rb
CHANGED
@@ -37,7 +37,7 @@ module TablePrint
|
|
37
37
|
[
|
38
38
|
name.each_char.collect{|c| c.bytesize == 1 ? 1 : 2}.inject(0, &:+),
|
39
39
|
Array(data).compact.collect(&:to_s).collect{|m| m.each_char.collect{|n| n.bytesize == 1 ? 1 : 2}.inject(0, &:+)}.max
|
40
|
-
].max
|
40
|
+
].compact.max || 0
|
41
41
|
end
|
42
42
|
|
43
43
|
def width
|
data/lib/table_print/version.rb
CHANGED