vete 0.6.3 → 0.6.5

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 +3 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99919fa6a5c6a28cbc48510c551a6f0dabdac96f317a9cdaa181b37fd4fdd5bf
4
- data.tar.gz: bd70e8b7eef1b32c302ac20b749a1aa55e6b4b276fda1024a30c7ccedac983fd
3
+ metadata.gz: e3b218ba1e2c6d9d7c66167c0f1e15b07a0dafeacfeacb2810f16636b50f4e42
4
+ data.tar.gz: 0a62e8259399064a0f20d1679afccdaf935f0e518caa01ad102b543929a926e4
5
5
  SHA512:
6
- metadata.gz: 4011761a29f57994863b77e357d2633ffa16b9f0c000569bd69c357a6214c583bf50f9b677bc3508d2036becff0dd4f238a34e388c1444c62205991b65b462c1
7
- data.tar.gz: a0d1b80373d0941d6cf7911d18be4be936f4d3b6e599a13fd7af08ebc17a16b568e68c697967fd85c9ceabc12baba2472e76612b200a1787839570d8f3f1ae93
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.3"
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
 
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: 0.6.3
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Shreeve