checkoff 0.48.0 → 0.50.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/config/definitions.rb +3 -0
- data/lib/checkoff/internal/task_selector_evaluator.rb +14 -0
- 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: 8bdb0bf4cc27747e4ce2255f22438fe749beedff628a70ebe1b24252ed7c0bb3
|
4
|
+
data.tar.gz: ddf33a293e522f25f1ee10df10fbd9b80fdcca9ea29d32fa1f3d21e3d8bf4ead
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b69f0673147f4581d3cb983e77639ef811a3b9895b89a8c11c07951b02362142ee412c799cd81333727b191e9cae0e7df800ce805f4dfcd354d6d897d78ac202
|
7
|
+
data.tar.gz: c788eb613e2ae5ae0a28d433944f982b55fe246c9b1ae9283220147eb4d2d8c0904a65a7a2f26c2abff8bae351ebdb42e2b5963d9d8b42ff806e85d66a5a5248
|
data/Gemfile.lock
CHANGED
data/config/definitions.rb
CHANGED
@@ -24,7 +24,10 @@
|
|
24
24
|
# end
|
25
25
|
# class Collection < Asana::Resources::Collection; end
|
26
26
|
# module Resources
|
27
|
+
# # https://developers.asana.com/reference/gettask
|
27
28
|
# class Task
|
29
|
+
# # @return [Hash<String, String>, nil]
|
30
|
+
# def assignee; end
|
28
31
|
# # @return [String, nil]
|
29
32
|
# def html_notes; end
|
30
33
|
# class << self
|
@@ -231,6 +231,19 @@ module Checkoff
|
|
231
231
|
end
|
232
232
|
end
|
233
233
|
|
234
|
+
# :unassigned function
|
235
|
+
class UnassignedPFunctionEvaluator < FunctionEvaluator
|
236
|
+
def matches?
|
237
|
+
fn?(task_selector, :unassigned)
|
238
|
+
end
|
239
|
+
|
240
|
+
# @param task [Asana::Resources::Task]
|
241
|
+
# @return [Boolean]
|
242
|
+
def evaluate(task)
|
243
|
+
task.assignee.nil?
|
244
|
+
end
|
245
|
+
end
|
246
|
+
|
234
247
|
# :due_date_set function
|
235
248
|
class DueDateSetPFunctionEvaluator < FunctionEvaluator
|
236
249
|
FUNCTION_NAME = :due_date_set
|
@@ -465,6 +478,7 @@ module Checkoff
|
|
465
478
|
Checkoff::TaskSelectorClasses::CustomFieldGidValueContainsAllGidsFunctionEvaluator,
|
466
479
|
Checkoff::TaskSelectorClasses::AndFunctionEvaluator,
|
467
480
|
Checkoff::TaskSelectorClasses::DuePFunctionEvaluator,
|
481
|
+
Checkoff::TaskSelectorClasses::UnassignedPFunctionEvaluator,
|
468
482
|
Checkoff::TaskSelectorClasses::DueDateSetPFunctionEvaluator,
|
469
483
|
Checkoff::TaskSelectorClasses::FieldLessThanNDaysAgoFunctionEvaluator,
|
470
484
|
Checkoff::TaskSelectorClasses::CustomFieldLessThanNDaysFromNowFunctionEvaluator,
|
data/lib/checkoff/version.rb
CHANGED