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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71946ece124fe806bdf1691c15496de26d40aee2362a9f824693dcd6e04b1f4a
4
- data.tar.gz: 2b45ca097930338ae0ed79b7b2610e64cbe0e95ed47e9265d5d1df4292650e86
3
+ metadata.gz: 8bdb0bf4cc27747e4ce2255f22438fe749beedff628a70ebe1b24252ed7c0bb3
4
+ data.tar.gz: ddf33a293e522f25f1ee10df10fbd9b80fdcca9ea29d32fa1f3d21e3d8bf4ead
5
5
  SHA512:
6
- metadata.gz: 14bce3ce48c9aec936250d6bf8706a70c7e5ad53a3a526fd10c2d78a49df29632493506a362a6c107863b84e9ce2b3817aa9e282787978f033278936604be3c5
7
- data.tar.gz: 660962aad915c791b9efdc899004ecc3ca9528a94107c88f8b20f344a393114b7d524dd052a612c162133e441739ac63764c65b1991645d42db14c0f698dda69
6
+ metadata.gz: b69f0673147f4581d3cb983e77639ef811a3b9895b89a8c11c07951b02362142ee412c799cd81333727b191e9cae0e7df800ce805f4dfcd354d6d897d78ac202
7
+ data.tar.gz: c788eb613e2ae5ae0a28d433944f982b55fe246c9b1ae9283220147eb4d2d8c0904a65a7a2f26c2abff8bae351ebdb42e2b5963d9d8b42ff806e85d66a5a5248
data/Gemfile.lock CHANGED
@@ -12,7 +12,7 @@ GIT
12
12
  PATH
13
13
  remote: .
14
14
  specs:
15
- checkoff (0.48.0)
15
+ checkoff (0.50.0)
16
16
  activesupport
17
17
  asana (> 0.10.0)
18
18
  cache_method
@@ -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,
@@ -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.48.0'
6
+ VERSION = '0.50.0'
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: checkoff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.48.0
4
+ version: 0.50.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vince Broz