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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/checkoff/internal/asana_event_filter.rb +9 -7
- data/lib/checkoff/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f46e4443d512a1f25b9d1d960042905a99e929072dbc7d03261b204a100a7d9a
|
|
4
|
+
data.tar.gz: 929a3df513e5cf742d9ce9a954a4a297725b61cb2bf2871504c4ace2831fb827
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2ddae4b92ad60143912b9ec9432c5ef807aff1c7a6165da1f48c7c034d0970071ec6a7d12ec1ba38d788bfee99d4ecc7a73a07ca784be6872be4a4bf838e8e5e
|
|
7
|
+
data.tar.gz: 6c3a36a7b33f7234dde63c3cb8fca69e8390003605b962d56e2ac0e9cc2db12893a034a1a4c1e7ef661f1c1859654c34a2a9cf4ab6797a2ce4faa835e592f840
|
data/Gemfile.lock
CHANGED
|
@@ -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
|
|
20
|
+
# @param clients [Checkoff::Clients]
|
|
21
|
+
# @param client [Asana::Client]
|
|
21
22
|
def initialize(filters:,
|
|
22
|
-
|
|
23
|
+
clients: Checkoff::Clients.new,
|
|
24
|
+
client: clients.client)
|
|
23
25
|
@filters = filters
|
|
24
|
-
@
|
|
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
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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
|
data/lib/checkoff/version.rb
CHANGED