checkoff 0.179.0 → 0.180.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: 57ff6205af493cb019f7035e1ad898b43907543127cc236e80e683c5bcac4cad
4
- data.tar.gz: bc95487dc4169e59477873e4fcfd73b3a5ee86c6d704b22b715479e26f11207b
3
+ metadata.gz: 8ceda0a224245a150ec0e9a2a5a13bd5977ff985e9b621c3922a839f29b8d8ff
4
+ data.tar.gz: 75758cd84def7f935d9fc2b09a281867c60894bab6d9b726bf51bb9eb495e2ee
5
5
  SHA512:
6
- metadata.gz: 40dd22182d73405aa85fa64492201b480d848af226178691c64f2d7c6712f37b6240a32bae7d518aaa4ac6d9dbe809b1c185ef41a1e81a527c251b9738d354cf
7
- data.tar.gz: 815605f29fb98fb3b9bca63400c545c31b437c3d2b3d69e07ef6f255757f3ca7151fd6c38b0f7bf7a746fd3ec45ae1fb3e5f7c8fcc7c2713a0118d5e0310fef8
6
+ metadata.gz: dd2d5f5cf6b74502ac3392b96842afe53ea239fdfd0598e2dee02d9525a1011b2d204a7d274f59745f2b19fe33bcaceabd27bcdd51dc8c9bd8e439f049c50cda
7
+ data.tar.gz: 35bd117de452142c2640cfe0a21e2975047cd8d1355669b55f08b57a724d153043b39d05f50acc796146ff0cecab364c394f5a1f9f62d933f0e4832118a893d5
data/Gemfile.lock CHANGED
@@ -12,7 +12,7 @@ GIT
12
12
  PATH
13
13
  remote: .
14
14
  specs:
15
- checkoff (0.179.0)
15
+ checkoff (0.180.0)
16
16
  activesupport
17
17
  asana (> 0.10.0)
18
18
  cache_method
@@ -6,6 +6,31 @@ require 'checkoff/internal/task_timing'
6
6
  module Checkoff
7
7
  module SelectorClasses
8
8
  module Task
9
+ # :in_a_real_project? function
10
+ class InARealProjectPFunctionEvaluator < FunctionEvaluator
11
+ def matches?
12
+ fn?(selector, :in_a_real_project?)
13
+ end
14
+
15
+ # @param _index [Integer]
16
+ def evaluate_arg?(_index)
17
+ false
18
+ end
19
+
20
+ # @sg-ignore
21
+ # @param task [Asana::Resources::Task]
22
+ # @return [Boolean]
23
+ def evaluate(task)
24
+ # @type [Hash{'unwrapped' => Hash}]
25
+ task_data = @tasks.task_to_h(task)
26
+ # @type [Hash{'membership_by_project_name' => Hash}]
27
+ unwrapped = task_data.fetch('unwrapped')
28
+ # @type [Array]
29
+ projects = unwrapped.fetch('membership_by_project_name').keys
30
+ !(projects - [:my_tasks]).empty?
31
+ end
32
+ end
33
+
9
34
  # :section_name_starts_with? function
10
35
  class SectionNameStartsWithPFunctionEvaluator < FunctionEvaluator
11
36
  def matches?
@@ -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.179.0'
6
+ VERSION = '0.180.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.179.0
4
+ version: 0.180.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vince Broz