checkoff 0.222.0 → 0.223.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/.git-hooks/pre_commit/circle_ci.rb +1 -0
  3. data/.git-hooks/pre_commit/punchlist.rb +1 -0
  4. data/.git-hooks/pre_commit/solargraph_typecheck.rb +1 -0
  5. data/.gitignore +4 -0
  6. data/.markdownlint_style.rb +1 -0
  7. data/.overcommit.yml +1 -0
  8. data/.yardopts +2 -0
  9. data/Gemfile +1 -0
  10. data/Gemfile.lock +16 -1
  11. data/Makefile +24 -6
  12. data/config/annotations_asana.rb +1 -2
  13. data/lib/checkoff/attachments.rb +1 -0
  14. data/lib/checkoff/cli.rb +1 -1
  15. data/lib/checkoff/clients.rb +1 -0
  16. data/lib/checkoff/custom_fields.rb +1 -0
  17. data/lib/checkoff/events.rb +1 -0
  18. data/lib/checkoff/internal/asana_event_enrichment.rb +1 -0
  19. data/lib/checkoff/internal/asana_event_filter.rb +1 -0
  20. data/lib/checkoff/internal/config_loader.rb +1 -0
  21. data/lib/checkoff/internal/logging.rb +6 -5
  22. data/lib/checkoff/internal/project_hashes.rb +1 -0
  23. data/lib/checkoff/internal/project_selector_evaluator.rb +2 -1
  24. data/lib/checkoff/internal/project_timing.rb +1 -0
  25. data/lib/checkoff/internal/search_url/custom_field_param_converter.rb +1 -0
  26. data/lib/checkoff/internal/search_url/custom_field_variant.rb +1 -0
  27. data/lib/checkoff/internal/search_url/date_param_converter.rb +1 -0
  28. data/lib/checkoff/internal/search_url/parser.rb +1 -0
  29. data/lib/checkoff/internal/search_url/results_merger.rb +1 -0
  30. data/lib/checkoff/internal/search_url/simple_param_converter.rb +1 -0
  31. data/lib/checkoff/internal/search_url.rb +1 -0
  32. data/lib/checkoff/internal/section_selector_evaluator.rb +2 -1
  33. data/lib/checkoff/internal/selector_classes/common/function_evaluator.rb +1 -0
  34. data/lib/checkoff/internal/selector_classes/common.rb +1 -0
  35. data/lib/checkoff/internal/selector_classes/function_evaluator.rb +1 -0
  36. data/lib/checkoff/internal/selector_classes/project/function_evaluator.rb +1 -0
  37. data/lib/checkoff/internal/selector_classes/project.rb +1 -0
  38. data/lib/checkoff/internal/selector_classes/section/function_evaluator.rb +1 -0
  39. data/lib/checkoff/internal/selector_classes/section.rb +1 -0
  40. data/lib/checkoff/internal/selector_classes/task/function_evaluator.rb +1 -0
  41. data/lib/checkoff/internal/selector_classes/task.rb +1 -0
  42. data/lib/checkoff/internal/selector_evaluator.rb +5 -4
  43. data/lib/checkoff/internal/task_hashes.rb +1 -0
  44. data/lib/checkoff/internal/task_selector_evaluator.rb +2 -1
  45. data/lib/checkoff/internal/task_timing.rb +1 -0
  46. data/lib/checkoff/internal/thread_local.rb +1 -0
  47. data/lib/checkoff/monkeypatches/resource_marshalling.rb +1 -0
  48. data/lib/checkoff/my_tasks.rb +1 -0
  49. data/lib/checkoff/portfolios.rb +1 -0
  50. data/lib/checkoff/project_selectors.rb +1 -0
  51. data/lib/checkoff/projects.rb +2 -0
  52. data/lib/checkoff/resources.rb +1 -0
  53. data/lib/checkoff/section_selectors.rb +1 -0
  54. data/lib/checkoff/sections.rb +1 -0
  55. data/lib/checkoff/subtasks.rb +1 -0
  56. data/lib/checkoff/tags.rb +1 -0
  57. data/lib/checkoff/task_searches.rb +1 -0
  58. data/lib/checkoff/task_selectors.rb +1 -0
  59. data/lib/checkoff/tasks.rb +1 -1
  60. data/lib/checkoff/timelines.rb +1 -0
  61. data/lib/checkoff/timing.rb +1 -0
  62. data/lib/checkoff/version.rb +2 -1
  63. data/lib/checkoff/workspaces.rb +1 -0
  64. data/lib/checkoff.rb +1 -0
  65. data/sorbet/rbi/gems/asana@0.10.6-ab9393136d9ca59b75e42a661fdddc1c65c8f7c3.rbi +1 -1
  66. data/sorbet/rbi/gems/ast@2.4.2.rbi +1 -1
  67. data/sorbet/rbi/gems/backport@1.2.0.rbi +1 -1
  68. data/sorbet/rbi/gems/base64@0.2.0.rbi +1 -1
  69. data/sorbet/rbi/gems/benchmark@0.4.0.rbi +1 -1
  70. data/sorbet/rbi/gems/bigdecimal@3.1.5.rbi +1 -1
  71. data/sorbet/rbi/gems/cache@0.4.1.rbi +1 -1
  72. data/sorbet/rbi/gems/cache_method@0.2.7.rbi +1 -1
  73. data/sorbet/rbi/gems/chef-utils@18.3.0.rbi +1 -1
  74. data/sorbet/rbi/gems/childprocess@5.1.0.rbi +1 -1
  75. data/sorbet/rbi/gems/commander@4.6.0.rbi +9 -0
  76. data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +1 -1
  77. data/sorbet/rbi/gems/crack@0.4.5.rbi +1 -1
  78. data/sorbet/rbi/gems/e2mmap@0.1.0.rbi +1 -1
  79. data/sorbet/rbi/gems/erubi@1.13.0.rbi +1 -1
  80. data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +1 -1
  81. data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +1 -1
  82. data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +1 -1
  83. data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +1 -1
  84. data/sorbet/rbi/gems/faraday_middleware-multi_json@0.0.6.rbi +1 -1
  85. data/sorbet/rbi/gems/gli@2.22.0.rbi +1 -1
  86. data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +1 -1
  87. data/sorbet/rbi/gems/highline@2.0.3.rbi +9 -0
  88. data/sorbet/rbi/gems/jaro_winkler@1.6.0.rbi +1 -1
  89. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +1 -1
  90. data/sorbet/rbi/gems/mdl@0.13.0.rbi +1 -1
  91. data/sorbet/rbi/gems/minitest-profile@0.0.2.rbi +1 -1
  92. data/sorbet/rbi/gems/minitest-reporters@1.6.1.rbi +1 -1
  93. data/sorbet/rbi/gems/mixlib-cli@2.1.8.rbi +1 -1
  94. data/sorbet/rbi/gems/mixlib-config@3.0.27.rbi +1 -1
  95. data/sorbet/rbi/gems/mixlib-shellout@3.2.7.rbi +1 -1
  96. data/sorbet/rbi/gems/mocha@2.1.0.rbi +1 -1
  97. data/sorbet/rbi/gems/multipart-post@2.3.0.rbi +1 -1
  98. data/sorbet/rbi/gems/parallel@1.23.0.rbi +1 -1
  99. data/sorbet/rbi/gems/parlour@5.0.0.rbi +3007 -0
  100. data/sorbet/rbi/gems/parser@3.2.2.4.rbi +1 -1
  101. data/sorbet/rbi/gems/punchlist@1.3.2.rbi +1 -1
  102. data/sorbet/rbi/gems/racc@1.8.1.rbi +1 -1
  103. data/sorbet/rbi/gems/rbi@0.2.1.rbi +1 -1
  104. data/sorbet/rbi/gems/reverse_markdown@2.1.1.rbi +1 -1
  105. data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +66 -0
  106. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +1 -1
  107. data/sorbet/rbi/gems/securerandom@0.4.0.rbi +1 -1
  108. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +1 -1
  109. data/sorbet/rbi/gems/simplecov-lcov@0.8.0.rbi +1 -1
  110. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +1 -1
  111. data/sorbet/rbi/gems/sord@5.1.0.rbi +820 -0
  112. data/sorbet/rbi/gems/source_finder@3.2.1.rbi +1 -1
  113. data/sorbet/rbi/gems/tomlrb@2.0.3.rbi +1 -1
  114. data/sorbet/rbi/todo.rbi +1 -1
  115. data/sorbet/tapioca/require.rb +1 -1
  116. metadata +6 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cddefb59c6b268a9501c151a8c5482baedc1626ff56090a02bacd09a34e4f530
4
- data.tar.gz: 733b5e95bab3a468e4fbe54e8215c70bd4d1094e48464b25e04053d29023653e
3
+ metadata.gz: 925f4d51063a064573aba674442739e5a5fbd0e1b117c4a8480b53a7ba494104
4
+ data.tar.gz: 6ed947f526bd44c5ed8f8c0eb417dadd3c8c213d557931e294355fbdf1f858e9
5
5
  SHA512:
6
- metadata.gz: 21d8c9e39760f92e503efbcd98707a3935dffb077677f92e7165767cd7c305673a27810f75bd8640fe79bd6ffc1cd5f616e4787234d9ac4c84ddf4008be344d9
7
- data.tar.gz: 2d6aaadfd50a74cccca45efe6ccf866e4da393f2a70bac001e7afbc912acf071a95e765de2f4ee4fb67dbf515e46db61f01c4ddb2ad507dd34e4cb213885b9fc
6
+ metadata.gz: d3093484531af641d774b6fd8e18f33f960d3cc21616a362be4d460d188ddfbc72300aa1befe41e92845d4a2a34153a6d18dd25e83e5b54f36718ba1192a4f0a
7
+ data.tar.gz: e235b3bf48f544514a95a711b4d07e4ded2b529343d507e65bbab01cbcfd6c4e9b46df6b3ee6e39373d523df330b1adebbdd1389386dcd04ae253fce2e5e5e5c
@@ -1,3 +1,4 @@
1
+ # typed: true
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require 'overcommit'
@@ -1,3 +1,4 @@
1
+ # typed: true
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require 'overcommit'
@@ -1,3 +1,4 @@
1
+ # typed: false
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require 'overcommit'
data/.gitignore CHANGED
@@ -42,6 +42,10 @@ Temporary Items
42
42
  Gemfile.lock.installed
43
43
  requirements_dev.txt.installed
44
44
  types.installed
45
+ tapioca.installed
46
+
47
+ # generated from local source
48
+ config/defs.rbi
45
49
 
46
50
  # Used by CircleCI as a place to store installed gems
47
51
  /vendor
@@ -1,3 +1,4 @@
1
+ # typed: false
1
2
  # frozen_string_literal: true
2
3
 
3
4
  rule 'MD029', style: 'ordered'
data/.overcommit.yml CHANGED
@@ -85,6 +85,7 @@ PreCommit:
85
85
  - ".markdownlint_style.rb"
86
86
  Sorbet:
87
87
  enabled: true
88
+ problem_on_unmodified_line: warn
88
89
  Punchlist:
89
90
  command: ['bundle', 'exec', 'punchlist']
90
91
  enabled: true
data/.yardopts ADDED
@@ -0,0 +1,2 @@
1
+ config/**/*.rb
2
+ lib/**/*.rb
data/Gemfile CHANGED
@@ -14,6 +14,7 @@ group :development, :test do
14
14
  gem 'mocha', ['>= 2']
15
15
  # ensure recent definitions
16
16
  gem 'rbs'
17
+ gem 'sord'
17
18
  # ensure version with branch coverage
18
19
  gem 'simplecov', ['>=0.18.0']
19
20
  gem 'simplecov-lcov'
data/Gemfile.lock CHANGED
@@ -43,7 +43,7 @@ GIT
43
43
  PATH
44
44
  remote: .
45
45
  specs:
46
- checkoff (0.222.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
- build-typecheck: Gemfile.lock.installed types.installed ## Fetch information that type checking depends on
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
- types.installed: Gemfile.lock Gemfile.lock.installed ## Install Ruby dependencies
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
- touch types.installed
35
+ bin/tapioca todo
36
+ touch tapioca.installed
37
+
38
+ SOURCE_FILES = $(shell find lib -name '*.rb' -type f)
29
39
 
30
- clean-typecheck: ## Refresh information that type checking depends on
31
- bundle exec solargraph clear
32
- rm -fr .yardoc/
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
@@ -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(client, workspace: required("workspace"), is_template: nil, archived: nil, per_page: 20, options: {}); end
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.
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # typed: false
2
3
 
3
4
  # frozen_string_literal: true
4
5
 
data/lib/checkoff/cli.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- # typed: ignore
2
+ # typed: false
3
3
 
4
4
  # frozen_string_literal: true
5
5
 
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # typed: true
2
3
 
3
4
  # frozen_string_literal: true
4
5
 
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # typed: true
2
3
 
3
4
  # frozen_string_literal: true
4
5
 
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # typed: true
2
3
 
3
4
  # frozen_string_literal: true
4
5
 
@@ -1,3 +1,4 @@
1
+ # typed: false
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require 'forwardable'
@@ -1,3 +1,4 @@
1
+ # typed: true
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require_relative 'logging'
@@ -1,3 +1,4 @@
1
+ # typed: false
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require 'yaml'
@@ -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 [String,nil]
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 [String,nil]
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 [String,nil]
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 [String,nil]
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 [String,nil]
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
  module Checkoff
@@ -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<ProjectSelectorClasses::FunctionEvaluator>>]
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: false
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require 'checkoff/custom_fields'
@@ -1,3 +1,4 @@
1
+ # typed: false
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require_relative 'custom_field_variant'
@@ -1,3 +1,4 @@
1
+ # typed: false
1
2
  # frozen_string_literal: true
2
3
 
3
4
  module Checkoff
@@ -1,3 +1,4 @@
1
+ # typed: false
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require_relative 'custom_field_param_converter'
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # typed: false
2
3
 
3
4
  # frozen_string_literal: true
4
5
 
@@ -1,3 +1,4 @@
1
+ # typed: false
1
2
  # frozen_string_literal: true
2
3
 
3
4
  module Checkoff
@@ -1,3 +1,4 @@
1
+ # typed: false
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require_relative 'custom_field_param_converter'
@@ -1,3 +1,4 @@
1
+ # typed: strict
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require_relative 'search_url/parser'
@@ -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<ProjectSelectorClasses::FunctionEvaluator>>]
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: true
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require_relative '../function_evaluator'
@@ -1,3 +1,4 @@
1
+ # typed: false
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require_relative 'common/function_evaluator'
@@ -1,3 +1,4 @@
1
+ # typed: strict
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require 'checkoff/internal/logging'
@@ -1,3 +1,4 @@
1
+ # typed: true
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require_relative '../function_evaluator'
@@ -1,3 +1,4 @@
1
+ # typed: true
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require_relative 'project/function_evaluator'
@@ -1,3 +1,4 @@
1
+ # typed: false
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require_relative '../function_evaluator'
@@ -1,3 +1,4 @@
1
+ # typed: false
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require_relative 'section/function_evaluator'
@@ -1,3 +1,4 @@
1
+ # typed: true
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require_relative '../function_evaluator'
@@ -1,3 +1,4 @@
1
+ # typed: false
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require_relative 'task/function_evaluator'
@@ -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
  module Checkoff
@@ -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<TaskSelectorClasses::FunctionEvaluator>>]
38
+ # @return [Array<Class<Checkoff::SelectorClasses::Task::FunctionEvaluator>>]
38
39
  def function_evaluators
39
40
  FUNCTION_EVALUTORS
40
41
  end
@@ -1,3 +1,4 @@
1
+ # typed: false
1
2
  # frozen_string_literal: true
2
3
 
3
4
  module Checkoff
@@ -1,3 +1,4 @@
1
+ # typed: strict
1
2
  # frozen_string_literal: true
2
3
 
3
4
  module Checkoff
@@ -1,3 +1,4 @@
1
+ # typed: true
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require 'asana'
@@ -1,3 +1,4 @@
1
+ # typed: false
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require 'forwardable'
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # typed: true
2
3
 
3
4
  # frozen_string_literal: true
4
5
 
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # typed: false
2
3
 
3
4
  # frozen_string_literal: true
4
5
 
@@ -1,3 +1,5 @@
1
+ # typed: false
2
+
1
3
  # frozen_string_literal: true
2
4
 
3
5
  require_relative 'internal/config_loader'
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # typed: false
2
3
 
3
4
  # frozen_string_literal: true
4
5
 
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # typed: false
2
3
 
3
4
  # frozen_string_literal: true
4
5
 
@@ -1,3 +1,4 @@
1
+ # typed: false
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require 'forwardable'
@@ -1,3 +1,4 @@
1
+ # typed: false
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require 'forwardable'
data/lib/checkoff/tags.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # typed: true
2
3
 
3
4
  # frozen_string_literal: true
4
5
 
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # typed: false
2
3
 
3
4
  # frozen_string_literal: true
4
5
 
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # typed: false
2
3
 
3
4
  # frozen_string_literal: true
4
5
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- # typed: true
3
+ # typed: false
4
4
 
5
5
  # frozen_string_literal: true
6
6
 
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # typed: false
2
3
 
3
4
  # frozen_string_literal: true
4
5
 
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # typed: false
2
3
 
3
4
  # frozen_string_literal: true
4
5
 
@@ -1,7 +1,8 @@
1
+ # typed: strict
1
2
  # frozen_string_literal: true
2
3
 
3
4
  # Command-line and gem client for Asana (unofficial)
4
5
  module Checkoff
5
6
  # Version of library
6
- VERSION = '0.222.0'
7
+ VERSION = '0.223.0'
7
8
  end
@@ -1,3 +1,4 @@
1
+ # typed: true
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require 'asana'
data/lib/checkoff.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # typed: strict
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require 'checkoff/version'
@@ -1,4 +1,4 @@
1
- # typed: true
1
+ # typed: false
2
2
 
3
3
  # DO NOT EDIT MANUALLY
4
4
  # This is an autogenerated file for types exported from the `asana` gem.
@@ -1,4 +1,4 @@
1
- # typed: true
1
+ # typed: strict
2
2
 
3
3
  # DO NOT EDIT MANUALLY
4
4
  # This is an autogenerated file for types exported from the `ast` gem.