checkoff 0.117.0 → 0.118.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 45425d3f07cc0fc1bf0e39a56a2f26c8777622953a3a75ae9d32ed758d0301ce
4
- data.tar.gz: 456407b377fe6286909c23a0728f0d6954982c53b714610b7bd393a812dd4bfc
3
+ metadata.gz: 963a3b8220497cddec9b0267e32b875105ac3694d74133e074dbbf8064c61b42
4
+ data.tar.gz: c0ff06c0ec7e800f26bfabd93d47bcf820644df6c33ffc3b3061c490e625188f
5
5
  SHA512:
6
- metadata.gz: 622c7e1b6bb0d0f18f104c8b6b3d94240242a0528f73fceadd592e546a38b4bf2e0c36726729ba4d4d558068a2d9b200cdd0e1b8e79c25710bd471f445936b20
7
- data.tar.gz: 258d4c6fca76db0bdbd3a1acdb8280c536c7ae788b77c9dcd7b0c2002b78b270b61237cc2a99c503354eff6816e58fc3b4ffbd179ec17d6aa179db6f84eb0d89
6
+ metadata.gz: 3321268a181406c1d2323946022818166a8a26867f31ea52bc235bf8070445a566868f0f78ba4aeee4dba805cda726c6fde7cdf26835a16c147b4e13f7b77f64
7
+ data.tar.gz: 02ee7fb7ec62e1bef53cf39490d57a119d643efbdd4d6bd3f15d20461cc68e5831a91ed2fdbcb80d9b34f7d54f9dc77f1f413cd3a9881f9965ccada8a8c8b7f3
data/Gemfile.lock CHANGED
@@ -12,7 +12,7 @@ GIT
12
12
  PATH
13
13
  remote: .
14
14
  specs:
15
- checkoff (0.117.0)
15
+ checkoff (0.118.0)
16
16
  activesupport
17
17
  asana (> 0.10.0)
18
18
  cache_method
@@ -26,6 +26,23 @@ module Checkoff
26
26
  tasks.last&.resource_subtype == 'milestone'
27
27
  end
28
28
  end
29
+
30
+ # :has_tasks? function
31
+ class HasTasksPFunctionEvaluator < FunctionEvaluator
32
+ FUNCTION_NAME = :has_tasks?
33
+
34
+ def matches?
35
+ fn?(selector, FUNCTION_NAME)
36
+ end
37
+
38
+ # @param section [Asana::Resources::Section]
39
+ #
40
+ # @sg-ignore
41
+ # @return [Boolean]
42
+ def evaluate(section)
43
+ @sections.tasks_by_section_gid(section.gid).any?
44
+ end
45
+ end
29
46
  end
30
47
  end
31
48
  end
@@ -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.117.0'
6
+ VERSION = '0.118.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.117.0
4
+ version: 0.118.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vince Broz