vete 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -8
  3. data/lib/vete.rb +3 -2
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47c29a5b0f4ba59dbec76ce9db29421b38c6ac0a5988c69618d6358ed2f9c734
4
- data.tar.gz: 4e48c009025a3a1220a8d60b4bf21013c08a19774d0fb8a4ab7d8e89f6e1c612
3
+ metadata.gz: 9bcfe77d7df4668c1464483c0c78b6add567c9dbb2223dad8f9312b37bfb387f
4
+ data.tar.gz: 655b7fe95d90e0679954a7230fd7c164ee44cedeac2fee393f99aca08db3ceca
5
5
  SHA512:
6
- metadata.gz: 8b629bc286b28c43bbab39b4f37ba3f9cdbc116d5283940200093fd86e5bd56ae1735910e2e805aa487a1a9cdd4030b67b480a0a32833723b1891e3cf104618b
7
- data.tar.gz: de593f3ebf64ee5f8013c7a6031ed54c2edf7065f20eea8fb3c202ca32286fac561e9921c15df6903da81e0227bf19cb2343fd95f6c3736ba2ba7f57242d0911
6
+ metadata.gz: 4e00f6f19397277661fc67d9fe6a05fe328606d9456131c38afb0bea8f94b6ce0dd2528dea01229eeedcfb62742f96002ab2e73e25726449c0670448b4377b34
7
+ data.tar.gz: 3e4111558615188636277ef89ea470a3761f2b283b516ac3e163aa775341580236a93763ffae37ec81304c100b285da34d7a6e5d241fac116129cb635b910411
data/README.md CHANGED
@@ -69,10 +69,10 @@ four tasks as follows:
69
69
  ├── died/
70
70
  ├── done/
71
71
  └── todo/
72
- │   ├── 20230410
73
- │   ├── 20230411
74
- │   ├── 20230412
75
- │   └── 20230413
72
+    ├── 20230410
73
+    ├── 20230411
74
+    ├── 20230412
75
+    └── 20230413
76
76
  ```
77
77
 
78
78
  This file structure can be defined in the `setup` method, or you could choose to
@@ -116,10 +116,10 @@ are needed when processing each task.
116
116
  ├── died/
117
117
  ├── done/
118
118
  └── todo/
119
- │   ├── amazon.json
120
- │   ├── apple.json
121
- │   ├── facebook.json
122
- │   └── google.json
119
+    ├── amazon.json
120
+    ├── apple.json
121
+    ├── facebook.json
122
+    └── google.json
123
123
  ```
124
124
 
125
125
  ### Additional tips
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 = "1.0.4"
22
+ @version = "1.0.5"
23
23
  @banner = "usage: #{program_name} [options] [filename]"
24
24
 
25
25
  on "-b", "--bar <width>" , "Progress bar width, in characters", Integer
@@ -78,7 +78,8 @@ end
78
78
 
79
79
  def vete_retry
80
80
  list = Dir.glob(File.join(@died, "*")).sort.each {|path| FileUtils.touch(path) }
81
- list.empty? ? false : !!move(list, @todo)
81
+ todo = Dir.glob(File.join(@todo, "*"))
82
+ list.empty? ? !todo.empty? : !!move(list, @todo)
82
83
  end
83
84
 
84
85
  def vete_todo(path, data=nil)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vete
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Shreeve
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-03 00:00:00.000000000 Z
11
+ date: 2024-03-21 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
@@ -44,7 +44,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
46
  requirements: []
47
- rubygems_version: 3.4.14
47
+ rubygems_version: 3.5.6
48
48
  signing_key:
49
49
  specification_version: 4
50
50
  summary: Ruby CLI to spawn processes to get work done