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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/vl +7 -4
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9068ba45e1eb3fc283d28d1451c8426b3c76e7fa
4
- data.tar.gz: 77d2493fcbf0e36d9332ff317d1ebc4aec37c674
3
+ metadata.gz: f0766ce538b26d289709ce114d0f2154ded2039e
4
+ data.tar.gz: 279510634defee1efc43073263869533a2cc96f8
5
5
  SHA512:
6
- metadata.gz: b1454aaa260c5ce313238fa38dbfd32ae9764a0c40c780e47b8f03d070ab224c4118276569f7905b567197b966846972f5cd6f0761727bb1e4444d3457474090
7
- data.tar.gz: 58a8711da7202000a85a325eaf3f2d660e8cfd8d251be5382fd2a9fd21dcf18067a35528020fba1ff63322498effacfae9df13da9727ac95e08ca50315fb71b1
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 = "(V)iew (L)arge table"
18
+ opts.program_name = '(V)iew (L)arge table'
19
+ opts.version = '20150113'
19
20
 
20
- opts.banner = "(V)iew (L)arge table: lightning fast table formatter"
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
- print "\n" rescue return
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.5
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-13 00:00:00.000000000 Z
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.