vll 0.0.5 → 0.0.6
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 +4 -4
- data/bin/vl +7 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f0766ce538b26d289709ce114d0f2154ded2039e
|
|
4
|
+
data.tar.gz: 279510634defee1efc43073263869533a2cc96f8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a435f6867143065722a603c2cfd758e25739327864e136fe43b4d7a9881a5e89c4e81830bb6070c3e745dddc3247d81fcd08d0105482b8ca52fd986e10f363df
|
|
7
|
+
data.tar.gz: 3d0e91ab7137c83c7061cabf4e87801292f3d6636914a79fb0764f7fd81c700b9408abfd586a647d053df5d95be2e109662c2f444a394dc31db278e218b8fdcf
|
data/bin/vl
CHANGED
|
@@ -15,9 +15,10 @@ $options = {
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
opts = OptionParser.new do |opts|
|
|
18
|
-
opts.program_name =
|
|
18
|
+
opts.program_name = '(V)iew (L)arge table'
|
|
19
|
+
opts.version = '20150113'
|
|
19
20
|
|
|
20
|
-
opts.banner =
|
|
21
|
+
opts.banner = '(V)iew (L)arge table: lightning fast table formatter'
|
|
21
22
|
opts.separator ''
|
|
22
23
|
opts.separator ' output to stdout:'
|
|
23
24
|
opts.separator ' vl FILENAME [options]'
|
|
@@ -131,7 +132,6 @@ def print_line(line, lnum)
|
|
|
131
132
|
parsed_line.each_with_index do |c, i|
|
|
132
133
|
# damn you, 'csv' package!
|
|
133
134
|
c = '' if c == nil
|
|
134
|
-
c = '' if c == nil
|
|
135
135
|
if $max_widths.fetch(i, -1) < c.length then $max_widths[i] = c.length end
|
|
136
136
|
case $options[:justify]
|
|
137
137
|
when 'l'
|
|
@@ -146,7 +146,10 @@ def print_line(line, lnum)
|
|
|
146
146
|
end
|
|
147
147
|
end
|
|
148
148
|
end
|
|
149
|
-
|
|
149
|
+
puts
|
|
150
|
+
rescue
|
|
151
|
+
STDERR.puts 'vl: Pipe ended while writing.'
|
|
152
|
+
abort
|
|
150
153
|
end
|
|
151
154
|
|
|
152
155
|
cached_lines.each.with_index do |line, lnum|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vll
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- xzhu
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-01-
|
|
11
|
+
date: 2015-01-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Nicely format columns of a large CSV/TSV file according to their content
|
|
14
14
|
width, using first few lines as estimation thus extremely fast. Customizable.
|