checkoff 0.172.0 → 0.173.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/projects.rb +4 -1
- data/lib/checkoff/sections.rb +4 -1
- 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: 1673c2678f44633dec96080ac5d922966010a76366fcaf386354b18af8b76b06
|
4
|
+
data.tar.gz: 553d8638f76827ed472325af3643543fa05f190bda63bf152be949e7daf81235
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad1531b9807b536e7c7bc937d9cbe236e2aa88b3322877a71dc146ba0e562a3404f1106f8b240e75860b11f21094713b24844cdb370b9cbb87a552889e53f397
|
7
|
+
data.tar.gz: e664eb216308a74311b23ee76b37f2cb165f886387bd2c30c6581367c53e536afc9d3f21773e9e49b7a2a4e968f65646c2e5746ecb588e6bbfbe26eae8f5ef7f
|
data/Gemfile.lock
CHANGED
data/lib/checkoff/projects.rb
CHANGED
@@ -141,7 +141,10 @@ module Checkoff
|
|
141
141
|
options[:completed_since] = '9999-12-01' if only_uncompleted
|
142
142
|
options[:project] = project_gid
|
143
143
|
options[:options][:fields] += extra_fields
|
144
|
-
|
144
|
+
# Note: 30 minute cache time on a raw Enumerable from SDK gives
|
145
|
+
# 'Your pagination token has expired' errors. So we go ahead
|
146
|
+
# and eagerly evaluate here so we can enjoy the cache.
|
147
|
+
client.tasks.find_all(**options).to_a
|
145
148
|
end
|
146
149
|
cache_method :tasks_from_project_gid, REALLY_LONG_CACHE_TIME
|
147
150
|
|
data/lib/checkoff/sections.rb
CHANGED
@@ -129,8 +129,11 @@ module Checkoff
|
|
129
129
|
options = projects.task_options
|
130
130
|
options[:options][:fields] += extra_fields
|
131
131
|
options[:completed_since] = '9999-12-01' if only_uncompleted
|
132
|
+
# Note: 30 minute cache time on a raw Enumerable from SDK gives
|
133
|
+
# 'Your pagination token has expired' errors. So we go ahead
|
134
|
+
# and eagerly evaluate here so we can enjoy the cache.
|
132
135
|
client.tasks.get_tasks(section: section.gid,
|
133
|
-
**options)
|
136
|
+
**options).to_a
|
134
137
|
end
|
135
138
|
cache_method :tasks, REALLY_LONG_CACHE_TIME
|
136
139
|
|
data/lib/checkoff/version.rb
CHANGED