checkoff 0.67.0 → 0.67.1
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/GLOSSARY.md +11 -0
- data/Gemfile.lock +1 -1
- data/lib/checkoff/internal/selector_classes/task.rb +3 -1
- data/lib/checkoff/tasks.rb +10 -0
- data/lib/checkoff/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 63b887dd83f103cab32923b8326be62de742bc54b4e137a390d005366d57d1c6
|
|
4
|
+
data.tar.gz: b65f844a89f4bb5821fec1845d417838b61ef317e59b93c1b4825daf97a59ac2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 27ecc27a347c29621c95690e93c3614955295b231dec563703f5db8b2a7647c013eacf70b79c6756b6a39dfb5f1b7bcdbfe2fe56a70ab668e40c2ff66d339f22
|
|
7
|
+
data.tar.gz: 8633ada2cb84d24b32ab6fa1585a648902718d4cf318f5c15ebb6fc1d36bcce076aff818e4406a7931c3450136cd04f4f3d47a4e3e13f2cfb9c60b9b827028a3
|
data/GLOSSARY.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Glossary
|
|
2
|
+
|
|
3
|
+
* ready/due: See tasks.rb#task_ready?. Indicates a task is ready for
|
|
4
|
+
a person to work on it. This is subtly different than what is used
|
|
5
|
+
by Asana to mark a date as red/green! A task is ready if it is not
|
|
6
|
+
dependent on an incomplete task and one of these is true:
|
|
7
|
+
|
|
8
|
+
* start is null and due on is today
|
|
9
|
+
* start is null and due at is after now
|
|
10
|
+
* start on is today
|
|
11
|
+
* start at is after now
|
data/Gemfile.lock
CHANGED
|
@@ -335,7 +335,9 @@ module Checkoff
|
|
|
335
335
|
# @param task [Asana::Resources::Task]
|
|
336
336
|
# @return [Boolean]
|
|
337
337
|
def evaluate(task)
|
|
338
|
-
custom_field =
|
|
338
|
+
custom_field = pull_custom_field_by_name(task, 'Estimated time')
|
|
339
|
+
|
|
340
|
+
return false if custom_field.nil?
|
|
339
341
|
|
|
340
342
|
# @sg-ignore
|
|
341
343
|
# @type [Integer, nil]
|
data/lib/checkoff/tasks.rb
CHANGED
|
@@ -42,6 +42,16 @@ module Checkoff
|
|
|
42
42
|
@workspaces = workspaces
|
|
43
43
|
end
|
|
44
44
|
|
|
45
|
+
# Indicates a task is ready for a person to work on it. This is
|
|
46
|
+
# subtly different than what is used by Asana to mark a date as
|
|
47
|
+
# red/green! A task is ready if it is not dependent on an
|
|
48
|
+
# incomplete task and one of these is true:
|
|
49
|
+
#
|
|
50
|
+
# * start is null and due on is today
|
|
51
|
+
# * start is null and due at is after now
|
|
52
|
+
# * start on is today
|
|
53
|
+
# * start at is after now
|
|
54
|
+
#
|
|
45
55
|
# @param task [Asana::Resources::Task]
|
|
46
56
|
# @param ignore_dependencies [Boolean]
|
|
47
57
|
def task_ready?(task, ignore_dependencies: false)
|
data/lib/checkoff/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: checkoff
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.67.
|
|
4
|
+
version: 0.67.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vince Broz
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-10-
|
|
11
|
+
date: 2023-10-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -103,6 +103,7 @@ files:
|
|
|
103
103
|
- CODE_OF_CONDUCT.md
|
|
104
104
|
- CONTRIBUTING.rst
|
|
105
105
|
- DEVELOPMENT.md
|
|
106
|
+
- GLOSSARY.md
|
|
106
107
|
- Gemfile
|
|
107
108
|
- Gemfile.lock
|
|
108
109
|
- LICENSE
|