checkoff 0.112.0 → 0.113.0
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/Gemfile.lock +1 -1
- data/lib/checkoff/internal/task_timing.rb +1 -1
- data/lib/checkoff/tasks.rb +20 -0
- data/lib/checkoff/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: 7d2b22635f5b5c89add793da4b37ed9bdf3a1c943476fac5d8b16825d06491a6
|
|
4
|
+
data.tar.gz: 1faf6e1ab7a7168cac91f888a62a03a638de20eb83e2f9c23ffce66828da44a4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bec50f216ca19ca2820feffe1424de08ed95cdab7369e78971d42dbc9e69620e966b8a9e4b76d4a9e55e2cffd30b12cbf9579c4f1acc83cd99d7b9a95fa77248
|
|
7
|
+
data.tar.gz: db6380ac15afc8fce0aada0179b8ae3e9a4bf303c6df7086010c1aaab6d58af848ccba62563fcacff6884dc6dd1c2821e83d63a8a37188ab10a6e31dbe04a35b
|
data/Gemfile.lock
CHANGED
data/lib/checkoff/tasks.rb
CHANGED
|
@@ -86,6 +86,19 @@ module Checkoff
|
|
|
86
86
|
timing.in_period?(task_date_or_time, period)
|
|
87
87
|
end
|
|
88
88
|
|
|
89
|
+
# @param task [Asana::Resources::Task]
|
|
90
|
+
# @param field_name [Symbol,Array]
|
|
91
|
+
# :start - start_at or start_on (first set)
|
|
92
|
+
# :due - due_at or due_on (first set)
|
|
93
|
+
# :ready - start_at or start_on or due_at or due_on (first set)
|
|
94
|
+
# :modified - modified_at
|
|
95
|
+
# [:custom_field, "foo"] - 'Date' custom field type named 'foo'
|
|
96
|
+
#
|
|
97
|
+
# @return [Date, Time, nil]
|
|
98
|
+
def date_or_time_field_by_name(task, field_name)
|
|
99
|
+
task_timing.date_or_time_field_by_name(task, field_name)
|
|
100
|
+
end
|
|
101
|
+
|
|
89
102
|
# Pull a specific task by name
|
|
90
103
|
#
|
|
91
104
|
# @param workspace_name [String]
|
|
@@ -193,6 +206,13 @@ module Checkoff
|
|
|
193
206
|
task_hashes.task_to_h(task)
|
|
194
207
|
end
|
|
195
208
|
|
|
209
|
+
# @param task_data [Hash]
|
|
210
|
+
#
|
|
211
|
+
# @return [Asana::Resources::Task]
|
|
212
|
+
def h_to_task(task_data)
|
|
213
|
+
Asana::Resources::Task.new(task_data, client: client)
|
|
214
|
+
end
|
|
215
|
+
|
|
196
216
|
# True if the task is in a project which is in the given portfolio
|
|
197
217
|
#
|
|
198
218
|
# @param task [Asana::Resources::Task]
|
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.
|
|
4
|
+
version: 0.113.0
|
|
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-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|