checkoff 0.246.0 → 0.247.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/lib/checkoff/internal/selector_classes/task.rb +6 -2
- data/lib/checkoff/tasks.rb +3 -4
- data/lib/checkoff/version.rb +1 -1
- data/rbi/checkoff.rbi +7 -2
- data/sig/checkoff.rbs +5 -0
- 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: 4a4767930eda52d13e8d437d7cd2aa33dd4af3f7e402ce12fb60d3371f955742
|
|
4
|
+
data.tar.gz: c95a95f0a59e48fee37bc6a43a461a2c5a2b60f73314b1e799c23d3e466be6b1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '098a082874fa5ea130e0fceadad00b1d5f0a6c78e66ee53d351f90bc9b5b014a5958ae440a26472483a0742affd97325e3365cd2780f4afb6f3507654278a910'
|
|
7
|
+
data.tar.gz: 4a2c87a47f0f7767154d9b0ff1474892669832c1e99893d6f28b26d750a2e6a79854076e5b30d0d3daa819ec4d297d11167bea0349038d551f2a5d12211ce5ca
|
|
@@ -190,9 +190,12 @@ module Checkoff
|
|
|
190
190
|
|
|
191
191
|
# @param task [Asana::Resources::Task]
|
|
192
192
|
# @return [Boolean]
|
|
193
|
+
# CI quality (pipeline 1902): "return type could not be inferred" on modified lines
|
|
194
|
+
# after 7eeb5b1 removed @sg-ignore. Local overcommit may report "Unneeded @sg-ignore";
|
|
195
|
+
# `== true` alone did not satisfy the CI overcommit Solargraph hook.
|
|
193
196
|
# @sg-ignore
|
|
194
197
|
def evaluate(task)
|
|
195
|
-
task.assignee.nil?
|
|
198
|
+
task.assignee.nil? == true
|
|
196
199
|
end
|
|
197
200
|
end
|
|
198
201
|
|
|
@@ -206,9 +209,10 @@ module Checkoff
|
|
|
206
209
|
|
|
207
210
|
# @param task [Asana::Resources::Task]
|
|
208
211
|
# @return [Boolean]
|
|
212
|
+
# Same CI/local Solargraph drift as UnassignedPFunctionEvaluator#evaluate (pipeline 1902).
|
|
209
213
|
# @sg-ignore
|
|
210
214
|
def evaluate(task)
|
|
211
|
-
!task.due_at.nil?
|
|
215
|
+
!(task.due_at.nil? && task.due_on.nil?)
|
|
212
216
|
end
|
|
213
217
|
end
|
|
214
218
|
|
data/lib/checkoff/tasks.rb
CHANGED
|
@@ -292,6 +292,7 @@ module Checkoff
|
|
|
292
292
|
# @param portfolio_name [String]
|
|
293
293
|
# @param workspace_name [String]
|
|
294
294
|
# @return [Boolean]
|
|
295
|
+
# CI quality (pipeline 1902): "in_portfolio_named? return type could not be inferred".
|
|
295
296
|
# @sg-ignore
|
|
296
297
|
def in_portfolio_named?(task,
|
|
297
298
|
portfolio_name,
|
|
@@ -300,10 +301,8 @@ module Checkoff
|
|
|
300
301
|
task.memberships.any? do |membership|
|
|
301
302
|
m = T.cast(membership, T::Hash[String, T.untyped])
|
|
302
303
|
project_gid = T.cast(m.fetch('project'), T::Hash[String, T.untyped]).fetch('gid')
|
|
303
|
-
portfolio_projects.any?
|
|
304
|
-
|
|
305
|
-
end
|
|
306
|
-
end
|
|
304
|
+
portfolio_projects.any? { |portfolio_project| portfolio_project.gid == project_gid }
|
|
305
|
+
end == true
|
|
307
306
|
end
|
|
308
307
|
|
|
309
308
|
# True if the task is in a project which is in the given portfolio
|
data/lib/checkoff/version.rb
CHANGED
data/rbi/checkoff.rbi
CHANGED
|
@@ -75,7 +75,7 @@ module Overcommit
|
|
|
75
75
|
end
|
|
76
76
|
|
|
77
77
|
module Checkoff
|
|
78
|
-
VERSION = '0.
|
|
78
|
+
VERSION = '0.247.0'
|
|
79
79
|
|
|
80
80
|
class Attachments
|
|
81
81
|
include Logging
|
|
@@ -2442,7 +2442,7 @@ end
|
|
|
2442
2442
|
# typed: ignore
|
|
2443
2443
|
# Command-line and gem client for Asana (unofficial)
|
|
2444
2444
|
module Checkoff
|
|
2445
|
-
VERSION = T.let('0.
|
|
2445
|
+
VERSION = T.let('0.247.0', T.untyped)
|
|
2446
2446
|
|
|
2447
2447
|
# Move tasks from one place to another
|
|
2448
2448
|
class MvSubcommand
|
|
@@ -3027,6 +3027,7 @@ module Checkoff
|
|
|
3027
3027
|
# sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
|
|
3028
3028
|
# True if the task is in a project which is in the given portfolio
|
|
3029
3029
|
#
|
|
3030
|
+
# CI quality (pipeline 1902): "in_portfolio_named? return type could not be inferred".
|
|
3030
3031
|
# @sg-ignore
|
|
3031
3032
|
#
|
|
3032
3033
|
# _@param_ `task`
|
|
@@ -5961,6 +5962,9 @@ module Checkoff
|
|
|
5961
5962
|
def matches?; end
|
|
5962
5963
|
|
|
5963
5964
|
# sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
|
|
5965
|
+
# CI quality (pipeline 1902): "return type could not be inferred" on modified lines
|
|
5966
|
+
# after 7eeb5b1 removed @sg-ignore. Local overcommit may report "Unneeded @sg-ignore";
|
|
5967
|
+
# `== true` alone did not satisfy the CI overcommit Solargraph hook.
|
|
5964
5968
|
# @sg-ignore
|
|
5965
5969
|
#
|
|
5966
5970
|
# _@param_ `task`
|
|
@@ -5976,6 +5980,7 @@ module Checkoff
|
|
|
5976
5980
|
def matches?; end
|
|
5977
5981
|
|
|
5978
5982
|
# sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
|
|
5983
|
+
# Same CI/local Solargraph drift as UnassignedPFunctionEvaluator#evaluate (pipeline 1902).
|
|
5979
5984
|
# @sg-ignore
|
|
5980
5985
|
#
|
|
5981
5986
|
# _@param_ `task`
|
data/sig/checkoff.rbs
CHANGED
|
@@ -499,6 +499,7 @@ module Checkoff
|
|
|
499
499
|
# sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
|
|
500
500
|
# True if the task is in a project which is in the given portfolio
|
|
501
501
|
#
|
|
502
|
+
# CI quality (pipeline 1902): "in_portfolio_named? return type could not be inferred".
|
|
502
503
|
# @sg-ignore
|
|
503
504
|
#
|
|
504
505
|
# _@param_ `task`
|
|
@@ -2933,6 +2934,9 @@ module Checkoff
|
|
|
2933
2934
|
def matches?: () -> bool
|
|
2934
2935
|
|
|
2935
2936
|
# sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
|
|
2937
|
+
# CI quality (pipeline 1902): "return type could not be inferred" on modified lines
|
|
2938
|
+
# after 7eeb5b1 removed @sg-ignore. Local overcommit may report "Unneeded @sg-ignore";
|
|
2939
|
+
# `== true` alone did not satisfy the CI overcommit Solargraph hook.
|
|
2936
2940
|
# @sg-ignore
|
|
2937
2941
|
#
|
|
2938
2942
|
# _@param_ `task`
|
|
@@ -2946,6 +2950,7 @@ module Checkoff
|
|
|
2946
2950
|
def matches?: () -> bool
|
|
2947
2951
|
|
|
2948
2952
|
# sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
|
|
2953
|
+
# Same CI/local Solargraph drift as UnassignedPFunctionEvaluator#evaluate (pipeline 1902).
|
|
2949
2954
|
# @sg-ignore
|
|
2950
2955
|
#
|
|
2951
2956
|
# _@param_ `task`
|