vll 0.1.4 → 0.1.5
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.
- data/bin/vl +2 -0
- metadata +2 -2
data/bin/vl
CHANGED
@@ -129,6 +129,7 @@ ARGF.each_line.with_index.reduce 0 do |pnum, (line, lnum)|
|
|
129
129
|
parsed_line.each_with_index do |c, i|
|
130
130
|
# damn you, 'csv' package!
|
131
131
|
c = '' if c == nil
|
132
|
+
c = c.inspect[1..-2]
|
132
133
|
# -1 because it's possible that c is empty and i is out of range
|
133
134
|
if $max_widths.fetch(i, -1) < c.length then $max_widths[i] = c.length end
|
134
135
|
end
|
@@ -148,6 +149,7 @@ def print_line(line, lnum)
|
|
148
149
|
parsed_line.each_with_index do |c, i|
|
149
150
|
# damn you, 'csv' package!
|
150
151
|
c = '' if c == nil
|
152
|
+
c = c.inspect[1..-2]
|
151
153
|
|
152
154
|
if $max_widths.fetch(i, -1) < c.length then
|
153
155
|
$max_widths[i] = c.length
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: vll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- xzhu
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-08-
|
12
|
+
date: 2016-08-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
type: :runtime
|