checkoff 0.170.0 → 0.171.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: e346e26787afb1656a88445f35f22cd18c88519080b6224d4dcb83074149696f
4
- data.tar.gz: f33d96167e8036964aee3eaa9a69e8b3e81c31a4e9fcec314ece54defe375b83
3
+ metadata.gz: f46e4443d512a1f25b9d1d960042905a99e929072dbc7d03261b204a100a7d9a
4
+ data.tar.gz: 929a3df513e5cf742d9ce9a954a4a297725b61cb2bf2871504c4ace2831fb827
5
5
  SHA512:
6
- metadata.gz: abf2f44932128fdfdf7d89e162431d4e4cfa89029bd106adb3b49ad6cc801e5b41838249595cf1f7dab8d25d3d52dcc1a2114be1f8f4a821dead7b9dcaf2fb71
7
- data.tar.gz: 3828a170cdaa9cdd0f82beb5830dc2392a87a69bb45bff4f54d06865a6acde7a9962379c94435f03d3774450e6f4939ef282bd8e8922b4360d8162d809630b13
6
+ metadata.gz: 2ddae4b92ad60143912b9ec9432c5ef807aff1c7a6165da1f48c7c034d0970071ec6a7d12ec1ba38d788bfee99d4ecc7a73a07ca784be6872be4a4bf838e8e5e
7
+ data.tar.gz: 6c3a36a7b33f7234dde63c3cb8fca69e8390003605b962d56e2ac0e9cc2db12893a034a1a4c1e7ef661f1c1859654c34a2a9cf4ab6797a2ce4faa835e592f840
data/Gemfile.lock CHANGED
@@ -12,7 +12,7 @@ GIT
12
12
  PATH
13
13
  remote: .
14
14
  specs:
15
- checkoff (0.170.0)
15
+ checkoff (0.171.0)
16
16
  activesupport
17
17
  asana (> 0.10.0)
18
18
  cache_method
@@ -17,11 +17,13 @@ module Checkoff
17
17
  include Logging
18
18
 
19
19
  # @param filters [Array<Hash>, nil] The filters to match against
20
- # @param tasks [Checkoff::Tasks]
20
+ # @param clients [Checkoff::Clients]
21
+ # @param client [Asana::Client]
21
22
  def initialize(filters:,
22
- tasks: Checkoff::Tasks.new)
23
+ clients: Checkoff::Clients.new,
24
+ client: clients.client)
23
25
  @filters = filters
24
- @tasks = tasks
26
+ @client = client
25
27
  end
26
28
 
27
29
  # @param asana_event [Hash] The event that Asana sent
@@ -82,10 +84,10 @@ module Checkoff
82
84
  end
83
85
 
84
86
  task_gid = resource.fetch('gid')
85
-
86
- task = @tasks.task_by_gid(task_gid,
87
- extra_fields: ['completed_at'],
88
- only_uncompleted: false)
87
+ options = {
88
+ fields: ['completed_at'],
89
+ }
90
+ task = @client.tasks.find_by_id(task_gid, options: options)
89
91
  task_completed = !task.completed_at.nil?
90
92
  task_completed == value
91
93
  else
@@ -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.170.0'
6
+ VERSION = '0.171.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.170.0
4
+ version: 0.171.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vince Broz