plansheet 0.24.1 → 0.25.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/Gemfile.lock +1 -1
- data/lib/plansheet/project/yaml.rb +1 -1
- data/lib/plansheet/project.rb +13 -6
- data/lib/plansheet/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d6783f3c90e7d781de642be7c98e2a8469e48d8576405a5554cf92282632f2e
|
4
|
+
data.tar.gz: 39de90d2ad1d6c371c1626b56ffba32d79e293b9adaa0c01bb3d8113cc16225d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d30350f829b3db7e0b6d1163d55b835c55bef408c1c34ffc16a209837b9f4f1573b2d51d46fe294c4e48eeb1018a11a04701b100edce353c68c39becff5c9cca
|
7
|
+
data.tar.gz: fac00b40c31909b7d785e8938f49f877f02872875d72246bc8413dd84d34b857a0a3840605d0e22ac60a288091a6d28629eb915bb3ece4b2930c5e1ea8fbf841
|
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -198,7 +198,7 @@ module Plansheet
|
|
198
198
|
|
199
199
|
puts "#{@path} has changed, writing"
|
200
200
|
require "diffy"
|
201
|
-
puts Diffy::Diff.new(
|
201
|
+
puts Diffy::Diff.new(yaml_dump(load_file), updated_projects_string).to_s(:color)
|
202
202
|
File.write @path, updated_projects_string
|
203
203
|
end
|
204
204
|
|
data/lib/plansheet/project.rb
CHANGED
@@ -138,13 +138,21 @@ module Plansheet
|
|
138
138
|
# Convert the field to minutes
|
139
139
|
@time_estimate_minutes = Plansheet.parse_time_duration(@time_estimate)
|
140
140
|
end
|
141
|
-
if @time_estimate_minutes
|
141
|
+
if @time_estimate_minutes
|
142
142
|
# Rewrite time_estimate field
|
143
143
|
@time_estimate = Plansheet.build_time_duration(@time_estimate_minutes)
|
144
144
|
|
145
145
|
yms = yearly_minutes_saved
|
146
146
|
@time_roi_payoff = yms.to_f / @time_estimate_minutes if yms
|
147
147
|
end
|
148
|
+
|
149
|
+
if done?
|
150
|
+
@completed_on ||= Date.today unless recurring?
|
151
|
+
remove_instance_variable("@status") if @status
|
152
|
+
remove_instance_variable("@time_estimate") if @time_estimate
|
153
|
+
remove_instance_variable("@time_estimate_minutes") if @time_estimate
|
154
|
+
remove_instance_variable("@time_roi_payoff") if @time_roi_payoff
|
155
|
+
end
|
148
156
|
end
|
149
157
|
|
150
158
|
def yearly_minutes_saved
|
@@ -287,11 +295,6 @@ module Plansheet
|
|
287
295
|
task_based_status
|
288
296
|
end
|
289
297
|
|
290
|
-
def process_recurring
|
291
|
-
# TODO: Tasks will be moved from done->tasks if recurring project is
|
292
|
-
# starting again
|
293
|
-
end
|
294
|
-
|
295
298
|
# Due date either explicit or recurring
|
296
299
|
def due
|
297
300
|
return @due if @due
|
@@ -345,6 +348,10 @@ module Plansheet
|
|
345
348
|
status == "dropped" || status == "done"
|
346
349
|
end
|
347
350
|
|
351
|
+
def done?
|
352
|
+
status == "done"
|
353
|
+
end
|
354
|
+
|
348
355
|
def self.task_time_estimate(str)
|
349
356
|
Plansheet.parse_time_duration(Regexp.last_match(1)) if str.match(TIME_EST_REGEX)
|
350
357
|
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.25.1
|
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-07-
|
11
|
+
date: 2022-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dc-kwalify
|