vete 0.6.2 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/bin/vete +5 -0
  3. data/lib/vete.rb +3 -3
  4. data/vete.gemspec +1 -1
  5. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed49e57cfc742410d72465e306317b8710b4442ac76e96f076a946c0772fa3a6
4
- data.tar.gz: 6401087237fe0105ccf98035553a034fa28a87e72d2d7dca22fc097c61f37ff7
3
+ metadata.gz: e3b218ba1e2c6d9d7c66167c0f1e15b07a0dafeacfeacb2810f16636b50f4e42
4
+ data.tar.gz: 0a62e8259399064a0f20d1679afccdaf935f0e518caa01ad102b543929a926e4
5
5
  SHA512:
6
- metadata.gz: 9eae490b4b8b0dc6237cb12f32a8f66354b6c034723481db5238f4b93fa2ef012e8c2168f2b0184567d267434d118a405a0a7f0c769c602ee3a58a6574948883
7
- data.tar.gz: 9e28550582a169c9d00acbfca55eecf802ee0ea989a2e1ae1077e735aad173561a1566ba8ab7242684861c3bdddb6c5c1a2d8c483d90d472e66c27fcb642e920
6
+ metadata.gz: 4e0ff4061b2e7e930bf9dd7195b957874368cd17b07bd7a2b650d9af5c4a3e087a1963d905186445bbf23ddf02d23f0f45815e152026046bdfbc9f443e5d67cf
7
+ data.tar.gz: e6b58f1834bc6039c442f85356511a5d4769d080246ec6479ece58e8b39b89cbce9e5491b4f93bf25dc3b77e6391b50b4e329c1fd05aded977b36bdaed7e0b65
data/bin/vete ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ ARGV.push("-r") if ARGV.empty?
4
+
5
+ require "vete"
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.2"
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
 
data/vete.gemspec CHANGED
@@ -10,5 +10,5 @@ Gem::Specification.new do |s|
10
10
  s.homepage = "https://github.com/shreeve/vete"
11
11
  s.license = "MIT"
12
12
  s.files = `git ls-files`.split("\n") - %w[.gitignore]
13
- # s.executables = `cd bin && git ls-files .`.split("\n")
13
+ s.executables = `cd bin && git ls-files .`.split("\n")
14
14
  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: 0.6.2
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Shreeve
@@ -12,13 +12,15 @@ date: 2023-03-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ruby CLI to spawn processes to get work done
14
14
  email: steve.shreeve@gmail.com
15
- executables: []
15
+ executables:
16
+ - vete
16
17
  extensions: []
17
18
  extra_rdoc_files: []
18
19
  files:
19
20
  - Gemfile
20
21
  - LICENSE
21
22
  - README.md
23
+ - bin/vete
22
24
  - lib/vete.rb
23
25
  - test/example.rb
24
26
  - test/vete.gif