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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 651d344e64e8f9b999d1c8d1f235c6657428e11164844e85ea3f53f31dca581b
4
- data.tar.gz: bd94b2f08680af330190beb09c6659787e500d7d561a15a80a363a8c4675d158
3
+ metadata.gz: 63b887dd83f103cab32923b8326be62de742bc54b4e137a390d005366d57d1c6
4
+ data.tar.gz: b65f844a89f4bb5821fec1845d417838b61ef317e59b93c1b4825daf97a59ac2
5
5
  SHA512:
6
- metadata.gz: '086458eef1a121b9cf27c79d78d18a65289cb7658d37126647a363d784ecaec3251ca05aba3b4f22512a07a35ee012d7fdf58b585950845be0742560e3d0dd50'
7
- data.tar.gz: 05e1b5637f49ffd9c0dea9110705a43e79f875cedc699df023e1cc1d68480a7b9b68eb974faf201bc4e0c9efce1ba5333adbeca8bcf84ff0f7c076d57fb07753
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
@@ -12,7 +12,7 @@ GIT
12
12
  PATH
13
13
  remote: .
14
14
  specs:
15
- checkoff (0.67.0)
15
+ checkoff (0.67.1)
16
16
  activesupport
17
17
  asana (> 0.10.0)
18
18
  cache_method
@@ -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 = pull_custom_field_by_name_or_raise(task, 'Estimated time')
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]
@@ -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)
@@ -3,5 +3,5 @@
3
3
  # Command-line and gem client for Asana (unofficial)
4
4
  module Checkoff
5
5
  # Version of library
6
- VERSION = '0.67.0'
6
+ VERSION = '0.67.1'
7
7
  end
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.0
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-19 00:00:00.000000000 Z
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