vete 0.6.1 → 0.6.3

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 +4 -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: ebef08e0bd4e613f05c177ca2ed9aebff1c9374f6cc89bd09424592bc82d1df4
4
- data.tar.gz: fa9226523af0c7ee7e2f2c64a3a0e618ccfcb1b1fd6bf82b4af0406c5b3d115a
3
+ metadata.gz: 99919fa6a5c6a28cbc48510c551a6f0dabdac96f317a9cdaa181b37fd4fdd5bf
4
+ data.tar.gz: bd70e8b7eef1b32c302ac20b749a1aa55e6b4b276fda1024a30c7ccedac983fd
5
5
  SHA512:
6
- metadata.gz: 387161f8cff69edcaec6a35a7e08dfa9fc9266f411e69bd48d764db10f3a37d2690f0b3a5c1018b48b4edb6adc83daa25cd96326d9565a981a5a411ea62aff92
7
- data.tar.gz: b192c68b8dfa2d3c53607a2ecfb50308c1ef86a623322b2c5285ed34b848a8fae409ddb90c6a7d618e59bb1b61cbafd19fa72328e17aa8810a4084d63e6d4a20
6
+ metadata.gz: 4011761a29f57994863b77e357d2633ffa16b9f0c000569bd69c357a6214c583bf50f9b677bc3508d2036becff0dd4f238a34e388c1444c62205991b65b462c1
7
+ data.tar.gz: a0d1b80373d0941d6cf7911d18be4be936f4d3b6e599a13fd7af08ebc17a16b568e68c697967fd85c9ceabc12baba2472e76612b200a1787839570d8f3f1ae93
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.1"
22
+ @version = "0.6.3"
23
23
  @banner = "usage: #{program_name} [options]"
24
24
 
25
25
  on "-b", "--bar <width>" , "Progress bar width, in characters", Integer
@@ -82,8 +82,9 @@ def vete_retry
82
82
  move(list, @todo)
83
83
  end
84
84
 
85
- def vete_todo(path)
86
- FileUtils.touch(File.join(@todo, path.to_s))
85
+ def vete_todo(path, data=nil)
86
+ path = File.join(@todo, path.to_s)
87
+ data ? File.write(path, data) : FileUtils.touch(path)
87
88
  end
88
89
 
89
90
  # ==[ Drawing ]===============================================================
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.1
4
+ version: 0.6.3
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