plansheet 0.30.0 → 0.31.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -4
- data/Gemfile +1 -2
- data/exe/plansheet +16 -1
- data/lib/plansheet/project/yaml.rb +10 -0
- data/lib/plansheet/project.rb +3 -3
- data/lib/plansheet/version.rb +1 -1
- metadata +2 -3
- data/Gemfile.lock +0 -108
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1b05c9c4733d200c8baee9815468f5645bff5e4c91290d36be60cb292d3cc19
|
4
|
+
data.tar.gz: bafca3ddbcd281d8fb98098dd77af9771fdf9e896d7edb67bb03c16377e40600
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a392b05530451746c15420d8bd5a96be18666f709974c604ab03ecafadec3464e876fb51203c5824e6203f370e2f71bab62b2eb9c7a5d496b9de70099f021f87
|
7
|
+
data.tar.gz: 24320acdc706151578b4a3e8ba278aaae5630317ed4d069b3b609c983597c7b668fbdce51002fedaa066ae359d5a05f47825f2e3eb4cf0927efebd6bfb4a1931
|
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
data/exe/plansheet
CHANGED
@@ -29,6 +29,10 @@ parser.on(
|
|
29
29
|
"--time-roi",
|
30
30
|
"Show projects with a time return-on-investment"
|
31
31
|
)
|
32
|
+
parser.on(
|
33
|
+
"--needs-thinking",
|
34
|
+
"Show projects that need tasks, time estimates, etc (WIP)"
|
35
|
+
)
|
32
36
|
parser.on(
|
33
37
|
"--calendar",
|
34
38
|
"List of projects ordered by due date"
|
@@ -47,7 +51,9 @@ pool = Plansheet::Pool.new({ projects_dir: config["projects_dir"],
|
|
47
51
|
if options[:sheet] || options.empty?
|
48
52
|
require "plansheet/sheet"
|
49
53
|
FileUtils.mkdir_p config["output_dir"]
|
50
|
-
|
54
|
+
project_arr = pool.projects
|
55
|
+
project_arr.delete_if { |x| %w[dropped done paused].include? x.status }
|
56
|
+
Plansheet::LaTeXSheet.new("#{config["output_dir"]}/projects.tex", project_arr)
|
51
57
|
elsif options[:irb]
|
52
58
|
binding.irb # rubocop:disable Lint/Debugger
|
53
59
|
elsif options[:stats]
|
@@ -68,6 +74,15 @@ elsif options[:"time-roi"]
|
|
68
74
|
puts "time ROI payoff: #{proj.time_roi_payoff}"
|
69
75
|
puts "\n"
|
70
76
|
end
|
77
|
+
elsif options[:"needs-thinking"]
|
78
|
+
puts "Projects with no tasks"
|
79
|
+
project_arr = pool.projects.sort
|
80
|
+
project_arr.delete_if(&:dropped_or_done?)
|
81
|
+
project_arr.delete_if(&:tasks)
|
82
|
+
project_arr.each do |proj|
|
83
|
+
puts proj
|
84
|
+
puts "\n"
|
85
|
+
end
|
71
86
|
elsif options[:calendar]
|
72
87
|
# TODO: add a project filter method
|
73
88
|
project_arr = pool.projects
|
@@ -140,6 +140,16 @@ module Plansheet
|
|
140
140
|
type: seq
|
141
141
|
sequence:
|
142
142
|
- type: str
|
143
|
+
"setup_tasks":
|
144
|
+
desc: List of tasks needed before main project work begins
|
145
|
+
type: seq
|
146
|
+
sequence:
|
147
|
+
- type: str
|
148
|
+
"cleanup_tasks":
|
149
|
+
desc: List of tasks needed before main project work begins
|
150
|
+
type: seq
|
151
|
+
sequence:
|
152
|
+
- type: str
|
143
153
|
"done":
|
144
154
|
desc: List of tasks which have been completed
|
145
155
|
type: seq
|
data/lib/plansheet/project.rb
CHANGED
@@ -58,7 +58,7 @@ module Plansheet
|
|
58
58
|
day_of_week frequency last_for lead_time].freeze
|
59
59
|
DATE_PROPERTIES = %w[due defer paused_on dropped_on completed_on created_on starts_on last_done
|
60
60
|
last_reviewed].freeze
|
61
|
-
ARRAY_PROPERTIES = %w[dependencies externals urls tasks done tags].freeze
|
61
|
+
ARRAY_PROPERTIES = %w[dependencies externals urls tasks setup_tasks cleanup_tasks done tags].freeze
|
62
62
|
|
63
63
|
ALL_PROPERTIES = STRING_PROPERTIES + DATE_PROPERTIES + ARRAY_PROPERTIES
|
64
64
|
|
@@ -241,11 +241,11 @@ module Plansheet
|
|
241
241
|
|
242
242
|
def status
|
243
243
|
return @status if @status
|
244
|
+
return "dropped" if @dropped_on
|
245
|
+
return "paused" if @paused_on
|
244
246
|
return recurring_status if recurring?
|
245
247
|
return task_based_status if @tasks || @done
|
246
248
|
return "done" if @completed_on && @tasks.nil?
|
247
|
-
return "dropped" if @dropped_on
|
248
|
-
return "paused" if @paused_on
|
249
249
|
|
250
250
|
"idea"
|
251
251
|
end
|
data/lib/plansheet/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plansheet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.31.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Crosby
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dc-kwalify
|
@@ -63,7 +63,6 @@ files:
|
|
63
63
|
- ".rubocop.yml"
|
64
64
|
- CODE_OF_CONDUCT.md
|
65
65
|
- Gemfile
|
66
|
-
- Gemfile.lock
|
67
66
|
- Guardfile
|
68
67
|
- LICENSE.txt
|
69
68
|
- README.md
|
data/Gemfile.lock
DELETED
@@ -1,108 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
plansheet (0.30.0)
|
5
|
-
dc-kwalify (~> 1.0)
|
6
|
-
diffy (= 3.4.2)
|
7
|
-
rgl (= 0.5.8)
|
8
|
-
|
9
|
-
GEM
|
10
|
-
remote: https://rubygems.org/
|
11
|
-
specs:
|
12
|
-
ast (2.4.2)
|
13
|
-
coderay (1.1.3)
|
14
|
-
dc-devtools (0.0.202207232239)
|
15
|
-
dc-rubocop (>= 0.0.3)
|
16
|
-
guard (~> 2.18)
|
17
|
-
guard-rake (~> 1.0)
|
18
|
-
minitest
|
19
|
-
rake (~> 13.0)
|
20
|
-
rubocop (~> 1.30)
|
21
|
-
rubocop-minitest
|
22
|
-
rubocop-rake (~> 0.6)
|
23
|
-
dc-kwalify (1.0.0)
|
24
|
-
dc-rubocop (0.0.3)
|
25
|
-
rubocop
|
26
|
-
diffy (3.4.2)
|
27
|
-
ffi (1.15.5)
|
28
|
-
formatador (1.1.0)
|
29
|
-
generator (0.0.1)
|
30
|
-
guard (2.18.0)
|
31
|
-
formatador (>= 0.2.4)
|
32
|
-
listen (>= 2.7, < 4.0)
|
33
|
-
lumberjack (>= 1.0.12, < 2.0)
|
34
|
-
nenv (~> 0.1)
|
35
|
-
notiffany (~> 0.0)
|
36
|
-
pry (>= 0.13.0)
|
37
|
-
shellany (~> 0.0)
|
38
|
-
thor (>= 0.18.1)
|
39
|
-
guard-rake (1.0.0)
|
40
|
-
guard
|
41
|
-
rake
|
42
|
-
json (2.6.2)
|
43
|
-
lazy_priority_queue (0.1.1)
|
44
|
-
listen (3.7.1)
|
45
|
-
rb-fsevent (~> 0.10, >= 0.10.3)
|
46
|
-
rb-inotify (~> 0.9, >= 0.9.10)
|
47
|
-
lumberjack (1.2.8)
|
48
|
-
method_source (1.0.0)
|
49
|
-
minitest (5.16.2)
|
50
|
-
nenv (0.3.0)
|
51
|
-
notiffany (0.1.3)
|
52
|
-
nenv (~> 0.1)
|
53
|
-
shellany (~> 0.0)
|
54
|
-
parallel (1.22.1)
|
55
|
-
parser (3.1.2.0)
|
56
|
-
ast (~> 2.4.1)
|
57
|
-
pry (0.14.1)
|
58
|
-
coderay (~> 1.1)
|
59
|
-
method_source (~> 1.0)
|
60
|
-
psych (4.0.4)
|
61
|
-
stringio
|
62
|
-
rainbow (3.1.1)
|
63
|
-
rake (13.0.6)
|
64
|
-
rb-fsevent (0.11.1)
|
65
|
-
rb-inotify (0.10.1)
|
66
|
-
ffi (~> 1.0)
|
67
|
-
rdoc (6.4.0)
|
68
|
-
psych (>= 4.0.0)
|
69
|
-
regexp_parser (2.5.0)
|
70
|
-
rexml (3.2.5)
|
71
|
-
rgl (0.5.8)
|
72
|
-
lazy_priority_queue (~> 0.1.0)
|
73
|
-
rexml (~> 3.2, >= 3.2.4)
|
74
|
-
stream (~> 0.5.3)
|
75
|
-
rubocop (1.32.0)
|
76
|
-
json (~> 2.3)
|
77
|
-
parallel (~> 1.10)
|
78
|
-
parser (>= 3.1.0.0)
|
79
|
-
rainbow (>= 2.2.2, < 4.0)
|
80
|
-
regexp_parser (>= 1.8, < 3.0)
|
81
|
-
rexml (>= 3.2.5, < 4.0)
|
82
|
-
rubocop-ast (>= 1.19.1, < 2.0)
|
83
|
-
ruby-progressbar (~> 1.7)
|
84
|
-
unicode-display_width (>= 1.4.0, < 3.0)
|
85
|
-
rubocop-ast (1.19.1)
|
86
|
-
parser (>= 3.1.1.0)
|
87
|
-
rubocop-minitest (0.20.1)
|
88
|
-
rubocop (>= 0.90, < 2.0)
|
89
|
-
rubocop-rake (0.6.0)
|
90
|
-
rubocop (~> 1.0)
|
91
|
-
ruby-progressbar (1.11.0)
|
92
|
-
shellany (0.0.1)
|
93
|
-
stream (0.5.4)
|
94
|
-
generator
|
95
|
-
stringio (3.0.2)
|
96
|
-
thor (1.2.1)
|
97
|
-
unicode-display_width (2.2.0)
|
98
|
-
|
99
|
-
PLATFORMS
|
100
|
-
x86_64-linux
|
101
|
-
|
102
|
-
DEPENDENCIES
|
103
|
-
dc-devtools
|
104
|
-
plansheet!
|
105
|
-
rdoc
|
106
|
-
|
107
|
-
BUNDLED WITH
|
108
|
-
2.3.6
|