checkoff 0.260.0 → 0.262.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/attachments.rb +0 -2
- data/lib/checkoff/internal/logging.rb +1 -2
- data/lib/checkoff/internal/project_hashes.rb +22 -1
- data/lib/checkoff/internal/selector_classes/task.rb +1 -2
- data/lib/checkoff/projects.rb +4 -1
- data/lib/checkoff/version.rb +1 -1
- data/rbi/checkoff.rbi +17 -5
- data/sig/checkoff.rbs +14 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 700a469f6a34a1ce215ca1ad78fe33b0272c5556caa73e3320194ddef626514f
|
|
4
|
+
data.tar.gz: 87dc70ff2180cb98b24e295d50e3dd0b461cf9edc0d055ba03033267e21923f4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 22f9404829ad573b2b4df9b5e2ce3c3f965200d0e5ffcea04d75b71a0e57dc16982bd3b890a9abb51fe264c1bd26c2bbab02dd07594c9e269ac1796bfdc18c47
|
|
7
|
+
data.tar.gz: 7591f1792fbaeb5a6d3328679f55ffb7158180703c7cb1371fd88d23b97c1b9a54777af999c10acc5d0b725f17ae7bc8d8f97336d9d87225ed271600c5bf4e72
|
data/lib/checkoff/attachments.rb
CHANGED
|
@@ -87,8 +87,6 @@ module Checkoff
|
|
|
87
87
|
out = nil
|
|
88
88
|
host = uri.host || raise("URI has no host: #{uri}")
|
|
89
89
|
Net::HTTP.start(host, uri.port, use_ssl: uri.scheme == 'https', verify_mode:) do |http|
|
|
90
|
-
# @sg-ignore tool-limitation:pr-1290-follow-up
|
|
91
|
-
# https://github.com/castwide/solargraph/pull/1290#issuecomment-5272957964
|
|
92
90
|
http.request(Net::HTTP::Get.new(uri)) do |response|
|
|
93
91
|
raise("Unexpected response code: #{response.code}") unless response.code == '200'
|
|
94
92
|
|
|
@@ -58,8 +58,7 @@ module Logging
|
|
|
58
58
|
|
|
59
59
|
# @return [Symbol]
|
|
60
60
|
def log_level
|
|
61
|
-
# rubocop:disable Style/RedundantFetchBlock
|
|
61
|
+
# rubocop:disable-next Style/RedundantFetchBlock
|
|
62
62
|
ENV.fetch('LOG_LEVEL') { 'INFO' }.downcase.to_sym
|
|
63
|
-
# rubocop:enable Style/RedundantFetchBlock
|
|
64
63
|
end
|
|
65
64
|
end
|
|
@@ -9,11 +9,32 @@ module Checkoff
|
|
|
9
9
|
# @param _deps [Hash]
|
|
10
10
|
def initialize(_deps = {}); end
|
|
11
11
|
|
|
12
|
+
# The two custom_fields entries below hold the same records: the top-level
|
|
13
|
+
# array is what Asana returns, and unwrapped re-keys those records by name.
|
|
14
|
+
#
|
|
12
15
|
# @param project_obj [Asana::Resources::Project]
|
|
13
16
|
# @param project [String, :not_specified, :my_tasks, nil] - a String is a
|
|
14
17
|
# project name
|
|
15
18
|
#
|
|
16
|
-
# @return [Hash{
|
|
19
|
+
# @return [Hash{"project" => String, Symbol, nil} &
|
|
20
|
+
# Hash{"gid" => String} &
|
|
21
|
+
# Hash{"name" => String} &
|
|
22
|
+
# Hash{"custom_fields" => Array<
|
|
23
|
+
# Hash{"gid" => String} &
|
|
24
|
+
# Hash{"name" => String} &
|
|
25
|
+
# Hash{"display_value" => String, nil} &
|
|
26
|
+
# Hash{"number_value" => Float, Integer, nil} &
|
|
27
|
+
# Hash{"text_value" => String, nil} &
|
|
28
|
+
# Hash{"enum_value" => Hash{String => String}, nil}
|
|
29
|
+
# >, nil} &
|
|
30
|
+
# Hash{"unwrapped" => Hash{"custom_fields" => Hash{String =>
|
|
31
|
+
# Hash{"gid" => String} &
|
|
32
|
+
# Hash{"name" => String} &
|
|
33
|
+
# Hash{"display_value" => String, nil} &
|
|
34
|
+
# Hash{"number_value" => Float, Integer, nil} &
|
|
35
|
+
# Hash{"text_value" => String, nil} &
|
|
36
|
+
# Hash{"enum_value" => Hash{String => String}, nil}
|
|
37
|
+
# }}}]
|
|
17
38
|
def project_to_h(project_obj, project: :not_specified)
|
|
18
39
|
project = project_obj.name if project == :not_specified
|
|
19
40
|
project_hash = { **project_obj.to_h, 'project' => project }
|
|
@@ -163,11 +163,10 @@ module Checkoff
|
|
|
163
163
|
# @param period [Symbol] - :now_or_before or :this_week
|
|
164
164
|
# @param ignore_dependencies [Boolean]
|
|
165
165
|
# @return [Boolean]
|
|
166
|
-
# rubocop:disable Style/OptionalBooleanParameter
|
|
166
|
+
# rubocop:disable-next Style/OptionalBooleanParameter
|
|
167
167
|
def evaluate(task, period = :now_or_before, ignore_dependencies = false)
|
|
168
168
|
tasks.task_ready?(task, period:, ignore_dependencies:)
|
|
169
169
|
end
|
|
170
|
-
# rubocop:enable Style/OptionalBooleanParameter
|
|
171
170
|
end
|
|
172
171
|
|
|
173
172
|
# :in_period? function
|
data/lib/checkoff/projects.rb
CHANGED
|
@@ -83,6 +83,9 @@ module Checkoff
|
|
|
83
83
|
#
|
|
84
84
|
# @return [Hash{Symbol => undefined}]
|
|
85
85
|
def task_options(extra_fields: [], only_uncompleted: false)
|
|
86
|
+
# @type [Hash{:per_page => Integer} &
|
|
87
|
+
# Hash{:options => Hash{Symbol => Array<String>}} &
|
|
88
|
+
# Hash{:completed_since => String}]
|
|
86
89
|
options = {
|
|
87
90
|
per_page: 100,
|
|
88
91
|
options: {
|
|
@@ -212,7 +215,7 @@ module Checkoff
|
|
|
212
215
|
# @param project [String, :not_specified, :my_tasks, nil] - a String is a
|
|
213
216
|
# project name
|
|
214
217
|
#
|
|
215
|
-
# @return
|
|
218
|
+
# @return (see Checkoff::Internal::ProjectHashes#project_to_h)
|
|
216
219
|
def project_to_h(project_obj, project: :not_specified)
|
|
217
220
|
project_hashes.project_to_h(project_obj, project:)
|
|
218
221
|
end
|
data/lib/checkoff/version.rb
CHANGED
data/rbi/checkoff.rbi
CHANGED
|
@@ -82,7 +82,7 @@ module Overcommit
|
|
|
82
82
|
end
|
|
83
83
|
|
|
84
84
|
module Checkoff
|
|
85
|
-
VERSION = '0.
|
|
85
|
+
VERSION = '0.262.0'
|
|
86
86
|
|
|
87
87
|
class Attachments
|
|
88
88
|
include Logging
|
|
@@ -2485,7 +2485,7 @@ end
|
|
|
2485
2485
|
# typed: ignore
|
|
2486
2486
|
# Command-line and gem client for Asana (unofficial)
|
|
2487
2487
|
module Checkoff
|
|
2488
|
-
VERSION = T.let('0.
|
|
2488
|
+
VERSION = T.let('0.262.0', T.untyped)
|
|
2489
2489
|
|
|
2490
2490
|
# Move tasks from one place to another
|
|
2491
2491
|
class MvSubcommand
|
|
@@ -3608,10 +3608,12 @@ module Checkoff
|
|
|
3608
3608
|
def projects_by_workspace_name(workspace_name, extra_fields: []); end
|
|
3609
3609
|
|
|
3610
3610
|
# sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
|
|
3611
|
+
# sord warn - "\"unwrapped\"" does not appear to be a type
|
|
3612
|
+
# sord warn - "Hash{\"custom_fields\" => Hash{String =" does not appear to be a type
|
|
3611
3613
|
# _@param_ `project_obj`
|
|
3612
3614
|
#
|
|
3613
3615
|
# _@param_ `project` — - a String is a project name
|
|
3614
|
-
sig { params(project_obj: Asana::Resources::Project, project: T.nilable(T.any(String, Symbol))).returns(T::Hash[
|
|
3616
|
+
sig { params(project_obj: Asana::Resources::Project, project: T.nilable(T.any(String, Symbol))).returns(T::Hash[T.untyped, T.untyped]) }
|
|
3615
3617
|
def project_to_h(project_obj, project: :not_specified); end
|
|
3616
3618
|
|
|
3617
3619
|
# sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
|
|
@@ -5110,10 +5112,15 @@ module Checkoff
|
|
|
5110
5112
|
def initialize(_deps = {}); end
|
|
5111
5113
|
|
|
5112
5114
|
# sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
|
|
5115
|
+
# sord warn - "\"unwrapped\"" does not appear to be a type
|
|
5116
|
+
# sord warn - "Hash{\"custom_fields\" => Hash{String =" does not appear to be a type
|
|
5117
|
+
# The two custom_fields entries below hold the same records: the top-level
|
|
5118
|
+
# array is what Asana returns, and unwrapped re-keys those records by name.
|
|
5119
|
+
#
|
|
5113
5120
|
# _@param_ `project_obj`
|
|
5114
5121
|
#
|
|
5115
5122
|
# _@param_ `project` — - a String is a project name
|
|
5116
|
-
sig { params(project_obj: Asana::Resources::Project, project: T.nilable(T.any(String, Symbol))).returns(T::Hash[
|
|
5123
|
+
sig { params(project_obj: Asana::Resources::Project, project: T.nilable(T.any(String, Symbol))).returns(T::Hash[T.untyped, T.untyped]) }
|
|
5117
5124
|
def project_to_h(project_obj, project: :not_specified); end
|
|
5118
5125
|
|
|
5119
5126
|
# _@param_ `project_hash`
|
|
@@ -5929,7 +5936,7 @@ module Checkoff
|
|
|
5929
5936
|
def evaluate_arg?(_index); end
|
|
5930
5937
|
|
|
5931
5938
|
# sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
|
|
5932
|
-
# rubocop:disable Style/OptionalBooleanParameter
|
|
5939
|
+
# rubocop:disable-next Style/OptionalBooleanParameter
|
|
5933
5940
|
#
|
|
5934
5941
|
# _@param_ `task`
|
|
5935
5942
|
#
|
|
@@ -6001,6 +6008,11 @@ module Checkoff
|
|
|
6001
6008
|
# _@param_ `excluding_resource_subtypes`
|
|
6002
6009
|
sig { params(task: Asana::Resources::Task, num_days: Integer, excluding_resource_subtypes: T::Array[String]).returns(T::Boolean) }
|
|
6003
6010
|
def evaluate(task, num_days, excluding_resource_subtypes); end
|
|
6011
|
+
|
|
6012
|
+
# sord warn - Asana::Resources::Story wasn't able to be resolved to a constant in this project
|
|
6013
|
+
# _@param_ `story`
|
|
6014
|
+
sig { params(story: Asana::Resources::Story).returns(Time) }
|
|
6015
|
+
def created_at_for(story); end
|
|
6004
6016
|
end
|
|
6005
6017
|
|
|
6006
6018
|
# :estimate_exceeds_duration?
|
data/sig/checkoff.rbs
CHANGED
|
@@ -941,10 +941,12 @@ module Checkoff
|
|
|
941
941
|
def projects_by_workspace_name: ((String | Symbol) workspace_name, ?extra_fields: ::Array[String]) -> ::Enumerable[Asana::Resources::Project]
|
|
942
942
|
|
|
943
943
|
# sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
|
|
944
|
+
# sord warn - "\"unwrapped\"" does not appear to be a type
|
|
945
|
+
# sord warn - "Hash{\"custom_fields\" => Hash{String =" does not appear to be a type
|
|
944
946
|
# _@param_ `project_obj`
|
|
945
947
|
#
|
|
946
948
|
# _@param_ `project` — - a String is a project name
|
|
947
|
-
def project_to_h: (Asana::Resources::Project project_obj, ?project: (String | Symbol)?) -> ::Hash[
|
|
949
|
+
def project_to_h: (Asana::Resources::Project project_obj, ?project: (String | Symbol)?) -> ::Hash[untyped, untyped]
|
|
948
950
|
|
|
949
951
|
# sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
|
|
950
952
|
# Indicates a project is ready for a person to work on it. This
|
|
@@ -2207,10 +2209,15 @@ module Checkoff
|
|
|
2207
2209
|
def initialize: (?::Hash[untyped, untyped] _deps) -> void
|
|
2208
2210
|
|
|
2209
2211
|
# sord warn - Asana::Resources::Project wasn't able to be resolved to a constant in this project
|
|
2212
|
+
# sord warn - "\"unwrapped\"" does not appear to be a type
|
|
2213
|
+
# sord warn - "Hash{\"custom_fields\" => Hash{String =" does not appear to be a type
|
|
2214
|
+
# The two custom_fields entries below hold the same records: the top-level
|
|
2215
|
+
# array is what Asana returns, and unwrapped re-keys those records by name.
|
|
2216
|
+
#
|
|
2210
2217
|
# _@param_ `project_obj`
|
|
2211
2218
|
#
|
|
2212
2219
|
# _@param_ `project` — - a String is a project name
|
|
2213
|
-
def project_to_h: (Asana::Resources::Project project_obj, ?project: (String | Symbol)?) -> ::Hash[
|
|
2220
|
+
def project_to_h: (Asana::Resources::Project project_obj, ?project: (String | Symbol)?) -> ::Hash[untyped, untyped]
|
|
2214
2221
|
|
|
2215
2222
|
# _@param_ `project_hash`
|
|
2216
2223
|
def unwrap_custom_fields: (::Hash[untyped, untyped] project_hash) -> void
|
|
@@ -2857,7 +2864,7 @@ module Checkoff
|
|
|
2857
2864
|
def evaluate_arg?: (Integer _index) -> bool
|
|
2858
2865
|
|
|
2859
2866
|
# sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
|
|
2860
|
-
# rubocop:disable Style/OptionalBooleanParameter
|
|
2867
|
+
# rubocop:disable-next Style/OptionalBooleanParameter
|
|
2861
2868
|
#
|
|
2862
2869
|
# _@param_ `task`
|
|
2863
2870
|
#
|
|
@@ -2918,6 +2925,10 @@ module Checkoff
|
|
|
2918
2925
|
#
|
|
2919
2926
|
# _@param_ `excluding_resource_subtypes`
|
|
2920
2927
|
def evaluate: (Asana::Resources::Task task, Integer num_days, ::Array[String] excluding_resource_subtypes) -> bool
|
|
2928
|
+
|
|
2929
|
+
# sord warn - Asana::Resources::Story wasn't able to be resolved to a constant in this project
|
|
2930
|
+
# _@param_ `story`
|
|
2931
|
+
def created_at_for: (Asana::Resources::Story story) -> Time
|
|
2921
2932
|
end
|
|
2922
2933
|
|
|
2923
2934
|
# :estimate_exceeds_duration?
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: checkoff
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.262.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vince Broz
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-08-
|
|
11
|
+
date: 2026-08-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|