vete 0.6.1 → 0.6.2

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 +4 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ebef08e0bd4e613f05c177ca2ed9aebff1c9374f6cc89bd09424592bc82d1df4
4
- data.tar.gz: fa9226523af0c7ee7e2f2c64a3a0e618ccfcb1b1fd6bf82b4af0406c5b3d115a
3
+ metadata.gz: ed49e57cfc742410d72465e306317b8710b4442ac76e96f076a946c0772fa3a6
4
+ data.tar.gz: 6401087237fe0105ccf98035553a034fa28a87e72d2d7dca22fc097c61f37ff7
5
5
  SHA512:
6
- metadata.gz: 387161f8cff69edcaec6a35a7e08dfa9fc9266f411e69bd48d764db10f3a37d2690f0b3a5c1018b48b4edb6adc83daa25cd96326d9565a981a5a411ea62aff92
7
- data.tar.gz: b192c68b8dfa2d3c53607a2ecfb50308c1ef86a623322b2c5285ed34b848a8fae409ddb90c6a7d618e59bb1b61cbafd19fa72328e17aa8810a4084d63e6d4a20
6
+ metadata.gz: 9eae490b4b8b0dc6237cb12f32a8f66354b6c034723481db5238f4b93fa2ef012e8c2168f2b0184567d267434d118a405a0a7f0c769c602ee3a58a6574948883
7
+ data.tar.gz: 9e28550582a169c9d00acbfca55eecf802ee0ea989a2e1ae1077e735aad173561a1566ba8ab7242684861c3bdddb6c5c1a2d8c483d90d472e66c27fcb642e920
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.2"
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 ]===============================================================
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.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Shreeve