vete 1.0.1 → 1.0.3

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 +7 -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: b811e6c42a16fc7bcb8359b469f1ead827bac8727e54224cd0891d014c0ad491
4
+ data.tar.gz: 0fc1990ae2a825c40790e31485819ac4bf92c10623abf696e279c30a4b7a7097
5
5
  SHA512:
6
- metadata.gz: 440ea4d9a82ddbe830da97150a1752ca0f3624955db89cf9c3782b1546641cc19ba1bd8c165eaf435520ce105d87f9f65b5877917bba48dda48d762d3c35760e
7
- data.tar.gz: 1cc41d58721becaf76e6980527e801658431af3ca0a3100bccc53a92ea9d33ce2a23afb3873fd17f3a6eec4533247d23d16476191401bf54361e9d773e3a0b3d
6
+ metadata.gz: 396ec4711449a42af83c911e8fa306c30949c70630ad97e1b37cd617ce0be0900b39814125c49a671f377b8af314e26abfd9aa8ea79c790bd449e07d5e764f7a
7
+ data.tar.gz: d4a829a061f96ac6cb0bc9eda2e4de38cff5babeb5692fc7e1355802af851344d11d0293f14114b6c41b8deccf00f8966fbb250d35bb3d669dffa43dc5edebad
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.3"
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
@@ -195,6 +197,8 @@ defined?(perform) and list = Dir[File.join(@todo, "*")] and !list.empty? and beg
195
197
  when "task" then sleep task
196
198
  when Numeric then sleep task * @wait
197
199
  end if task < @work
200
+ @slot = slot + 1
201
+ @task = path
198
202
  perform(path)
199
203
  exit
200
204
  end
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.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Shreeve