checkoff 0.223.0 → 0.226.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/checkoff.gemspec +10 -5
- data/lib/checkoff/attachments.rb +1 -1
- data/lib/checkoff/cli.rb +1 -1
- data/lib/checkoff/clients.rb +1 -1
- data/lib/checkoff/custom_fields.rb +1 -1
- data/lib/checkoff/events.rb +1 -1
- data/lib/checkoff/internal/config_loader.rb +2 -3
- data/lib/checkoff/internal/selector_classes/section/function_evaluator.rb +3 -2
- data/lib/checkoff/my_tasks.rb +1 -1
- data/lib/checkoff/portfolios.rb +11 -9
- data/lib/checkoff/projects.rb +1 -1
- data/lib/checkoff/sections.rb +4 -5
- data/lib/checkoff/tags.rb +66 -17
- data/lib/checkoff/tasks.rb +1 -1
- data/lib/checkoff/version.rb +1 -1
- data/lib/checkoff/workspaces.rb +1 -1
- data/rbi/checkoff.rbi +4529 -0
- data/sig/checkoff.rbs +3749 -0
- metadata +5 -211
- data/.circleci/config.yml +0 -291
- data/.envrc +0 -9
- data/.git-hooks/pre_commit/circle_ci.rb +0 -26
- data/.git-hooks/pre_commit/punchlist.rb +0 -52
- data/.git-hooks/pre_commit/solargraph_typecheck.rb +0 -77
- data/.gitattributes +0 -6
- data/.gitignore +0 -65
- data/.markdownlint_style.rb +0 -4
- data/.mdlrc +0 -1
- data/.overcommit.yml +0 -115
- data/.rubocop.yml +0 -143
- data/.rubocop_todo.yml +0 -90
- data/.solargraph.yml +0 -35
- data/.yamllint.yml +0 -8
- data/.yardopts +0 -2
- data/CODE_OF_CONDUCT.md +0 -133
- data/CONTRIBUTING.rst +0 -75
- data/DEVELOPMENT.md +0 -69
- data/GLOSSARY.md +0 -16
- data/Gemfile +0 -67
- data/Gemfile.lock +0 -351
- data/LICENSE +0 -21
- data/Makefile +0 -139
- data/bin/brakeman +0 -27
- data/bin/bump +0 -29
- data/bin/checkoff +0 -29
- data/bin/console +0 -15
- data/bin/overcommit +0 -29
- data/bin/overcommit_branch +0 -114
- data/bin/rake +0 -29
- data/bin/rubocop +0 -27
- data/bin/setup +0 -8
- data/bin/solargraph +0 -27
- data/bin/sord +0 -27
- data/bin/spoom +0 -27
- data/bin/srb +0 -27
- data/bin/srb-rbi +0 -27
- data/bin/tapioca +0 -27
- data/bin/yard +0 -27
- data/config/annotations_asana.rb +0 -253
- data/config/annotations_misc.rb +0 -68
- data/config/env.1p +0 -2
- data/docs/.gitignore +0 -3
- data/docs/cookiecutter_input.json +0 -17
- data/docs/example_project.png +0 -0
- data/fix.sh +0 -534
- data/metrics/bigfiles_high_water_mark +0 -1
- data/metrics/brakeman_high_water_mark +0 -1
- data/metrics/bundle-audit_high_water_mark +0 -1
- data/metrics/cane_high_water_mark +0 -1
- data/metrics/eslint_high_water_mark +0 -1
- data/metrics/flake8_high_water_mark +0 -1
- data/metrics/flay_high_water_mark +0 -1
- data/metrics/flog_high_water_mark +0 -1
- data/metrics/jscs_high_water_mark +0 -1
- data/metrics/mdl_high_water_mark +0 -1
- data/metrics/pep8_high_water_mark +0 -1
- data/metrics/punchlist_high_water_mark +0 -1
- data/metrics/pycodestyle_high_water_mark +0 -1
- data/metrics/rails_best_practices_high_water_mark +0 -1
- data/metrics/rubocop_high_water_mark +0 -1
- data/metrics/scalastyle_high_water_mark +0 -1
- data/metrics/shellcheck_high_water_mark +0 -1
- data/package.json +0 -9
- data/rakelib/citest.rake +0 -4
- data/rakelib/clear_metrics.rake +0 -9
- data/rakelib/console.rake +0 -15
- data/rakelib/default.rake +0 -4
- data/rakelib/doc.rake +0 -6
- data/rakelib/gem_tasks.rake +0 -3
- data/rakelib/localtest.rake +0 -4
- data/rakelib/overcommit.rake +0 -6
- data/rakelib/quality.rake +0 -4
- data/rakelib/repl.rake +0 -4
- data/rakelib/test.rake +0 -10
- data/rakelib/trigger_next_builds.rake +0 -7
- data/rakelib/undercover.rake +0 -8
- data/requirements_dev.txt +0 -2
- data/sorbet/config +0 -4
- data/sorbet/rbi/annotations/.gitattributes +0 -1
- data/sorbet/rbi/annotations/activesupport.rbi +0 -453
- data/sorbet/rbi/annotations/faraday.rbi +0 -17
- data/sorbet/rbi/annotations/minitest.rbi +0 -119
- data/sorbet/rbi/annotations/mocha.rbi +0 -34
- data/sorbet/rbi/annotations/rainbow.rbi +0 -269
- data/sorbet/rbi/annotations/webmock.rbi +0 -9
- data/sorbet/rbi/dsl/.gitattributes +0 -1
- data/sorbet/rbi/dsl/active_support/callbacks.rbi +0 -23
- data/sorbet/rbi/gems/.gitattributes +0 -1
- data/sorbet/rbi/gems/activesupport@7.1.5.rbi +0 -18746
- data/sorbet/rbi/gems/addressable@2.8.6.rbi +0 -1994
- data/sorbet/rbi/gems/ansi@1.5.0.rbi +0 -688
- data/sorbet/rbi/gems/asana@0.10.6-ab9393136d9ca59b75e42a661fdddc1c65c8f7c3.rbi +0 -6142
- data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -585
- data/sorbet/rbi/gems/backport@1.2.0.rbi +0 -523
- data/sorbet/rbi/gems/base64@0.2.0.rbi +0 -509
- data/sorbet/rbi/gems/benchmark@0.4.0.rbi +0 -618
- data/sorbet/rbi/gems/bigdecimal@3.1.5.rbi +0 -78
- data/sorbet/rbi/gems/brakeman@6.2.2.rbi +0 -222
- data/sorbet/rbi/gems/builder@3.2.4.rbi +0 -505
- data/sorbet/rbi/gems/bump@0.10.0.rbi +0 -169
- data/sorbet/rbi/gems/cache@0.4.1.rbi +0 -211
- data/sorbet/rbi/gems/cache_method@0.2.7.rbi +0 -293
- data/sorbet/rbi/gems/chef-utils@18.3.0.rbi +0 -9
- data/sorbet/rbi/gems/childprocess@5.1.0.rbi +0 -383
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -3427
- data/sorbet/rbi/gems/commander@4.6.0.rbi +0 -9
- data/sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi +0 -11591
- data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +0 -9
- data/sorbet/rbi/gems/crack@0.4.5.rbi +0 -145
- data/sorbet/rbi/gems/diff-lcs@1.5.1.rbi +0 -969
- data/sorbet/rbi/gems/docile@1.4.0.rbi +0 -377
- data/sorbet/rbi/gems/drb@2.2.1.rbi +0 -1347
- data/sorbet/rbi/gems/e2mmap@0.1.0.rbi +0 -9
- data/sorbet/rbi/gems/erubi@1.13.0.rbi +0 -152
- data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +0 -222
- data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +0 -126
- data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +0 -136
- data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +0 -145
- data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +0 -259
- data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +0 -142
- data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +0 -118
- data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +0 -125
- data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +0 -133
- data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +0 -198
- data/sorbet/rbi/gems/faraday@1.10.3.rbi +0 -2729
- data/sorbet/rbi/gems/faraday_middleware-multi_json@0.0.6.rbi +0 -29
- data/sorbet/rbi/gems/faraday_middleware@1.2.0.rbi +0 -1004
- data/sorbet/rbi/gems/gli@2.22.0.rbi +0 -9
- data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +0 -351
- data/sorbet/rbi/gems/highline@2.0.3.rbi +0 -9
- data/sorbet/rbi/gems/i18n@1.14.6.rbi +0 -2359
- data/sorbet/rbi/gems/imagen@0.1.8.rbi +0 -340
- data/sorbet/rbi/gems/iniparse@1.5.0.rbi +0 -899
- data/sorbet/rbi/gems/jaro_winkler@1.6.0.rbi +0 -22
- data/sorbet/rbi/gems/json@2.7.1.rbi +0 -1562
- data/sorbet/rbi/gems/jwt@2.7.1.rbi +0 -1405
- data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +0 -128
- data/sorbet/rbi/gems/kramdown@2.4.0.rbi +0 -3272
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +0 -14238
- data/sorbet/rbi/gems/logger@1.6.2.rbi +0 -923
- data/sorbet/rbi/gems/mdl@0.13.0.rbi +0 -445
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -273
- data/sorbet/rbi/gems/mime-types-data@3.2023.1205.rbi +0 -127
- data/sorbet/rbi/gems/mime-types@3.5.1.rbi +0 -1252
- data/sorbet/rbi/gems/minitest-profile@0.0.2.rbi +0 -136
- data/sorbet/rbi/gems/minitest-reporters@1.6.1.rbi +0 -1014
- data/sorbet/rbi/gems/minitest@5.21.1.rbi +0 -1539
- data/sorbet/rbi/gems/mixlib-cli@2.1.8.rbi +0 -314
- data/sorbet/rbi/gems/mixlib-config@3.0.27.rbi +0 -581
- data/sorbet/rbi/gems/mixlib-shellout@3.2.7.rbi +0 -629
- data/sorbet/rbi/gems/mocha@2.1.0.rbi +0 -12
- data/sorbet/rbi/gems/multi_json@1.15.0.rbi +0 -268
- data/sorbet/rbi/gems/multi_xml@0.6.0.rbi +0 -102
- data/sorbet/rbi/gems/multipart-post@2.3.0.rbi +0 -234
- data/sorbet/rbi/gems/mutex_m@0.3.0.rbi +0 -97
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +0 -159
- data/sorbet/rbi/gems/nokogiri@1.17.0.rbi +0 -8201
- data/sorbet/rbi/gems/oauth2@1.4.11.rbi +0 -833
- data/sorbet/rbi/gems/overcommit@0.64.1.rbi +0 -2400
- data/sorbet/rbi/gems/parallel@1.23.0.rbi +0 -274
- data/sorbet/rbi/gems/parlour@5.0.0.rbi +0 -3007
- data/sorbet/rbi/gems/parser@3.2.2.4.rbi +0 -7253
- data/sorbet/rbi/gems/prism@1.2.0.rbi +0 -39085
- data/sorbet/rbi/gems/pry@0.14.2.rbi +0 -10070
- data/sorbet/rbi/gems/public_suffix@5.0.4.rbi +0 -936
- data/sorbet/rbi/gems/punchlist@1.3.2.rbi +0 -173
- data/sorbet/rbi/gems/racc@1.8.1.rbi +0 -162
- data/sorbet/rbi/gems/rack@3.1.8.rbi +0 -4896
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +0 -403
- data/sorbet/rbi/gems/rake@13.1.0.rbi +0 -3022
- data/sorbet/rbi/gems/rbi@0.2.1.rbi +0 -4535
- data/sorbet/rbi/gems/rbs@2.8.4.rbi +0 -5613
- data/sorbet/rbi/gems/regexp_parser@2.8.3.rbi +0 -3750
- data/sorbet/rbi/gems/reverse_markdown@2.1.1.rbi +0 -390
- data/sorbet/rbi/gems/rexml@3.3.9.rbi +0 -4964
- data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +0 -7127
- data/sorbet/rbi/gems/rubocop-minitest@0.34.5.rbi +0 -2577
- data/sorbet/rbi/gems/rubocop-performance@1.20.2.rbi +0 -3262
- data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +0 -329
- data/sorbet/rbi/gems/rubocop-rspec@3.0.0.rbi +0 -7546
- data/sorbet/rbi/gems/rubocop@1.59.0.rbi +0 -57238
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +0 -1318
- data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +0 -9
- data/sorbet/rbi/gems/rugged@1.6.3.rbi +0 -1577
- data/sorbet/rbi/gems/securerandom@0.4.0.rbi +0 -75
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -217
- data/sorbet/rbi/gems/simplecov-lcov@0.8.0.rbi +0 -256
- data/sorbet/rbi/gems/simplecov@0.22.0.rbi +0 -2149
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +0 -9
- data/sorbet/rbi/gems/solargraph-rails@1.1.0-9dc37915bd4f3b169046e34db6fb32193ab347d8.rbi +0 -320
- data/sorbet/rbi/gems/solargraph@0.50.1-904b9304770a59fac393c5cc3cad481e5bdf0fd8.rbi +0 -9396
- data/sorbet/rbi/gems/sord@5.1.0.rbi +0 -820
- data/sorbet/rbi/gems/source_finder@3.2.1.rbi +0 -317
- data/sorbet/rbi/gems/spoom@1.5.0.rbi +0 -4932
- data/sorbet/rbi/gems/tapioca@0.16.5.rbi +0 -3617
- data/sorbet/rbi/gems/thor@1.3.2.rbi +0 -4378
- data/sorbet/rbi/gems/tilt@2.4.0.rbi +0 -933
- data/sorbet/rbi/gems/tomlrb@2.0.3.rbi +0 -9
- data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +0 -5918
- data/sorbet/rbi/gems/undercover@0.5.0.rbi +0 -433
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -66
- data/sorbet/rbi/gems/webmock@3.19.1.rbi +0 -1769
- data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +0 -435
- data/sorbet/rbi/gems/yard@0.9.37.rbi +0 -18406
- data/sorbet/rbi/todo.rbi +0 -11
- data/sorbet/tapioca/config.yml +0 -13
- 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)
|