checkoff 0.177.0 → 0.178.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/task.rb +6 -6
- 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: c51b55b3779bf1e217de821053f2c562b733837840d68537f392f3321fee1df1
|
4
|
+
data.tar.gz: b73c3f21801a771e88385eba5c9c02efa95664550d460acaec72887febedae95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b54f07192c810b7a20bcb456406fec04957a16ef1e60aa059dbae6d8a6e48dc0252b461dba6a6695bdc126037f09e6d18f0f5cb11802c4a55e92fedf8e98967
|
7
|
+
data.tar.gz: c6e03eb0e95ba7f61ca73bc5ce33bdaa16dcc9981455b997388c86602ab28ae0d9f35d24a5e721c26f80307caa44fa818a4e15cafd019938d8605c46a72ad4e9
|
data/Gemfile.lock
CHANGED
@@ -22,10 +22,10 @@ module Checkoff
|
|
22
22
|
# @param section_name_prefix [String]
|
23
23
|
# @return [Boolean]
|
24
24
|
def evaluate(task, section_name_prefix)
|
25
|
-
|
26
|
-
|
25
|
+
task_data = @tasks.task_to_h(task)
|
26
|
+
task_data.fetch('unwrapped').fetch('membership_by_section_name').keys.any? do |section_name|
|
27
|
+
section_name.start_with? section_name_prefix
|
27
28
|
end
|
28
|
-
section_names.any? { |section_name| section_name.start_with? section_name_prefix }
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
@@ -45,10 +45,10 @@ module Checkoff
|
|
45
45
|
# @param section_name [String]
|
46
46
|
# @return [Boolean]
|
47
47
|
def evaluate(task, section_name)
|
48
|
-
|
49
|
-
|
48
|
+
task_data = @tasks.task_to_h(task)
|
49
|
+
task_data.fetch('unwrapped').fetch('membership_by_section_name').keys.any? do |actual_section_name|
|
50
|
+
actual_section_name == section_name
|
50
51
|
end
|
51
|
-
section_names.include? section_name
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
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.178.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-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|