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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e525b82b6ae1ea09510316f53b1087da97f218de3ffc16c71571ac30306720b7
4
- data.tar.gz: '034090171c0a8c076a33aa7a415ac60a4852e1bb7480df8e779c59826dd2275a'
3
+ metadata.gz: 4a4767930eda52d13e8d437d7cd2aa33dd4af3f7e402ce12fb60d3371f955742
4
+ data.tar.gz: c95a95f0a59e48fee37bc6a43a461a2c5a2b60f73314b1e799c23d3e466be6b1
5
5
  SHA512:
6
- metadata.gz: 4d4bc576a9785e658c818efe8bd6b11925fa8e530c72054bf432ab509b174eb135cbabc9a52f5d6f5c27e933749814e643d99ba73863a2967ee4f47f7e8e02df
7
- data.tar.gz: 4285735d4121093dc6363eae28101d9330e12beac46c592ec723f2ebecff77acad0f7c1dd139121499ed313adefd1685b212df6dc8b147a42c49f11be595fd22
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? || !task.due_on.nil?
215
+ !(task.due_at.nil? && task.due_on.nil?)
212
216
  end
213
217
  end
214
218
 
@@ -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? do |portfolio_project|
304
- portfolio_project.gid == project_gid
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
@@ -4,5 +4,5 @@
4
4
  # Command-line and gem client for Asana (unofficial)
5
5
  module Checkoff
6
6
  # Version of library
7
- VERSION = '0.246.0'
7
+ VERSION = '0.247.0'
8
8
  end
data/rbi/checkoff.rbi CHANGED
@@ -75,7 +75,7 @@ module Overcommit
75
75
  end
76
76
 
77
77
  module Checkoff
78
- VERSION = '0.246.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.246.0', T.untyped)
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`
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.246.0
4
+ version: 0.247.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vince Broz