checkoff 0.101.0 → 0.102.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/tasks.rb +14 -1
- data/lib/checkoff/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4d8549d02934007d479b28d83262a32e060e6ada2033f5d5c9743210bf599e68
|
|
4
|
+
data.tar.gz: 86f5d4ba266d1d60af237d428c50b0065e80ce233d8ed964e7af9cc2396e6ae3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6e7d47b7d64ee0008783db1a0a460bc0a1865f361920ff136c85e95df6f1d4cf36f88fda44ce50cb0f7f81e5117800feef82874320d6453e4b525f734721fc2d
|
|
7
|
+
data.tar.gz: 9c376fe5b386897f379f0b575423078fa0d4495ae953f05a5aeab6d794e3be6eac36a235f4d44d7e80313824de8110e246e7069abf3399f88c0a931eb709b60f
|
data/Gemfile.lock
CHANGED
data/lib/checkoff/tasks.rb
CHANGED
|
@@ -76,6 +76,7 @@ module Checkoff
|
|
|
76
76
|
end
|
|
77
77
|
|
|
78
78
|
# Pull a specific task by name
|
|
79
|
+
#
|
|
79
80
|
# @param workspace_name [String]
|
|
80
81
|
# @param project_name [String, Symbol]
|
|
81
82
|
# @param section_name [String, nil, Symbol]
|
|
@@ -98,7 +99,8 @@ module Checkoff
|
|
|
98
99
|
end
|
|
99
100
|
cache_method :task, SHORT_CACHE_TIME
|
|
100
101
|
|
|
101
|
-
# Pull a specific task by
|
|
102
|
+
# Pull a specific task by GID
|
|
103
|
+
#
|
|
102
104
|
# @param task_gid [String]
|
|
103
105
|
# @param extra_fields [Array<String>]
|
|
104
106
|
# @return [Asana::Resources::Task, nil]
|
|
@@ -110,9 +112,12 @@ module Checkoff
|
|
|
110
112
|
end
|
|
111
113
|
cache_method :task_by_gid, SHORT_CACHE_TIME
|
|
112
114
|
|
|
115
|
+
# Add a task
|
|
116
|
+
#
|
|
113
117
|
# @param name [String]
|
|
114
118
|
# @param workspace_gid [String]
|
|
115
119
|
# @param assignee_gid [String]
|
|
120
|
+
#
|
|
116
121
|
# @return [Asana::Resources::Task]
|
|
117
122
|
def add_task(name,
|
|
118
123
|
workspace_gid: @workspaces.default_workspace_gid,
|
|
@@ -122,12 +127,17 @@ module Checkoff
|
|
|
122
127
|
workspace: workspace_gid, name: name)
|
|
123
128
|
end
|
|
124
129
|
|
|
130
|
+
# Return user-accessible URL for a task
|
|
131
|
+
#
|
|
125
132
|
# @param task [Asana::Resources::Task]
|
|
133
|
+
#
|
|
126
134
|
# @return [String] end-user URL to the task in question
|
|
127
135
|
def url_of_task(task)
|
|
128
136
|
"https://app.asana.com/0/0/#{task.gid}/f"
|
|
129
137
|
end
|
|
130
138
|
|
|
139
|
+
# True if any of the task's dependencies are marked incomplete
|
|
140
|
+
#
|
|
131
141
|
# @param task [Asana::Resources::Task]
|
|
132
142
|
def incomplete_dependencies?(task)
|
|
133
143
|
# Avoid a redundant fetch. Unfortunately, Ruby SDK allows
|
|
@@ -166,11 +176,14 @@ module Checkoff
|
|
|
166
176
|
# task: String (name)
|
|
167
177
|
#
|
|
168
178
|
# @param task [Asana::Resources::Task]
|
|
179
|
+
#
|
|
169
180
|
# @return [Hash]
|
|
170
181
|
def task_to_h(task)
|
|
171
182
|
task_hashes.task_to_h(task)
|
|
172
183
|
end
|
|
173
184
|
|
|
185
|
+
# True if the task is in a project which is in the given portfolio
|
|
186
|
+
#
|
|
174
187
|
# @param task [Asana::Resources::Task]
|
|
175
188
|
# @param portfolio_name [String]
|
|
176
189
|
# @param workspace_name [String]
|
data/lib/checkoff/version.rb
CHANGED