vete 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/vete.rb +5 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17a743a15d0924c27b9d12b013832b086a4fbd1b7ef1e4fce78fc2d6a144a3c9
4
- data.tar.gz: a406a4f2dbd83b256fb2403421c9abcbc4c3a3c49a7a39348630521fc6c2fa17
3
+ metadata.gz: 06504dd7c0db745520749c6870bce211b8b49c93be264805d99f27576db1b203
4
+ data.tar.gz: 57e594abef634594f5dda56cfadf8bd00796de916ad5ea35eb9aed59b6997254
5
5
  SHA512:
6
- metadata.gz: 440ea4d9a82ddbe830da97150a1752ca0f3624955db89cf9c3782b1546641cc19ba1bd8c165eaf435520ce105d87f9f65b5877917bba48dda48d762d3c35760e
7
- data.tar.gz: 1cc41d58721becaf76e6980527e801658431af3ca0a3100bccc53a92ea9d33ce2a23afb3873fd17f3a6eec4533247d23d16476191401bf54361e9d773e3a0b3d
6
+ metadata.gz: 7c677308c467a8ac0e22edf3e2cbc5400743188922597b835c81435eb363b10cf424f36559c668bb167ac2e0f8a2ffdc3aa4ebce69e2c3f2ea8d450a16ab30ec
7
+ data.tar.gz: 396cf9aa6fb29aa7bcbfd3be204dd5507f895d9cfe89b42e424a3d76c12dac87471f5836f80f29a2a1165d4e040a2959be5d6714d506b3529bbdb6331e03fbcd
data/lib/vete.rb CHANGED
@@ -19,8 +19,8 @@ trap("INT" ) { print clear + go; abort "\n" }
19
19
  trap("WINCH") { print clear or draw if @pid == Process.pid }
20
20
 
21
21
  OptionParser.new.instance_eval do
22
- @version = "1.0.1"
23
- @banner = "usage: #{program_name} [options]"
22
+ @version = "1.0.2"
23
+ @banner = "usage: #{program_name} [options] [filename]"
24
24
 
25
25
  on "-b", "--bar <width>" , "Progress bar width, in characters", Integer
26
26
  on "-c", "--char <character>" , "Character to use for progress bar", String
@@ -151,7 +151,9 @@ def draw(live=0, done=0, died=0, jobs=0, info=nil)
151
151
  print fg + bg
152
152
  end
153
153
 
154
- # ==[ Configure workers ]=====================================================
154
+ # ==[ Let 'er rip! ]==========================================================
155
+
156
+ load(ARGV.first) unless ARGV.empty?
155
157
 
156
158
  @len = @work.to_s.size
157
159
  @mtx = Mutex.new
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vete
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Shreeve