vete 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/vete.rb +7 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06504dd7c0db745520749c6870bce211b8b49c93be264805d99f27576db1b203
|
4
|
+
data.tar.gz: 57e594abef634594f5dda56cfadf8bd00796de916ad5ea35eb9aed59b6997254
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c677308c467a8ac0e22edf3e2cbc5400743188922597b835c81435eb363b10cf424f36559c668bb167ac2e0f8a2ffdc3aa4ebce69e2c3f2ea8d450a16ab30ec
|
7
|
+
data.tar.gz: 396cf9aa6fb29aa7bcbfd3be204dd5507f895d9cfe89b42e424a3d76c12dac87471f5836f80f29a2a1165d4e040a2959be5d6714d506b3529bbdb6331e03fbcd
|
data/README.md
CHANGED
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.
|
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
|
-
# ==[
|
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
|
-
|
161
|
-
|
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
|