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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/checkoff/internal/selector_classes/common.rb +21 -0
- data/lib/checkoff/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 393f21b871da67bd72c7aa7722e8242bf2bf0cc537223d3038721b195468fbe5
|
4
|
+
data.tar.gz: f1fcca65484d4368e82a7873a7f3ee81215c50b4ca74417c128467d6c9a8f50e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2adb21b7d35163eb7dd30bd2482e199b6a5a4710778f16792b42e4b50a23798ad37a6401f923dede83e146476655e96b4699ba395fae54d335fea615f90c4b4
|
7
|
+
data.tar.gz: 8418eeab8543379f9ca76e8d0f0f31a08bbdade82f73f1c074b429c8d44a2b22b7b64aec94aabb4535d231cd28e6885a9c3f04f0a65d2cc706559c9a669dcad5
|
data/Gemfile.lock
CHANGED
@@ -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?
|
data/lib/checkoff/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2024-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|