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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cbb883b9ef62b4b249ff411385dc4e46c47663f06a139dd30431b00cb959fdf2
4
- data.tar.gz: f44e6e678f602f63360f84941886da95407b7f606c04ab0524edcac83ee82f2e
3
+ metadata.gz: c51b55b3779bf1e217de821053f2c562b733837840d68537f392f3321fee1df1
4
+ data.tar.gz: b73c3f21801a771e88385eba5c9c02efa95664550d460acaec72887febedae95
5
5
  SHA512:
6
- metadata.gz: f24579a26f058a5e7873d7b6b44cc76d2ab2caa884798e78a2d7e1650bdb3ceb74105126893038f4fe6138a0b5bcf3abbf5adf7f4a30c17df9440ab508ec93c5
7
- data.tar.gz: '018b8d5246f00654b788f1014983e5b04bcbe79342562e0e93c0338024d85a485176c185eb1669b21955ac97d56e51b7dbee64205015913b8162e782fd9e23e0'
6
+ metadata.gz: 1b54f07192c810b7a20bcb456406fec04957a16ef1e60aa059dbae6d8a6e48dc0252b461dba6a6695bdc126037f09e6d18f0f5cb11802c4a55e92fedf8e98967
7
+ data.tar.gz: c6e03eb0e95ba7f61ca73bc5ce33bdaa16dcc9981455b997388c86602ab28ae0d9f35d24a5e721c26f80307caa44fa818a4e15cafd019938d8605c46a72ad4e9
data/Gemfile.lock CHANGED
@@ -12,7 +12,7 @@ GIT
12
12
  PATH
13
13
  remote: .
14
14
  specs:
15
- checkoff (0.177.0)
15
+ checkoff (0.178.0)
16
16
  activesupport
17
17
  asana (> 0.10.0)
18
18
  cache_method
@@ -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
- section_names = task.memberships.map do |membership|
26
- membership.fetch('section').fetch('name')
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
- section_names = task.memberships.map do |membership|
49
- membership.fetch('section').fetch('name')
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
 
@@ -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.177.0'
6
+ VERSION = '0.178.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.177.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-18 00:00:00.000000000 Z
11
+ date: 2024-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport