checkoff 0.222.0 → 0.223.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.git-hooks/pre_commit/circle_ci.rb +1 -0
- data/.git-hooks/pre_commit/punchlist.rb +1 -0
- data/.git-hooks/pre_commit/solargraph_typecheck.rb +1 -0
- data/.gitignore +4 -0
- data/.markdownlint_style.rb +1 -0
- data/.overcommit.yml +1 -0
- data/.yardopts +2 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +16 -1
- data/Makefile +24 -6
- data/config/annotations_asana.rb +1 -2
- data/lib/checkoff/attachments.rb +1 -0
- data/lib/checkoff/cli.rb +1 -1
- data/lib/checkoff/clients.rb +1 -0
- data/lib/checkoff/custom_fields.rb +1 -0
- data/lib/checkoff/events.rb +1 -0
- data/lib/checkoff/internal/asana_event_enrichment.rb +1 -0
- data/lib/checkoff/internal/asana_event_filter.rb +1 -0
- data/lib/checkoff/internal/config_loader.rb +1 -0
- data/lib/checkoff/internal/logging.rb +6 -5
- data/lib/checkoff/internal/project_hashes.rb +1 -0
- data/lib/checkoff/internal/project_selector_evaluator.rb +2 -1
- data/lib/checkoff/internal/project_timing.rb +1 -0
- data/lib/checkoff/internal/search_url/custom_field_param_converter.rb +1 -0
- data/lib/checkoff/internal/search_url/custom_field_variant.rb +1 -0
- data/lib/checkoff/internal/search_url/date_param_converter.rb +1 -0
- data/lib/checkoff/internal/search_url/parser.rb +1 -0
- data/lib/checkoff/internal/search_url/results_merger.rb +1 -0
- data/lib/checkoff/internal/search_url/simple_param_converter.rb +1 -0
- data/lib/checkoff/internal/search_url.rb +1 -0
- data/lib/checkoff/internal/section_selector_evaluator.rb +2 -1
- data/lib/checkoff/internal/selector_classes/common/function_evaluator.rb +1 -0
- data/lib/checkoff/internal/selector_classes/common.rb +1 -0
- data/lib/checkoff/internal/selector_classes/function_evaluator.rb +1 -0
- data/lib/checkoff/internal/selector_classes/project/function_evaluator.rb +1 -0
- data/lib/checkoff/internal/selector_classes/project.rb +1 -0
- data/lib/checkoff/internal/selector_classes/section/function_evaluator.rb +1 -0
- data/lib/checkoff/internal/selector_classes/section.rb +1 -0
- data/lib/checkoff/internal/selector_classes/task/function_evaluator.rb +1 -0
- data/lib/checkoff/internal/selector_classes/task.rb +1 -0
- data/lib/checkoff/internal/selector_evaluator.rb +5 -4
- data/lib/checkoff/internal/task_hashes.rb +1 -0
- data/lib/checkoff/internal/task_selector_evaluator.rb +2 -1
- data/lib/checkoff/internal/task_timing.rb +1 -0
- data/lib/checkoff/internal/thread_local.rb +1 -0
- data/lib/checkoff/monkeypatches/resource_marshalling.rb +1 -0
- data/lib/checkoff/my_tasks.rb +1 -0
- data/lib/checkoff/portfolios.rb +1 -0
- data/lib/checkoff/project_selectors.rb +1 -0
- data/lib/checkoff/projects.rb +2 -0
- data/lib/checkoff/resources.rb +1 -0
- data/lib/checkoff/section_selectors.rb +1 -0
- data/lib/checkoff/sections.rb +1 -0
- data/lib/checkoff/subtasks.rb +1 -0
- data/lib/checkoff/tags.rb +1 -0
- data/lib/checkoff/task_searches.rb +1 -0
- data/lib/checkoff/task_selectors.rb +1 -0
- data/lib/checkoff/tasks.rb +1 -1
- data/lib/checkoff/timelines.rb +1 -0
- data/lib/checkoff/timing.rb +1 -0
- data/lib/checkoff/version.rb +2 -1
- data/lib/checkoff/workspaces.rb +1 -0
- data/lib/checkoff.rb +1 -0
- data/sorbet/rbi/gems/asana@0.10.6-ab9393136d9ca59b75e42a661fdddc1c65c8f7c3.rbi +1 -1
- data/sorbet/rbi/gems/ast@2.4.2.rbi +1 -1
- data/sorbet/rbi/gems/backport@1.2.0.rbi +1 -1
- data/sorbet/rbi/gems/base64@0.2.0.rbi +1 -1
- data/sorbet/rbi/gems/benchmark@0.4.0.rbi +1 -1
- data/sorbet/rbi/gems/bigdecimal@3.1.5.rbi +1 -1
- data/sorbet/rbi/gems/cache@0.4.1.rbi +1 -1
- data/sorbet/rbi/gems/cache_method@0.2.7.rbi +1 -1
- data/sorbet/rbi/gems/chef-utils@18.3.0.rbi +1 -1
- data/sorbet/rbi/gems/childprocess@5.1.0.rbi +1 -1
- data/sorbet/rbi/gems/commander@4.6.0.rbi +9 -0
- data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +1 -1
- data/sorbet/rbi/gems/crack@0.4.5.rbi +1 -1
- data/sorbet/rbi/gems/e2mmap@0.1.0.rbi +1 -1
- data/sorbet/rbi/gems/erubi@1.13.0.rbi +1 -1
- data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +1 -1
- data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +1 -1
- data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +1 -1
- data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +1 -1
- data/sorbet/rbi/gems/faraday_middleware-multi_json@0.0.6.rbi +1 -1
- data/sorbet/rbi/gems/gli@2.22.0.rbi +1 -1
- data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +1 -1
- data/sorbet/rbi/gems/highline@2.0.3.rbi +9 -0
- data/sorbet/rbi/gems/jaro_winkler@1.6.0.rbi +1 -1
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +1 -1
- data/sorbet/rbi/gems/mdl@0.13.0.rbi +1 -1
- data/sorbet/rbi/gems/minitest-profile@0.0.2.rbi +1 -1
- data/sorbet/rbi/gems/minitest-reporters@1.6.1.rbi +1 -1
- data/sorbet/rbi/gems/mixlib-cli@2.1.8.rbi +1 -1
- data/sorbet/rbi/gems/mixlib-config@3.0.27.rbi +1 -1
- data/sorbet/rbi/gems/mixlib-shellout@3.2.7.rbi +1 -1
- data/sorbet/rbi/gems/mocha@2.1.0.rbi +1 -1
- data/sorbet/rbi/gems/multipart-post@2.3.0.rbi +1 -1
- data/sorbet/rbi/gems/parallel@1.23.0.rbi +1 -1
- data/sorbet/rbi/gems/parlour@5.0.0.rbi +3007 -0
- data/sorbet/rbi/gems/parser@3.2.2.4.rbi +1 -1
- data/sorbet/rbi/gems/punchlist@1.3.2.rbi +1 -1
- data/sorbet/rbi/gems/racc@1.8.1.rbi +1 -1
- data/sorbet/rbi/gems/rbi@0.2.1.rbi +1 -1
- data/sorbet/rbi/gems/reverse_markdown@2.1.1.rbi +1 -1
- data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +66 -0
- data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +1 -1
- data/sorbet/rbi/gems/securerandom@0.4.0.rbi +1 -1
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +1 -1
- data/sorbet/rbi/gems/simplecov-lcov@0.8.0.rbi +1 -1
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +1 -1
- data/sorbet/rbi/gems/sord@5.1.0.rbi +820 -0
- data/sorbet/rbi/gems/source_finder@3.2.1.rbi +1 -1
- data/sorbet/rbi/gems/tomlrb@2.0.3.rbi +1 -1
- data/sorbet/rbi/todo.rbi +1 -1
- data/sorbet/tapioca/require.rb +1 -1
- metadata +6 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 925f4d51063a064573aba674442739e5a5fbd0e1b117c4a8480b53a7ba494104
|
4
|
+
data.tar.gz: 6ed947f526bd44c5ed8f8c0eb417dadd3c8c213d557931e294355fbdf1f858e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3093484531af641d774b6fd8e18f33f960d3cc21616a362be4d460d188ddfbc72300aa1befe41e92845d4a2a34153a6d18dd25e83e5b54f36718ba1192a4f0a
|
7
|
+
data.tar.gz: e235b3bf48f544514a95a711b4d07e4ded2b529343d507e65bbab01cbcfd6c4e9b46df6b3ee6e39373d523df330b1adebbdd1389386dcd04ae253fce2e5e5e5c
|
data/.gitignore
CHANGED
data/.markdownlint_style.rb
CHANGED
data/.overcommit.yml
CHANGED
data/.yardopts
ADDED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -43,7 +43,7 @@ GIT
|
|
43
43
|
PATH
|
44
44
|
remote: .
|
45
45
|
specs:
|
46
|
-
checkoff (0.
|
46
|
+
checkoff (0.223.0)
|
47
47
|
activesupport
|
48
48
|
asana (> 0.10.0)
|
49
49
|
cache_method
|
@@ -87,6 +87,8 @@ GEM
|
|
87
87
|
childprocess (5.1.0)
|
88
88
|
logger (~> 1.5)
|
89
89
|
coderay (1.1.3)
|
90
|
+
commander (4.6.0)
|
91
|
+
highline (~> 2.0.0)
|
90
92
|
concurrent-ruby (1.2.3)
|
91
93
|
connection_pool (2.4.1)
|
92
94
|
crack (0.4.5)
|
@@ -126,6 +128,7 @@ GEM
|
|
126
128
|
multi_json
|
127
129
|
gli (2.22.0)
|
128
130
|
hashdiff (1.0.1)
|
131
|
+
highline (2.0.3)
|
129
132
|
i18n (1.14.6)
|
130
133
|
concurrent-ruby (~> 1.0)
|
131
134
|
imagen (0.1.8)
|
@@ -192,6 +195,11 @@ GEM
|
|
192
195
|
iniparse (~> 1.4)
|
193
196
|
rexml (>= 3.3.9)
|
194
197
|
parallel (1.23.0)
|
198
|
+
parlour (5.0.0)
|
199
|
+
commander (~> 4.5)
|
200
|
+
parser
|
201
|
+
rainbow (~> 3.0)
|
202
|
+
sorbet-runtime (>= 0.5)
|
195
203
|
parser (3.2.2.4)
|
196
204
|
ast (~> 2.4.1)
|
197
205
|
racc
|
@@ -257,6 +265,12 @@ GEM
|
|
257
265
|
sorbet-static-and-runtime (0.5.11690)
|
258
266
|
sorbet (= 0.5.11690)
|
259
267
|
sorbet-runtime (= 0.5.11690)
|
268
|
+
sord (5.1.0)
|
269
|
+
commander (~> 4.5)
|
270
|
+
parlour (~> 5.0)
|
271
|
+
rbs (~> 2.0)
|
272
|
+
sorbet-runtime
|
273
|
+
yard
|
260
274
|
source_finder (3.2.1)
|
261
275
|
spoom (1.5.0)
|
262
276
|
erubi (>= 1.10.0)
|
@@ -327,6 +341,7 @@ DEPENDENCIES
|
|
327
341
|
simplecov-lcov
|
328
342
|
solargraph!
|
329
343
|
solargraph-rails!
|
344
|
+
sord
|
330
345
|
tapioca
|
331
346
|
undercover
|
332
347
|
webmock
|
data/Makefile
CHANGED
@@ -17,21 +17,39 @@ help:
|
|
17
17
|
|
18
18
|
default: clean-typecoverage typecheck typecoverage clean-coverage test coverage quality ## run default typechecking, tests and quality
|
19
19
|
|
20
|
-
|
20
|
+
config/defs.rbi: .yardoc/complete ## Generate RBS files
|
21
|
+
rm -f config/defs.rbi
|
22
|
+
bundle exec sord --replace-errors-with-untyped --no-regenerate config/defs.rbi
|
21
23
|
|
22
|
-
|
24
|
+
build-typecheck: Gemfile.lock.installed types.installed config/defs.rbi ## Fetch information that type checking depends on
|
25
|
+
|
26
|
+
types.installed: tapioca.installed Gemfile.lock Gemfile.lock.installed ## Install Ruby dependencies
|
23
27
|
bundle exec yard gems 2>&1 || bundle exec yard gems --safe 2>&1 || bundle exec yard gems 2>&1
|
24
28
|
# bundle exec solargraph scan 2>&1
|
29
|
+
touch types.installed
|
30
|
+
|
31
|
+
tapioca.installed: Gemfile.lock.installed ## Install Tapioca-generated type information
|
25
32
|
bin/tapioca gems
|
26
33
|
bin/tapioca annotations
|
27
34
|
bin/tapioca dsl
|
28
|
-
|
35
|
+
bin/tapioca todo
|
36
|
+
touch tapioca.installed
|
37
|
+
|
38
|
+
SOURCE_FILES = $(shell find lib -name '*.rb' -type f)
|
29
39
|
|
30
|
-
|
31
|
-
|
32
|
-
|
40
|
+
.yardoc/complete: $(wildcard config/annotations_*.rb) $(SOURCE_FILES) ## Generate YARD documentation
|
41
|
+
bin/yard -c
|
42
|
+
|
43
|
+
clean-typecheck: ## Refresh the easily-regenerated information that type checking depends on
|
44
|
+
bin/solargraph clear
|
45
|
+
rm -fr .yardoc/ config/defs.rbi types.installed
|
33
46
|
echo all clear
|
34
47
|
|
48
|
+
realclean-typecheck: clean-typecheck ## Remove all type checking artifacts
|
49
|
+
rm tapioca.installed
|
50
|
+
|
51
|
+
|
52
|
+
|
35
53
|
typecheck: build-typecheck ## validate types in code and configuration
|
36
54
|
bin/tapioca dsl --verify
|
37
55
|
bundle exec srb tc
|
data/config/annotations_asana.rb
CHANGED
@@ -190,11 +190,10 @@
|
|
190
190
|
# # @param archived [Boolean] Only return projects whose `archived` field takes on the value of
|
191
191
|
# # this parameter.
|
192
192
|
# #
|
193
|
-
# # @param client [Asana::Client]
|
194
193
|
# # @param per_page [Integer] the number of records to fetch per page.
|
195
194
|
# # @param options [Hash] the request I/O options.
|
196
195
|
# # @return [Enumerable<Asana::Resources::Project>]
|
197
|
-
# def find_by_workspace(
|
196
|
+
# def find_by_workspace(workspace: required("workspace"), is_template: nil, archived: nil, per_page: 20, options: {}); end
|
198
197
|
# # Returns the complete project record for a single project.
|
199
198
|
# #
|
200
199
|
# # @param id [String] The project to get.
|
data/lib/checkoff/attachments.rb
CHANGED
data/lib/checkoff/cli.rb
CHANGED
data/lib/checkoff/clients.rb
CHANGED
data/lib/checkoff/events.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# typed: false
|
1
2
|
# frozen_string_literal: true
|
2
3
|
|
3
4
|
require 'logger'
|
@@ -15,35 +16,35 @@ module Logging
|
|
15
16
|
end
|
16
17
|
end
|
17
18
|
|
18
|
-
# @param message [
|
19
|
+
# @param message [Object,nil]
|
19
20
|
#
|
20
21
|
# @return [void]
|
21
22
|
def error(message = nil, &block)
|
22
23
|
logger.error(message, &block)
|
23
24
|
end
|
24
25
|
|
25
|
-
# @param message [
|
26
|
+
# @param message [Object,nil]
|
26
27
|
#
|
27
28
|
# @return [void]
|
28
29
|
def warn(message = nil, &block)
|
29
30
|
logger.warn(message, &block)
|
30
31
|
end
|
31
32
|
|
32
|
-
# @param message [
|
33
|
+
# @param message [Object,nil]
|
33
34
|
#
|
34
35
|
# @return [void]
|
35
36
|
def info(message = nil, &block)
|
36
37
|
logger.info(message, &block)
|
37
38
|
end
|
38
39
|
|
39
|
-
# @param message [
|
40
|
+
# @param message [Object,nil]
|
40
41
|
#
|
41
42
|
# @return [void]
|
42
43
|
def debug(message = nil, &block)
|
43
44
|
logger.debug(message, &block)
|
44
45
|
end
|
45
46
|
|
46
|
-
# @param message [
|
47
|
+
# @param message [Object,nil]
|
47
48
|
#
|
48
49
|
# @return [void]
|
49
50
|
def finer(message = nil, &block)
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# typed: true
|
1
2
|
# frozen_string_literal: true
|
2
3
|
|
3
4
|
require_relative 'selector_classes/common'
|
@@ -37,7 +38,7 @@ module Checkoff
|
|
37
38
|
|
38
39
|
FUNCTION_EVALUTORS = (COMMON_FUNCTION_EVALUATORS + PROJECT_FUNCTION_EVALUATORS).freeze
|
39
40
|
|
40
|
-
# @return [Array<Class<
|
41
|
+
# @return [Array<Class<Checkoff::SelectorClasses::Project::FunctionEvaluator>>]
|
41
42
|
def function_evaluators
|
42
43
|
FUNCTION_EVALUTORS
|
43
44
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# typed: true
|
1
2
|
# frozen_string_literal: true
|
2
3
|
|
3
4
|
require_relative 'selector_classes/common'
|
@@ -38,7 +39,7 @@ module Checkoff
|
|
38
39
|
|
39
40
|
FUNCTION_EVALUTORS = (COMMON_FUNCTION_EVALUATORS + SECTION_FUNCTION_EVALUATORS).freeze
|
40
41
|
|
41
|
-
# @return [Array<Class<
|
42
|
+
# @return [Array<Class<Checkoff::SelectorClasses::Project::FunctionEvaluator>>]
|
42
43
|
def function_evaluators
|
43
44
|
FUNCTION_EVALUTORS
|
44
45
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# typed: false
|
1
2
|
# frozen_string_literal: true
|
2
3
|
|
3
4
|
module Checkoff
|
@@ -9,7 +10,7 @@ module Checkoff
|
|
9
10
|
return true if selector.empty?
|
10
11
|
|
11
12
|
function_evaluators.each do |evaluator_class|
|
12
|
-
# @type [SelectorClasses::FunctionEvaluator]
|
13
|
+
# @type [Checkoff::SelectorClasses::FunctionEvaluator]
|
13
14
|
# @sg-ignore
|
14
15
|
evaluator = evaluator_class.new(selector: selector,
|
15
16
|
**initializer_kwargs)
|
@@ -29,14 +30,14 @@ module Checkoff
|
|
29
30
|
{}
|
30
31
|
end
|
31
32
|
|
32
|
-
# @return [Array<Class<FunctionEvaluator>>]
|
33
|
+
# @return [Array<Class<Checkoff::SelectorClasses::FunctionEvaluator>>]
|
33
34
|
# @sg-ignore
|
34
35
|
def function_evaluators
|
35
36
|
raise 'Implement me!'
|
36
37
|
end
|
37
38
|
|
38
39
|
# @param selector [Array]
|
39
|
-
# @param evaluator [SelectorClasses::FunctionEvaluator]
|
40
|
+
# @param evaluator [Checkoff::SelectorClasses::FunctionEvaluator]
|
40
41
|
# @return [Array]
|
41
42
|
def evaluate_args(selector, evaluator)
|
42
43
|
return [] unless selector.is_a?(Array)
|
@@ -51,7 +52,7 @@ module Checkoff
|
|
51
52
|
end
|
52
53
|
|
53
54
|
# @param selector [Array]
|
54
|
-
# @param evaluator [SelectorClasses::FunctionEvaluator]
|
55
|
+
# @param evaluator [Checkoff::SelectorClasses::FunctionEvaluator]
|
55
56
|
# @return [Boolean, Object, nil]
|
56
57
|
def try_this_evaluator(selector, evaluator)
|
57
58
|
# if selector is an array
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# typed: true
|
1
2
|
# frozen_string_literal: true
|
2
3
|
|
3
4
|
require_relative 'selector_classes/common'
|
@@ -34,7 +35,7 @@ module Checkoff
|
|
34
35
|
|
35
36
|
FUNCTION_EVALUTORS = (COMMON_FUNCTION_EVALUATORS + TASK_FUNCTION_EVALUATORS).freeze
|
36
37
|
|
37
|
-
# @return [Array<Class<
|
38
|
+
# @return [Array<Class<Checkoff::SelectorClasses::Task::FunctionEvaluator>>]
|
38
39
|
def function_evaluators
|
39
40
|
FUNCTION_EVALUTORS
|
40
41
|
end
|
data/lib/checkoff/my_tasks.rb
CHANGED
data/lib/checkoff/portfolios.rb
CHANGED
data/lib/checkoff/projects.rb
CHANGED
data/lib/checkoff/resources.rb
CHANGED
data/lib/checkoff/sections.rb
CHANGED
data/lib/checkoff/subtasks.rb
CHANGED
data/lib/checkoff/tags.rb
CHANGED
data/lib/checkoff/tasks.rb
CHANGED
data/lib/checkoff/timelines.rb
CHANGED
data/lib/checkoff/timing.rb
CHANGED
data/lib/checkoff/version.rb
CHANGED
data/lib/checkoff/workspaces.rb
CHANGED
data/lib/checkoff.rb
CHANGED