vete 0.6.3 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vete.rb +3 -3
- 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: e3b218ba1e2c6d9d7c66167c0f1e15b07a0dafeacfeacb2810f16636b50f4e42
|
4
|
+
data.tar.gz: 0a62e8259399064a0f20d1679afccdaf935f0e518caa01ad102b543929a926e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e0ff4061b2e7e930bf9dd7195b957874368cd17b07bd7a2b650d9af5c4a3e087a1963d905186445bbf23ddf02d23f0f45815e152026046bdfbc9f443e5d67cf
|
7
|
+
data.tar.gz: e6b58f1834bc6039c442f85356511a5d4769d080246ec6479ece58e8b39b89cbce9e5491b4f93bf25dc3b77e6391b50b4e329c1fd05aded977b36bdaed7e0b65
|
data/lib/vete.rb
CHANGED
@@ -19,7 +19,7 @@ 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 = "0.6.
|
22
|
+
@version = "0.6.5"
|
23
23
|
@banner = "usage: #{program_name} [options]"
|
24
24
|
|
25
25
|
on "-b", "--bar <width>" , "Progress bar width, in characters", Integer
|
@@ -31,7 +31,7 @@ OptionParser.new.instance_eval do
|
|
31
31
|
on "-w", "--workers <count>" , "Set the number of workers (default is 1)", Integer
|
32
32
|
|
33
33
|
self
|
34
|
-
end.parse!(into: opts={}) rescue abort($!.message)
|
34
|
+
end.parse!(into: @opts = opts = {}) rescue abort($!.message)
|
35
35
|
|
36
36
|
# populate CLI options
|
37
37
|
@char = opts[:char ] || "•"; @char = @char[0]
|
@@ -58,7 +58,7 @@ end
|
|
58
58
|
@died = File.join(@vete, "died")
|
59
59
|
|
60
60
|
def move(path, dest)
|
61
|
-
dest = File.join(dest, File.basename(path))
|
61
|
+
dest = File.join(dest, File.basename(path)) unless path.is_a?(Array)
|
62
62
|
FileUtils.mv(path, dest, force: true, secure: true)
|
63
63
|
end
|
64
64
|
|