vete 1.0.0 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/vete.rb +7 -8
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b13f06ca7363e892403446d521839c18bbdd16ca832a9af2fdab9ed093703135
4
- data.tar.gz: d17273c1de3f1b6ea4455ea9293d009d2353408121b87e8f5586ee3532bbca3c
3
+ metadata.gz: 06504dd7c0db745520749c6870bce211b8b49c93be264805d99f27576db1b203
4
+ data.tar.gz: 57e594abef634594f5dda56cfadf8bd00796de916ad5ea35eb9aed59b6997254
5
5
  SHA512:
6
- metadata.gz: c5a9083c1193e9338bf943df433eb8933d0247ef587338511d163a595403379f7cd06449f6e2eff57c374984a7fd4dc8d5dc5b27ccc9c1fa1cb426792c10c9de
7
- data.tar.gz: aa56000561c727f918553b6ccf436cd3394decccf5473e8f6c1b4a754e24acab4e421116da13c509be61b9913499be0fc25d8799c85a0809fb5565830b31f653
6
+ metadata.gz: 7c677308c467a8ac0e22edf3e2cbc5400743188922597b835c81435eb363b10cf424f36559c668bb167ac2e0f8a2ffdc3aa4ebce69e2c3f2ea8d450a16ab30ec
7
+ data.tar.gz: 396cf9aa6fb29aa7bcbfd3be204dd5507f895d9cfe89b42e424a3d76c12dac87471f5836f80f29a2a1165d4e040a2959be5d6714d506b3529bbdb6331e03fbcd
data/README.md CHANGED
@@ -130,7 +130,7 @@ run `vete -r` to remove the entire `.vete` directory.
130
130
 
131
131
  Running `vete -h` provides some additional help:
132
132
 
133
- ```shell
133
+ ```text
134
134
  $ vete -h
135
135
 
136
136
  usage: vete [options]
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.0"
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,17 +151,16 @@ 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
158
160
  @que = Thread::Queue.new; @work.times {|slot| @que << (slot + 1) }
159
161
 
160
- begin
161
- setup if defined?(setup)
162
-
163
- list = Dir[File.join(@todo, "*")]
164
-
162
+ defined?(setup ) and setup
163
+ defined?(perform) and list = Dir[File.join(@todo, "*")] and !list.empty? and begin
165
164
  live = 0
166
165
  done = 0
167
166
  died = 0
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.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Shreeve