vete 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/vete.rb +4 -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: ed49e57cfc742410d72465e306317b8710b4442ac76e96f076a946c0772fa3a6
|
4
|
+
data.tar.gz: 6401087237fe0105ccf98035553a034fa28a87e72d2d7dca22fc097c61f37ff7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
|
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 ]===============================================================
|