checkoff 0.182.0 → 0.183.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: 74302595ea6cb1c68143d35dd18c69db22bde93604613bc7510ff9a28d3cca41
4
- data.tar.gz: 723c7889c2b34062ced1283f265ff15a93d11ff5fe25f092a96ac1edc28aa324
3
+ metadata.gz: 393f21b871da67bd72c7aa7722e8242bf2bf0cc537223d3038721b195468fbe5
4
+ data.tar.gz: f1fcca65484d4368e82a7873a7f3ee81215c50b4ca74417c128467d6c9a8f50e
5
5
  SHA512:
6
- metadata.gz: f1d5cba0a7c2f1ba833d863f1937c04a1dba67cc5852fdceece99d86847bd3021d50c5507af8454aebdcbb57ee81510ad12860f21e9a5d780296f6eb8a519751
7
- data.tar.gz: 356240d49bbcaab5f973774cee928e15a6eb522b750f99fb5ec3c69168051fb83d5661517761267e4b93448b79cc560cdf120d69973c6e6166653517cb1da2f5
6
+ metadata.gz: d2adb21b7d35163eb7dd30bd2482e199b6a5a4710778f16792b42e4b50a23798ad37a6401f923dede83e146476655e96b4699ba395fae54d335fea615f90c4b4
7
+ data.tar.gz: 8418eeab8543379f9ca76e8d0f0f31a08bbdade82f73f1c074b429c8d44a2b22b7b64aec94aabb4535d231cd28e6885a9c3f04f0a65d2cc706559c9a669dcad5
data/Gemfile.lock CHANGED
@@ -12,7 +12,7 @@ GIT
12
12
  PATH
13
13
  remote: .
14
14
  specs:
15
- checkoff (0.182.0)
15
+ checkoff (0.183.0)
16
16
  activesupport
17
17
  asana (> 0.10.0)
18
18
  cache_method
@@ -211,6 +211,27 @@ module Checkoff
211
211
  end
212
212
  end
213
213
 
214
+ # :name_starts_with? function
215
+ class NameStartsWithPFunctionEvaluator < FunctionEvaluator
216
+ FUNCTION_NAME = :name_starts_with?
217
+
218
+ def matches?
219
+ fn?(selector, FUNCTION_NAME)
220
+ end
221
+
222
+ def evaluate_arg?(_index)
223
+ false
224
+ end
225
+
226
+ # @param resource [Asana::Resources::Task,Asana::Resources::Project]
227
+ # @param prefix [String]
228
+ # @return [Boolean]
229
+ # @sg-ignore
230
+ def evaluate(resource, prefix)
231
+ resource.name.start_with?(prefix)
232
+ end
233
+ end
234
+
214
235
  # String literals
215
236
  class StringLiteralEvaluator < FunctionEvaluator
216
237
  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.182.0'
6
+ VERSION = '0.183.0'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: checkoff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.182.0
4
+ version: 0.183.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vince Broz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-20 00:00:00.000000000 Z
11
+ date: 2024-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport