checkoff 0.223.0 → 0.225.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (227) hide show
  1. checksums.yaml +4 -4
  2. data/checkoff.gemspec +10 -5
  3. data/lib/checkoff/cli.rb +1 -1
  4. data/lib/checkoff/clients.rb +1 -1
  5. data/lib/checkoff/custom_fields.rb +1 -1
  6. data/lib/checkoff/events.rb +1 -1
  7. data/lib/checkoff/internal/config_loader.rb +2 -3
  8. data/lib/checkoff/internal/selector_classes/section/function_evaluator.rb +3 -2
  9. data/lib/checkoff/my_tasks.rb +1 -1
  10. data/lib/checkoff/portfolios.rb +11 -9
  11. data/lib/checkoff/projects.rb +1 -1
  12. data/lib/checkoff/sections.rb +3 -4
  13. data/lib/checkoff/tags.rb +66 -17
  14. data/lib/checkoff/tasks.rb +1 -1
  15. data/lib/checkoff/version.rb +1 -1
  16. data/lib/checkoff/workspaces.rb +1 -1
  17. data/rbi/checkoff.rbi +4529 -0
  18. data/sig/checkoff.rbs +3749 -0
  19. metadata +4 -210
  20. data/.circleci/config.yml +0 -291
  21. data/.envrc +0 -9
  22. data/.git-hooks/pre_commit/circle_ci.rb +0 -26
  23. data/.git-hooks/pre_commit/punchlist.rb +0 -52
  24. data/.git-hooks/pre_commit/solargraph_typecheck.rb +0 -77
  25. data/.gitattributes +0 -6
  26. data/.gitignore +0 -65
  27. data/.markdownlint_style.rb +0 -4
  28. data/.mdlrc +0 -1
  29. data/.overcommit.yml +0 -115
  30. data/.rubocop.yml +0 -143
  31. data/.rubocop_todo.yml +0 -90
  32. data/.solargraph.yml +0 -35
  33. data/.yamllint.yml +0 -8
  34. data/.yardopts +0 -2
  35. data/CODE_OF_CONDUCT.md +0 -133
  36. data/CONTRIBUTING.rst +0 -75
  37. data/DEVELOPMENT.md +0 -69
  38. data/GLOSSARY.md +0 -16
  39. data/Gemfile +0 -67
  40. data/Gemfile.lock +0 -351
  41. data/LICENSE +0 -21
  42. data/Makefile +0 -139
  43. data/bin/brakeman +0 -27
  44. data/bin/bump +0 -29
  45. data/bin/checkoff +0 -29
  46. data/bin/console +0 -15
  47. data/bin/overcommit +0 -29
  48. data/bin/overcommit_branch +0 -114
  49. data/bin/rake +0 -29
  50. data/bin/rubocop +0 -27
  51. data/bin/setup +0 -8
  52. data/bin/solargraph +0 -27
  53. data/bin/sord +0 -27
  54. data/bin/spoom +0 -27
  55. data/bin/srb +0 -27
  56. data/bin/srb-rbi +0 -27
  57. data/bin/tapioca +0 -27
  58. data/bin/yard +0 -27
  59. data/config/annotations_asana.rb +0 -253
  60. data/config/annotations_misc.rb +0 -68
  61. data/config/env.1p +0 -2
  62. data/docs/.gitignore +0 -3
  63. data/docs/cookiecutter_input.json +0 -17
  64. data/docs/example_project.png +0 -0
  65. data/fix.sh +0 -534
  66. data/metrics/bigfiles_high_water_mark +0 -1
  67. data/metrics/brakeman_high_water_mark +0 -1
  68. data/metrics/bundle-audit_high_water_mark +0 -1
  69. data/metrics/cane_high_water_mark +0 -1
  70. data/metrics/eslint_high_water_mark +0 -1
  71. data/metrics/flake8_high_water_mark +0 -1
  72. data/metrics/flay_high_water_mark +0 -1
  73. data/metrics/flog_high_water_mark +0 -1
  74. data/metrics/jscs_high_water_mark +0 -1
  75. data/metrics/mdl_high_water_mark +0 -1
  76. data/metrics/pep8_high_water_mark +0 -1
  77. data/metrics/punchlist_high_water_mark +0 -1
  78. data/metrics/pycodestyle_high_water_mark +0 -1
  79. data/metrics/rails_best_practices_high_water_mark +0 -1
  80. data/metrics/rubocop_high_water_mark +0 -1
  81. data/metrics/scalastyle_high_water_mark +0 -1
  82. data/metrics/shellcheck_high_water_mark +0 -1
  83. data/package.json +0 -9
  84. data/rakelib/citest.rake +0 -4
  85. data/rakelib/clear_metrics.rake +0 -9
  86. data/rakelib/console.rake +0 -15
  87. data/rakelib/default.rake +0 -4
  88. data/rakelib/doc.rake +0 -6
  89. data/rakelib/gem_tasks.rake +0 -3
  90. data/rakelib/localtest.rake +0 -4
  91. data/rakelib/overcommit.rake +0 -6
  92. data/rakelib/quality.rake +0 -4
  93. data/rakelib/repl.rake +0 -4
  94. data/rakelib/test.rake +0 -10
  95. data/rakelib/trigger_next_builds.rake +0 -7
  96. data/rakelib/undercover.rake +0 -8
  97. data/requirements_dev.txt +0 -2
  98. data/sorbet/config +0 -4
  99. data/sorbet/rbi/annotations/.gitattributes +0 -1
  100. data/sorbet/rbi/annotations/activesupport.rbi +0 -453
  101. data/sorbet/rbi/annotations/faraday.rbi +0 -17
  102. data/sorbet/rbi/annotations/minitest.rbi +0 -119
  103. data/sorbet/rbi/annotations/mocha.rbi +0 -34
  104. data/sorbet/rbi/annotations/rainbow.rbi +0 -269
  105. data/sorbet/rbi/annotations/webmock.rbi +0 -9
  106. data/sorbet/rbi/dsl/.gitattributes +0 -1
  107. data/sorbet/rbi/dsl/active_support/callbacks.rbi +0 -23
  108. data/sorbet/rbi/gems/.gitattributes +0 -1
  109. data/sorbet/rbi/gems/activesupport@7.1.5.rbi +0 -18746
  110. data/sorbet/rbi/gems/addressable@2.8.6.rbi +0 -1994
  111. data/sorbet/rbi/gems/ansi@1.5.0.rbi +0 -688
  112. data/sorbet/rbi/gems/asana@0.10.6-ab9393136d9ca59b75e42a661fdddc1c65c8f7c3.rbi +0 -6142
  113. data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -585
  114. data/sorbet/rbi/gems/backport@1.2.0.rbi +0 -523
  115. data/sorbet/rbi/gems/base64@0.2.0.rbi +0 -509
  116. data/sorbet/rbi/gems/benchmark@0.4.0.rbi +0 -618
  117. data/sorbet/rbi/gems/bigdecimal@3.1.5.rbi +0 -78
  118. data/sorbet/rbi/gems/brakeman@6.2.2.rbi +0 -222
  119. data/sorbet/rbi/gems/builder@3.2.4.rbi +0 -505
  120. data/sorbet/rbi/gems/bump@0.10.0.rbi +0 -169
  121. data/sorbet/rbi/gems/cache@0.4.1.rbi +0 -211
  122. data/sorbet/rbi/gems/cache_method@0.2.7.rbi +0 -293
  123. data/sorbet/rbi/gems/chef-utils@18.3.0.rbi +0 -9
  124. data/sorbet/rbi/gems/childprocess@5.1.0.rbi +0 -383
  125. data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -3427
  126. data/sorbet/rbi/gems/commander@4.6.0.rbi +0 -9
  127. data/sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi +0 -11591
  128. data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +0 -9
  129. data/sorbet/rbi/gems/crack@0.4.5.rbi +0 -145
  130. data/sorbet/rbi/gems/diff-lcs@1.5.1.rbi +0 -969
  131. data/sorbet/rbi/gems/docile@1.4.0.rbi +0 -377
  132. data/sorbet/rbi/gems/drb@2.2.1.rbi +0 -1347
  133. data/sorbet/rbi/gems/e2mmap@0.1.0.rbi +0 -9
  134. data/sorbet/rbi/gems/erubi@1.13.0.rbi +0 -152
  135. data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +0 -222
  136. data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +0 -126
  137. data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +0 -136
  138. data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +0 -145
  139. data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +0 -259
  140. data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +0 -142
  141. data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +0 -118
  142. data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +0 -125
  143. data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +0 -133
  144. data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +0 -198
  145. data/sorbet/rbi/gems/faraday@1.10.3.rbi +0 -2729
  146. data/sorbet/rbi/gems/faraday_middleware-multi_json@0.0.6.rbi +0 -29
  147. data/sorbet/rbi/gems/faraday_middleware@1.2.0.rbi +0 -1004
  148. data/sorbet/rbi/gems/gli@2.22.0.rbi +0 -9
  149. data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +0 -351
  150. data/sorbet/rbi/gems/highline@2.0.3.rbi +0 -9
  151. data/sorbet/rbi/gems/i18n@1.14.6.rbi +0 -2359
  152. data/sorbet/rbi/gems/imagen@0.1.8.rbi +0 -340
  153. data/sorbet/rbi/gems/iniparse@1.5.0.rbi +0 -899
  154. data/sorbet/rbi/gems/jaro_winkler@1.6.0.rbi +0 -22
  155. data/sorbet/rbi/gems/json@2.7.1.rbi +0 -1562
  156. data/sorbet/rbi/gems/jwt@2.7.1.rbi +0 -1405
  157. data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +0 -128
  158. data/sorbet/rbi/gems/kramdown@2.4.0.rbi +0 -3272
  159. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +0 -14238
  160. data/sorbet/rbi/gems/logger@1.6.2.rbi +0 -923
  161. data/sorbet/rbi/gems/mdl@0.13.0.rbi +0 -445
  162. data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -273
  163. data/sorbet/rbi/gems/mime-types-data@3.2023.1205.rbi +0 -127
  164. data/sorbet/rbi/gems/mime-types@3.5.1.rbi +0 -1252
  165. data/sorbet/rbi/gems/minitest-profile@0.0.2.rbi +0 -136
  166. data/sorbet/rbi/gems/minitest-reporters@1.6.1.rbi +0 -1014
  167. data/sorbet/rbi/gems/minitest@5.21.1.rbi +0 -1539
  168. data/sorbet/rbi/gems/mixlib-cli@2.1.8.rbi +0 -314
  169. data/sorbet/rbi/gems/mixlib-config@3.0.27.rbi +0 -581
  170. data/sorbet/rbi/gems/mixlib-shellout@3.2.7.rbi +0 -629
  171. data/sorbet/rbi/gems/mocha@2.1.0.rbi +0 -12
  172. data/sorbet/rbi/gems/multi_json@1.15.0.rbi +0 -268
  173. data/sorbet/rbi/gems/multi_xml@0.6.0.rbi +0 -102
  174. data/sorbet/rbi/gems/multipart-post@2.3.0.rbi +0 -234
  175. data/sorbet/rbi/gems/mutex_m@0.3.0.rbi +0 -97
  176. data/sorbet/rbi/gems/netrc@0.11.0.rbi +0 -159
  177. data/sorbet/rbi/gems/nokogiri@1.17.0.rbi +0 -8201
  178. data/sorbet/rbi/gems/oauth2@1.4.11.rbi +0 -833
  179. data/sorbet/rbi/gems/overcommit@0.64.1.rbi +0 -2400
  180. data/sorbet/rbi/gems/parallel@1.23.0.rbi +0 -274
  181. data/sorbet/rbi/gems/parlour@5.0.0.rbi +0 -3007
  182. data/sorbet/rbi/gems/parser@3.2.2.4.rbi +0 -7253
  183. data/sorbet/rbi/gems/prism@1.2.0.rbi +0 -39085
  184. data/sorbet/rbi/gems/pry@0.14.2.rbi +0 -10070
  185. data/sorbet/rbi/gems/public_suffix@5.0.4.rbi +0 -936
  186. data/sorbet/rbi/gems/punchlist@1.3.2.rbi +0 -173
  187. data/sorbet/rbi/gems/racc@1.8.1.rbi +0 -162
  188. data/sorbet/rbi/gems/rack@3.1.8.rbi +0 -4896
  189. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +0 -403
  190. data/sorbet/rbi/gems/rake@13.1.0.rbi +0 -3022
  191. data/sorbet/rbi/gems/rbi@0.2.1.rbi +0 -4535
  192. data/sorbet/rbi/gems/rbs@2.8.4.rbi +0 -5613
  193. data/sorbet/rbi/gems/regexp_parser@2.8.3.rbi +0 -3750
  194. data/sorbet/rbi/gems/reverse_markdown@2.1.1.rbi +0 -390
  195. data/sorbet/rbi/gems/rexml@3.3.9.rbi +0 -4964
  196. data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +0 -7127
  197. data/sorbet/rbi/gems/rubocop-minitest@0.34.5.rbi +0 -2577
  198. data/sorbet/rbi/gems/rubocop-performance@1.20.2.rbi +0 -3262
  199. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +0 -329
  200. data/sorbet/rbi/gems/rubocop-rspec@3.0.0.rbi +0 -7546
  201. data/sorbet/rbi/gems/rubocop@1.59.0.rbi +0 -57238
  202. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +0 -1318
  203. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +0 -9
  204. data/sorbet/rbi/gems/rugged@1.6.3.rbi +0 -1577
  205. data/sorbet/rbi/gems/securerandom@0.4.0.rbi +0 -75
  206. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -217
  207. data/sorbet/rbi/gems/simplecov-lcov@0.8.0.rbi +0 -256
  208. data/sorbet/rbi/gems/simplecov@0.22.0.rbi +0 -2149
  209. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +0 -9
  210. data/sorbet/rbi/gems/solargraph-rails@1.1.0-9dc37915bd4f3b169046e34db6fb32193ab347d8.rbi +0 -320
  211. data/sorbet/rbi/gems/solargraph@0.50.1-904b9304770a59fac393c5cc3cad481e5bdf0fd8.rbi +0 -9396
  212. data/sorbet/rbi/gems/sord@5.1.0.rbi +0 -820
  213. data/sorbet/rbi/gems/source_finder@3.2.1.rbi +0 -317
  214. data/sorbet/rbi/gems/spoom@1.5.0.rbi +0 -4932
  215. data/sorbet/rbi/gems/tapioca@0.16.5.rbi +0 -3617
  216. data/sorbet/rbi/gems/thor@1.3.2.rbi +0 -4378
  217. data/sorbet/rbi/gems/tilt@2.4.0.rbi +0 -933
  218. data/sorbet/rbi/gems/tomlrb@2.0.3.rbi +0 -9
  219. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +0 -5918
  220. data/sorbet/rbi/gems/undercover@0.5.0.rbi +0 -433
  221. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -66
  222. data/sorbet/rbi/gems/webmock@3.19.1.rbi +0 -1769
  223. data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +0 -435
  224. data/sorbet/rbi/gems/yard@0.9.37.rbi +0 -18406
  225. data/sorbet/rbi/todo.rbi +0 -11
  226. data/sorbet/tapioca/config.yml +0 -13
  227. data/sorbet/tapioca/require.rb +0 -4
@@ -1,377 +0,0 @@
1
- # typed: true
2
-
3
- # DO NOT EDIT MANUALLY
4
- # This is an autogenerated file for types exported from the `docile` gem.
5
- # Please instead update this file by running `bin/tapioca gem docile`.
6
-
7
-
8
- # Docile keeps your Ruby DSLs tame and well-behaved.
9
- #
10
- # source://docile//lib/docile/version.rb#3
11
- module Docile
12
- extend ::Docile::Execution
13
-
14
- private
15
-
16
- # Execute a block in the context of an object whose methods represent the
17
- # commands in a DSL.
18
- #
19
- # Use this method to execute an *imperative* DSL, which means that:
20
- #
21
- # 1. Each command mutates the state of the DSL context object
22
- # 2. The return value of each command is ignored
23
- # 3. The final return value is the original context object
24
- #
25
- # @example Use a String as a DSL
26
- # Docile.dsl_eval("Hello, world!") do
27
- # reverse!
28
- # upcase!
29
- # end
30
- # #=> "!DLROW ,OLLEH"
31
- # @example Use an Array as a DSL
32
- # Docile.dsl_eval([]) do
33
- # push 1
34
- # push 2
35
- # pop
36
- # push 3
37
- # end
38
- # #=> [1, 3]
39
- # @note Use with an *imperative* DSL (commands modify the context object)
40
- # @param dsl [Object] context object whose methods make up the DSL
41
- # @param args [Array] arguments to be passed to the block
42
- # @param block [Proc] the block of DSL commands to be executed against the
43
- # `dsl` context object
44
- # @return [Object] the `dsl` context object after executing the block
45
- #
46
- # source://docile//lib/docile.rb#45
47
- def dsl_eval(dsl, *args, **_arg2, &block); end
48
-
49
- # Execute a block in the context of an immutable object whose methods,
50
- # and the methods of their return values, represent the commands in a DSL.
51
- #
52
- # Use this method to execute a *functional* DSL, which means that:
53
- #
54
- # 1. The original DSL context object is never mutated
55
- # 2. Each command returns the next DSL context object
56
- # 3. The final return value is the value returned by the last command
57
- #
58
- # @example Use a frozen String as a DSL
59
- # Docile.dsl_eval_immutable("I'm immutable!".freeze) do
60
- # reverse
61
- # upcase
62
- # end
63
- # #=> "!ELBATUMMI M'I"
64
- # @example Use a Float as a DSL
65
- # Docile.dsl_eval_immutable(84.5) do
66
- # fdiv(2)
67
- # floor
68
- # end
69
- # #=> 42
70
- # @note Use with a *functional* DSL (commands return successor
71
- # context objects)
72
- # @param dsl [Object] immutable context object whose methods make up the
73
- # initial DSL
74
- # @param args [Array] arguments to be passed to the block
75
- # @param block [Proc] the block of DSL commands to be executed against the
76
- # `dsl` context object and successor return values
77
- # @return [Object] the return value of the final command in the block
78
- #
79
- # source://docile//lib/docile.rb#128
80
- def dsl_eval_immutable(dsl, *args, **_arg2, &block); end
81
-
82
- # Execute a block in the context of an object whose methods represent the
83
- # commands in a DSL, and return *the block's return value*.
84
- #
85
- # Use this method to execute an *imperative* DSL, which means that:
86
- #
87
- # 1. Each command mutates the state of the DSL context object
88
- # 2. The return value of each command is ignored
89
- # 3. The final return value is the original context object
90
- #
91
- # @example Use a String as a DSL
92
- # Docile.dsl_eval_with_block_return("Hello, world!") do
93
- # reverse!
94
- # upcase!
95
- # first
96
- # end
97
- # #=> "!"
98
- # @example Use an Array as a DSL
99
- # Docile.dsl_eval_with_block_return([]) do
100
- # push "a"
101
- # push "b"
102
- # pop
103
- # push "c"
104
- # length
105
- # end
106
- # #=> 2
107
- # @note Use with an *imperative* DSL (commands modify the context object)
108
- # @param dsl [Object] context object whose methods make up the DSL
109
- # @param args [Array] arguments to be passed to the block
110
- # @param block [Proc] the block of DSL commands to be executed against the
111
- # `dsl` context object
112
- # @return [Object] the return value from executing the block
113
- #
114
- # source://docile//lib/docile.rb#87
115
- def dsl_eval_with_block_return(dsl, *args, **_arg2, &block); end
116
-
117
- class << self
118
- # Execute a block in the context of an object whose methods represent the
119
- # commands in a DSL.
120
- #
121
- # Use this method to execute an *imperative* DSL, which means that:
122
- #
123
- # 1. Each command mutates the state of the DSL context object
124
- # 2. The return value of each command is ignored
125
- # 3. The final return value is the original context object
126
- #
127
- # @example Use a String as a DSL
128
- # Docile.dsl_eval("Hello, world!") do
129
- # reverse!
130
- # upcase!
131
- # end
132
- # #=> "!DLROW ,OLLEH"
133
- # @example Use an Array as a DSL
134
- # Docile.dsl_eval([]) do
135
- # push 1
136
- # push 2
137
- # pop
138
- # push 3
139
- # end
140
- # #=> [1, 3]
141
- # @note Use with an *imperative* DSL (commands modify the context object)
142
- # @param dsl [Object] context object whose methods make up the DSL
143
- # @param args [Array] arguments to be passed to the block
144
- # @param block [Proc] the block of DSL commands to be executed against the
145
- # `dsl` context object
146
- # @return [Object] the `dsl` context object after executing the block
147
- #
148
- # source://docile//lib/docile.rb#45
149
- def dsl_eval(dsl, *args, **_arg2, &block); end
150
-
151
- # Execute a block in the context of an immutable object whose methods,
152
- # and the methods of their return values, represent the commands in a DSL.
153
- #
154
- # Use this method to execute a *functional* DSL, which means that:
155
- #
156
- # 1. The original DSL context object is never mutated
157
- # 2. Each command returns the next DSL context object
158
- # 3. The final return value is the value returned by the last command
159
- #
160
- # @example Use a frozen String as a DSL
161
- # Docile.dsl_eval_immutable("I'm immutable!".freeze) do
162
- # reverse
163
- # upcase
164
- # end
165
- # #=> "!ELBATUMMI M'I"
166
- # @example Use a Float as a DSL
167
- # Docile.dsl_eval_immutable(84.5) do
168
- # fdiv(2)
169
- # floor
170
- # end
171
- # #=> 42
172
- # @note Use with a *functional* DSL (commands return successor
173
- # context objects)
174
- # @param dsl [Object] immutable context object whose methods make up the
175
- # initial DSL
176
- # @param args [Array] arguments to be passed to the block
177
- # @param block [Proc] the block of DSL commands to be executed against the
178
- # `dsl` context object and successor return values
179
- # @return [Object] the return value of the final command in the block
180
- #
181
- # source://docile//lib/docile.rb#128
182
- def dsl_eval_immutable(dsl, *args, **_arg2, &block); end
183
-
184
- # Execute a block in the context of an object whose methods represent the
185
- # commands in a DSL, and return *the block's return value*.
186
- #
187
- # Use this method to execute an *imperative* DSL, which means that:
188
- #
189
- # 1. Each command mutates the state of the DSL context object
190
- # 2. The return value of each command is ignored
191
- # 3. The final return value is the original context object
192
- #
193
- # @example Use a String as a DSL
194
- # Docile.dsl_eval_with_block_return("Hello, world!") do
195
- # reverse!
196
- # upcase!
197
- # first
198
- # end
199
- # #=> "!"
200
- # @example Use an Array as a DSL
201
- # Docile.dsl_eval_with_block_return([]) do
202
- # push "a"
203
- # push "b"
204
- # pop
205
- # push "c"
206
- # length
207
- # end
208
- # #=> 2
209
- # @note Use with an *imperative* DSL (commands modify the context object)
210
- # @param dsl [Object] context object whose methods make up the DSL
211
- # @param args [Array] arguments to be passed to the block
212
- # @param block [Proc] the block of DSL commands to be executed against the
213
- # `dsl` context object
214
- # @return [Object] the return value from executing the block
215
- #
216
- # source://docile//lib/docile.rb#87
217
- def dsl_eval_with_block_return(dsl, *args, **_arg2, &block); end
218
- end
219
- end
220
-
221
- # This is used to remove entries pointing to Docile's source files
222
- # from {Exception#backtrace} and {Exception#backtrace_locations}.
223
- #
224
- # If {NoMethodError} is caught then the exception object will be extended
225
- # by this module to add filter functionalities.
226
- #
227
- # @api private
228
- #
229
- # source://docile//lib/docile/backtrace_filter.rb#11
230
- module Docile::BacktraceFilter
231
- # @api private
232
- #
233
- # source://docile//lib/docile/backtrace_filter.rb#14
234
- def backtrace; end
235
-
236
- # @api private
237
- #
238
- # source://docile//lib/docile/backtrace_filter.rb#19
239
- def backtrace_locations; end
240
- end
241
-
242
- # @api private
243
- #
244
- # source://docile//lib/docile/backtrace_filter.rb#12
245
- Docile::BacktraceFilter::FILTER_PATTERN = T.let(T.unsafe(nil), Regexp)
246
-
247
- # Operates in the same manner as {FallbackContextProxy}, but replacing
248
- # the primary `receiver` object with the result of each proxied method.
249
- #
250
- # This is useful for implementing DSL evaluation for immutable context
251
- # objects.
252
- #
253
- #
254
- # @api private
255
- # @see Docile.dsl_eval_immutable
256
- #
257
- # source://docile//lib/docile/chaining_fallback_context_proxy.rb#19
258
- class Docile::ChainingFallbackContextProxy < ::Docile::FallbackContextProxy
259
- # Proxy methods as in {FallbackContextProxy#method_missing}, replacing
260
- # `receiver` with the returned value.
261
- #
262
- # @api private
263
- #
264
- # source://docile//lib/docile/chaining_fallback_context_proxy.rb#20
265
- def method_missing(method, *args, **_arg2, &block); end
266
- end
267
-
268
- # A namespace for functions relating to the execution of a block against a
269
- # proxy object.
270
- #
271
- # @api private
272
- #
273
- # source://docile//lib/docile/execution.rb#8
274
- module Docile::Execution
275
- private
276
-
277
- # Execute a block in the context of an object whose methods represent the
278
- # commands in a DSL, using a specific proxy class.
279
- #
280
- # @api private
281
- # @param dsl [Object] context object whose methods make up the
282
- # (initial) DSL
283
- # @param proxy_type [FallbackContextProxy, ChainingFallbackContextProxy] which class to instantiate as proxy context
284
- # @param args [Array] arguments to be passed to the block
285
- # @param block [Proc] the block of DSL commands to be executed
286
- # @return [Object] the return value of the block
287
- #
288
- # source://docile//lib/docile/execution.rb#19
289
- def exec_in_proxy_context(dsl, proxy_type, *args, **_arg3, &block); end
290
-
291
- class << self
292
- # Execute a block in the context of an object whose methods represent the
293
- # commands in a DSL, using a specific proxy class.
294
- #
295
- # @api private
296
- # @param dsl [Object] context object whose methods make up the
297
- # (initial) DSL
298
- # @param proxy_type [FallbackContextProxy, ChainingFallbackContextProxy] which class to instantiate as proxy context
299
- # @param args [Array] arguments to be passed to the block
300
- # @param block [Proc] the block of DSL commands to be executed
301
- # @return [Object] the return value of the block
302
- #
303
- # source://docile//lib/docile/execution.rb#19
304
- def exec_in_proxy_context(dsl, proxy_type, *args, **_arg3, &block); end
305
- end
306
- end
307
-
308
- # A proxy object with a primary receiver as well as a secondary
309
- # fallback receiver.
310
- #
311
- # Will attempt to forward all method calls first to the primary receiver,
312
- # and then to the fallback receiver if the primary does not handle that
313
- # method.
314
- #
315
- # This is useful for implementing DSL evaluation in the context of an object.
316
- #
317
- #
318
- # @api private
319
- # @see Docile.dsl_eval
320
- #
321
- # source://docile//lib/docile/fallback_context_proxy.rb#20
322
- class Docile::FallbackContextProxy
323
- # @api private
324
- # @param receiver [Object] the primary proxy target to which all methods
325
- # initially will be forwarded
326
- # @param fallback [Object] the fallback proxy target to which any methods
327
- # not handled by `receiver` will be forwarded
328
- # @return [FallbackContextProxy] a new instance of FallbackContextProxy
329
- #
330
- # source://docile//lib/docile/fallback_context_proxy.rb#46
331
- def initialize(receiver, fallback); end
332
-
333
- # @api private
334
- # @return [Array<Symbol>] Instance variable names, excluding
335
- # {NON_PROXIED_INSTANCE_VARIABLES}
336
- #
337
- # source://docile//lib/docile/fallback_context_proxy.rb#85
338
- def instance_variables; end
339
-
340
- # Proxy all methods, excluding {NON_PROXIED_METHODS}, first to `receiver`
341
- # and then to `fallback` if not found.
342
- #
343
- # @api private
344
- #
345
- # source://docile//lib/docile/fallback_context_proxy.rb#91
346
- def method_missing(method, *args, **_arg2, &block); end
347
- end
348
-
349
- # The set of methods which will **not** fallback from the block's context
350
- # to the dsl object.
351
- #
352
- # @api private
353
- #
354
- # source://docile//lib/docile/fallback_context_proxy.rb#30
355
- Docile::FallbackContextProxy::NON_FALLBACK_METHODS = T.let(T.unsafe(nil), Set)
356
-
357
- # The set of instance variables which are local to this object and hidden.
358
- # All other instance variables will be copied in and out of this object
359
- # from the scope in which this proxy was created.
360
- #
361
- # @api private
362
- #
363
- # source://docile//lib/docile/fallback_context_proxy.rb#35
364
- Docile::FallbackContextProxy::NON_PROXIED_INSTANCE_VARIABLES = T.let(T.unsafe(nil), Set)
365
-
366
- # The set of methods which will **not** be proxied, but instead answered
367
- # by this object directly.
368
- #
369
- # @api private
370
- #
371
- # source://docile//lib/docile/fallback_context_proxy.rb#23
372
- Docile::FallbackContextProxy::NON_PROXIED_METHODS = T.let(T.unsafe(nil), Set)
373
-
374
- # The current version of this library
375
- #
376
- # source://docile//lib/docile/version.rb#5
377
- Docile::VERSION = T.let(T.unsafe(nil), String)