Merge pull request #16338 from Bo98/update-everything
Update all dependencies
This commit is contained in:
commit
2157fb06a8
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@ -54,7 +54,7 @@ jobs:
|
|||||||
- name: Check RuboCop filepaths
|
- name: Check RuboCop filepaths
|
||||||
working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}/Library/Homebrew
|
working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}/Library/Homebrew
|
||||||
run: |
|
run: |
|
||||||
public_apis=$(git grep -l "@api public" | wc -l | tr -d ' ')
|
public_apis=$(git grep -l "@api public" -- :^sorbet/ :^vendor/ | wc -l | tr -d ' ')
|
||||||
rubocop_docs=$(yq '.Style/Documentation.Include' .rubocop.yml | wc -l | tr -d ' ')
|
rubocop_docs=$(yq '.Style/Documentation.Include' .rubocop.yml | wc -l | tr -d ' ')
|
||||||
if [[ public_apis -ne rubocop_docs ]]
|
if [[ public_apis -ne rubocop_docs ]]
|
||||||
then
|
then
|
||||||
|
|||||||
14
.gitignore
vendored
14
.gitignore
vendored
@ -102,6 +102,7 @@
|
|||||||
**/vendor/bundle/ruby/*/gems/diff-lcs-*/
|
**/vendor/bundle/ruby/*/gems/diff-lcs-*/
|
||||||
**/vendor/bundle/ruby/*/gems/docile-*/
|
**/vendor/bundle/ruby/*/gems/docile-*/
|
||||||
**/vendor/bundle/ruby/*/gems/ecma-re-validator-*/
|
**/vendor/bundle/ruby/*/gems/ecma-re-validator-*/
|
||||||
|
**/vendor/bundle/ruby/*/gems/erubi-*/
|
||||||
**/vendor/bundle/ruby/*/gems/hana-*/
|
**/vendor/bundle/ruby/*/gems/hana-*/
|
||||||
**/vendor/bundle/ruby/*/gems/highline-*/
|
**/vendor/bundle/ruby/*/gems/highline-*/
|
||||||
**/vendor/bundle/ruby/*/gems/hpricot-*/
|
**/vendor/bundle/ruby/*/gems/hpricot-*/
|
||||||
@ -109,17 +110,21 @@
|
|||||||
**/vendor/bundle/ruby/*/gems/jaro_winkler-*/
|
**/vendor/bundle/ruby/*/gems/jaro_winkler-*/
|
||||||
**/vendor/bundle/ruby/*/gems/json-*/
|
**/vendor/bundle/ruby/*/gems/json-*/
|
||||||
**/vendor/bundle/ruby/*/gems/json_schemer-*/
|
**/vendor/bundle/ruby/*/gems/json_schemer-*/
|
||||||
|
**/vendor/bundle/ruby/*/gems/language_server-protocol-*/
|
||||||
**/vendor/bundle/ruby/*/gems/method_source-*/
|
**/vendor/bundle/ruby/*/gems/method_source-*/
|
||||||
**/vendor/bundle/ruby/*/gems/mini_portile2-*/
|
**/vendor/bundle/ruby/*/gems/mini_portile2-*/
|
||||||
**/vendor/bundle/ruby/*/gems/minitest-*/
|
**/vendor/bundle/ruby/*/gems/minitest-*/
|
||||||
**/vendor/bundle/ruby/*/gems/msgpack-*/
|
**/vendor/bundle/ruby/*/gems/msgpack-*/
|
||||||
**/vendor/bundle/ruby/*/gems/mustache-*/
|
**/vendor/bundle/ruby/*/gems/mustache-*/
|
||||||
|
**/vendor/bundle/ruby/*/gems/netrc-*/
|
||||||
**/vendor/bundle/ruby/*/gems/ntlm-http-*/
|
**/vendor/bundle/ruby/*/gems/ntlm-http-*/
|
||||||
**/vendor/bundle/ruby/*/gems/parallel-*/
|
**/vendor/bundle/ruby/*/gems/parallel-*/
|
||||||
**/vendor/bundle/ruby/*/gems/parallel_tests-*/
|
**/vendor/bundle/ruby/*/gems/parallel_tests-*/
|
||||||
**/vendor/bundle/ruby/*/gems/parlour-*/
|
**/vendor/bundle/ruby/*/gems/parlour-*/
|
||||||
**/vendor/bundle/ruby/*/gems/parser-*/
|
**/vendor/bundle/ruby/*/gems/parser-*/
|
||||||
**/vendor/bundle/ruby/*/gems/powerpack-*/
|
**/vendor/bundle/ruby/*/gems/powerpack-*/
|
||||||
|
**/vendor/bundle/ruby/*/gems/prettier_print-*/
|
||||||
|
**/vendor/bundle/ruby/*/gems/prism-*/
|
||||||
**/vendor/bundle/ruby/*/gems/psych-*/
|
**/vendor/bundle/ruby/*/gems/psych-*/
|
||||||
**/vendor/bundle/ruby/*/gems/pry-*/
|
**/vendor/bundle/ruby/*/gems/pry-*/
|
||||||
**/vendor/bundle/ruby/*/gems/racc-*/
|
**/vendor/bundle/ruby/*/gems/racc-*/
|
||||||
@ -140,13 +145,7 @@
|
|||||||
**/vendor/bundle/ruby/*/gems/rspec-support-*/
|
**/vendor/bundle/ruby/*/gems/rspec-support-*/
|
||||||
**/vendor/bundle/ruby/*/gems/rspec-sorbet-*/
|
**/vendor/bundle/ruby/*/gems/rspec-sorbet-*/
|
||||||
**/vendor/bundle/ruby/*/gems/rspec-wait-*/
|
**/vendor/bundle/ruby/*/gems/rspec-wait-*/
|
||||||
**/vendor/bundle/ruby/*/gems/rubocop-1*/
|
**/vendor/bundle/ruby/*/gems/rubocop-*/
|
||||||
**/vendor/bundle/ruby/*/gems/rubocop-ast-*/
|
|
||||||
**/vendor/bundle/ruby/*/gems/rubocop-capybara-*/
|
|
||||||
**/vendor/bundle/ruby/*/gems/rubocop-performance-*/
|
|
||||||
**/vendor/bundle/ruby/*/gems/rubocop-rails-*/
|
|
||||||
**/vendor/bundle/ruby/*/gems/rubocop-rspec-*/
|
|
||||||
**/vendor/bundle/ruby/*/gems/rubocop-sorbet-*/
|
|
||||||
**/vendor/bundle/ruby/*/gems/ruby-prof-*/
|
**/vendor/bundle/ruby/*/gems/ruby-prof-*/
|
||||||
**/vendor/bundle/ruby/*/gems/ruby-progressbar-*/
|
**/vendor/bundle/ruby/*/gems/ruby-progressbar-*/
|
||||||
**/vendor/bundle/ruby/*/gems/simplecov-*/
|
**/vendor/bundle/ruby/*/gems/simplecov-*/
|
||||||
@ -158,6 +157,7 @@
|
|||||||
**/vendor/bundle/ruby/*/gems/spoom-*/
|
**/vendor/bundle/ruby/*/gems/spoom-*/
|
||||||
**/vendor/bundle/ruby/*/gems/stackprof-*/
|
**/vendor/bundle/ruby/*/gems/stackprof-*/
|
||||||
**/vendor/bundle/ruby/*/gems/strscan-*/
|
**/vendor/bundle/ruby/*/gems/strscan-*/
|
||||||
|
**/vendor/bundle/ruby/*/gems/syntax_tree-*/
|
||||||
**/vendor/bundle/ruby/*/gems/tapioca-*/
|
**/vendor/bundle/ruby/*/gems/tapioca-*/
|
||||||
**/vendor/bundle/ruby/*/gems/thor-*/
|
**/vendor/bundle/ruby/*/gems/thor-*/
|
||||||
**/vendor/bundle/ruby/*/gems/tzinfo-*/
|
**/vendor/bundle/ruby/*/gems/tzinfo-*/
|
||||||
|
|||||||
@ -253,8 +253,8 @@ RSpec/DescribeClass:
|
|||||||
Enabled: false
|
Enabled: false
|
||||||
RSpec/FilePath:
|
RSpec/FilePath:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
# RSpec/SpecFilePathFormat:
|
RSpec/SpecFilePathFormat:
|
||||||
# Enabled: false
|
Enabled: false
|
||||||
RSpec/StubbedMock:
|
RSpec/StubbedMock:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
RSpec/SubjectStub:
|
RSpec/SubjectStub:
|
||||||
@ -384,7 +384,7 @@ Style/InvertibleUnlessCondition:
|
|||||||
# Unset this (prefer `unless a.zero?` over `if a.nonzero?`)
|
# Unset this (prefer `unless a.zero?` over `if a.nonzero?`)
|
||||||
:zero?:
|
:zero?:
|
||||||
# Don't require non-standard `exclude?` (for now at least) - it's not available in every file
|
# Don't require non-standard `exclude?` (for now at least) - it's not available in every file
|
||||||
# :include?:
|
:include?:
|
||||||
|
|
||||||
# TODO: Enable this cop again once https://github.com/Homebrew/brew/pull/16337#issuecomment-1855668516 is done.
|
# TODO: Enable this cop again once https://github.com/Homebrew/brew/pull/16337#issuecomment-1855668516 is done.
|
||||||
# From the RuboCop docs: "NOTE: Regexp and Range literals are frozen objects since Ruby 3.0."
|
# From the RuboCop docs: "NOTE: Regexp and Range literals are frozen objects since Ruby 3.0."
|
||||||
@ -442,8 +442,8 @@ Style/StringMethods:
|
|||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
# Treating this the same as Style/MethodCallWithArgsParentheses
|
# Treating this the same as Style/MethodCallWithArgsParentheses
|
||||||
# Style/SuperWithArgsParentheses:
|
Style/SuperWithArgsParentheses:
|
||||||
# Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# An array of symbols is more readable than a symbol array
|
# An array of symbols is more readable than a symbol array
|
||||||
# and also allows for easier grepping.
|
# and also allows for easier grepping.
|
||||||
|
|||||||
@ -4,10 +4,10 @@ source "https://rubygems.org"
|
|||||||
|
|
||||||
# The default case (no envs), should always be a restrictive bound on the lowest supported minor version.
|
# The default case (no envs), should always be a restrictive bound on the lowest supported minor version.
|
||||||
# This is the branch that Dependabot will use.
|
# This is the branch that Dependabot will use.
|
||||||
if ENV.fetch("HOMEBREW_USE_RUBY_FROM_PATH", "").empty? && ENV.fetch("HOMEBREW_RUBY3", "").empty?
|
if ENV.fetch("HOMEBREW_USE_RUBY_FROM_PATH", "").empty?
|
||||||
ruby "~> 2.6.0"
|
ruby "~> 3.1.0"
|
||||||
else
|
else
|
||||||
ruby ">= 2.6.0"
|
ruby ">= 3.1.0"
|
||||||
end
|
end
|
||||||
|
|
||||||
# disallowed gems (should not be used)
|
# disallowed gems (should not be used)
|
||||||
@ -74,7 +74,7 @@ group :audit, :bump_unversioned_casks, :livecheck, optional: true do
|
|||||||
end
|
end
|
||||||
|
|
||||||
# vendored gems (no group)
|
# vendored gems (no group)
|
||||||
gem "activesupport"
|
gem "activesupport", "<7" # we're actively working to remove this: https://github.com/Homebrew/brew/issues/16190
|
||||||
gem "addressable"
|
gem "addressable"
|
||||||
gem "patchelf"
|
gem "patchelf"
|
||||||
gem "plist"
|
gem "plist"
|
||||||
|
|||||||
@ -22,6 +22,7 @@ GEM
|
|||||||
docile (1.4.0)
|
docile (1.4.0)
|
||||||
elftools (1.2.0)
|
elftools (1.2.0)
|
||||||
bindata (~> 2)
|
bindata (~> 2)
|
||||||
|
erubi (1.12.0)
|
||||||
hana (1.3.7)
|
hana (1.3.7)
|
||||||
highline (2.0.3)
|
highline (2.0.3)
|
||||||
hpricot (0.8.6)
|
hpricot (0.8.6)
|
||||||
@ -32,12 +33,14 @@ GEM
|
|||||||
hana (~> 1.3)
|
hana (~> 1.3)
|
||||||
regexp_parser (~> 2.0)
|
regexp_parser (~> 2.0)
|
||||||
simpleidn (~> 0.2)
|
simpleidn (~> 0.2)
|
||||||
|
language_server-protocol (3.17.0.3)
|
||||||
method_source (1.0.0)
|
method_source (1.0.0)
|
||||||
minitest (5.20.0)
|
minitest (5.20.0)
|
||||||
msgpack (1.7.2)
|
msgpack (1.7.2)
|
||||||
mustache (1.1.1)
|
mustache (1.1.1)
|
||||||
|
netrc (0.11.0)
|
||||||
parallel (1.23.0)
|
parallel (1.23.0)
|
||||||
parallel_tests (3.13.0)
|
parallel_tests (4.3.0)
|
||||||
parallel
|
parallel
|
||||||
parlour (8.1.0)
|
parlour (8.1.0)
|
||||||
commander (~> 4.5)
|
commander (~> 4.5)
|
||||||
@ -50,6 +53,8 @@ GEM
|
|||||||
patchelf (1.4.0)
|
patchelf (1.4.0)
|
||||||
elftools (>= 1.2)
|
elftools (>= 1.2)
|
||||||
plist (3.7.0)
|
plist (3.7.0)
|
||||||
|
prettier_print (1.2.1)
|
||||||
|
prism (0.19.0)
|
||||||
pry (0.14.2)
|
pry (0.14.2)
|
||||||
coderay (~> 1.1)
|
coderay (~> 1.1)
|
||||||
method_source (~> 1.0)
|
method_source (~> 1.0)
|
||||||
@ -57,11 +62,9 @@ GEM
|
|||||||
racc (1.7.3)
|
racc (1.7.3)
|
||||||
rack (3.0.8)
|
rack (3.0.8)
|
||||||
rainbow (3.1.1)
|
rainbow (3.1.1)
|
||||||
rbi (0.0.14)
|
rbi (0.1.6)
|
||||||
ast
|
prism (>= 0.18.0, < 0.20)
|
||||||
parser (>= 2.6.4.0)
|
|
||||||
sorbet-runtime (>= 0.5.9204)
|
sorbet-runtime (>= 0.5.9204)
|
||||||
unparser
|
|
||||||
rdiscount (2.2.7.1)
|
rdiscount (2.2.7.1)
|
||||||
regexp_parser (2.8.3)
|
regexp_parser (2.8.3)
|
||||||
rexml (3.2.6)
|
rexml (3.2.6)
|
||||||
@ -93,30 +96,35 @@ GEM
|
|||||||
rspec-support (3.12.1)
|
rspec-support (3.12.1)
|
||||||
rspec_junit_formatter (0.6.0)
|
rspec_junit_formatter (0.6.0)
|
||||||
rspec-core (>= 2, < 4, != 2.12.0)
|
rspec-core (>= 2, < 4, != 2.12.0)
|
||||||
rubocop (1.50.2)
|
rubocop (1.59.0)
|
||||||
json (~> 2.3)
|
json (~> 2.3)
|
||||||
|
language_server-protocol (>= 3.17.0)
|
||||||
parallel (~> 1.10)
|
parallel (~> 1.10)
|
||||||
parser (>= 3.2.0.0)
|
parser (>= 3.2.2.4)
|
||||||
rainbow (>= 2.2.2, < 4.0)
|
rainbow (>= 2.2.2, < 4.0)
|
||||||
regexp_parser (>= 1.8, < 3.0)
|
regexp_parser (>= 1.8, < 3.0)
|
||||||
rexml (>= 3.2.5, < 4.0)
|
rexml (>= 3.2.5, < 4.0)
|
||||||
rubocop-ast (>= 1.28.0, < 2.0)
|
rubocop-ast (>= 1.30.0, < 2.0)
|
||||||
ruby-progressbar (~> 1.7)
|
ruby-progressbar (~> 1.7)
|
||||||
unicode-display_width (>= 2.4.0, < 3.0)
|
unicode-display_width (>= 2.4.0, < 3.0)
|
||||||
rubocop-ast (1.30.0)
|
rubocop-ast (1.30.0)
|
||||||
parser (>= 3.2.1.0)
|
parser (>= 3.2.1.0)
|
||||||
rubocop-capybara (2.18.0)
|
rubocop-capybara (2.19.0)
|
||||||
rubocop (~> 1.41)
|
rubocop (~> 1.41)
|
||||||
rubocop-performance (1.17.1)
|
rubocop-factory_bot (2.24.0)
|
||||||
|
rubocop (~> 1.33)
|
||||||
|
rubocop-performance (1.19.1)
|
||||||
rubocop (>= 1.7.0, < 2.0)
|
rubocop (>= 1.7.0, < 2.0)
|
||||||
rubocop-ast (>= 0.4.0)
|
rubocop-ast (>= 0.4.0)
|
||||||
rubocop-rails (2.19.1)
|
rubocop-rails (2.22.2)
|
||||||
activesupport (>= 4.2.0)
|
activesupport (>= 4.2.0)
|
||||||
rack (>= 1.1)
|
rack (>= 1.1)
|
||||||
rubocop (>= 1.33.0, < 2.0)
|
rubocop (>= 1.33.0, < 2.0)
|
||||||
rubocop-rspec (2.20.0)
|
rubocop-ast (>= 1.30.0, < 2.0)
|
||||||
rubocop (~> 1.33)
|
rubocop-rspec (2.25.0)
|
||||||
|
rubocop (~> 1.40)
|
||||||
rubocop-capybara (~> 2.17)
|
rubocop-capybara (~> 2.17)
|
||||||
|
rubocop-factory_bot (~> 2.22)
|
||||||
rubocop-sorbet (0.7.6)
|
rubocop-sorbet (0.7.6)
|
||||||
rubocop (>= 0.90.0)
|
rubocop (>= 0.90.0)
|
||||||
ruby-macho (4.0.0)
|
ruby-macho (4.0.0)
|
||||||
@ -133,34 +141,29 @@ GEM
|
|||||||
simplecov_json_formatter (0.1.4)
|
simplecov_json_formatter (0.1.4)
|
||||||
simpleidn (0.2.1)
|
simpleidn (0.2.1)
|
||||||
unf (~> 0.1.4)
|
unf (~> 0.1.4)
|
||||||
sorbet (0.5.10461)
|
sorbet (0.5.11155)
|
||||||
sorbet-static (= 0.5.10461)
|
sorbet-static (= 0.5.11155)
|
||||||
sorbet-runtime (0.5.10461)
|
sorbet-runtime (0.5.11155)
|
||||||
sorbet-static (0.5.10461-universal-darwin-14)
|
sorbet-static (0.5.11155-universal-darwin)
|
||||||
sorbet-static (0.5.10461-universal-darwin-15)
|
sorbet-static (0.5.11155-x86_64-linux)
|
||||||
sorbet-static (0.5.10461-universal-darwin-16)
|
sorbet-static-and-runtime (0.5.11155)
|
||||||
sorbet-static (0.5.10461-universal-darwin-17)
|
sorbet (= 0.5.11155)
|
||||||
sorbet-static (0.5.10461-universal-darwin-18)
|
sorbet-runtime (= 0.5.11155)
|
||||||
sorbet-static (0.5.10461-universal-darwin-19)
|
spoom (1.2.4)
|
||||||
sorbet-static (0.5.10461-universal-darwin-20)
|
erubi (>= 1.10.0)
|
||||||
sorbet-static (0.5.10461-universal-darwin-21)
|
sorbet-static-and-runtime (>= 0.5.10187)
|
||||||
sorbet-static (0.5.10461-universal-darwin-22)
|
syntax_tree (>= 6.1.1)
|
||||||
sorbet-static (0.5.10461-x86_64-linux)
|
|
||||||
sorbet-static-and-runtime (0.5.10461)
|
|
||||||
sorbet (= 0.5.10461)
|
|
||||||
sorbet-runtime (= 0.5.10461)
|
|
||||||
spoom (1.1.11)
|
|
||||||
sorbet (>= 0.5.9204)
|
|
||||||
sorbet-runtime (>= 0.5.9204)
|
|
||||||
thor (>= 0.19.2)
|
thor (>= 0.19.2)
|
||||||
stackprof (0.2.25)
|
stackprof (0.2.25)
|
||||||
tapioca (0.7.3)
|
syntax_tree (6.2.0)
|
||||||
bundler (>= 1.17.3)
|
prettier_print (>= 1.2.0)
|
||||||
pry (>= 0.12.2)
|
tapioca (0.11.13)
|
||||||
rbi (~> 0.0.0, >= 0.0.14)
|
bundler (>= 2.2.25)
|
||||||
sorbet-runtime (>= 0.5.9204)
|
netrc (>= 0.11.0)
|
||||||
sorbet-static (>= 0.5.9204)
|
parallel (>= 1.21.0)
|
||||||
spoom (~> 1.1.0, >= 1.1.11)
|
rbi (>= 0.1.4, < 0.2)
|
||||||
|
sorbet-static-and-runtime (>= 0.5.10187)
|
||||||
|
spoom (~> 1.2.0, >= 1.2.0)
|
||||||
thor (>= 1.2.0)
|
thor (>= 1.2.0)
|
||||||
yard-sorbet
|
yard-sorbet
|
||||||
thor (1.3.0)
|
thor (1.3.0)
|
||||||
@ -170,12 +173,9 @@ GEM
|
|||||||
unf_ext
|
unf_ext
|
||||||
unf_ext (0.0.9.1)
|
unf_ext (0.0.9.1)
|
||||||
unicode-display_width (2.5.0)
|
unicode-display_width (2.5.0)
|
||||||
unparser (0.6.4)
|
|
||||||
diff-lcs (~> 1.3)
|
|
||||||
parser (>= 3.1.0)
|
|
||||||
warning (1.3.0)
|
warning (1.3.0)
|
||||||
yard (0.9.34)
|
yard (0.9.34)
|
||||||
yard-sorbet (0.6.1)
|
yard-sorbet (0.8.1)
|
||||||
sorbet-runtime (>= 0.5)
|
sorbet-runtime (>= 0.5)
|
||||||
yard (>= 0.9)
|
yard (>= 0.9)
|
||||||
zeitwerk (2.6.12)
|
zeitwerk (2.6.12)
|
||||||
@ -188,7 +188,7 @@ PLATFORMS
|
|||||||
x86_64-linux
|
x86_64-linux
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
activesupport
|
activesupport (< 7)
|
||||||
addressable
|
addressable
|
||||||
bootsnap
|
bootsnap
|
||||||
byebug
|
byebug
|
||||||
@ -226,7 +226,7 @@ DEPENDENCIES
|
|||||||
warning
|
warning
|
||||||
|
|
||||||
RUBY VERSION
|
RUBY VERSION
|
||||||
ruby 2.6.10p210
|
ruby 3.1.4p223
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
2.4.18
|
2.4.18
|
||||||
|
|||||||
@ -358,8 +358,6 @@ auto-update() {
|
|||||||
# Restore user path as it'll be refiltered by HOMEBREW_BREW_FILE (bin/brew)
|
# Restore user path as it'll be refiltered by HOMEBREW_BREW_FILE (bin/brew)
|
||||||
export PATH=${HOMEBREW_PATH}
|
export PATH=${HOMEBREW_PATH}
|
||||||
|
|
||||||
unset HOMEBREW_RUBY3
|
|
||||||
|
|
||||||
# exec a new process to set any new environment variables.
|
# exec a new process to set any new environment variables.
|
||||||
exec "${HOMEBREW_BREW_FILE}" "$@"
|
exec "${HOMEBREW_BREW_FILE}" "$@"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -893,10 +893,7 @@ EOS
|
|||||||
[[ ! -f "${HOMEBREW_CACHE}/all_commands_list.txt" ]] ||
|
[[ ! -f "${HOMEBREW_CACHE}/all_commands_list.txt" ]] ||
|
||||||
[[ -n "${HOMEBREW_DEVELOPER}" && -z "${HOMEBREW_UPDATE_AUTO}" ]]
|
[[ -n "${HOMEBREW_DEVELOPER}" && -z "${HOMEBREW_UPDATE_AUTO}" ]]
|
||||||
then
|
then
|
||||||
(
|
brew update-report "$@"
|
||||||
unset HOMEBREW_RUBY3
|
|
||||||
brew update-report "$@"
|
|
||||||
)
|
|
||||||
return $?
|
return $?
|
||||||
elif [[ -z "${HOMEBREW_UPDATE_AUTO}" && -z "${HOMEBREW_QUIET}" ]]
|
elif [[ -z "${HOMEBREW_UPDATE_AUTO}" && -z "${HOMEBREW_QUIET}" ]]
|
||||||
then
|
then
|
||||||
|
|||||||
@ -208,7 +208,6 @@ module Homebrew
|
|||||||
HOMEBREW_CACHE
|
HOMEBREW_CACHE
|
||||||
HOMEBREW_LOGS
|
HOMEBREW_LOGS
|
||||||
HOMEBREW_TEMP
|
HOMEBREW_TEMP
|
||||||
HOMEBREW_RUBY3
|
|
||||||
]
|
]
|
||||||
allowed_test_env << "HOMEBREW_USE_RUBY_FROM_PATH" if Homebrew::EnvConfig.developer?
|
allowed_test_env << "HOMEBREW_USE_RUBY_FROM_PATH" if Homebrew::EnvConfig.developer?
|
||||||
Homebrew::EnvConfig::ENVS.keys.map(&:to_s).each do |env|
|
Homebrew::EnvConfig::ENVS.keys.map(&:to_s).each do |env|
|
||||||
|
|||||||
@ -46,14 +46,9 @@ module Homebrew
|
|||||||
HOMEBREW_LIBRARY_PATH.cd do
|
HOMEBREW_LIBRARY_PATH.cd do
|
||||||
if update
|
if update
|
||||||
excluded_gems = [
|
excluded_gems = [
|
||||||
"did_you_mean", # RBI file is already provided by Sorbet
|
|
||||||
"json", # RBI file is already provided by Sorbet
|
"json", # RBI file is already provided by Sorbet
|
||||||
"sorbet-static-and-runtime", # Unnecessary RBI - remove this entry with Tapioca 0.8
|
|
||||||
]
|
]
|
||||||
typed_overrides = [
|
tapioca_args = ["--exclude", *excluded_gems, "--pre", "sorbet/tapioca/prerequire.rb"]
|
||||||
"msgpack:false", # Investigate removing this with Tapioca 0.8
|
|
||||||
]
|
|
||||||
tapioca_args = ["--exclude", *excluded_gems, "--typed-overrides", *typed_overrides]
|
|
||||||
tapioca_args << "--all" if args.update_all?
|
tapioca_args << "--all" if args.update_all?
|
||||||
|
|
||||||
ohai "Updating homegrown RBI files..."
|
ohai "Updating homegrown RBI files..."
|
||||||
@ -63,13 +58,23 @@ module Homebrew
|
|||||||
ohai "Updating Tapioca RBI files..."
|
ohai "Updating Tapioca RBI files..."
|
||||||
safe_system "bundle", "exec", "tapioca", "gem", *tapioca_args
|
safe_system "bundle", "exec", "tapioca", "gem", *tapioca_args
|
||||||
safe_system "bundle", "exec", "parlour"
|
safe_system "bundle", "exec", "parlour"
|
||||||
|
|
||||||
safe_system({ "RUBYLIB" => "#{HOMEBREW_LIBRARY_PATH}/sorbet/hidden_definitions_hacks" },
|
safe_system({ "RUBYLIB" => "#{HOMEBREW_LIBRARY_PATH}/sorbet/hidden_definitions_hacks" },
|
||||||
"bundle", "exec", "srb", "rbi", "hidden-definitions")
|
"bundle", "exec", "srb", "rbi", "hidden-definitions")
|
||||||
safe_system "bundle", "exec", "tapioca", "todo"
|
# HACK: we'll phase out hidden-definitions soon
|
||||||
|
tmp_file = "sorbet/rbi/hidden-definitions/hidden.rbi.tmp"
|
||||||
|
orig_file = "sorbet/rbi/hidden-definitions/hidden.rbi"
|
||||||
|
File.open(tmp_file, "w") do |out_file|
|
||||||
|
File.foreach(orig_file) do |line|
|
||||||
|
out_file.puts line unless line.include?("def self.new(*args, **arg, &blk); end")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
File.rename(tmp_file, orig_file)
|
||||||
|
|
||||||
if args.suggest_typed?
|
if args.suggest_typed?
|
||||||
ohai "Bumping Sorbet `typed` sigils..."
|
ohai "Bumping Sorbet `typed` sigils..."
|
||||||
safe_system "bundle", "exec", "spoom", "bump"
|
# --sorbet needed because of https://github.com/Shopify/spoom/issues/488
|
||||||
|
safe_system "bundle", "exec", "spoom", "bump", "--dry", "--sorbet", "#{Gem.bin_path("sorbet", "srb")} tc"
|
||||||
end
|
end
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|||||||
@ -51,12 +51,12 @@ module Homebrew
|
|||||||
rc
|
rc
|
||||||
].freeze, T::Array[String])
|
].freeze, T::Array[String])
|
||||||
|
|
||||||
sig { returns(T::Hash[Class, String]) }
|
sig { returns(T::Hash[T::Class[T.anything], String]) }
|
||||||
def livecheck_strategy_names
|
def livecheck_strategy_names
|
||||||
return T.must(@livecheck_strategy_names) if defined?(@livecheck_strategy_names)
|
return T.must(@livecheck_strategy_names) if defined?(@livecheck_strategy_names)
|
||||||
|
|
||||||
# Cache demodulized strategy names, to avoid repeating this work
|
# Cache demodulized strategy names, to avoid repeating this work
|
||||||
@livecheck_strategy_names = T.let({}, T.nilable(T::Hash[Class, String]))
|
@livecheck_strategy_names = T.let({}, T.nilable(T::Hash[T::Class[T.anything], String]))
|
||||||
Strategy.constants.sort.each do |const_symbol|
|
Strategy.constants.sort.each do |const_symbol|
|
||||||
constant = Strategy.const_get(const_symbol)
|
constant = Strategy.const_get(const_symbol)
|
||||||
next unless constant.is_a?(Class)
|
next unless constant.is_a?(Class)
|
||||||
|
|||||||
1
Library/Homebrew/sorbet/rbi/gems/.gitattributes
vendored
Normal file
1
Library/Homebrew/sorbet/rbi/gems/.gitattributes
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
**/*.rbi linguist-generated=true
|
||||||
14573
Library/Homebrew/sorbet/rbi/gems/activesupport@6.1.7.6.rbi
generated
14573
Library/Homebrew/sorbet/rbi/gems/activesupport@6.1.7.6.rbi
generated
File diff suppressed because it is too large
Load Diff
1701
Library/Homebrew/sorbet/rbi/gems/addressable@2.8.6.rbi
generated
1701
Library/Homebrew/sorbet/rbi/gems/addressable@2.8.6.rbi
generated
File diff suppressed because it is too large
Load Diff
530
Library/Homebrew/sorbet/rbi/gems/ast@2.4.2.rbi
generated
530
Library/Homebrew/sorbet/rbi/gems/ast@2.4.2.rbi
generated
@ -4,34 +4,263 @@
|
|||||||
# This is an autogenerated file for types exported from the `ast` gem.
|
# This is an autogenerated file for types exported from the `ast` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem ast`.
|
# Please instead update this file by running `bin/tapioca gem ast`.
|
||||||
|
|
||||||
|
# {AST} is a library for manipulating abstract syntax trees.
|
||||||
|
#
|
||||||
|
# It embraces immutability; each AST node is inherently frozen at
|
||||||
|
# creation, and updating a child node requires recreating that node
|
||||||
|
# and its every parent, recursively.
|
||||||
|
# This is a design choice. It does create some pressure on
|
||||||
|
# garbage collector, but completely eliminates all concurrency
|
||||||
|
# and aliasing problems.
|
||||||
|
#
|
||||||
|
# See also {AST::Node}, {AST::Processor::Mixin} and {AST::Sexp} for
|
||||||
|
# additional recommendations and design patterns.
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast.rb#13
|
||||||
module AST; end
|
module AST; end
|
||||||
|
|
||||||
|
# Node is an immutable class, instances of which represent abstract
|
||||||
|
# syntax tree nodes. It combines semantic information (i.e. anything
|
||||||
|
# that affects the algorithmic properties of a program) with
|
||||||
|
# meta-information (line numbers or compiler intermediates).
|
||||||
|
#
|
||||||
|
# Notes on inheritance
|
||||||
|
# ====================
|
||||||
|
#
|
||||||
|
# The distinction between semantics and metadata is important. Complete
|
||||||
|
# semantic information should be contained within just the {#type} and
|
||||||
|
# {#children} of a Node instance; in other words, if an AST was to be
|
||||||
|
# stripped of all meta-information, it should remain a valid AST which
|
||||||
|
# could be successfully processed to yield a result with the same
|
||||||
|
# algorithmic properties.
|
||||||
|
#
|
||||||
|
# Thus, Node should never be inherited in order to define methods which
|
||||||
|
# affect or return semantic information, such as getters for `class_name`,
|
||||||
|
# `superclass` and `body` in the case of a hypothetical `ClassNode`. The
|
||||||
|
# correct solution is to use a generic Node with a {#type} of `:class`
|
||||||
|
# and three children. See also {Processor} for tips on working with such
|
||||||
|
# ASTs.
|
||||||
|
#
|
||||||
|
# On the other hand, Node can and should be inherited to define
|
||||||
|
# application-specific metadata (see also {#initialize}) or customize the
|
||||||
|
# printing format. It is expected that an application would have one or two
|
||||||
|
# such classes and use them across the entire codebase.
|
||||||
|
#
|
||||||
|
# The rationale for this pattern is extensibility and maintainability.
|
||||||
|
# Unlike static ones, dynamic languages do not require the presence of a
|
||||||
|
# predefined, rigid structure, nor does it improve dispatch efficiency,
|
||||||
|
# and while such a structure can certainly be defined, it does not add
|
||||||
|
# any value but incurs a maintaining cost.
|
||||||
|
# For example, extending the AST even with a transformation-local
|
||||||
|
# temporary node type requires making globally visible changes to
|
||||||
|
# the codebase.
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/node.rb#40
|
||||||
class AST::Node
|
class AST::Node
|
||||||
|
# Constructs a new instance of Node.
|
||||||
|
#
|
||||||
|
# The arguments `type` and `children` are converted with `to_sym` and
|
||||||
|
# `to_a` respectively. Additionally, the result of converting `children`
|
||||||
|
# is frozen. While mutating the arguments is generally considered harmful,
|
||||||
|
# the most common case is to pass an array literal to the constructor. If
|
||||||
|
# your code does not expect the argument to be frozen, use `#dup`.
|
||||||
|
#
|
||||||
|
# The `properties` hash is passed to {#assign_properties}.
|
||||||
|
#
|
||||||
|
# @return [Node] a new instance of Node
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/node.rb#72
|
||||||
def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end
|
def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Concatenates `array` with `children` and returns the resulting node.
|
||||||
|
#
|
||||||
|
# @return [AST::Node]
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/node.rb#168
|
||||||
def +(array); end
|
def +(array); end
|
||||||
|
|
||||||
|
# Appends `element` to `children` and returns the resulting node.
|
||||||
|
#
|
||||||
|
# @return [AST::Node]
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/node.rb#177
|
||||||
def <<(element); end
|
def <<(element); end
|
||||||
|
|
||||||
|
# Compares `self` to `other`, possibly converting with `to_ast`. Only
|
||||||
|
# `type` and `children` are compared; metadata is deliberately ignored.
|
||||||
|
#
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/node.rb#153
|
||||||
def ==(other); end
|
def ==(other); end
|
||||||
|
|
||||||
|
# Appends `element` to `children` and returns the resulting node.
|
||||||
|
#
|
||||||
|
# @return [AST::Node]
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/node.rb#177
|
||||||
def append(element); end
|
def append(element); end
|
||||||
|
|
||||||
|
# Returns the children of this node.
|
||||||
|
# The returned value is frozen.
|
||||||
|
# The to_a alias is useful for decomposing nodes concisely.
|
||||||
|
# For example:
|
||||||
|
#
|
||||||
|
# node = s(:gasgn, :$foo, s(:integer, 1))
|
||||||
|
# var_name, value = *node
|
||||||
|
# p var_name # => :$foo
|
||||||
|
# p value # => (integer 1)
|
||||||
|
#
|
||||||
|
# @return [Array]
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/node.rb#56
|
||||||
def children; end
|
def children; end
|
||||||
|
|
||||||
|
# Nodes are already frozen, so there is no harm in returning the
|
||||||
|
# current node as opposed to initializing from scratch and freezing
|
||||||
|
# another one.
|
||||||
|
#
|
||||||
|
# @return self
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/node.rb#115
|
||||||
def clone; end
|
def clone; end
|
||||||
|
|
||||||
|
# Concatenates `array` with `children` and returns the resulting node.
|
||||||
|
#
|
||||||
|
# @return [AST::Node]
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/node.rb#168
|
||||||
def concat(array); end
|
def concat(array); end
|
||||||
|
|
||||||
|
# Enables matching for Node, where type is the first element
|
||||||
|
# and the children are remaining items.
|
||||||
|
#
|
||||||
|
# @return [Array]
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/node.rb#253
|
||||||
def deconstruct; end
|
def deconstruct; end
|
||||||
|
|
||||||
|
# Nodes are already frozen, so there is no harm in returning the
|
||||||
|
# current node as opposed to initializing from scratch and freezing
|
||||||
|
# another one.
|
||||||
|
#
|
||||||
|
# @return self
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/node.rb#115
|
||||||
def dup; end
|
def dup; end
|
||||||
|
|
||||||
|
# Test if other object is equal to
|
||||||
|
#
|
||||||
|
# @param other [Object]
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/node.rb#85
|
||||||
def eql?(other); end
|
def eql?(other); end
|
||||||
|
|
||||||
|
# Returns the precomputed hash value for this node
|
||||||
|
#
|
||||||
|
# @return [Fixnum]
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/node.rb#61
|
||||||
def hash; end
|
def hash; end
|
||||||
|
|
||||||
|
# Converts `self` to a s-expression ruby string.
|
||||||
|
# The code return will recreate the node, using the sexp module s()
|
||||||
|
#
|
||||||
|
# @param indent [Integer] Base indentation level.
|
||||||
|
# @return [String]
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/node.rb#211
|
||||||
def inspect(indent = T.unsafe(nil)); end
|
def inspect(indent = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Returns the children of this node.
|
||||||
|
# The returned value is frozen.
|
||||||
|
# The to_a alias is useful for decomposing nodes concisely.
|
||||||
|
# For example:
|
||||||
|
#
|
||||||
|
# node = s(:gasgn, :$foo, s(:integer, 1))
|
||||||
|
# var_name, value = *node
|
||||||
|
# p var_name # => :$foo
|
||||||
|
# p value # => (integer 1)
|
||||||
|
#
|
||||||
|
# @return [Array]
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/node.rb#56
|
||||||
def to_a; end
|
def to_a; end
|
||||||
|
|
||||||
|
# @return [AST::Node] self
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/node.rb#229
|
||||||
def to_ast; end
|
def to_ast; end
|
||||||
|
|
||||||
|
# Converts `self` to a pretty-printed s-expression.
|
||||||
|
#
|
||||||
|
# @param indent [Integer] Base indentation level.
|
||||||
|
# @return [String]
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/node.rb#187
|
||||||
def to_s(indent = T.unsafe(nil)); end
|
def to_s(indent = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Converts `self` to a pretty-printed s-expression.
|
||||||
|
#
|
||||||
|
# @param indent [Integer] Base indentation level.
|
||||||
|
# @return [String]
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/node.rb#187
|
||||||
def to_sexp(indent = T.unsafe(nil)); end
|
def to_sexp(indent = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Converts `self` to an Array where the first element is the type as a Symbol,
|
||||||
|
# and subsequent elements are the same representation of its children.
|
||||||
|
#
|
||||||
|
# @return [Array<Symbol, [...Array]>]
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/node.rb#237
|
||||||
def to_sexp_array; end
|
def to_sexp_array; end
|
||||||
|
|
||||||
|
# Returns the type of this node.
|
||||||
|
#
|
||||||
|
# @return [Symbol]
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/node.rb#43
|
||||||
def type; end
|
def type; end
|
||||||
|
|
||||||
|
# Returns a new instance of Node where non-nil arguments replace the
|
||||||
|
# corresponding fields of `self`.
|
||||||
|
#
|
||||||
|
# For example, `Node.new(:foo, [ 1, 2 ]).updated(:bar)` would yield
|
||||||
|
# `(bar 1 2)`, and `Node.new(:foo, [ 1, 2 ]).updated(nil, [])` would
|
||||||
|
# yield `(foo)`.
|
||||||
|
#
|
||||||
|
# If the resulting node would be identical to `self`, does nothing.
|
||||||
|
#
|
||||||
|
# @param type [Symbol, nil]
|
||||||
|
# @param children [Array, nil]
|
||||||
|
# @param properties [Hash, nil]
|
||||||
|
# @return [AST::Node]
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/node.rb#133
|
||||||
def updated(type = T.unsafe(nil), children = T.unsafe(nil), properties = T.unsafe(nil)); end
|
def updated(type = T.unsafe(nil), children = T.unsafe(nil), properties = T.unsafe(nil)); end
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
||||||
|
# By default, each entry in the `properties` hash is assigned to
|
||||||
|
# an instance variable in this instance of Node. A subclass should define
|
||||||
|
# attribute readers for such variables. The values passed in the hash
|
||||||
|
# are not frozen or whitelisted; such behavior can also be implemented
|
||||||
|
# by subclassing Node and overriding this method.
|
||||||
|
#
|
||||||
|
# @return [nil]
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/node.rb#98
|
||||||
def assign_properties(properties); end
|
def assign_properties(properties); end
|
||||||
|
|
||||||
|
# Returns `@type` with all underscores replaced by dashes. This allows
|
||||||
|
# to write symbol literals without quotes in Ruby sources and yet have
|
||||||
|
# nicely looking s-expressions.
|
||||||
|
#
|
||||||
|
# @return [String]
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/node.rb#264
|
||||||
def fancy_type; end
|
def fancy_type; end
|
||||||
|
|
||||||
private
|
private
|
||||||
@ -39,16 +268,317 @@ class AST::Node
|
|||||||
def original_dup; end
|
def original_dup; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# This class includes {AST::Processor::Mixin}; however, it is
|
||||||
|
# deprecated, since the module defines all of the behaviors that
|
||||||
|
# the processor includes. Any new libraries should use
|
||||||
|
# {AST::Processor::Mixin} instead of subclassing this.
|
||||||
|
#
|
||||||
|
# @deprecated Use {AST::Processor::Mixin} instead.
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/processor.rb#8
|
||||||
class AST::Processor
|
class AST::Processor
|
||||||
include ::AST::Processor::Mixin
|
include ::AST::Processor::Mixin
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# The processor module is a module which helps transforming one
|
||||||
|
# AST into another. In a nutshell, the {#process} method accepts
|
||||||
|
# a {Node} and dispatches it to a handler corresponding to its
|
||||||
|
# type, and returns a (possibly) updated variant of the node.
|
||||||
|
#
|
||||||
|
# The processor module has a set of associated design patterns.
|
||||||
|
# They are best explained with a concrete example. Let's define a
|
||||||
|
# simple arithmetic language and an AST format for it:
|
||||||
|
#
|
||||||
|
# Terminals (AST nodes which do not have other AST nodes inside):
|
||||||
|
#
|
||||||
|
# * `(integer <int-literal>)`,
|
||||||
|
#
|
||||||
|
# Nonterminals (AST nodes with other nodes as children):
|
||||||
|
#
|
||||||
|
# * `(add <node> <node>)`,
|
||||||
|
# * `(multiply <node> <node>)`,
|
||||||
|
# * `(divide <node> <node>)`,
|
||||||
|
# * `(negate <node>)`,
|
||||||
|
# * `(store <node> <string-literal>)`: stores value of `<node>`
|
||||||
|
# into a variable named `<string-literal>`,
|
||||||
|
# * `(load <string-literal>)`: loads value of a variable named
|
||||||
|
# `<string-literal>`,
|
||||||
|
# * `(each <node> ...)`: computes each of the `<node>`s and
|
||||||
|
# prints the result.
|
||||||
|
#
|
||||||
|
# All AST nodes have the same Ruby class, and therefore they don't
|
||||||
|
# know how to traverse themselves. (A solution which dynamically
|
||||||
|
# checks the type of children is possible, but is slow and
|
||||||
|
# error-prone.) So, a class including the module which knows how
|
||||||
|
# to traverse the entire tree should be defined. Such classes
|
||||||
|
# have a handler for each nonterminal node which recursively
|
||||||
|
# processes children nodes:
|
||||||
|
#
|
||||||
|
# require 'ast'
|
||||||
|
#
|
||||||
|
# class ArithmeticsProcessor
|
||||||
|
# include AST::Processor::Mixin
|
||||||
|
# # This method traverses any binary operators such as (add)
|
||||||
|
# # or (multiply).
|
||||||
|
# def process_binary_op(node)
|
||||||
|
# # Children aren't decomposed automatically; it is
|
||||||
|
# # suggested to use Ruby multiple assignment expansion,
|
||||||
|
# # as it is very convenient here.
|
||||||
|
# left_expr, right_expr = *node
|
||||||
|
#
|
||||||
|
# # AST::Node#updated won't change node type if nil is
|
||||||
|
# # passed as a first argument, which allows to reuse the
|
||||||
|
# # same handler for multiple node types using `alias'
|
||||||
|
# # (below).
|
||||||
|
# node.updated(nil, [
|
||||||
|
# process(left_expr),
|
||||||
|
# process(right_expr)
|
||||||
|
# ])
|
||||||
|
# end
|
||||||
|
# alias_method :on_add, :process_binary_op
|
||||||
|
# alias_method :on_multiply, :process_binary_op
|
||||||
|
# alias_method :on_divide, :process_binary_op
|
||||||
|
#
|
||||||
|
# def on_negate(node)
|
||||||
|
# # It is also possible to use #process_all for more
|
||||||
|
# # compact code if every child is a Node.
|
||||||
|
# node.updated(nil, process_all(node))
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# def on_store(node)
|
||||||
|
# expr, variable_name = *node
|
||||||
|
#
|
||||||
|
# # Note that variable_name is not a Node and thus isn't
|
||||||
|
# # passed to #process.
|
||||||
|
# node.updated(nil, [
|
||||||
|
# process(expr),
|
||||||
|
# variable_name
|
||||||
|
# ])
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# # (load) is effectively a terminal node, and so it does
|
||||||
|
# # not need an explicit handler, as the following is the
|
||||||
|
# # default behavior. Essentially, for any nodes that don't
|
||||||
|
# # have a defined handler, the node remains unchanged.
|
||||||
|
# def on_load(node)
|
||||||
|
# nil
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# def on_each(node)
|
||||||
|
# node.updated(nil, process_all(node))
|
||||||
|
# end
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# Let's test our ArithmeticsProcessor:
|
||||||
|
#
|
||||||
|
# include AST::Sexp
|
||||||
|
# expr = s(:add, s(:integer, 2), s(:integer, 2))
|
||||||
|
#
|
||||||
|
# p ArithmeticsProcessor.new.process(expr) == expr # => true
|
||||||
|
#
|
||||||
|
# As expected, it does not change anything at all. This isn't
|
||||||
|
# actually very useful, so let's now define a Calculator, which
|
||||||
|
# will compute the expression values:
|
||||||
|
#
|
||||||
|
# # This Processor folds nonterminal nodes and returns an
|
||||||
|
# # (integer) terminal node.
|
||||||
|
# class ArithmeticsCalculator < ArithmeticsProcessor
|
||||||
|
# def compute_op(node)
|
||||||
|
# # First, node children are processed and then unpacked
|
||||||
|
# # to local variables.
|
||||||
|
# nodes = process_all(node)
|
||||||
|
#
|
||||||
|
# if nodes.all? { |node| node.type == :integer }
|
||||||
|
# # If each of those nodes represents a literal, we can
|
||||||
|
# # fold this node!
|
||||||
|
# values = nodes.map { |node| node.children.first }
|
||||||
|
# AST::Node.new(:integer, [
|
||||||
|
# yield(values)
|
||||||
|
# ])
|
||||||
|
# else
|
||||||
|
# # Otherwise, we can just leave the current node in the
|
||||||
|
# # tree and only update it with processed children
|
||||||
|
# # nodes, which can be partially folded.
|
||||||
|
# node.updated(nil, nodes)
|
||||||
|
# end
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# def on_add(node)
|
||||||
|
# compute_op(node) { |left, right| left + right }
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# def on_multiply(node)
|
||||||
|
# compute_op(node) { |left, right| left * right }
|
||||||
|
# end
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# Let's check:
|
||||||
|
#
|
||||||
|
# p ArithmeticsCalculator.new.process(expr) # => (integer 4)
|
||||||
|
#
|
||||||
|
# Excellent, the calculator works! Now, a careful reader could
|
||||||
|
# notice that the ArithmeticsCalculator does not know how to
|
||||||
|
# divide numbers. What if we pass an expression with division to
|
||||||
|
# it?
|
||||||
|
#
|
||||||
|
# expr_with_division = \
|
||||||
|
# s(:add,
|
||||||
|
# s(:integer, 1),
|
||||||
|
# s(:divide,
|
||||||
|
# s(:add, s(:integer, 8), s(:integer, 4)),
|
||||||
|
# s(:integer, 3))) # 1 + (8 + 4) / 3
|
||||||
|
#
|
||||||
|
# folded_expr_with_division = ArithmeticsCalculator.new.process(expr_with_division)
|
||||||
|
# p folded_expr_with_division
|
||||||
|
# # => (add
|
||||||
|
# # (integer 1)
|
||||||
|
# # (divide
|
||||||
|
# # (integer 12)
|
||||||
|
# # (integer 3)))
|
||||||
|
#
|
||||||
|
# As you can see, the expression was folded _partially_: the inner
|
||||||
|
# `(add)` node which could be computed was folded to
|
||||||
|
# `(integer 12)`, the `(divide)` node is left as-is because there
|
||||||
|
# is no computing handler for it, and the root `(add)` node was
|
||||||
|
# also left as it is because some of its children were not
|
||||||
|
# literals.
|
||||||
|
#
|
||||||
|
# Note that this partial folding is only possible because the
|
||||||
|
# _data_ format, i.e. the format in which the computed values of
|
||||||
|
# the nodes are represented, is the same as the AST itself.
|
||||||
|
#
|
||||||
|
# Let's extend our ArithmeticsCalculator class further.
|
||||||
|
#
|
||||||
|
# class ArithmeticsCalculator
|
||||||
|
# def on_divide(node)
|
||||||
|
# compute_op(node) { |left, right| left / right }
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# def on_negate(node)
|
||||||
|
# # Note how #compute_op works regardless of the operator
|
||||||
|
# # arity.
|
||||||
|
# compute_op(node) { |value| -value }
|
||||||
|
# end
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# Now, let's apply our renewed ArithmeticsCalculator to a partial
|
||||||
|
# result of previous evaluation:
|
||||||
|
#
|
||||||
|
# p ArithmeticsCalculator.new.process(expr_with_division) # => (integer 5)
|
||||||
|
#
|
||||||
|
# Five! Excellent. This is also pretty much how CRuby 1.8 executed
|
||||||
|
# its programs.
|
||||||
|
#
|
||||||
|
# Now, let's do some automated bug searching. Division by zero is
|
||||||
|
# an error, right? So if we could detect that someone has divided
|
||||||
|
# by zero before the program is even run, that could save some
|
||||||
|
# debugging time.
|
||||||
|
#
|
||||||
|
# class DivisionByZeroVerifier < ArithmeticsProcessor
|
||||||
|
# class VerificationFailure < Exception; end
|
||||||
|
#
|
||||||
|
# def on_divide(node)
|
||||||
|
# # You need to process the children to handle nested divisions
|
||||||
|
# # such as:
|
||||||
|
# # (divide
|
||||||
|
# # (integer 1)
|
||||||
|
# # (divide (integer 1) (integer 0))
|
||||||
|
# left, right = process_all(node)
|
||||||
|
#
|
||||||
|
# if right.type == :integer &&
|
||||||
|
# right.children.first == 0
|
||||||
|
# raise VerificationFailure, "Ouch! This code divides by zero."
|
||||||
|
# end
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# def divides_by_zero?(ast)
|
||||||
|
# process(ast)
|
||||||
|
# false
|
||||||
|
# rescue VerificationFailure
|
||||||
|
# true
|
||||||
|
# end
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# nice_expr = \
|
||||||
|
# s(:divide,
|
||||||
|
# s(:add, s(:integer, 10), s(:integer, 2)),
|
||||||
|
# s(:integer, 4))
|
||||||
|
#
|
||||||
|
# p DivisionByZeroVerifier.new.divides_by_zero?(nice_expr)
|
||||||
|
# # => false. Good.
|
||||||
|
#
|
||||||
|
# bad_expr = \
|
||||||
|
# s(:add, s(:integer, 10),
|
||||||
|
# s(:divide, s(:integer, 1), s(:integer, 0)))
|
||||||
|
#
|
||||||
|
# p DivisionByZeroVerifier.new.divides_by_zero?(bad_expr)
|
||||||
|
# # => true. WHOOPS. DO NOT RUN THIS.
|
||||||
|
#
|
||||||
|
# Of course, this won't detect more complex cases... unless you
|
||||||
|
# use some partial evaluation before! The possibilites are
|
||||||
|
# endless. Have fun.
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/processor/mixin.rb#240
|
||||||
module AST::Processor::Mixin
|
module AST::Processor::Mixin
|
||||||
|
# Default handler. Does nothing.
|
||||||
|
#
|
||||||
|
# @param node [AST::Node]
|
||||||
|
# @return [AST::Node, nil]
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/processor/mixin.rb#284
|
||||||
def handler_missing(node); end
|
def handler_missing(node); end
|
||||||
|
|
||||||
|
# Dispatches `node`. If a node has type `:foo`, then a handler
|
||||||
|
# named `on_foo` is invoked with one argument, the `node`; if
|
||||||
|
# there isn't such a handler, {#handler_missing} is invoked
|
||||||
|
# with the same argument.
|
||||||
|
#
|
||||||
|
# If the handler returns `nil`, `node` is returned; otherwise,
|
||||||
|
# the return value of the handler is passed along.
|
||||||
|
#
|
||||||
|
# @param node [AST::Node, nil]
|
||||||
|
# @return [AST::Node, nil]
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/processor/mixin.rb#251
|
||||||
def process(node); end
|
def process(node); end
|
||||||
|
|
||||||
|
# {#process}es each node from `nodes` and returns an array of
|
||||||
|
# results.
|
||||||
|
#
|
||||||
|
# @param nodes [Array<AST::Node>]
|
||||||
|
# @return [Array<AST::Node>]
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/processor/mixin.rb#274
|
||||||
def process_all(nodes); end
|
def process_all(nodes); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# This simple module is very useful in the cases where one needs
|
||||||
|
# to define deeply nested ASTs from Ruby code, for example, in
|
||||||
|
# tests. It should be used like this:
|
||||||
|
#
|
||||||
|
# describe YourLanguage::AST do
|
||||||
|
# include Sexp
|
||||||
|
#
|
||||||
|
# it "should correctly parse expressions" do
|
||||||
|
# YourLanguage.parse("1 + 2 * 3").should ==
|
||||||
|
# s(:add,
|
||||||
|
# s(:integer, 1),
|
||||||
|
# s(:multiply,
|
||||||
|
# s(:integer, 2),
|
||||||
|
# s(:integer, 3)))
|
||||||
|
# end
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# This way the amount of boilerplate code is greatly reduced.
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/sexp.rb#20
|
||||||
module AST::Sexp
|
module AST::Sexp
|
||||||
|
# Creates a {Node} with type `type` and children `children`.
|
||||||
|
# Note that the resulting node is of the type AST::Node and not a
|
||||||
|
# subclass.
|
||||||
|
# This would not pose a problem with comparisons, as {Node#==}
|
||||||
|
# ignores metadata.
|
||||||
|
#
|
||||||
|
# source://ast//lib/ast/sexp.rb#26
|
||||||
def s(type, *children); end
|
def s(type, *children); end
|
||||||
end
|
end
|
||||||
|
|||||||
2396
Library/Homebrew/sorbet/rbi/gems/bindata@2.4.15.rbi
generated
2396
Library/Homebrew/sorbet/rbi/gems/bindata@2.4.15.rbi
generated
File diff suppressed because it is too large
Load Diff
432
Library/Homebrew/sorbet/rbi/gems/bootsnap@1.17.0.rbi
generated
432
Library/Homebrew/sorbet/rbi/gems/bootsnap@1.17.0.rbi
generated
@ -4,214 +4,646 @@
|
|||||||
# This is an autogenerated file for types exported from the `bootsnap` gem.
|
# This is an autogenerated file for types exported from the `bootsnap` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem bootsnap`.
|
# Please instead update this file by running `bin/tapioca gem bootsnap`.
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/version.rb#3
|
||||||
module Bootsnap
|
module Bootsnap
|
||||||
extend ::Bootsnap
|
extend ::Bootsnap
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/bundler.rb#6
|
||||||
def bundler?; end
|
def bundler?; end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# source://bootsnap//lib/bootsnap.rb#34
|
||||||
def _instrument(event, path); end
|
def _instrument(event, path); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap.rb#122
|
||||||
def absolute_path?(path); end
|
def absolute_path?(path); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap.rb#70
|
||||||
def default_setup; end
|
def default_setup; end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap.rb#27
|
||||||
def instrumentation=(callback); end
|
def instrumentation=(callback); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap.rb#14
|
||||||
def log!; end
|
def log!; end
|
||||||
|
|
||||||
|
# Returns the value of attribute logger.
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap.rb#12
|
||||||
def logger; end
|
def logger; end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap.rb#18
|
||||||
def logger=(logger); end
|
def logger=(logger); end
|
||||||
|
|
||||||
|
# Allow the C extension to redefine `rb_get_path` without warning.
|
||||||
|
# Allow the C extension to redefine `rb_get_path` without warning.
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap.rb#130
|
||||||
def rb_get_path(fname); end
|
def rb_get_path(fname); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap.rb#38
|
||||||
def setup(cache_dir:, development_mode: T.unsafe(nil), load_path_cache: T.unsafe(nil), ignore_directories: T.unsafe(nil), readonly: T.unsafe(nil), compile_cache_iseq: T.unsafe(nil), compile_cache_yaml: T.unsafe(nil), compile_cache_json: T.unsafe(nil)); end
|
def setup(cache_dir:, development_mode: T.unsafe(nil), load_path_cache: T.unsafe(nil), ignore_directories: T.unsafe(nil), readonly: T.unsafe(nil), compile_cache_iseq: T.unsafe(nil), compile_cache_yaml: T.unsafe(nil), compile_cache_json: T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap.rb#66
|
||||||
def unload_cache!; end
|
def unload_cache!; end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/compile_cache.rb#4
|
||||||
module Bootsnap::CompileCache
|
module Bootsnap::CompileCache
|
||||||
class << self
|
class << self
|
||||||
|
# source://bootsnap//lib/bootsnap/compile_cache.rb#12
|
||||||
def setup(cache_dir:, iseq:, yaml:, json:, readonly: T.unsafe(nil)); end
|
def setup(cache_dir:, iseq:, yaml:, json:, readonly: T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/compile_cache.rb#45
|
||||||
def supported?; end
|
def supported?; end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/compile_cache.rb#10
|
||||||
class Bootsnap::CompileCache::Error < ::StandardError; end
|
class Bootsnap::CompileCache::Error < ::StandardError; end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/compile_cache.rb#5
|
||||||
Bootsnap::CompileCache::UNCOMPILABLE = T.let(T.unsafe(nil), BasicObject)
|
Bootsnap::CompileCache::UNCOMPILABLE = T.let(T.unsafe(nil), BasicObject)
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/explicit_require.rb#4
|
||||||
module Bootsnap::ExplicitRequire
|
module Bootsnap::ExplicitRequire
|
||||||
class << self
|
class << self
|
||||||
|
# source://bootsnap//lib/bootsnap/explicit_require.rb#17
|
||||||
def from_archdir(feature); end
|
def from_archdir(feature); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/explicit_require.rb#13
|
||||||
def from_rubylibdir(feature); end
|
def from_rubylibdir(feature); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/explicit_require.rb#9
|
||||||
def from_self(feature); end
|
def from_self(feature); end
|
||||||
|
|
||||||
|
# Given a set of gems, run a block with the LOAD_PATH narrowed to include
|
||||||
|
# only core ruby source paths and these gems -- that is, roughly,
|
||||||
|
# temporarily remove all gems not listed in this call from the LOAD_PATH.
|
||||||
|
#
|
||||||
|
# This is useful before bootsnap is fully-initialized to load gems that it
|
||||||
|
# depends on, without forcing full LOAD_PATH traversals.
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/explicit_require.rb#27
|
||||||
def with_gems(*gems); end
|
def with_gems(*gems); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/explicit_require.rb#5
|
||||||
Bootsnap::ExplicitRequire::ARCHDIR = T.let(T.unsafe(nil), String)
|
Bootsnap::ExplicitRequire::ARCHDIR = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/explicit_require.rb#7
|
||||||
Bootsnap::ExplicitRequire::DLEXT = T.let(T.unsafe(nil), String)
|
Bootsnap::ExplicitRequire::DLEXT = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/explicit_require.rb#6
|
||||||
Bootsnap::ExplicitRequire::RUBYLIBDIR = T.let(T.unsafe(nil), String)
|
Bootsnap::ExplicitRequire::RUBYLIBDIR = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap.rb#9
|
||||||
class Bootsnap::InvalidConfiguration < ::StandardError; end
|
class Bootsnap::InvalidConfiguration < ::StandardError; end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache.rb#4
|
||||||
module Bootsnap::LoadPathCache
|
module Bootsnap::LoadPathCache
|
||||||
class << self
|
class << self
|
||||||
|
# Returns the value of attribute enabled.
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache.rb#27
|
||||||
def enabled?; end
|
def enabled?; end
|
||||||
|
|
||||||
|
# Returns the value of attribute load_path_cache.
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache.rb#27
|
||||||
def load_path_cache; end
|
def load_path_cache; end
|
||||||
|
|
||||||
|
# Returns the value of attribute loaded_features_index.
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache.rb#27
|
||||||
def loaded_features_index; end
|
def loaded_features_index; end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache.rb#31
|
||||||
def setup(cache_path:, development_mode:, ignore_directories:, readonly: T.unsafe(nil)); end
|
def setup(cache_path:, development_mode:, ignore_directories:, readonly: T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache.rb#56
|
||||||
def supported?; end
|
def supported?; end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache.rb#48
|
||||||
def unload!; end
|
def unload!; end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache.rb#22
|
||||||
Bootsnap::LoadPathCache::CACHED_EXTENSIONS = T.let(T.unsafe(nil), Array)
|
Bootsnap::LoadPathCache::CACHED_EXTENSIONS = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/cache.rb#7
|
||||||
class Bootsnap::LoadPathCache::Cache
|
class Bootsnap::LoadPathCache::Cache
|
||||||
|
# @return [Cache] a new instance of Cache
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/cache.rb#10
|
||||||
def initialize(store, path_obj, development_mode: T.unsafe(nil)); end
|
def initialize(store, path_obj, development_mode: T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Try to resolve this feature to an absolute path without traversing the
|
||||||
|
# loadpath.
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/cache.rb#56
|
||||||
def find(feature); end
|
def find(feature); end
|
||||||
|
|
||||||
|
# What is the path item that contains the dir as child?
|
||||||
|
# e.g. given "/a/b/c/d" exists, and the path is ["/a/b"], load_dir("c/d")
|
||||||
|
# is "/a/b".
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/cache.rb#22
|
||||||
def load_dir(dir); end
|
def load_dir(dir); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/cache.rb#116
|
||||||
def push_paths(sender, *paths); end
|
def push_paths(sender, *paths); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/cache.rb#122
|
||||||
def reinitialize(path_obj = T.unsafe(nil)); end
|
def reinitialize(path_obj = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/cache.rb#110
|
||||||
def unshift_paths(sender, *paths); end
|
def unshift_paths(sender, *paths); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/cache.rb#135
|
||||||
def dir_changed?; end
|
def dir_changed?; end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/cache.rb#180
|
||||||
def expand_path(feature); end
|
def expand_path(feature); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/cache.rb#211
|
||||||
def maybe_append_extension(feature); end
|
def maybe_append_extension(feature); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/cache.rb#188
|
||||||
def now; end
|
def now; end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/cache.rb#145
|
||||||
def push_paths_locked(*paths); end
|
def push_paths_locked(*paths); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/cache.rb#207
|
||||||
def search_index(feature); end
|
def search_index(feature); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/cache.rb#184
|
||||||
def stale?; end
|
def stale?; end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/cache.rb#239
|
||||||
def try_ext(feature); end
|
def try_ext(feature); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/cache.rb#219
|
||||||
def try_index(feature); end
|
def try_index(feature); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/cache.rb#163
|
||||||
def unshift_paths_locked(*paths); end
|
def unshift_paths_locked(*paths); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# seconds
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/cache.rb#8
|
||||||
Bootsnap::LoadPathCache::Cache::AGE_THRESHOLD = T.let(T.unsafe(nil), Integer)
|
Bootsnap::LoadPathCache::Cache::AGE_THRESHOLD = T.let(T.unsafe(nil), Integer)
|
||||||
|
|
||||||
|
# { 'enumerator' => nil, 'enumerator.so' => nil, ... }
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/cache.rb#32
|
||||||
Bootsnap::LoadPathCache::Cache::BUILTIN_FEATURES = T.let(T.unsafe(nil), Hash)
|
Bootsnap::LoadPathCache::Cache::BUILTIN_FEATURES = T.let(T.unsafe(nil), Hash)
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/cache.rb#27
|
||||||
|
Bootsnap::LoadPathCache::Cache::TRUFFLERUBY_LIB_DIR_PREFIX = T.let(T.unsafe(nil), T.untyped)
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#5
|
||||||
module Bootsnap::LoadPathCache::ChangeObserver
|
module Bootsnap::LoadPathCache::ChangeObserver
|
||||||
class << self
|
class << self
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#65
|
||||||
def register(arr, observer); end
|
def register(arr, observer); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#74
|
||||||
def unregister(arr); end
|
def unregister(arr); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#6
|
||||||
module Bootsnap::LoadPathCache::ChangeObserver::ArrayMixin
|
module Bootsnap::LoadPathCache::ChangeObserver::ArrayMixin
|
||||||
|
# For each method that adds items to one end or another of the array
|
||||||
|
# (<<, push, unshift, concat), override that method to also notify the
|
||||||
|
# observer of the change.
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#10
|
||||||
def <<(entry); end
|
def <<(entry); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#51
|
||||||
def []=(*args, &block); end
|
def []=(*args, &block); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#15
|
||||||
def append(*entries); end
|
def append(*entries); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#51
|
||||||
def clear(*args, &block); end
|
def clear(*args, &block); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#58
|
||||||
def clone; end
|
def clone; end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#51
|
||||||
def collect!(*args, &block); end
|
def collect!(*args, &block); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#51
|
||||||
def compact!(*args, &block); end
|
def compact!(*args, &block); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#27
|
||||||
def concat(entries); end
|
def concat(entries); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#51
|
||||||
def delete(*args, &block); end
|
def delete(*args, &block); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#51
|
||||||
def delete_at(*args, &block); end
|
def delete_at(*args, &block); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#51
|
||||||
def delete_if(*args, &block); end
|
def delete_if(*args, &block); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#58
|
||||||
def dup; end
|
def dup; end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#51
|
||||||
def fill(*args, &block); end
|
def fill(*args, &block); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#51
|
||||||
def flatten!(*args, &block); end
|
def flatten!(*args, &block); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#51
|
||||||
def insert(*args, &block); end
|
def insert(*args, &block); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#51
|
||||||
def keep_if(*args, &block); end
|
def keep_if(*args, &block); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#51
|
||||||
def map!(*args, &block); end
|
def map!(*args, &block); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#51
|
||||||
def pop(*args, &block); end
|
def pop(*args, &block); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#21
|
||||||
def prepend(*entries); end
|
def prepend(*entries); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#15
|
||||||
def push(*entries); end
|
def push(*entries); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#51
|
||||||
def reject!(*args, &block); end
|
def reject!(*args, &block); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#51
|
||||||
def replace(*args, &block); end
|
def replace(*args, &block); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#51
|
||||||
def reverse!(*args, &block); end
|
def reverse!(*args, &block); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#51
|
||||||
def rotate!(*args, &block); end
|
def rotate!(*args, &block); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#51
|
||||||
def select!(*args, &block); end
|
def select!(*args, &block); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#51
|
||||||
def shift(*args, &block); end
|
def shift(*args, &block); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#51
|
||||||
def shuffle!(*args, &block); end
|
def shuffle!(*args, &block); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#51
|
||||||
def slice!(*args, &block); end
|
def slice!(*args, &block); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#51
|
||||||
def sort!(*args, &block); end
|
def sort!(*args, &block); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#51
|
||||||
def sort_by!(*args, &block); end
|
def sort_by!(*args, &block); end
|
||||||
|
|
||||||
|
# uniq! keeps the first occurrence of each path, otherwise preserving
|
||||||
|
# order, preserving the effective load path
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#34
|
||||||
def uniq!(*args); end
|
def uniq!(*args); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/change_observer.rb#21
|
||||||
def unshift(*entries); end
|
def unshift(*entries); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache.rb#16
|
||||||
Bootsnap::LoadPathCache::DLEXT = T.let(T.unsafe(nil), String)
|
Bootsnap::LoadPathCache::DLEXT = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# This is nil on linux and darwin, but I think it's '.o' on some other
|
||||||
|
# platform. I'm not really sure which, but it seems better to replicate
|
||||||
|
# ruby's semantics as faithfully as possible.
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache.rb#20
|
||||||
|
Bootsnap::LoadPathCache::DLEXT2 = T.let(T.unsafe(nil), T.untyped)
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache.rb#11
|
||||||
Bootsnap::LoadPathCache::DL_EXTENSIONS = T.let(T.unsafe(nil), Array)
|
Bootsnap::LoadPathCache::DL_EXTENSIONS = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache.rb#7
|
||||||
Bootsnap::LoadPathCache::DOT_RB = T.let(T.unsafe(nil), String)
|
Bootsnap::LoadPathCache::DOT_RB = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache.rb#8
|
||||||
Bootsnap::LoadPathCache::DOT_SO = T.let(T.unsafe(nil), String)
|
Bootsnap::LoadPathCache::DOT_SO = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache.rb#5
|
||||||
Bootsnap::LoadPathCache::FALLBACK_SCAN = T.let(T.unsafe(nil), BasicObject)
|
Bootsnap::LoadPathCache::FALLBACK_SCAN = T.let(T.unsafe(nil), BasicObject)
|
||||||
|
|
||||||
|
# LoadedFeaturesIndex partially mirrors an internal structure in ruby that
|
||||||
|
# we can't easily obtain an interface to.
|
||||||
|
#
|
||||||
|
# This works around an issue where, without bootsnap, *ruby* knows that it
|
||||||
|
# has already required a file by its short name (e.g. require 'bundler') if
|
||||||
|
# a new instance of bundler is added to the $LOAD_PATH which resolves to a
|
||||||
|
# different absolute path. This class makes bootsnap smart enough to
|
||||||
|
# realize that it has already loaded 'bundler', and not just
|
||||||
|
# '/path/to/bundler'.
|
||||||
|
#
|
||||||
|
# If you disable LoadedFeaturesIndex, you can see the problem this solves by:
|
||||||
|
#
|
||||||
|
# 1. `require 'a'`
|
||||||
|
# 2. Prepend a new $LOAD_PATH element containing an `a.rb`
|
||||||
|
# 3. `require 'a'`
|
||||||
|
#
|
||||||
|
# Ruby returns false from step 3.
|
||||||
|
# With bootsnap but with no LoadedFeaturesIndex, this loads two different
|
||||||
|
# `a.rb`s.
|
||||||
|
# With bootsnap and with LoadedFeaturesIndex, this skips the second load,
|
||||||
|
# returning false like ruby.
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/loaded_features_index.rb#26
|
||||||
class Bootsnap::LoadPathCache::LoadedFeaturesIndex
|
class Bootsnap::LoadPathCache::LoadedFeaturesIndex
|
||||||
|
# @return [LoadedFeaturesIndex] a new instance of LoadedFeaturesIndex
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/loaded_features_index.rb#27
|
||||||
def initialize; end
|
def initialize; end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/loaded_features_index.rb#72
|
||||||
def cursor(short); end
|
def cursor(short); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/loaded_features_index.rb#78
|
||||||
def identify(short, cursor); end
|
def identify(short, cursor); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/loaded_features_index.rb#68
|
||||||
def key?(feature); end
|
def key?(feature); end
|
||||||
|
|
||||||
|
# We've optimized for initialize and register to be fast, and purge to be tolerable.
|
||||||
|
# If access patterns make this not-okay, we can lazy-invert the LFI on
|
||||||
|
# first purge and work from there.
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/loaded_features_index.rb#54
|
||||||
def purge(feature); end
|
def purge(feature); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/loaded_features_index.rb#61
|
||||||
def purge_multi(features); end
|
def purge_multi(features); end
|
||||||
|
|
||||||
|
# There is a relatively uncommon case where we could miss adding an
|
||||||
|
# entry:
|
||||||
|
#
|
||||||
|
# If the user asked for e.g. `require 'bundler'`, and we went through the
|
||||||
|
# `FALLBACK_SCAN` pathway in `kernel_require.rb` and therefore did not
|
||||||
|
# pass `long` (the full expanded absolute path), then we did are not able
|
||||||
|
# to confidently add the `bundler.rb` form to @lfi.
|
||||||
|
#
|
||||||
|
# We could either:
|
||||||
|
#
|
||||||
|
# 1. Just add `bundler.rb`, `bundler.so`, and so on, which is close but
|
||||||
|
# not quite right; or
|
||||||
|
# 2. Inspect $LOADED_FEATURES upon return from yield to find the matching
|
||||||
|
# entry.
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/loaded_features_index.rb#105
|
||||||
def register(short, long); end
|
def register(short, long); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# Might Ruby automatically search for this extension if
|
||||||
|
# someone tries to 'require' the file without it? E.g. Ruby
|
||||||
|
# will implicitly try 'x.rb' if you ask for 'x'.
|
||||||
|
#
|
||||||
|
# This is complex and platform-dependent, and the Ruby docs are a little
|
||||||
|
# handwavy about what will be tried when and in what order.
|
||||||
|
# So optimistically pretend that all known elidable extensions
|
||||||
|
# will be tried on all platforms, and that people are unlikely
|
||||||
|
# to name files in a way that assumes otherwise.
|
||||||
|
# (E.g. It's unlikely that someone will know that their code
|
||||||
|
# will _never_ run on MacOS, and therefore think they can get away
|
||||||
|
# with calling a Ruby file 'x.dylib.rb' and then requiring it as 'x.dylib'.)
|
||||||
|
#
|
||||||
|
# See <https://ruby-doc.org/core-2.6.4/Kernel.html#method-i-require>.
|
||||||
|
#
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/loaded_features_index.rb#146
|
||||||
def extension_elidable?(feature); end
|
def extension_elidable?(feature); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/loaded_features_index.rb#150
|
||||||
def strip_extension_if_elidable(feature); end
|
def strip_extension_if_elidable(feature); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/loaded_features_index.rb#129
|
||||||
Bootsnap::LoadPathCache::LoadedFeaturesIndex::STRIP_EXTENSION = T.let(T.unsafe(nil), Regexp)
|
Bootsnap::LoadPathCache::LoadedFeaturesIndex::STRIP_EXTENSION = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/path.rb#7
|
||||||
class Bootsnap::LoadPathCache::Path
|
class Bootsnap::LoadPathCache::Path
|
||||||
|
# @return [Path] a new instance of Path
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/path.rb#24
|
||||||
def initialize(path, real: T.unsafe(nil)); end
|
def initialize(path, real: T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Return a list of all the requirable files and all of the subdirectories
|
||||||
|
# of this +Path+.
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/path.rb#59
|
||||||
def entries_and_dirs(store); end
|
def entries_and_dirs(store); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/path.rb#82
|
||||||
def expanded_path; end
|
def expanded_path; end
|
||||||
|
|
||||||
|
# True if the path exists, but represents a non-directory object
|
||||||
|
#
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/path.rb#47
|
||||||
def non_directory?; end
|
def non_directory?; end
|
||||||
|
|
||||||
|
# Returns the value of attribute path.
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/path.rb#22
|
||||||
def path; end
|
def path; end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/path.rb#53
|
||||||
def relative?; end
|
def relative?; end
|
||||||
|
|
||||||
|
# A path is considered 'stable' if it is part of a Gem.path or the ruby
|
||||||
|
# distribution. When adding or removing files in these paths, the cache
|
||||||
|
# must be cleared before the change will be noticed.
|
||||||
|
#
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/path.rb#11
|
||||||
def stable?; end
|
def stable?; end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/path.rb#29
|
||||||
def to_realpath; end
|
def to_realpath; end
|
||||||
|
|
||||||
|
# A path is considered volatile if it doesn't live under a Gem.path or
|
||||||
|
# the ruby distribution root. These paths are scanned for new additions
|
||||||
|
# more frequently.
|
||||||
|
#
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/path.rb#18
|
||||||
def volatile?; end
|
def volatile?; end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# last time a directory was modified in this subtree. +dirs+ should be a
|
||||||
|
# list of relative paths to directories under +path+. e.g. for /a/b and
|
||||||
|
# /a/b/c, pass ('/a/b', ['c'])
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/path.rb#99
|
||||||
def latest_mtime(path, dirs); end
|
def latest_mtime(path, dirs); end
|
||||||
|
|
||||||
|
# (expensive) returns [entries, dirs]
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/path.rb#92
|
||||||
def scan!; end
|
def scan!; end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/path.rb#123
|
||||||
def stability; end
|
def stability; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Built-in ruby lib stuff doesn't change, but things can occasionally be
|
||||||
|
# installed into sitedir, which generally lives under rubylibdir.
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/path.rb#120
|
||||||
Bootsnap::LoadPathCache::Path::RUBY_LIBDIR = T.let(T.unsafe(nil), String)
|
Bootsnap::LoadPathCache::Path::RUBY_LIBDIR = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/path.rb#121
|
||||||
Bootsnap::LoadPathCache::Path::RUBY_SITEDIR = T.let(T.unsafe(nil), String)
|
Bootsnap::LoadPathCache::Path::RUBY_SITEDIR = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# a Path can be either stable of volatile, depending on how frequently we
|
||||||
|
# expect its contents may change. Stable paths aren't rescanned nearly as
|
||||||
|
# often.
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/path.rb#115
|
||||||
Bootsnap::LoadPathCache::Path::STABLE = T.let(T.unsafe(nil), Symbol)
|
Bootsnap::LoadPathCache::Path::STABLE = T.let(T.unsafe(nil), Symbol)
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/path.rb#116
|
||||||
Bootsnap::LoadPathCache::Path::VOLATILE = T.let(T.unsafe(nil), Symbol)
|
Bootsnap::LoadPathCache::Path::VOLATILE = T.let(T.unsafe(nil), Symbol)
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/path_scanner.rb#7
|
||||||
module Bootsnap::LoadPathCache::PathScanner
|
module Bootsnap::LoadPathCache::PathScanner
|
||||||
class << self
|
class << self
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/path_scanner.rb#23
|
||||||
def call(path); end
|
def call(path); end
|
||||||
|
|
||||||
|
# Returns the value of attribute ignored_directories.
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/path_scanner.rb#21
|
||||||
def ignored_directories; end
|
def ignored_directories; end
|
||||||
|
|
||||||
|
# Sets the attribute ignored_directories
|
||||||
|
#
|
||||||
|
# @param value the value to set the attribute ignored_directories to.
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/path_scanner.rb#21
|
||||||
def ignored_directories=(_arg0); end
|
def ignored_directories=(_arg0); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/path_scanner.rb#69
|
||||||
def os_path(path); end
|
def os_path(path); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/path_scanner.rb#49
|
||||||
def walk(absolute_dir_path, relative_dir_path, &block); end
|
def walk(absolute_dir_path, relative_dir_path, &block); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/path_scanner.rb#10
|
||||||
Bootsnap::LoadPathCache::PathScanner::ALTERNATIVE_NATIVE_EXTENSIONS_PATTERN = T.let(T.unsafe(nil), Regexp)
|
Bootsnap::LoadPathCache::PathScanner::ALTERNATIVE_NATIVE_EXTENSIONS_PATTERN = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/path_scanner.rb#12
|
||||||
Bootsnap::LoadPathCache::PathScanner::BUNDLE_PATH = T.let(T.unsafe(nil), String)
|
Bootsnap::LoadPathCache::PathScanner::BUNDLE_PATH = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/path_scanner.rb#9
|
||||||
Bootsnap::LoadPathCache::PathScanner::NORMALIZE_NATIVE_EXTENSIONS = T.let(T.unsafe(nil), TrueClass)
|
Bootsnap::LoadPathCache::PathScanner::NORMALIZE_NATIVE_EXTENSIONS = T.let(T.unsafe(nil), TrueClass)
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/path_scanner.rb#8
|
||||||
Bootsnap::LoadPathCache::PathScanner::REQUIRABLE_EXTENSIONS = T.let(T.unsafe(nil), Array)
|
Bootsnap::LoadPathCache::PathScanner::REQUIRABLE_EXTENSIONS = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache.rb#9
|
||||||
Bootsnap::LoadPathCache::SLASH = T.let(T.unsafe(nil), String)
|
Bootsnap::LoadPathCache::SLASH = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/store.rb#9
|
||||||
class Bootsnap::LoadPathCache::Store
|
class Bootsnap::LoadPathCache::Store
|
||||||
|
# @return [Store] a new instance of Store
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/store.rb#16
|
||||||
def initialize(store_path, readonly: T.unsafe(nil)); end
|
def initialize(store_path, readonly: T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# @raise [SetOutsideTransactionNotAllowed]
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/store.rb#28
|
||||||
def fetch(key); end
|
def fetch(key); end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/store.rb#24
|
||||||
def get(key); end
|
def get(key); end
|
||||||
|
|
||||||
|
# @raise [SetOutsideTransactionNotAllowed]
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/store.rb#40
|
||||||
def set(key, value); end
|
def set(key, value); end
|
||||||
|
|
||||||
|
# @raise [NestedTransactionError]
|
||||||
|
#
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/store.rb#49
|
||||||
def transaction; end
|
def transaction; end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/store.rb#66
|
||||||
def commit_transaction; end
|
def commit_transaction; end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/store.rb#112
|
||||||
def default_data; end
|
def default_data; end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/store.rb#95
|
||||||
def dump_data; end
|
def dump_data; end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/store.rb#73
|
||||||
def load_data; end
|
def load_data; end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/store.rb#61
|
||||||
def mark_for_mutation!; end
|
def mark_for_mutation!; end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/store.rb#116
|
||||||
def mkdir_p(path); end
|
def mkdir_p(path); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/store.rb#11
|
||||||
Bootsnap::LoadPathCache::Store::CURRENT_VERSION = T.let(T.unsafe(nil), String)
|
Bootsnap::LoadPathCache::Store::CURRENT_VERSION = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/store.rb#13
|
||||||
class Bootsnap::LoadPathCache::Store::NestedTransactionError < ::StandardError; end
|
class Bootsnap::LoadPathCache::Store::NestedTransactionError < ::StandardError; end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/store.rb#14
|
||||||
class Bootsnap::LoadPathCache::Store::SetOutsideTransactionNotAllowed < ::StandardError; end
|
class Bootsnap::LoadPathCache::Store::SetOutsideTransactionNotAllowed < ::StandardError; end
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/load_path_cache/store.rb#10
|
||||||
Bootsnap::LoadPathCache::Store::VERSION_KEY = T.let(T.unsafe(nil), String)
|
Bootsnap::LoadPathCache::Store::VERSION_KEY = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://bootsnap//lib/bootsnap/version.rb#4
|
||||||
Bootsnap::VERSION = T.let(T.unsafe(nil), String)
|
Bootsnap::VERSION = T.let(T.unsafe(nil), String)
|
||||||
|
|||||||
20
Library/Homebrew/sorbet/rbi/gems/byebug@11.1.3.rbi
generated
20
Library/Homebrew/sorbet/rbi/gems/byebug@11.1.3.rbi
generated
@ -4,17 +4,35 @@
|
|||||||
# This is an autogenerated file for types exported from the `byebug` gem.
|
# This is an autogenerated file for types exported from the `byebug` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem byebug`.
|
# Please instead update this file by running `bin/tapioca gem byebug`.
|
||||||
|
|
||||||
|
# Reopen main module to define the library version
|
||||||
|
#
|
||||||
|
# source://byebug//lib/byebug/attacher.rb#6
|
||||||
module Byebug
|
module Byebug
|
||||||
class << self
|
class << self
|
||||||
|
# Starts byebug, and stops at the first line of user's code.
|
||||||
|
#
|
||||||
|
# source://byebug//lib/byebug/attacher.rb#10
|
||||||
def attach; end
|
def attach; end
|
||||||
|
|
||||||
|
# source://byebug//lib/byebug/attacher.rb#21
|
||||||
def spawn(host = T.unsafe(nil), port = T.unsafe(nil)); end
|
def spawn(host = T.unsafe(nil), port = T.unsafe(nil)); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Adds a `byebug` method to the Kernel module.
|
||||||
|
#
|
||||||
|
# Dropping a `byebug` call anywhere in your code, you get a debug prompt.
|
||||||
|
#
|
||||||
|
# source://byebug//lib/byebug/attacher.rb#34
|
||||||
module Kernel
|
module Kernel
|
||||||
extend ::Forwardable
|
include ::ActiveSupport::ForkTracker::CoreExt
|
||||||
|
|
||||||
|
# source://byebug//lib/byebug/attacher.rb#35
|
||||||
def byebug; end
|
def byebug; end
|
||||||
|
|
||||||
|
# source://byebug//lib/byebug/attacher.rb#35
|
||||||
def debugger; end
|
def debugger; end
|
||||||
|
|
||||||
|
# source://byebug//lib/byebug/attacher.rb#41
|
||||||
def remote_byebug(host = T.unsafe(nil), port = T.unsafe(nil)); end
|
def remote_byebug(host = T.unsafe(nil), port = T.unsafe(nil)); end
|
||||||
end
|
end
|
||||||
|
|||||||
2421
Library/Homebrew/sorbet/rbi/gems/coderay@1.1.3.rbi
generated
2421
Library/Homebrew/sorbet/rbi/gems/coderay@1.1.3.rbi
generated
File diff suppressed because it is too large
Load Diff
988
Library/Homebrew/sorbet/rbi/gems/commander@4.6.0.rbi
generated
988
Library/Homebrew/sorbet/rbi/gems/commander@4.6.0.rbi
generated
File diff suppressed because it is too large
Load Diff
9314
Library/Homebrew/sorbet/rbi/gems/concurrent-ruby@1.2.2.rbi
generated
9314
Library/Homebrew/sorbet/rbi/gems/concurrent-ruby@1.2.2.rbi
generated
File diff suppressed because it is too large
Load Diff
898
Library/Homebrew/sorbet/rbi/gems/diff-lcs@1.5.0.rbi
generated
898
Library/Homebrew/sorbet/rbi/gems/diff-lcs@1.5.0.rbi
generated
File diff suppressed because it is too large
Load Diff
342
Library/Homebrew/sorbet/rbi/gems/docile@1.4.0.rbi
generated
342
Library/Homebrew/sorbet/rbi/gems/docile@1.4.0.rbi
generated
@ -4,51 +4,373 @@
|
|||||||
# This is an autogenerated file for types exported from the `docile` gem.
|
# This is an autogenerated file for types exported from the `docile` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem docile`.
|
# Please instead update this file by running `bin/tapioca gem docile`.
|
||||||
|
|
||||||
|
# Docile keeps your Ruby DSLs tame and well-behaved.
|
||||||
|
#
|
||||||
|
# source://docile//lib/docile/version.rb#3
|
||||||
module Docile
|
module Docile
|
||||||
extend ::Docile::Execution
|
extend ::Docile::Execution
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def dsl_eval(dsl, *args, &block); end
|
# Execute a block in the context of an object whose methods represent the
|
||||||
def dsl_eval_immutable(dsl, *args, &block); end
|
# commands in a DSL.
|
||||||
def dsl_eval_with_block_return(dsl, *args, &block); end
|
#
|
||||||
|
# Use this method to execute an *imperative* DSL, which means that:
|
||||||
|
#
|
||||||
|
# 1. Each command mutates the state of the DSL context object
|
||||||
|
# 2. The return value of each command is ignored
|
||||||
|
# 3. The final return value is the original context object
|
||||||
|
#
|
||||||
|
# @example Use a String as a DSL
|
||||||
|
# Docile.dsl_eval("Hello, world!") do
|
||||||
|
# reverse!
|
||||||
|
# upcase!
|
||||||
|
# end
|
||||||
|
# #=> "!DLROW ,OLLEH"
|
||||||
|
# @example Use an Array as a DSL
|
||||||
|
# Docile.dsl_eval([]) do
|
||||||
|
# push 1
|
||||||
|
# push 2
|
||||||
|
# pop
|
||||||
|
# push 3
|
||||||
|
# end
|
||||||
|
# #=> [1, 3]
|
||||||
|
# @note Use with an *imperative* DSL (commands modify the context object)
|
||||||
|
# @param dsl [Object] context object whose methods make up the DSL
|
||||||
|
# @param args [Array] arguments to be passed to the block
|
||||||
|
# @param block [Proc] the block of DSL commands to be executed against the
|
||||||
|
# `dsl` context object
|
||||||
|
# @return [Object] the `dsl` context object after executing the block
|
||||||
|
#
|
||||||
|
# source://docile//lib/docile.rb#45
|
||||||
|
def dsl_eval(dsl, *args, **_arg2, &block); end
|
||||||
|
|
||||||
|
# Execute a block in the context of an immutable object whose methods,
|
||||||
|
# and the methods of their return values, represent the commands in a DSL.
|
||||||
|
#
|
||||||
|
# Use this method to execute a *functional* DSL, which means that:
|
||||||
|
#
|
||||||
|
# 1. The original DSL context object is never mutated
|
||||||
|
# 2. Each command returns the next DSL context object
|
||||||
|
# 3. The final return value is the value returned by the last command
|
||||||
|
#
|
||||||
|
# @example Use a frozen String as a DSL
|
||||||
|
# Docile.dsl_eval_immutable("I'm immutable!".freeze) do
|
||||||
|
# reverse
|
||||||
|
# upcase
|
||||||
|
# end
|
||||||
|
# #=> "!ELBATUMMI M'I"
|
||||||
|
# @example Use a Float as a DSL
|
||||||
|
# Docile.dsl_eval_immutable(84.5) do
|
||||||
|
# fdiv(2)
|
||||||
|
# floor
|
||||||
|
# end
|
||||||
|
# #=> 42
|
||||||
|
# @note Use with a *functional* DSL (commands return successor
|
||||||
|
# context objects)
|
||||||
|
# @param dsl [Object] immutable context object whose methods make up the
|
||||||
|
# initial DSL
|
||||||
|
# @param args [Array] arguments to be passed to the block
|
||||||
|
# @param block [Proc] the block of DSL commands to be executed against the
|
||||||
|
# `dsl` context object and successor return values
|
||||||
|
# @return [Object] the return value of the final command in the block
|
||||||
|
#
|
||||||
|
# source://docile//lib/docile.rb#128
|
||||||
|
def dsl_eval_immutable(dsl, *args, **_arg2, &block); end
|
||||||
|
|
||||||
|
# Execute a block in the context of an object whose methods represent the
|
||||||
|
# commands in a DSL, and return *the block's return value*.
|
||||||
|
#
|
||||||
|
# Use this method to execute an *imperative* DSL, which means that:
|
||||||
|
#
|
||||||
|
# 1. Each command mutates the state of the DSL context object
|
||||||
|
# 2. The return value of each command is ignored
|
||||||
|
# 3. The final return value is the original context object
|
||||||
|
#
|
||||||
|
# @example Use a String as a DSL
|
||||||
|
# Docile.dsl_eval_with_block_return("Hello, world!") do
|
||||||
|
# reverse!
|
||||||
|
# upcase!
|
||||||
|
# first
|
||||||
|
# end
|
||||||
|
# #=> "!"
|
||||||
|
# @example Use an Array as a DSL
|
||||||
|
# Docile.dsl_eval_with_block_return([]) do
|
||||||
|
# push "a"
|
||||||
|
# push "b"
|
||||||
|
# pop
|
||||||
|
# push "c"
|
||||||
|
# length
|
||||||
|
# end
|
||||||
|
# #=> 2
|
||||||
|
# @note Use with an *imperative* DSL (commands modify the context object)
|
||||||
|
# @param dsl [Object] context object whose methods make up the DSL
|
||||||
|
# @param args [Array] arguments to be passed to the block
|
||||||
|
# @param block [Proc] the block of DSL commands to be executed against the
|
||||||
|
# `dsl` context object
|
||||||
|
# @return [Object] the return value from executing the block
|
||||||
|
#
|
||||||
|
# source://docile//lib/docile.rb#87
|
||||||
|
def dsl_eval_with_block_return(dsl, *args, **_arg2, &block); end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
def dsl_eval(dsl, *args, &block); end
|
# Execute a block in the context of an object whose methods represent the
|
||||||
def dsl_eval_immutable(dsl, *args, &block); end
|
# commands in a DSL.
|
||||||
def dsl_eval_with_block_return(dsl, *args, &block); end
|
#
|
||||||
|
# Use this method to execute an *imperative* DSL, which means that:
|
||||||
|
#
|
||||||
|
# 1. Each command mutates the state of the DSL context object
|
||||||
|
# 2. The return value of each command is ignored
|
||||||
|
# 3. The final return value is the original context object
|
||||||
|
#
|
||||||
|
# @example Use a String as a DSL
|
||||||
|
# Docile.dsl_eval("Hello, world!") do
|
||||||
|
# reverse!
|
||||||
|
# upcase!
|
||||||
|
# end
|
||||||
|
# #=> "!DLROW ,OLLEH"
|
||||||
|
# @example Use an Array as a DSL
|
||||||
|
# Docile.dsl_eval([]) do
|
||||||
|
# push 1
|
||||||
|
# push 2
|
||||||
|
# pop
|
||||||
|
# push 3
|
||||||
|
# end
|
||||||
|
# #=> [1, 3]
|
||||||
|
# @note Use with an *imperative* DSL (commands modify the context object)
|
||||||
|
# @param dsl [Object] context object whose methods make up the DSL
|
||||||
|
# @param args [Array] arguments to be passed to the block
|
||||||
|
# @param block [Proc] the block of DSL commands to be executed against the
|
||||||
|
# `dsl` context object
|
||||||
|
# @return [Object] the `dsl` context object after executing the block
|
||||||
|
#
|
||||||
|
# source://docile//lib/docile.rb#45
|
||||||
|
def dsl_eval(dsl, *args, **_arg2, &block); end
|
||||||
|
|
||||||
|
# Execute a block in the context of an immutable object whose methods,
|
||||||
|
# and the methods of their return values, represent the commands in a DSL.
|
||||||
|
#
|
||||||
|
# Use this method to execute a *functional* DSL, which means that:
|
||||||
|
#
|
||||||
|
# 1. The original DSL context object is never mutated
|
||||||
|
# 2. Each command returns the next DSL context object
|
||||||
|
# 3. The final return value is the value returned by the last command
|
||||||
|
#
|
||||||
|
# @example Use a frozen String as a DSL
|
||||||
|
# Docile.dsl_eval_immutable("I'm immutable!".freeze) do
|
||||||
|
# reverse
|
||||||
|
# upcase
|
||||||
|
# end
|
||||||
|
# #=> "!ELBATUMMI M'I"
|
||||||
|
# @example Use a Float as a DSL
|
||||||
|
# Docile.dsl_eval_immutable(84.5) do
|
||||||
|
# fdiv(2)
|
||||||
|
# floor
|
||||||
|
# end
|
||||||
|
# #=> 42
|
||||||
|
# @note Use with a *functional* DSL (commands return successor
|
||||||
|
# context objects)
|
||||||
|
# @param dsl [Object] immutable context object whose methods make up the
|
||||||
|
# initial DSL
|
||||||
|
# @param args [Array] arguments to be passed to the block
|
||||||
|
# @param block [Proc] the block of DSL commands to be executed against the
|
||||||
|
# `dsl` context object and successor return values
|
||||||
|
# @return [Object] the return value of the final command in the block
|
||||||
|
#
|
||||||
|
# source://docile//lib/docile.rb#128
|
||||||
|
def dsl_eval_immutable(dsl, *args, **_arg2, &block); end
|
||||||
|
|
||||||
|
# Execute a block in the context of an object whose methods represent the
|
||||||
|
# commands in a DSL, and return *the block's return value*.
|
||||||
|
#
|
||||||
|
# Use this method to execute an *imperative* DSL, which means that:
|
||||||
|
#
|
||||||
|
# 1. Each command mutates the state of the DSL context object
|
||||||
|
# 2. The return value of each command is ignored
|
||||||
|
# 3. The final return value is the original context object
|
||||||
|
#
|
||||||
|
# @example Use a String as a DSL
|
||||||
|
# Docile.dsl_eval_with_block_return("Hello, world!") do
|
||||||
|
# reverse!
|
||||||
|
# upcase!
|
||||||
|
# first
|
||||||
|
# end
|
||||||
|
# #=> "!"
|
||||||
|
# @example Use an Array as a DSL
|
||||||
|
# Docile.dsl_eval_with_block_return([]) do
|
||||||
|
# push "a"
|
||||||
|
# push "b"
|
||||||
|
# pop
|
||||||
|
# push "c"
|
||||||
|
# length
|
||||||
|
# end
|
||||||
|
# #=> 2
|
||||||
|
# @note Use with an *imperative* DSL (commands modify the context object)
|
||||||
|
# @param dsl [Object] context object whose methods make up the DSL
|
||||||
|
# @param args [Array] arguments to be passed to the block
|
||||||
|
# @param block [Proc] the block of DSL commands to be executed against the
|
||||||
|
# `dsl` context object
|
||||||
|
# @return [Object] the return value from executing the block
|
||||||
|
#
|
||||||
|
# source://docile//lib/docile.rb#87
|
||||||
|
def dsl_eval_with_block_return(dsl, *args, **_arg2, &block); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# This is used to remove entries pointing to Docile's source files
|
||||||
|
# from {Exception#backtrace} and {Exception#backtrace_locations}.
|
||||||
|
#
|
||||||
|
# If {NoMethodError} is caught then the exception object will be extended
|
||||||
|
# by this module to add filter functionalities.
|
||||||
|
#
|
||||||
|
# @api private
|
||||||
|
#
|
||||||
|
# source://docile//lib/docile/backtrace_filter.rb#11
|
||||||
module Docile::BacktraceFilter
|
module Docile::BacktraceFilter
|
||||||
|
# @api private
|
||||||
|
#
|
||||||
|
# source://docile//lib/docile/backtrace_filter.rb#14
|
||||||
def backtrace; end
|
def backtrace; end
|
||||||
|
|
||||||
|
# @api private
|
||||||
|
#
|
||||||
|
# source://docile//lib/docile/backtrace_filter.rb#19
|
||||||
def backtrace_locations; end
|
def backtrace_locations; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# @api private
|
||||||
|
#
|
||||||
|
# source://docile//lib/docile/backtrace_filter.rb#12
|
||||||
Docile::BacktraceFilter::FILTER_PATTERN = T.let(T.unsafe(nil), Regexp)
|
Docile::BacktraceFilter::FILTER_PATTERN = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
|
# Operates in the same manner as {FallbackContextProxy}, but replacing
|
||||||
|
# the primary `receiver` object with the result of each proxied method.
|
||||||
|
#
|
||||||
|
# This is useful for implementing DSL evaluation for immutable context
|
||||||
|
# objects.
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# @api private
|
||||||
|
# @see Docile.dsl_eval_immutable
|
||||||
|
#
|
||||||
|
# source://docile//lib/docile/chaining_fallback_context_proxy.rb#19
|
||||||
class Docile::ChainingFallbackContextProxy < ::Docile::FallbackContextProxy
|
class Docile::ChainingFallbackContextProxy < ::Docile::FallbackContextProxy
|
||||||
def method_missing(method, *args, &block); end
|
# Proxy methods as in {FallbackContextProxy#method_missing}, replacing
|
||||||
|
# `receiver` with the returned value.
|
||||||
|
#
|
||||||
|
# @api private
|
||||||
|
#
|
||||||
|
# source://docile//lib/docile/chaining_fallback_context_proxy.rb#20
|
||||||
|
def method_missing(method, *args, **_arg2, &block); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# A namespace for functions relating to the execution of a block against a
|
||||||
|
# proxy object.
|
||||||
|
#
|
||||||
|
# @api private
|
||||||
|
#
|
||||||
|
# source://docile//lib/docile/execution.rb#8
|
||||||
module Docile::Execution
|
module Docile::Execution
|
||||||
private
|
private
|
||||||
|
|
||||||
def exec_in_proxy_context(dsl, proxy_type, *args, &block); end
|
# Execute a block in the context of an object whose methods represent the
|
||||||
|
# commands in a DSL, using a specific proxy class.
|
||||||
|
#
|
||||||
|
# @api private
|
||||||
|
# @param dsl [Object] context object whose methods make up the
|
||||||
|
# (initial) DSL
|
||||||
|
# @param proxy_type [FallbackContextProxy, ChainingFallbackContextProxy] which class to instantiate as proxy context
|
||||||
|
# @param args [Array] arguments to be passed to the block
|
||||||
|
# @param block [Proc] the block of DSL commands to be executed
|
||||||
|
# @return [Object] the return value of the block
|
||||||
|
#
|
||||||
|
# source://docile//lib/docile/execution.rb#19
|
||||||
|
def exec_in_proxy_context(dsl, proxy_type, *args, **_arg3, &block); end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
def exec_in_proxy_context(dsl, proxy_type, *args, &block); end
|
# Execute a block in the context of an object whose methods represent the
|
||||||
|
# commands in a DSL, using a specific proxy class.
|
||||||
|
#
|
||||||
|
# @api private
|
||||||
|
# @param dsl [Object] context object whose methods make up the
|
||||||
|
# (initial) DSL
|
||||||
|
# @param proxy_type [FallbackContextProxy, ChainingFallbackContextProxy] which class to instantiate as proxy context
|
||||||
|
# @param args [Array] arguments to be passed to the block
|
||||||
|
# @param block [Proc] the block of DSL commands to be executed
|
||||||
|
# @return [Object] the return value of the block
|
||||||
|
#
|
||||||
|
# source://docile//lib/docile/execution.rb#19
|
||||||
|
def exec_in_proxy_context(dsl, proxy_type, *args, **_arg3, &block); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# A proxy object with a primary receiver as well as a secondary
|
||||||
|
# fallback receiver.
|
||||||
|
#
|
||||||
|
# Will attempt to forward all method calls first to the primary receiver,
|
||||||
|
# and then to the fallback receiver if the primary does not handle that
|
||||||
|
# method.
|
||||||
|
#
|
||||||
|
# This is useful for implementing DSL evaluation in the context of an object.
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# @api private
|
||||||
|
# @see Docile.dsl_eval
|
||||||
|
#
|
||||||
|
# source://docile//lib/docile/fallback_context_proxy.rb#20
|
||||||
class Docile::FallbackContextProxy
|
class Docile::FallbackContextProxy
|
||||||
|
# @api private
|
||||||
|
# @param receiver [Object] the primary proxy target to which all methods
|
||||||
|
# initially will be forwarded
|
||||||
|
# @param fallback [Object] the fallback proxy target to which any methods
|
||||||
|
# not handled by `receiver` will be forwarded
|
||||||
|
# @return [FallbackContextProxy] a new instance of FallbackContextProxy
|
||||||
|
#
|
||||||
|
# source://docile//lib/docile/fallback_context_proxy.rb#46
|
||||||
def initialize(receiver, fallback); end
|
def initialize(receiver, fallback); end
|
||||||
|
|
||||||
|
# @api private
|
||||||
|
# @return [Array<Symbol>] Instance variable names, excluding
|
||||||
|
# {NON_PROXIED_INSTANCE_VARIABLES}
|
||||||
|
#
|
||||||
|
# source://docile//lib/docile/fallback_context_proxy.rb#85
|
||||||
def instance_variables; end
|
def instance_variables; end
|
||||||
def method_missing(method, *args, &block); end
|
|
||||||
|
# Proxy all methods, excluding {NON_PROXIED_METHODS}, first to `receiver`
|
||||||
|
# and then to `fallback` if not found.
|
||||||
|
#
|
||||||
|
# @api private
|
||||||
|
#
|
||||||
|
# source://docile//lib/docile/fallback_context_proxy.rb#91
|
||||||
|
def method_missing(method, *args, **_arg2, &block); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# The set of methods which will **not** fallback from the block's context
|
||||||
|
# to the dsl object.
|
||||||
|
#
|
||||||
|
# @api private
|
||||||
|
#
|
||||||
|
# source://docile//lib/docile/fallback_context_proxy.rb#30
|
||||||
Docile::FallbackContextProxy::NON_FALLBACK_METHODS = T.let(T.unsafe(nil), Set)
|
Docile::FallbackContextProxy::NON_FALLBACK_METHODS = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
# The set of instance variables which are local to this object and hidden.
|
||||||
|
# All other instance variables will be copied in and out of this object
|
||||||
|
# from the scope in which this proxy was created.
|
||||||
|
#
|
||||||
|
# @api private
|
||||||
|
#
|
||||||
|
# source://docile//lib/docile/fallback_context_proxy.rb#35
|
||||||
Docile::FallbackContextProxy::NON_PROXIED_INSTANCE_VARIABLES = T.let(T.unsafe(nil), Set)
|
Docile::FallbackContextProxy::NON_PROXIED_INSTANCE_VARIABLES = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
# The set of methods which will **not** be proxied, but instead answered
|
||||||
|
# by this object directly.
|
||||||
|
#
|
||||||
|
# @api private
|
||||||
|
#
|
||||||
|
# source://docile//lib/docile/fallback_context_proxy.rb#23
|
||||||
Docile::FallbackContextProxy::NON_PROXIED_METHODS = T.let(T.unsafe(nil), Set)
|
Docile::FallbackContextProxy::NON_PROXIED_METHODS = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
# The current version of this library
|
||||||
|
#
|
||||||
|
# source://docile//lib/docile/version.rb#5
|
||||||
Docile::VERSION = T.let(T.unsafe(nil), String)
|
Docile::VERSION = T.let(T.unsafe(nil), String)
|
||||||
|
|||||||
3358
Library/Homebrew/sorbet/rbi/gems/elftools@1.2.0.rbi
generated
3358
Library/Homebrew/sorbet/rbi/gems/elftools@1.2.0.rbi
generated
File diff suppressed because it is too large
Load Diff
146
Library/Homebrew/sorbet/rbi/gems/erubi@1.12.0.rbi
generated
Normal file
146
Library/Homebrew/sorbet/rbi/gems/erubi@1.12.0.rbi
generated
Normal file
@ -0,0 +1,146 @@
|
|||||||
|
# typed: true
|
||||||
|
|
||||||
|
# DO NOT EDIT MANUALLY
|
||||||
|
# This is an autogenerated file for types exported from the `erubi` gem.
|
||||||
|
# Please instead update this file by running `bin/tapioca gem erubi`.
|
||||||
|
|
||||||
|
# source://erubi//lib/erubi.rb#3
|
||||||
|
module Erubi
|
||||||
|
class << self
|
||||||
|
# source://erubi//lib/erubi.rb#35
|
||||||
|
def h(value); end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# source://erubi//lib/erubi.rb#54
|
||||||
|
class Erubi::Engine
|
||||||
|
# Initialize a new Erubi::Engine. Options:
|
||||||
|
# +:bufval+ :: The value to use for the buffer variable, as a string (default <tt>'::String.new'</tt>).
|
||||||
|
# +:bufvar+ :: The variable name to use for the buffer variable, as a string.
|
||||||
|
# +:chain_appends+ :: Whether to chain <tt><<</t> calls to the buffer variable. Offers better
|
||||||
|
# performance, but can cause issues when the buffer variable is reassigned during
|
||||||
|
# template rendering (default +false+).
|
||||||
|
# +:ensure+ :: Wrap the template in a begin/ensure block restoring the previous value of bufvar.
|
||||||
|
# +:escapefunc+ :: The function to use for escaping, as a string (default: <tt>'::Erubi.h'</tt>).
|
||||||
|
# +:escape+ :: Whether to make <tt><%=</tt> escape by default, and <tt><%==</tt> not escape by default.
|
||||||
|
# +:escape_html+ :: Same as +:escape+, with lower priority.
|
||||||
|
# +:filename+ :: The filename for the template.
|
||||||
|
# the resulting source code. Note this may cause problems if you are wrapping the resulting
|
||||||
|
# source code in other code, because the magic comment only has an effect at the beginning of
|
||||||
|
# the file, and having the magic comment later in the file can trigger warnings.
|
||||||
|
# +:freeze_template_literals+ :: Whether to suffix all literal strings for template code with <tt>.freeze</tt>
|
||||||
|
# (default: +true+ on Ruby 2.1+, +false+ on Ruby 2.0 and older).
|
||||||
|
# Can be set to +false+ on Ruby 2.3+ when frozen string literals are enabled
|
||||||
|
# in order to improve performance.
|
||||||
|
# +:literal_prefix+ :: The prefix to output when using escaped tag delimiters (default <tt>'<%'</tt>).
|
||||||
|
# +:literal_postfix+ :: The postfix to output when using escaped tag delimiters (default <tt>'%>'</tt>).
|
||||||
|
# +:outvar+ :: Same as +:bufvar+, with lower priority.
|
||||||
|
# +:postamble+ :: The postamble for the template, by default returns the resulting source code.
|
||||||
|
# +:preamble+ :: The preamble for the template, by default initializes the buffer variable.
|
||||||
|
# +:regexp+ :: The regexp to use for scanning.
|
||||||
|
# +:src+ :: The initial value to use for the source code, an empty string by default.
|
||||||
|
# +:trim+ :: Whether to trim leading and trailing whitespace, true by default.
|
||||||
|
#
|
||||||
|
# @return [Engine] a new instance of Engine
|
||||||
|
#
|
||||||
|
# source://erubi//lib/erubi.rb#94
|
||||||
|
def initialize(input, properties = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# The variable name used for the buffer variable.
|
||||||
|
#
|
||||||
|
# source://erubi//lib/erubi.rb#65
|
||||||
|
def bufvar; end
|
||||||
|
|
||||||
|
# The filename of the template, if one was given.
|
||||||
|
#
|
||||||
|
# source://erubi//lib/erubi.rb#62
|
||||||
|
def filename; end
|
||||||
|
|
||||||
|
# The frozen ruby source code generated from the template, which can be evaled.
|
||||||
|
#
|
||||||
|
# source://erubi//lib/erubi.rb#59
|
||||||
|
def src; end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
# Add ruby code to the template
|
||||||
|
#
|
||||||
|
# source://erubi//lib/erubi.rb#226
|
||||||
|
def add_code(code); end
|
||||||
|
|
||||||
|
# Add the given ruby expression result to the template,
|
||||||
|
# escaping it based on the indicator given and escape flag.
|
||||||
|
#
|
||||||
|
# source://erubi//lib/erubi.rb#235
|
||||||
|
def add_expression(indicator, code); end
|
||||||
|
|
||||||
|
# Add the result of Ruby expression to the template
|
||||||
|
#
|
||||||
|
# source://erubi//lib/erubi.rb#244
|
||||||
|
def add_expression_result(code); end
|
||||||
|
|
||||||
|
# Add the escaped result of Ruby expression to the template
|
||||||
|
#
|
||||||
|
# source://erubi//lib/erubi.rb#249
|
||||||
|
def add_expression_result_escaped(code); end
|
||||||
|
|
||||||
|
# Add the given postamble to the src. Can be overridden in subclasses
|
||||||
|
# to make additional changes to src that depend on the current state.
|
||||||
|
#
|
||||||
|
# source://erubi//lib/erubi.rb#255
|
||||||
|
def add_postamble(postamble); end
|
||||||
|
|
||||||
|
# Add raw text to the template. Modifies argument if argument is mutable as a memory optimization.
|
||||||
|
# Must be called with a string, cannot be called with nil (Rails's subclass depends on it).
|
||||||
|
#
|
||||||
|
# source://erubi//lib/erubi.rb#213
|
||||||
|
def add_text(text); end
|
||||||
|
|
||||||
|
# Raise an exception, as the base engine class does not support handling other indicators.
|
||||||
|
#
|
||||||
|
# @raise [ArgumentError]
|
||||||
|
#
|
||||||
|
# source://erubi//lib/erubi.rb#261
|
||||||
|
def handle(indicator, code, tailch, rspace, lspace); end
|
||||||
|
|
||||||
|
# Make sure that any current expression has been terminated.
|
||||||
|
# The default is to terminate all expressions, but when
|
||||||
|
# the chain_appends option is used, expressions may not be
|
||||||
|
# terminated.
|
||||||
|
#
|
||||||
|
# source://erubi//lib/erubi.rb#289
|
||||||
|
def terminate_expression; end
|
||||||
|
|
||||||
|
# Make sure the buffer variable is the target of the next append
|
||||||
|
# before yielding to the block. Mark that the buffer is the target
|
||||||
|
# of the next append after the block executes.
|
||||||
|
#
|
||||||
|
# This method should only be called if the block will result in
|
||||||
|
# code where << will append to the bufvar.
|
||||||
|
#
|
||||||
|
# source://erubi//lib/erubi.rb#271
|
||||||
|
def with_buffer; end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The default regular expression used for scanning.
|
||||||
|
#
|
||||||
|
# source://erubi//lib/erubi.rb#56
|
||||||
|
Erubi::Engine::DEFAULT_REGEXP = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
|
# source://erubi//lib/erubi.rb#17
|
||||||
|
Erubi::FREEZE_TEMPLATE_LITERALS = T.let(T.unsafe(nil), TrueClass)
|
||||||
|
|
||||||
|
# source://erubi//lib/erubi.rb#15
|
||||||
|
Erubi::MATCH_METHOD = T.let(T.unsafe(nil), Symbol)
|
||||||
|
|
||||||
|
# source://erubi//lib/erubi.rb#8
|
||||||
|
Erubi::RANGE_FIRST = T.let(T.unsafe(nil), Integer)
|
||||||
|
|
||||||
|
# source://erubi//lib/erubi.rb#9
|
||||||
|
Erubi::RANGE_LAST = T.let(T.unsafe(nil), Integer)
|
||||||
|
|
||||||
|
# source://erubi//lib/erubi.rb#16
|
||||||
|
Erubi::SKIP_DEFINED_FOR_INSTANCE_VARIABLE = T.let(T.unsafe(nil), TrueClass)
|
||||||
|
|
||||||
|
# source://erubi//lib/erubi.rb#4
|
||||||
|
Erubi::VERSION = T.let(T.unsafe(nil), String)
|
||||||
91
Library/Homebrew/sorbet/rbi/gems/hana@1.3.7.rbi
generated
91
Library/Homebrew/sorbet/rbi/gems/hana@1.3.7.rbi
generated
@ -4,63 +4,154 @@
|
|||||||
# This is an autogenerated file for types exported from the `hana` gem.
|
# This is an autogenerated file for types exported from the `hana` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem hana`.
|
# Please instead update this file by running `bin/tapioca gem hana`.
|
||||||
|
|
||||||
|
# source://hana//lib/hana.rb#3
|
||||||
module Hana; end
|
module Hana; end
|
||||||
|
|
||||||
|
# source://hana//lib/hana.rb#56
|
||||||
class Hana::Patch
|
class Hana::Patch
|
||||||
|
# @return [Patch] a new instance of Patch
|
||||||
|
#
|
||||||
|
# source://hana//lib/hana.rb#88
|
||||||
def initialize(is); end
|
def initialize(is); end
|
||||||
|
|
||||||
|
# source://hana//lib/hana.rb#94
|
||||||
def apply(doc); end
|
def apply(doc); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# @raise [MissingTargetException]
|
||||||
|
#
|
||||||
|
# source://hana//lib/hana.rb#107
|
||||||
def add(ins, doc); end
|
def add(ins, doc); end
|
||||||
|
|
||||||
|
# source://hana//lib/hana.rb#223
|
||||||
def add_op(dest, key, obj); end
|
def add_op(dest, key, obj); end
|
||||||
|
|
||||||
|
# @raise [ObjectOperationOnArrayException]
|
||||||
|
#
|
||||||
|
# source://hana//lib/hana.rb#214
|
||||||
def check_index(obj, key); end
|
def check_index(obj, key); end
|
||||||
|
|
||||||
|
# @raise [MissingTargetException]
|
||||||
|
#
|
||||||
|
# source://hana//lib/hana.rb#144
|
||||||
def copy(ins, doc); end
|
def copy(ins, doc); end
|
||||||
|
|
||||||
|
# source://hana//lib/hana.rb#202
|
||||||
def get_path(ins); end
|
def get_path(ins); end
|
||||||
|
|
||||||
|
# @raise [MissingTargetException]
|
||||||
|
#
|
||||||
|
# source://hana//lib/hana.rb#128
|
||||||
def move(ins, doc); end
|
def move(ins, doc); end
|
||||||
|
|
||||||
|
# source://hana//lib/hana.rb#193
|
||||||
def remove(ins, doc); end
|
def remove(ins, doc); end
|
||||||
|
|
||||||
|
# source://hana//lib/hana.rb#180
|
||||||
def replace(ins, doc); end
|
def replace(ins, doc); end
|
||||||
|
|
||||||
|
# source://hana//lib/hana.rb#232
|
||||||
def rm_op(obj, key); end
|
def rm_op(obj, key); end
|
||||||
|
|
||||||
|
# source://hana//lib/hana.rb#170
|
||||||
def test(ins, doc); end
|
def test(ins, doc); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://hana//lib/hana.rb#57
|
||||||
class Hana::Patch::Exception < ::StandardError; end
|
class Hana::Patch::Exception < ::StandardError; end
|
||||||
|
|
||||||
|
# source://hana//lib/hana.rb#104
|
||||||
Hana::Patch::FROM = T.let(T.unsafe(nil), String)
|
Hana::Patch::FROM = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://hana//lib/hana.rb#60
|
||||||
class Hana::Patch::FailedTestException < ::Hana::Patch::Exception
|
class Hana::Patch::FailedTestException < ::Hana::Patch::Exception
|
||||||
|
# @return [FailedTestException] a new instance of FailedTestException
|
||||||
|
#
|
||||||
|
# source://hana//lib/hana.rb#63
|
||||||
def initialize(path, value); end
|
def initialize(path, value); end
|
||||||
|
|
||||||
|
# Returns the value of attribute path.
|
||||||
|
#
|
||||||
|
# source://hana//lib/hana.rb#61
|
||||||
def path; end
|
def path; end
|
||||||
|
|
||||||
|
# Sets the attribute path
|
||||||
|
#
|
||||||
|
# @param value the value to set the attribute path to.
|
||||||
|
#
|
||||||
|
# source://hana//lib/hana.rb#61
|
||||||
def path=(_arg0); end
|
def path=(_arg0); end
|
||||||
|
|
||||||
|
# Returns the value of attribute value.
|
||||||
|
#
|
||||||
|
# source://hana//lib/hana.rb#61
|
||||||
def value; end
|
def value; end
|
||||||
|
|
||||||
|
# Sets the attribute value
|
||||||
|
#
|
||||||
|
# @param value the value to set the attribute value to.
|
||||||
|
#
|
||||||
|
# source://hana//lib/hana.rb#61
|
||||||
def value=(_arg0); end
|
def value=(_arg0); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://hana//lib/hana.rb#79
|
||||||
class Hana::Patch::IndexError < ::Hana::Patch::Exception; end
|
class Hana::Patch::IndexError < ::Hana::Patch::Exception; end
|
||||||
|
|
||||||
|
# source://hana//lib/hana.rb#76
|
||||||
class Hana::Patch::InvalidObjectOperationException < ::Hana::Patch::Exception; end
|
class Hana::Patch::InvalidObjectOperationException < ::Hana::Patch::Exception; end
|
||||||
|
|
||||||
|
# source://hana//lib/hana.rb#85
|
||||||
class Hana::Patch::InvalidPath < ::Hana::Patch::Exception; end
|
class Hana::Patch::InvalidPath < ::Hana::Patch::Exception; end
|
||||||
|
|
||||||
|
# source://hana//lib/hana.rb#82
|
||||||
class Hana::Patch::MissingTargetException < ::Hana::Patch::Exception; end
|
class Hana::Patch::MissingTargetException < ::Hana::Patch::Exception; end
|
||||||
|
|
||||||
|
# source://hana//lib/hana.rb#73
|
||||||
class Hana::Patch::ObjectOperationOnArrayException < ::Hana::Patch::Exception; end
|
class Hana::Patch::ObjectOperationOnArrayException < ::Hana::Patch::Exception; end
|
||||||
|
|
||||||
|
# source://hana//lib/hana.rb#70
|
||||||
class Hana::Patch::OutOfBoundsException < ::Hana::Patch::Exception; end
|
class Hana::Patch::OutOfBoundsException < ::Hana::Patch::Exception; end
|
||||||
|
|
||||||
|
# source://hana//lib/hana.rb#92
|
||||||
Hana::Patch::VALID = T.let(T.unsafe(nil), Hash)
|
Hana::Patch::VALID = T.let(T.unsafe(nil), Hash)
|
||||||
|
|
||||||
|
# source://hana//lib/hana.rb#105
|
||||||
Hana::Patch::VALUE = T.let(T.unsafe(nil), String)
|
Hana::Patch::VALUE = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://hana//lib/hana.rb#6
|
||||||
class Hana::Pointer
|
class Hana::Pointer
|
||||||
include ::Enumerable
|
include ::Enumerable
|
||||||
|
|
||||||
|
# @return [Pointer] a new instance of Pointer
|
||||||
|
#
|
||||||
|
# source://hana//lib/hana.rb#15
|
||||||
def initialize(path); end
|
def initialize(path); end
|
||||||
|
|
||||||
|
# source://hana//lib/hana.rb#19
|
||||||
def each(&block); end
|
def each(&block); end
|
||||||
|
|
||||||
|
# source://hana//lib/hana.rb#21
|
||||||
def eval(object); end
|
def eval(object); end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# source://hana//lib/hana.rb#27
|
||||||
def eval(list, object); end
|
def eval(list, object); end
|
||||||
|
|
||||||
|
# source://hana//lib/hana.rb#39
|
||||||
def parse(path); end
|
def parse(path); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://hana//lib/hana.rb#25
|
||||||
Hana::Pointer::ESC = T.let(T.unsafe(nil), Hash)
|
Hana::Pointer::ESC = T.let(T.unsafe(nil), Hash)
|
||||||
|
|
||||||
|
# source://hana//lib/hana.rb#9
|
||||||
class Hana::Pointer::Exception < ::StandardError; end
|
class Hana::Pointer::Exception < ::StandardError; end
|
||||||
|
|
||||||
|
# source://hana//lib/hana.rb#12
|
||||||
class Hana::Pointer::FormatError < ::Hana::Pointer::Exception; end
|
class Hana::Pointer::FormatError < ::Hana::Pointer::Exception; end
|
||||||
|
|
||||||
|
# source://hana//lib/hana.rb#4
|
||||||
Hana::VERSION = T.let(T.unsafe(nil), String)
|
Hana::VERSION = T.let(T.unsafe(nil), String)
|
||||||
|
|||||||
3032
Library/Homebrew/sorbet/rbi/gems/highline@2.0.3.rbi
generated
3032
Library/Homebrew/sorbet/rbi/gems/highline@2.0.3.rbi
generated
File diff suppressed because it is too large
Load Diff
1154
Library/Homebrew/sorbet/rbi/gems/hpricot@0.8.6.rbi
generated
1154
Library/Homebrew/sorbet/rbi/gems/hpricot@0.8.6.rbi
generated
File diff suppressed because it is too large
Load Diff
1636
Library/Homebrew/sorbet/rbi/gems/i18n@1.14.1.rbi
generated
1636
Library/Homebrew/sorbet/rbi/gems/i18n@1.14.1.rbi
generated
File diff suppressed because it is too large
Load Diff
1515
Library/Homebrew/sorbet/rbi/gems/json_schemer@2.1.1.rbi
generated
1515
Library/Homebrew/sorbet/rbi/gems/json_schemer@2.1.1.rbi
generated
File diff suppressed because it is too large
Load Diff
14237
Library/Homebrew/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi
generated
Normal file
14237
Library/Homebrew/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi
generated
Normal file
File diff suppressed because it is too large
Load Diff
200
Library/Homebrew/sorbet/rbi/gems/method_source@1.0.0.rbi
generated
200
Library/Homebrew/sorbet/rbi/gems/method_source@1.0.0.rbi
generated
@ -4,69 +4,269 @@
|
|||||||
# This is an autogenerated file for types exported from the `method_source` gem.
|
# This is an autogenerated file for types exported from the `method_source` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem method_source`.
|
# Please instead update this file by running `bin/tapioca gem method_source`.
|
||||||
|
|
||||||
|
# source://method_source//lib/method_source.rb#127
|
||||||
|
class Method
|
||||||
|
include ::MethodSource::SourceLocation::MethodExtensions
|
||||||
|
include ::MethodSource::MethodExtensions
|
||||||
|
end
|
||||||
|
|
||||||
|
# source://method_source//lib/method_source/version.rb#1
|
||||||
module MethodSource
|
module MethodSource
|
||||||
extend ::MethodSource::CodeHelpers
|
extend ::MethodSource::CodeHelpers
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# Helper method responsible for opening source file and buffering up
|
||||||
|
# the comments for a specified method. Defined here to avoid polluting
|
||||||
|
# `Method` class.
|
||||||
|
#
|
||||||
|
# @param source_location [Array] The array returned by Method#source_location
|
||||||
|
# @param method_name [String]
|
||||||
|
# @raise [SourceNotFoundError]
|
||||||
|
# @return [String] The comments up to the point of the method.
|
||||||
|
#
|
||||||
|
# source://method_source//lib/method_source.rb#38
|
||||||
def comment_helper(source_location, name = T.unsafe(nil)); end
|
def comment_helper(source_location, name = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# @deprecated — use MethodSource::CodeHelpers#expression_at
|
||||||
|
#
|
||||||
|
# source://method_source//lib/method_source.rb#66
|
||||||
def extract_code(source_location); end
|
def extract_code(source_location); end
|
||||||
|
|
||||||
|
# Load a memoized copy of the lines in a file.
|
||||||
|
#
|
||||||
|
# @param file_name [String]
|
||||||
|
# @param method_name [String]
|
||||||
|
# @raise [SourceNotFoundError]
|
||||||
|
# @return [Array<String>] the contents of the file
|
||||||
|
#
|
||||||
|
# source://method_source//lib/method_source.rb#51
|
||||||
def lines_for(file_name, name = T.unsafe(nil)); end
|
def lines_for(file_name, name = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Helper method responsible for extracting method body.
|
||||||
|
# Defined here to avoid polluting `Method` class.
|
||||||
|
#
|
||||||
|
# @param source_location [Array] The array returned by Method#source_location
|
||||||
|
# @param method_name [String]
|
||||||
|
# @return [String] The method body
|
||||||
|
#
|
||||||
|
# source://method_source//lib/method_source.rb#23
|
||||||
def source_helper(source_location, name = T.unsafe(nil)); end
|
def source_helper(source_location, name = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# @deprecated — use MethodSource::CodeHelpers#complete_expression?
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://method_source//lib/method_source.rb#59
|
||||||
def valid_expression?(str); end
|
def valid_expression?(str); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://method_source//lib/method_source/code_helpers.rb#3
|
||||||
module MethodSource::CodeHelpers
|
module MethodSource::CodeHelpers
|
||||||
|
# Retrieve the comment describing the expression on the given line of the given file.
|
||||||
|
#
|
||||||
|
# This is useful to get module or method documentation.
|
||||||
|
#
|
||||||
|
# @param file [Array<String>, File, String] The file to parse, either as a File or as
|
||||||
|
# a String or an Array of lines.
|
||||||
|
# @param line_number [Integer] The line number at which to look.
|
||||||
|
# NOTE: The first line in a file is line 1!
|
||||||
|
# @return [String] The comment
|
||||||
|
#
|
||||||
|
# source://method_source//lib/method_source/code_helpers.rb#52
|
||||||
def comment_describing(file, line_number); end
|
def comment_describing(file, line_number); end
|
||||||
|
|
||||||
|
# Determine if a string of code is a complete Ruby expression.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# complete_expression?("class Hello") #=> false
|
||||||
|
# complete_expression?("class Hello; end") #=> true
|
||||||
|
# complete_expression?("class 123") #=> SyntaxError: unexpected tINTEGER
|
||||||
|
# @param code [String] The code to validate.
|
||||||
|
# @raise [SyntaxError] Any SyntaxError that does not represent incompleteness.
|
||||||
|
# @return [Boolean] Whether or not the code is a complete Ruby expression.
|
||||||
|
#
|
||||||
|
# source://method_source//lib/method_source/code_helpers.rb#66
|
||||||
def complete_expression?(str); end
|
def complete_expression?(str); end
|
||||||
|
|
||||||
|
# Retrieve the first expression starting on the given line of the given file.
|
||||||
|
#
|
||||||
|
# This is useful to get module or method source code.
|
||||||
|
#
|
||||||
|
# line 1!
|
||||||
|
#
|
||||||
|
# @option options
|
||||||
|
# @option options
|
||||||
|
# @param file [Array<String>, File, String] The file to parse, either as a File or as
|
||||||
|
# @param line_number [Integer] The line number at which to look.
|
||||||
|
# NOTE: The first line in a file is
|
||||||
|
# @param options [Hash] The optional configuration parameters.
|
||||||
|
# @raise [SyntaxError] If the first complete expression can't be identified
|
||||||
|
# @return [String] The first complete expression
|
||||||
|
#
|
||||||
|
# source://method_source//lib/method_source/code_helpers.rb#20
|
||||||
def expression_at(file, line_number, options = T.unsafe(nil)); end
|
def expression_at(file, line_number, options = T.unsafe(nil)); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# Get the first expression from the input.
|
||||||
|
#
|
||||||
|
# @param lines [Array<String>]
|
||||||
|
# @param consume [Integer] A number of lines to automatically
|
||||||
|
# consume (add to the expression buffer) without checking for validity.
|
||||||
|
# @raise [SyntaxError]
|
||||||
|
# @return [String] a valid ruby expression
|
||||||
|
# @yield a clean-up function to run before checking for complete_expression
|
||||||
|
#
|
||||||
|
# source://method_source//lib/method_source/code_helpers.rb#92
|
||||||
def extract_first_expression(lines, consume = T.unsafe(nil), &block); end
|
def extract_first_expression(lines, consume = T.unsafe(nil), &block); end
|
||||||
|
|
||||||
|
# Get the last comment from the input.
|
||||||
|
#
|
||||||
|
# @param lines [Array<String>]
|
||||||
|
# @return [String]
|
||||||
|
#
|
||||||
|
# source://method_source//lib/method_source/code_helpers.rb#106
|
||||||
def extract_last_comment(lines); end
|
def extract_last_comment(lines); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# An exception matcher that matches only subsets of SyntaxErrors that can be
|
||||||
|
# fixed by adding more input to the buffer.
|
||||||
|
#
|
||||||
|
# source://method_source//lib/method_source/code_helpers.rb#124
|
||||||
module MethodSource::CodeHelpers::IncompleteExpression
|
module MethodSource::CodeHelpers::IncompleteExpression
|
||||||
class << self
|
class << self
|
||||||
|
# source://method_source//lib/method_source/code_helpers.rb#137
|
||||||
def ===(ex); end
|
def ===(ex); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://method_source//lib/method_source/code_helpers.rb#149
|
||||||
def rbx?; end
|
def rbx?; end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://method_source//lib/method_source/code_helpers.rb#125
|
||||||
MethodSource::CodeHelpers::IncompleteExpression::GENERIC_REGEXPS = T.let(T.unsafe(nil), Array)
|
MethodSource::CodeHelpers::IncompleteExpression::GENERIC_REGEXPS = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
# source://method_source//lib/method_source/code_helpers.rb#133
|
||||||
MethodSource::CodeHelpers::IncompleteExpression::RBX_ONLY_REGEXPS = T.let(T.unsafe(nil), Array)
|
MethodSource::CodeHelpers::IncompleteExpression::RBX_ONLY_REGEXPS = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
# This module is to be included by `Method` and `UnboundMethod` and
|
||||||
|
# provides the `#source` functionality
|
||||||
|
#
|
||||||
|
# source://method_source//lib/method_source.rb#72
|
||||||
module MethodSource::MethodExtensions
|
module MethodSource::MethodExtensions
|
||||||
|
# Return the comments associated with the method as a string.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# Set.instance_method(:clear).comment.display
|
||||||
|
# =>
|
||||||
|
# # Removes all elements and returns self.
|
||||||
|
# @raise SourceNotFoundException
|
||||||
|
# @return [String] The method's comments as a string
|
||||||
|
#
|
||||||
|
# source://method_source//lib/method_source.rb#121
|
||||||
def comment; end
|
def comment; end
|
||||||
|
|
||||||
|
# Return the sourcecode for the method as a string
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# Set.instance_method(:clear).source.display
|
||||||
|
# =>
|
||||||
|
# def clear
|
||||||
|
# @hash.clear
|
||||||
|
# self
|
||||||
|
# end
|
||||||
|
# @raise SourceNotFoundException
|
||||||
|
# @return [String] The method sourcecode as a string
|
||||||
|
#
|
||||||
|
# source://method_source//lib/method_source.rb#109
|
||||||
def source; end
|
def source; end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# We use the included hook to patch Method#source on rubinius.
|
||||||
|
# We need to use the included hook as Rubinius defines a `source`
|
||||||
|
# on Method so including a module will have no effect (as it's
|
||||||
|
# higher up the MRO).
|
||||||
|
#
|
||||||
|
# @param klass [Class] The class that includes the module.
|
||||||
|
#
|
||||||
|
# source://method_source//lib/method_source.rb#79
|
||||||
def included(klass); end
|
def included(klass); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://method_source//lib/method_source/source_location.rb#2
|
||||||
module MethodSource::ReeSourceLocation
|
module MethodSource::ReeSourceLocation
|
||||||
|
# Ruby enterprise edition provides all the information that's
|
||||||
|
# needed, in a slightly different way.
|
||||||
|
#
|
||||||
|
# source://method_source//lib/method_source/source_location.rb#5
|
||||||
def source_location; end
|
def source_location; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://method_source//lib/method_source/source_location.rb#10
|
||||||
module MethodSource::SourceLocation; end
|
module MethodSource::SourceLocation; end
|
||||||
|
|
||||||
|
# source://method_source//lib/method_source/source_location.rb#11
|
||||||
module MethodSource::SourceLocation::MethodExtensions
|
module MethodSource::SourceLocation::MethodExtensions
|
||||||
|
# Return the source location of a method for Ruby 1.8.
|
||||||
|
#
|
||||||
|
# @return [Array] A two element array. First element is the
|
||||||
|
# file, second element is the line in the file where the
|
||||||
|
# method definition is found.
|
||||||
|
#
|
||||||
|
# source://method_source//lib/method_source/source_location.rb#40
|
||||||
def source_location; end
|
def source_location; end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://method_source//lib/method_source/source_location.rb#26
|
||||||
def trace_func(event, file, line, id, binding, classname); end
|
def trace_func(event, file, line, id, binding, classname); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://method_source//lib/method_source/source_location.rb#54
|
||||||
module MethodSource::SourceLocation::ProcExtensions
|
module MethodSource::SourceLocation::ProcExtensions
|
||||||
|
# Return the source location for a Proc (in implementations
|
||||||
|
# without Proc#source_location)
|
||||||
|
#
|
||||||
|
# @return [Array] A two element array. First element is the
|
||||||
|
# file, second element is the line in the file where the
|
||||||
|
# proc definition is found.
|
||||||
|
#
|
||||||
|
# source://method_source//lib/method_source/source_location.rb#74
|
||||||
def source_location; end
|
def source_location; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://method_source//lib/method_source/source_location.rb#81
|
||||||
module MethodSource::SourceLocation::UnboundMethodExtensions
|
module MethodSource::SourceLocation::UnboundMethodExtensions
|
||||||
|
# Return the source location of an instance method for Ruby 1.8.
|
||||||
|
#
|
||||||
|
# @return [Array] A two element array. First element is the
|
||||||
|
# file, second element is the line in the file where the
|
||||||
|
# method definition is found.
|
||||||
|
#
|
||||||
|
# source://method_source//lib/method_source/source_location.rb#101
|
||||||
def source_location; end
|
def source_location; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# An Exception to mark errors that were raised trying to find the source from
|
||||||
|
# a given source_location.
|
||||||
|
#
|
||||||
|
# source://method_source//lib/method_source.rb#16
|
||||||
class MethodSource::SourceNotFoundError < ::StandardError; end
|
class MethodSource::SourceNotFoundError < ::StandardError; end
|
||||||
|
|
||||||
|
# source://method_source//lib/method_source/version.rb#2
|
||||||
MethodSource::VERSION = T.let(T.unsafe(nil), String)
|
MethodSource::VERSION = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://method_source//lib/method_source.rb#137
|
||||||
|
class Proc
|
||||||
|
include ::MethodSource::SourceLocation::ProcExtensions
|
||||||
|
include ::MethodSource::MethodExtensions
|
||||||
|
end
|
||||||
|
|
||||||
|
# source://method_source//lib/method_source.rb#132
|
||||||
|
class UnboundMethod
|
||||||
|
include ::MethodSource::SourceLocation::UnboundMethodExtensions
|
||||||
|
include ::MethodSource::MethodExtensions
|
||||||
|
end
|
||||||
|
|||||||
1173
Library/Homebrew/sorbet/rbi/gems/minitest@5.20.0.rbi
generated
1173
Library/Homebrew/sorbet/rbi/gems/minitest@5.20.0.rbi
generated
File diff suppressed because it is too large
Load Diff
154
Library/Homebrew/sorbet/rbi/gems/msgpack@1.7.2.rbi
generated
154
Library/Homebrew/sorbet/rbi/gems/msgpack@1.7.2.rbi
generated
@ -4,196 +4,316 @@
|
|||||||
# This is an autogenerated file for types exported from the `msgpack` gem.
|
# This is an autogenerated file for types exported from the `msgpack` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem msgpack`.
|
# Please instead update this file by running `bin/tapioca gem msgpack`.
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/core_ext.rb#67
|
||||||
class Array
|
class Array
|
||||||
include ::Enumerable
|
include ::Enumerable
|
||||||
include ::JSON::Ext::Generator::GeneratorMethods::Array
|
|
||||||
include ::Plist::Emit
|
|
||||||
include ::MessagePack::CoreExt
|
include ::MessagePack::CoreExt
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/core_ext.rb#71
|
||||||
def to_msgpack_with_packer(packer); end
|
def to_msgpack_with_packer(packer); end
|
||||||
end
|
end
|
||||||
|
|
||||||
Bignum = Integer
|
Bignum = Integer
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/core_ext.rb#37
|
||||||
class FalseClass
|
class FalseClass
|
||||||
include ::JSON::Ext::Generator::GeneratorMethods::FalseClass
|
|
||||||
include ::MessagePack::CoreExt
|
include ::MessagePack::CoreExt
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/core_ext.rb#41
|
||||||
def to_msgpack_with_packer(packer); end
|
def to_msgpack_with_packer(packer); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/core_ext.rb#47
|
||||||
class Float < ::Numeric
|
class Float < ::Numeric
|
||||||
include ::JSON::Ext::Generator::GeneratorMethods::Float
|
|
||||||
include ::MessagePack::CoreExt
|
include ::MessagePack::CoreExt
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/core_ext.rb#51
|
||||||
def to_msgpack_with_packer(packer); end
|
def to_msgpack_with_packer(packer); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/core_ext.rb#77
|
||||||
class Hash
|
class Hash
|
||||||
include ::Enumerable
|
include ::Enumerable
|
||||||
include ::JSON::Ext::Generator::GeneratorMethods::Hash
|
|
||||||
include ::Plist::Emit
|
|
||||||
include ::MessagePack::CoreExt
|
include ::MessagePack::CoreExt
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/core_ext.rb#81
|
||||||
def to_msgpack_with_packer(packer); end
|
def to_msgpack_with_packer(packer); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/core_ext.rb#98
|
||||||
class Integer < ::Numeric
|
class Integer < ::Numeric
|
||||||
include ::JSON::Ext::Generator::GeneratorMethods::Integer
|
|
||||||
include ::MessagePack::CoreExt
|
include ::MessagePack::CoreExt
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/core_ext.rb#102
|
||||||
def to_msgpack_with_packer(packer); end
|
def to_msgpack_with_packer(packer); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# MessagePack extention packer and unpacker for built-in Time class
|
||||||
|
#
|
||||||
|
# source://msgpack//lib/msgpack/version.rb#1
|
||||||
module MessagePack
|
module MessagePack
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack.rb#39
|
||||||
def dump(v, io = T.unsafe(nil), options = T.unsafe(nil)); end
|
def dump(v, io = T.unsafe(nil), options = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack.rb#22
|
||||||
def load(src, param = T.unsafe(nil)); end
|
def load(src, param = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack.rb#39
|
||||||
def pack(v, io = T.unsafe(nil), options = T.unsafe(nil)); end
|
def pack(v, io = T.unsafe(nil), options = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack.rb#22
|
||||||
def unpack(src, param = T.unsafe(nil)); end
|
def unpack(src, param = T.unsafe(nil)); end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# source://msgpack//lib/msgpack.rb#39
|
||||||
def dump(v, io = T.unsafe(nil), options = T.unsafe(nil)); end
|
def dump(v, io = T.unsafe(nil), options = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack.rb#22
|
||||||
def load(src, param = T.unsafe(nil)); end
|
def load(src, param = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack.rb#39
|
||||||
def pack(v, io = T.unsafe(nil), options = T.unsafe(nil)); end
|
def pack(v, io = T.unsafe(nil), options = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack.rb#22
|
||||||
def unpack(src, param = T.unsafe(nil)); end
|
def unpack(src, param = T.unsafe(nil)); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/core_ext.rb#2
|
||||||
module MessagePack::CoreExt
|
module MessagePack::CoreExt
|
||||||
|
# source://msgpack//lib/msgpack/core_ext.rb#3
|
||||||
def to_msgpack(packer_or_io = T.unsafe(nil)); end
|
def to_msgpack(packer_or_io = T.unsafe(nil)); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/core_ext.rb#130
|
||||||
class MessagePack::ExtensionValue < ::Struct
|
class MessagePack::ExtensionValue < ::Struct
|
||||||
include ::MessagePack::CoreExt
|
include ::MessagePack::CoreExt
|
||||||
|
|
||||||
def payload=(_); end
|
|
||||||
def type=(_); end
|
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/core_ext.rb#134
|
||||||
def to_msgpack_with_packer(packer); end
|
def to_msgpack_with_packer(packer); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/factory.rb#2
|
||||||
class MessagePack::Factory
|
class MessagePack::Factory
|
||||||
|
# source://msgpack//lib/msgpack/factory.rb#113
|
||||||
def dump(v, *rest); end
|
def dump(v, *rest); end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/factory.rb#99
|
||||||
def load(src, param = T.unsafe(nil)); end
|
def load(src, param = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/factory.rb#113
|
||||||
def pack(v, *rest); end
|
def pack(v, *rest); end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/factory.rb#120
|
||||||
def pool(size = T.unsafe(nil), **options); end
|
def pool(size = T.unsafe(nil), **options); end
|
||||||
|
|
||||||
|
# see ext for other methods
|
||||||
|
#
|
||||||
|
# @raise [FrozenError]
|
||||||
|
#
|
||||||
|
# source://msgpack//lib/msgpack/factory.rb#5
|
||||||
def register_type(type, klass, options = T.unsafe(nil)); end
|
def register_type(type, klass, options = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# [ {type: id, class: Class(or nil), packer: arg, unpacker: arg}, ... ]
|
||||||
|
#
|
||||||
|
# source://msgpack//lib/msgpack/factory.rb#41
|
||||||
def registered_types(selector = T.unsafe(nil)); end
|
def registered_types(selector = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://msgpack//lib/msgpack/factory.rb#86
|
||||||
def type_registered?(klass_or_type, selector = T.unsafe(nil)); end
|
def type_registered?(klass_or_type, selector = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/factory.rb#99
|
||||||
def unpack(src, param = T.unsafe(nil)); end
|
def unpack(src, param = T.unsafe(nil)); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/factory.rb#128
|
||||||
class MessagePack::Factory::Pool
|
class MessagePack::Factory::Pool
|
||||||
|
# @return [Pool] a new instance of Pool
|
||||||
|
#
|
||||||
|
# source://msgpack//lib/msgpack/factory.rb#181
|
||||||
def initialize(factory, size, options = T.unsafe(nil)); end
|
def initialize(factory, size, options = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/factory.rb#195
|
||||||
def dump(object); end
|
def dump(object); end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/factory.rb#188
|
||||||
def load(data); end
|
def load(data); end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/factory.rb#206
|
||||||
def packer(&block); end
|
def packer(&block); end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/factory.rb#202
|
||||||
def unpacker(&block); end
|
def unpacker(&block); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/factory.rb#130
|
||||||
class MessagePack::Factory::Pool::MemberPool
|
class MessagePack::Factory::Pool::MemberPool
|
||||||
|
# @return [MemberPool] a new instance of MemberPool
|
||||||
|
#
|
||||||
|
# source://msgpack//lib/msgpack/factory.rb#131
|
||||||
def initialize(size, &block); end
|
def initialize(size, &block); end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/factory.rb#137
|
||||||
def with; end
|
def with; end
|
||||||
end
|
end
|
||||||
|
|
||||||
class MessagePack::HeldBuffer < ::BasicObject; end
|
class MessagePack::HeldBuffer < ::BasicObject; end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/packer.rb#2
|
||||||
class MessagePack::Packer
|
class MessagePack::Packer
|
||||||
|
# @raise [ArgumentError]
|
||||||
|
#
|
||||||
|
# source://msgpack//lib/msgpack/packer.rb#9
|
||||||
def register_type(type, klass, method_name = T.unsafe(nil), &block); end
|
def register_type(type, klass, method_name = T.unsafe(nil), &block); end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/packer.rb#14
|
||||||
def registered_types; end
|
def registered_types; end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://msgpack//lib/msgpack/packer.rb#24
|
||||||
def type_registered?(klass_or_type); end
|
def type_registered?(klass_or_type); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/time.rb#5
|
||||||
module MessagePack::Time; end
|
module MessagePack::Time; end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/time.rb#25
|
||||||
MessagePack::Time::Packer = T.let(T.unsafe(nil), Proc)
|
MessagePack::Time::Packer = T.let(T.unsafe(nil), Proc)
|
||||||
|
|
||||||
|
# 3-arg Time.at is available Ruby >= 2.5
|
||||||
|
#
|
||||||
|
# source://msgpack//lib/msgpack/time.rb#7
|
||||||
MessagePack::Time::TIME_AT_3_AVAILABLE = T.let(T.unsafe(nil), TrueClass)
|
MessagePack::Time::TIME_AT_3_AVAILABLE = T.let(T.unsafe(nil), TrueClass)
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/time.rb#13
|
||||||
MessagePack::Time::Unpacker = T.let(T.unsafe(nil), Proc)
|
MessagePack::Time::Unpacker = T.let(T.unsafe(nil), Proc)
|
||||||
|
|
||||||
|
# a.k.a. "TimeSpec"
|
||||||
|
#
|
||||||
|
# source://msgpack//lib/msgpack/timestamp.rb#4
|
||||||
class MessagePack::Timestamp
|
class MessagePack::Timestamp
|
||||||
|
# @param sec [Integer]
|
||||||
|
# @param nsec [Integer]
|
||||||
|
# @return [Timestamp] a new instance of Timestamp
|
||||||
|
#
|
||||||
|
# source://msgpack//lib/msgpack/timestamp.rb#24
|
||||||
def initialize(sec, nsec); end
|
def initialize(sec, nsec); end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/timestamp.rb#72
|
||||||
def ==(other); end
|
def ==(other); end
|
||||||
|
|
||||||
|
# @return [Integer]
|
||||||
|
#
|
||||||
|
# source://msgpack//lib/msgpack/timestamp.rb#20
|
||||||
def nsec; end
|
def nsec; end
|
||||||
|
|
||||||
|
# @return [Integer]
|
||||||
|
#
|
||||||
|
# source://msgpack//lib/msgpack/timestamp.rb#17
|
||||||
def sec; end
|
def sec; end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/timestamp.rb#68
|
||||||
def to_msgpack_ext; end
|
def to_msgpack_ext; end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# source://msgpack//lib/msgpack/timestamp.rb#29
|
||||||
def from_msgpack_ext(data); end
|
def from_msgpack_ext(data); end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/timestamp.rb#50
|
||||||
def to_msgpack_ext(sec, nsec); end
|
def to_msgpack_ext(sec, nsec); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/timestamp.rb#13
|
||||||
MessagePack::Timestamp::TIMESTAMP32_MAX_SEC = T.let(T.unsafe(nil), Integer)
|
MessagePack::Timestamp::TIMESTAMP32_MAX_SEC = T.let(T.unsafe(nil), Integer)
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/timestamp.rb#14
|
||||||
MessagePack::Timestamp::TIMESTAMP64_MAX_SEC = T.let(T.unsafe(nil), Integer)
|
MessagePack::Timestamp::TIMESTAMP64_MAX_SEC = T.let(T.unsafe(nil), Integer)
|
||||||
|
|
||||||
|
# The timestamp extension type defined in the MessagePack spec.
|
||||||
|
# See https://github.com/msgpack/msgpack/blob/master/spec.md#timestamp-extension-type for details.
|
||||||
|
#
|
||||||
|
# source://msgpack//lib/msgpack/timestamp.rb#11
|
||||||
MessagePack::Timestamp::TYPE = T.let(T.unsafe(nil), Integer)
|
MessagePack::Timestamp::TYPE = T.let(T.unsafe(nil), Integer)
|
||||||
|
|
||||||
class MessagePack::UnexpectedTypeError < ::MessagePack::UnpackError
|
class MessagePack::UnexpectedTypeError < ::MessagePack::UnpackError
|
||||||
include ::MessagePack::TypeError
|
include ::MessagePack::TypeError
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/unpacker.rb#2
|
||||||
class MessagePack::Unpacker
|
class MessagePack::Unpacker
|
||||||
|
# source://msgpack//lib/msgpack/unpacker.rb#9
|
||||||
def register_type(type, klass = T.unsafe(nil), method_name = T.unsafe(nil), &block); end
|
def register_type(type, klass = T.unsafe(nil), method_name = T.unsafe(nil), &block); end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/unpacker.rb#18
|
||||||
def registered_types; end
|
def registered_types; end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://msgpack//lib/msgpack/unpacker.rb#28
|
||||||
def type_registered?(klass_or_type); end
|
def type_registered?(klass_or_type); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/core_ext.rb#17
|
||||||
class NilClass
|
class NilClass
|
||||||
include ::JSON::Ext::Generator::GeneratorMethods::NilClass
|
|
||||||
include ::MessagePack::CoreExt
|
include ::MessagePack::CoreExt
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/core_ext.rb#21
|
||||||
def to_msgpack_with_packer(packer); end
|
def to_msgpack_with_packer(packer); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/core_ext.rb#57
|
||||||
class String
|
class String
|
||||||
include ::Comparable
|
include ::Comparable
|
||||||
include ::JSON::Ext::Generator::GeneratorMethods::String
|
|
||||||
include ::MessagePack::CoreExt
|
include ::MessagePack::CoreExt
|
||||||
extend ::JSON::Ext::Generator::GeneratorMethods::String::Extend
|
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/core_ext.rb#61
|
||||||
def to_msgpack_with_packer(packer); end
|
def to_msgpack_with_packer(packer); end
|
||||||
end
|
end
|
||||||
|
|
||||||
String::BLANK_RE = T.let(T.unsafe(nil), Regexp)
|
# source://msgpack//lib/msgpack/symbol.rb#1
|
||||||
String::ENCODED_BLANKS = T.let(T.unsafe(nil), Concurrent::Map)
|
|
||||||
|
|
||||||
class Symbol
|
class Symbol
|
||||||
include ::Comparable
|
include ::Comparable
|
||||||
include ::MessagePack::CoreExt
|
include ::MessagePack::CoreExt
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/core_ext.rb#91
|
||||||
def to_msgpack_with_packer(packer); end
|
def to_msgpack_with_packer(packer); end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# source://msgpack//lib/msgpack/symbol.rb#12
|
||||||
def from_msgpack_ext(data); end
|
def from_msgpack_ext(data); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/core_ext.rb#27
|
||||||
class TrueClass
|
class TrueClass
|
||||||
include ::JSON::Ext::Generator::GeneratorMethods::TrueClass
|
|
||||||
include ::MessagePack::CoreExt
|
include ::MessagePack::CoreExt
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://msgpack//lib/msgpack/core_ext.rb#31
|
||||||
def to_msgpack_with_packer(packer); end
|
def to_msgpack_with_packer(packer); end
|
||||||
end
|
end
|
||||||
|
|||||||
808
Library/Homebrew/sorbet/rbi/gems/mustache@1.1.1.rbi
generated
808
Library/Homebrew/sorbet/rbi/gems/mustache@1.1.1.rbi
generated
@ -4,186 +4,994 @@
|
|||||||
# This is an autogenerated file for types exported from the `mustache` gem.
|
# This is an autogenerated file for types exported from the `mustache` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem mustache`.
|
# Please instead update this file by running `bin/tapioca gem mustache`.
|
||||||
|
|
||||||
|
# Mustache is the base class from which your Mustache subclasses
|
||||||
|
# should inherit (though it can be used on its own).
|
||||||
|
#
|
||||||
|
# The typical Mustache workflow is as follows:
|
||||||
|
#
|
||||||
|
# * Create a Mustache subclass: class Stats < Mustache
|
||||||
|
# * Create a template: stats.mustache
|
||||||
|
# * Instantiate an instance: view = Stats.new
|
||||||
|
# * Render that instance: view.render
|
||||||
|
#
|
||||||
|
# You can skip the instantiation by calling `Stats.render` directly.
|
||||||
|
#
|
||||||
|
# While Mustache will do its best to load and render a template for
|
||||||
|
# you, this process is completely customizable using a few options.
|
||||||
|
#
|
||||||
|
# All settings can be overriden at the class level.
|
||||||
|
#
|
||||||
|
# For example, going with the above example, we can use
|
||||||
|
# `Stats.template_path = "/usr/local/templates"` to specify the path
|
||||||
|
# Mustache uses to find templates.
|
||||||
|
#
|
||||||
|
# Here are the available options:
|
||||||
|
#
|
||||||
|
# * template_path
|
||||||
|
#
|
||||||
|
# The `template_path` setting determines the path Mustache uses when
|
||||||
|
# looking for a template. By default it is "."
|
||||||
|
# Setting it to /usr/local/templates, for example, means (given all
|
||||||
|
# other settings are default) a Mustache subclass `Stats` will try to
|
||||||
|
# load /usr/local/templates/stats.mustache
|
||||||
|
#
|
||||||
|
# * template_extension
|
||||||
|
#
|
||||||
|
# The `template_extension` is the extension Mustache uses when looking
|
||||||
|
# for template files. By default it is "mustache"
|
||||||
|
#
|
||||||
|
# * template_file
|
||||||
|
#
|
||||||
|
# You can tell Mustache exactly which template to use with this
|
||||||
|
# setting. It can be a relative or absolute path.
|
||||||
|
#
|
||||||
|
# * template
|
||||||
|
#
|
||||||
|
# Sometimes you want Mustache to render a string, not a file. In those
|
||||||
|
# cases you may set the `template` setting. For example:
|
||||||
|
#
|
||||||
|
# >> Mustache.render("Hello {{planet}}", :planet => "World!")
|
||||||
|
# => "Hello World!"
|
||||||
|
#
|
||||||
|
# The `template` setting is also available on instances.
|
||||||
|
#
|
||||||
|
# view = Mustache.new
|
||||||
|
# view.template = "Hi, {{person}}!"
|
||||||
|
# view[:person] = 'Mom'
|
||||||
|
# view.render # => Hi, mom!
|
||||||
|
#
|
||||||
|
# * view_namespace
|
||||||
|
#
|
||||||
|
# To make life easy on those developing Mustache plugins for web frameworks or
|
||||||
|
# other libraries, Mustache will attempt to load view classes (i.e. Mustache
|
||||||
|
# subclasses) using the `view_class` class method. The `view_namespace` tells
|
||||||
|
# Mustache under which constant view classes live. By default it is `Object`.
|
||||||
|
#
|
||||||
|
# * view_path
|
||||||
|
#
|
||||||
|
# Similar to `template_path`, the `view_path` option tells Mustache where to look
|
||||||
|
# for files containing view classes when using the `view_class` method.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/enumerable.rb#1
|
||||||
class Mustache
|
class Mustache
|
||||||
|
# Initialize a new Mustache instance.
|
||||||
|
#
|
||||||
|
# @option options
|
||||||
|
# @option options
|
||||||
|
# @option options
|
||||||
|
# @option options
|
||||||
|
# @option options
|
||||||
|
# @option options
|
||||||
|
# @param options [Hash] An options hash
|
||||||
|
# @return [Mustache] a new instance of Mustache
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache.rb#86
|
||||||
def initialize(options = T.unsafe(nil)); end
|
def initialize(options = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Context accessors.
|
||||||
|
#
|
||||||
|
# @example Context accessors
|
||||||
|
# view = Mustache.new
|
||||||
|
# view[:name] = "Jon"
|
||||||
|
# view.template = "Hi, {{name}}!"
|
||||||
|
# view.render # => "Hi, Jon!"
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache.rb#150
|
||||||
def [](key); end
|
def [](key); end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache.rb#154
|
||||||
def []=(key, value); end
|
def []=(key, value); end
|
||||||
|
|
||||||
|
# Has this instance or its class already compiled a template?
|
||||||
|
#
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache.rb#237
|
||||||
def compiled?; end
|
def compiled?; end
|
||||||
|
|
||||||
|
# A helper method which gives access to the context at a given time.
|
||||||
|
# Kind of a hack for now, but useful when you're in an iterating section
|
||||||
|
# and want access to the hash currently being iterated over.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache.rb#161
|
||||||
def context; end
|
def context; end
|
||||||
|
|
||||||
|
# Override this to provide custom escaping.
|
||||||
|
# By default it uses `CGI.escapeHTML`.
|
||||||
|
#
|
||||||
|
# @example Overriding #escape
|
||||||
|
# class PersonView < Mustache
|
||||||
|
# def escape(value)
|
||||||
|
# my_html_escape_method(value.to_s)
|
||||||
|
# end
|
||||||
|
# end
|
||||||
|
# @param value [Object] Value to escape.
|
||||||
|
# @return [String] Escaped content.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache.rb#212
|
||||||
def escape(value); end
|
def escape(value); end
|
||||||
|
|
||||||
|
# Override this to provide custom escaping.
|
||||||
|
#
|
||||||
|
# @deprecated Use {#escape} instead.
|
||||||
|
#
|
||||||
|
# Note that {#escape} can receive any kind of object.
|
||||||
|
# If your override logic is expecting a string, you will
|
||||||
|
# have to call to_s on it yourself.
|
||||||
|
# @example Overriding #escapeHTML
|
||||||
|
# class PersonView < Mustache
|
||||||
|
# def escapeHTML(str)
|
||||||
|
# my_html_escape_method(str)
|
||||||
|
# end
|
||||||
|
# end
|
||||||
|
# @param str [String] String to escape.
|
||||||
|
# @return [String] Escaped HTML.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache.rb#232
|
||||||
def escapeHTML(str); end
|
def escapeHTML(str); end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/settings.rb#5
|
||||||
def initialize_settings; end
|
def initialize_settings; end
|
||||||
|
|
||||||
|
# Override this in your subclass if you want to do fun things like
|
||||||
|
# reading templates from a database. It will be rendered by the
|
||||||
|
# context, so all you need to do is return a string.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache.rb#189
|
||||||
def partial(name); end
|
def partial(name); end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/settings.rb#48
|
||||||
def path; end
|
def path; end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/settings.rb#213
|
||||||
def raise_on_context_miss=(boolean); end
|
def raise_on_context_miss=(boolean); end
|
||||||
|
|
||||||
|
# Instance level version of `Mustache.raise_on_context_miss?`
|
||||||
|
#
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/settings.rb#209
|
||||||
def raise_on_context_miss?; end
|
def raise_on_context_miss?; end
|
||||||
|
|
||||||
|
# Parses our fancy pants template file and returns normal file with
|
||||||
|
# all special {{tags}} and {{#sections}}replaced{{/sections}}.
|
||||||
|
#
|
||||||
|
# @example Render view
|
||||||
|
# @view.render("Hi {{thing}}!", :thing => :world)
|
||||||
|
# @example Set view template and then render
|
||||||
|
# View.template = "Hi {{thing}}!"
|
||||||
|
# @view = View.new
|
||||||
|
# @view.render(:thing => :world)
|
||||||
|
# @param data [String, Hash] A String template or a Hash context.
|
||||||
|
# If a Hash is given, we'll try to figure
|
||||||
|
# out the template from the class.
|
||||||
|
# @param ctx [Hash] A Hash context if `data` is a String template.
|
||||||
|
# @return [String] Returns a rendered version of a template.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache.rb#116
|
||||||
def render(data = T.unsafe(nil), ctx = T.unsafe(nil)); end
|
def render(data = T.unsafe(nil), ctx = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Given a file name and an optional context, attempts to load and
|
||||||
|
# render the file as a template.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache.rb#173
|
||||||
def render_file(name, context = T.unsafe(nil)); end
|
def render_file(name, context = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# The template can be set at the instance level.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/settings.rb#173
|
||||||
def template; end
|
def template; end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/settings.rb#184
|
||||||
def template=(template); end
|
def template=(template); end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/settings.rb#84
|
||||||
def template_extension; end
|
def template_extension; end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/settings.rb#88
|
||||||
def template_extension=(template_extension); end
|
def template_extension=(template_extension); end
|
||||||
|
|
||||||
|
# The template file is the absolute path of the file Mustache will
|
||||||
|
# use as its template. By default it's ./class_name.mustache
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/settings.rb#145
|
||||||
def template_file; end
|
def template_file; end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/settings.rb#149
|
||||||
def template_file=(template_file); end
|
def template_file=(template_file); end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/settings.rb#117
|
||||||
def template_name; end
|
def template_name; end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/settings.rb#121
|
||||||
def template_name=(template_name); end
|
def template_name=(template_name); end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/settings.rb#48
|
||||||
def template_path; end
|
def template_path; end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/settings.rb#53
|
||||||
def template_path=(path); end
|
def template_path=(path); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache.rb#309
|
||||||
def templateify(obj); end
|
def templateify(obj); end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# template_partial => TemplatePartial
|
||||||
|
# template/partial => Template::Partial
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache.rb#290
|
||||||
def classify(underscored); end
|
def classify(underscored); end
|
||||||
|
|
||||||
|
# Has this template already been compiled? Compilation is somewhat
|
||||||
|
# expensive so it may be useful to check this before attempting it.
|
||||||
|
#
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache.rb#283
|
||||||
def compiled?; end
|
def compiled?; end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache.rb#271
|
||||||
def const_from_file(name); end
|
def const_from_file(name); end
|
||||||
|
|
||||||
|
# Return the value of the configuration setting on the superclass, or return
|
||||||
|
# the default.
|
||||||
|
#
|
||||||
|
# @param attr_name [Symbol] Name of the attribute. It should match
|
||||||
|
# the instance variable.
|
||||||
|
# @param default [Object] Default value to use if the superclass does
|
||||||
|
# not respond.
|
||||||
|
# @return Inherited or default configuration setting.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache.rb#324
|
||||||
def inheritable_config_for(attr_name, default); end
|
def inheritable_config_for(attr_name, default); end
|
||||||
|
|
||||||
|
# @private
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/settings.rb#25
|
||||||
def inherited(subclass); end
|
def inherited(subclass); end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/settings.rb#14
|
||||||
def initialize_settings; end
|
def initialize_settings; end
|
||||||
|
|
||||||
|
# Given a name, attempts to read a file and return the contents as a
|
||||||
|
# string. The file is not rendered, so it might contain
|
||||||
|
# {{mustaches}}.
|
||||||
|
#
|
||||||
|
# Call `render` if you need to process it.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache.rb#182
|
||||||
def partial(name); end
|
def partial(name); end
|
||||||
|
|
||||||
|
# Alias for `template_path`
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/settings.rb#59
|
||||||
def path; end
|
def path; end
|
||||||
|
|
||||||
|
# Alias for `template_path`
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/settings.rb#64
|
||||||
def path=(path); end
|
def path=(path); end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/settings.rb#204
|
||||||
def raise_on_context_miss=(boolean); end
|
def raise_on_context_miss=(boolean); end
|
||||||
|
|
||||||
|
# Should an exception be raised when we cannot find a corresponding method
|
||||||
|
# or key in the current context? By default this is false to emulate ctemplate's
|
||||||
|
# behavior, but it may be useful to enable when debugging or developing.
|
||||||
|
#
|
||||||
|
# If set to true and there is a context miss, `Mustache::ContextMiss` will
|
||||||
|
# be raised.
|
||||||
|
#
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/settings.rb#200
|
||||||
def raise_on_context_miss?; end
|
def raise_on_context_miss?; end
|
||||||
|
|
||||||
|
# Instantiates an instance of this class and calls `render` with
|
||||||
|
# the passed args.
|
||||||
|
#
|
||||||
|
# @return A rendered String version of a template.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache.rb#96
|
||||||
def render(*args); end
|
def render(*args); end
|
||||||
|
|
||||||
|
# Given a file name and an optional context, attempts to load and
|
||||||
|
# render the file as a template.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache.rb#167
|
||||||
def render_file(name, context = T.unsafe(nil)); end
|
def render_file(name, context = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache.rb#265
|
||||||
def rescued_const_get(name); end
|
def rescued_const_get(name); end
|
||||||
|
|
||||||
|
# The template is the actual string Mustache uses as its template.
|
||||||
|
# There is a bit of magic here: what we get back is actually a
|
||||||
|
# Mustache::Template object, but you can still safely use `template=`
|
||||||
|
# with a string.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/settings.rb#164
|
||||||
def template; end
|
def template; end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/settings.rb#168
|
||||||
def template=(template); end
|
def template=(template); end
|
||||||
|
|
||||||
|
# A Mustache template's default extension is 'mustache', but this can be changed.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/settings.rb#75
|
||||||
def template_extension; end
|
def template_extension; end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/settings.rb#79
|
||||||
def template_extension=(template_extension); end
|
def template_extension=(template_extension); end
|
||||||
|
|
||||||
|
# The template file is the absolute path of the file Mustache will
|
||||||
|
# use as its template. By default it's ./class_name.mustache
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/settings.rb#134
|
||||||
def template_file; end
|
def template_file; end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/settings.rb#138
|
||||||
def template_file=(template_file); end
|
def template_file=(template_file); end
|
||||||
|
|
||||||
|
# The template name is the Mustache template file without any
|
||||||
|
# extension or other information. Defaults to `class_name`.
|
||||||
|
#
|
||||||
|
# You may want to change this if your class is named Stat but you want
|
||||||
|
# to re-use another template.
|
||||||
|
#
|
||||||
|
# class Stat
|
||||||
|
# self.template_name = "graphs" # use graphs.mustache
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/settings.rb#108
|
||||||
def template_name; end
|
def template_name; end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/settings.rb#112
|
||||||
def template_name=(template_name); end
|
def template_name=(template_name); end
|
||||||
|
|
||||||
|
# The template path informs your Mustache view where to look for its
|
||||||
|
# corresponding template. By default it's the current directory (".")
|
||||||
|
#
|
||||||
|
# A class named Stat with a template_path of "app/templates" will look
|
||||||
|
# for "app/templates/stat.mustache"
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/settings.rb#39
|
||||||
def template_path; end
|
def template_path; end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/settings.rb#43
|
||||||
def template_path=(path); end
|
def template_path=(path); end
|
||||||
|
|
||||||
|
# @param obj [Template, String] Turns `obj` into a template
|
||||||
|
# @param options [Hash] Options for template creation
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache.rb#305
|
||||||
def templateify(obj, options = T.unsafe(nil)); end
|
def templateify(obj, options = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# TemplatePartial => template_partial
|
||||||
|
# Template::Partial => template/partial
|
||||||
|
# Takes a string but defaults to using the current class' name.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache.rb#297
|
||||||
def underscore(classified = T.unsafe(nil)); end
|
def underscore(classified = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# When given a symbol or string representing a class, will try to produce an
|
||||||
|
# appropriate view class.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# Mustache.view_namespace = Hurl::Views
|
||||||
|
# Mustache.view_class(:Partial) # => Hurl::Views::Partial
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache.rb#251
|
||||||
def view_class(name); end
|
def view_class(name); end
|
||||||
|
|
||||||
|
# The constant under which Mustache will look for views when autoloading.
|
||||||
|
# By default the view namespace is `Object`, but it might be nice to set
|
||||||
|
# it to something like `Hurl::Views` if your app's main namespace is `Hurl`.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/settings.rb#226
|
||||||
def view_namespace; end
|
def view_namespace; end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/settings.rb#230
|
||||||
def view_namespace=(namespace); end
|
def view_namespace=(namespace); end
|
||||||
|
|
||||||
|
# Mustache searches the view path for .rb files to require when asked to find a
|
||||||
|
# view class. Defaults to "."
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/settings.rb#242
|
||||||
def view_path; end
|
def view_path; end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/settings.rb#246
|
||||||
def view_path=(path); end
|
def view_path=(path); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# A Context represents the context which a Mustache template is
|
||||||
|
# executed within. All Mustache tags reference keys in the Context.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/context.rb#8
|
||||||
class Mustache::Context
|
class Mustache::Context
|
||||||
|
# Initializes a Mustache::Context.
|
||||||
|
#
|
||||||
|
# @param mustache [Mustache] A Mustache instance.
|
||||||
|
# @return [Context] a new instance of Context
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/context.rb#14
|
||||||
def initialize(mustache); end
|
def initialize(mustache); end
|
||||||
|
|
||||||
|
# Alias for `fetch`.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/context.rb#93
|
||||||
def [](name); end
|
def [](name); end
|
||||||
|
|
||||||
|
# Can be used to add a value to the context in a hash-like way.
|
||||||
|
#
|
||||||
|
# context[:name] = "Chris"
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/context.rb#88
|
||||||
def []=(name, value); end
|
def []=(name, value); end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/context.rb#151
|
||||||
def current; end
|
def current; end
|
||||||
|
|
||||||
|
# Allows customization of how Mustache escapes things.
|
||||||
|
#
|
||||||
|
# @param value [Object] Value to escape.
|
||||||
|
# @return [String] Escaped string.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/context.rb#58
|
||||||
def escape(value); end
|
def escape(value); end
|
||||||
|
|
||||||
|
# Similar to Hash#fetch, finds a value by `name` in the context's
|
||||||
|
# stack. You may specify the default return value by passing a
|
||||||
|
# second parameter.
|
||||||
|
#
|
||||||
|
# If no second parameter is passed (or raise_on_context_miss is
|
||||||
|
# set to true), will raise a ContextMiss exception on miss.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/context.rb#111
|
||||||
def fetch(name, default = T.unsafe(nil)); end
|
def fetch(name, default = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Finds a key in an object, using whatever method is most
|
||||||
|
# appropriate. If the object is a hash, does a simple hash lookup.
|
||||||
|
# If it's an object that responds to the key as a method call,
|
||||||
|
# invokes that method. You get the idea.
|
||||||
|
#
|
||||||
|
# @param obj [Object] The object to perform the lookup on.
|
||||||
|
# @param key [String, Symbol] The key whose value you want
|
||||||
|
# @param default [Object] An optional default value, to return if the key is not found.
|
||||||
|
# @return [Object] The value of key in object if it is found, and default otherwise.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/context.rb#138
|
||||||
def find(obj, key, default = T.unsafe(nil)); end
|
def find(obj, key, default = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Do we know about a particular key? In other words, will calling
|
||||||
|
# `context[key]` give us a result that was set. Basically.
|
||||||
|
#
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/context.rb#99
|
||||||
def has_key?(key); end
|
def has_key?(key); end
|
||||||
|
|
||||||
|
# Find the first Mustache in the stack.
|
||||||
|
#
|
||||||
|
# If we're being rendered inside a Mustache object as a context,
|
||||||
|
# we'll use that one.
|
||||||
|
#
|
||||||
|
# @return [Mustache] First Mustache in the stack.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/context.rb#48
|
||||||
def mustache_in_stack; end
|
def mustache_in_stack; end
|
||||||
|
|
||||||
|
# A {{>partial}} tag translates into a call to the context's
|
||||||
|
# `partial` method, which would be this sucker right here.
|
||||||
|
#
|
||||||
|
# If the Mustache view handling the rendering (e.g. the view
|
||||||
|
# representing your profile page or some other template) responds
|
||||||
|
# to `partial`, we call it and render the result.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/context.rb#26
|
||||||
def partial(name, indentation = T.unsafe(nil)); end
|
def partial(name, indentation = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Removes the most recently added object from the context's
|
||||||
|
# internal stack.
|
||||||
|
#
|
||||||
|
# @return [Context] Returns the Context.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/context.rb#79
|
||||||
def pop; end
|
def pop; end
|
||||||
|
|
||||||
|
# Adds a new object to the context's internal stack.
|
||||||
|
#
|
||||||
|
# @param new_obj [Object] Object to be added to the internal stack.
|
||||||
|
# @return [Context] Returns the Context.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/context.rb#68
|
||||||
def push(new_obj); end
|
def push(new_obj); end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/context.rb#37
|
||||||
def template_for_partial(partial); end
|
def template_for_partial(partial); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# Fetches a hash key if it exists, or returns the given default.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/context.rb#159
|
||||||
def find_in_hash(obj, key, default); end
|
def find_in_hash(obj, key, default); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# A ContextMiss is raised whenever a tag's target can not be found
|
||||||
|
# in the current context if `Mustache#raise_on_context_miss?` is
|
||||||
|
# set to true.
|
||||||
|
#
|
||||||
|
# For example, if your View class does not respond to `music` but
|
||||||
|
# your template contains a `{{music}}` tag this exception will be raised.
|
||||||
|
#
|
||||||
|
# By default it is not raised. See Mustache.raise_on_context_miss.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/context_miss.rb#12
|
||||||
class Mustache::ContextMiss < ::RuntimeError; end
|
class Mustache::ContextMiss < ::RuntimeError; end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/enumerable.rb#2
|
||||||
module Mustache::Enumerable; end
|
module Mustache::Enumerable; end
|
||||||
|
|
||||||
|
# The Generator is in charge of taking an array of Mustache tokens,
|
||||||
|
# usually assembled by the Parser, and generating an interpolatable
|
||||||
|
# Ruby string. This string is considered the "compiled" template
|
||||||
|
# because at that point we're relying on Ruby to do the parsing and
|
||||||
|
# run our code.
|
||||||
|
#
|
||||||
|
# For example, let's take this template:
|
||||||
|
#
|
||||||
|
# Hi {{thing}}!
|
||||||
|
#
|
||||||
|
# If we run this through the Parser we'll get these tokens:
|
||||||
|
#
|
||||||
|
# [:multi,
|
||||||
|
# [:static, "Hi "],
|
||||||
|
# [:mustache, :etag, "thing"],
|
||||||
|
# [:static, "!\n"]]
|
||||||
|
#
|
||||||
|
# Now let's hand that to the Generator:
|
||||||
|
#
|
||||||
|
# >> puts Mustache::Generator.new.compile(tokens)
|
||||||
|
# "Hi #{CGI.escapeHTML(ctx[:thing].to_s)}!\n"
|
||||||
|
#
|
||||||
|
# You can see the generated Ruby string for any template with the
|
||||||
|
# mustache(1) command line tool:
|
||||||
|
#
|
||||||
|
# $ mustache --compile test.mustache
|
||||||
|
# "Hi #{CGI.escapeHTML(ctx[:thing].to_s)}!\n"
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/generator.rb#29
|
||||||
class Mustache::Generator
|
class Mustache::Generator
|
||||||
|
# Options can be used to manipulate the resulting ruby code string behavior.
|
||||||
|
#
|
||||||
|
# @return [Generator] a new instance of Generator
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/generator.rb#31
|
||||||
def initialize(options = T.unsafe(nil)); end
|
def initialize(options = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Given an array of tokens, returns an interpolatable Ruby string.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/generator.rb#37
|
||||||
def compile(exp); end
|
def compile(exp); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# Given an array of tokens, converts them into Ruby code. In
|
||||||
|
# particular there are three types of expressions we are concerned
|
||||||
|
# with:
|
||||||
|
#
|
||||||
|
# :multi
|
||||||
|
# Mixed bag of :static, :mustache, and whatever.
|
||||||
|
#
|
||||||
|
# :static
|
||||||
|
# Normal HTML, the stuff outside of {{mustaches}}.
|
||||||
|
#
|
||||||
|
# :mustache
|
||||||
|
# Any Mustache tag, from sections to partials.
|
||||||
|
#
|
||||||
|
# To give you an idea of what you'll be dealing with take this
|
||||||
|
# template:
|
||||||
|
#
|
||||||
|
# Hello {{name}}
|
||||||
|
# You have just won ${{value}}!
|
||||||
|
# {{#in_ca}}
|
||||||
|
# Well, ${{taxed_value}}, after taxes.
|
||||||
|
# {{/in_ca}}
|
||||||
|
#
|
||||||
|
# If we run this through the Parser, we'll get back this array of
|
||||||
|
# tokens:
|
||||||
|
#
|
||||||
|
# [:multi,
|
||||||
|
# [:static, "Hello "],
|
||||||
|
# [:mustache, :etag,
|
||||||
|
# [:mustache, :fetch, ["name"]]],
|
||||||
|
# [:static, "\nYou have just won $"],
|
||||||
|
# [:mustache, :etag,
|
||||||
|
# [:mustache, :fetch, ["value"]]],
|
||||||
|
# [:static, "!\n"],
|
||||||
|
# [:mustache,
|
||||||
|
# :section,
|
||||||
|
# [:mustache, :fetch, ["in_ca"]],
|
||||||
|
# [:multi,
|
||||||
|
# [:static, "Well, $"],
|
||||||
|
# [:mustache, :etag,
|
||||||
|
# [:mustache, :fetch, ["taxed_value"]]],
|
||||||
|
# [:static, ", after taxes.\n"]],
|
||||||
|
# "Well, ${{taxed_value}}, after taxes.\n",
|
||||||
|
# ["{{", "}}"]]]
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/generator.rb#88
|
||||||
def compile!(exp); end
|
def compile!(exp); end
|
||||||
|
|
||||||
|
# An interpolation-friendly version of a string, for use within a
|
||||||
|
# Ruby string.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/generator.rb#208
|
||||||
def ev(s); end
|
def ev(s); end
|
||||||
|
|
||||||
|
# An escaped tag.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/generator.rb#179
|
||||||
def on_etag(name, offset); end
|
def on_etag(name, offset); end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/generator.rb#189
|
||||||
def on_fetch(names); end
|
def on_fetch(names); end
|
||||||
|
|
||||||
|
# Fired when we find an inverted section. Just like `on_section`,
|
||||||
|
# we're passed the inverted section name and the array of tokens.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/generator.rb#145
|
||||||
def on_inverted_section(name, offset, content, raw, delims); end
|
def on_inverted_section(name, offset, content, raw, delims); end
|
||||||
|
|
||||||
|
# Fired when the compiler finds a partial. We want to return code
|
||||||
|
# which calls a partial at runtime instead of expanding and
|
||||||
|
# including the partial's body to allow for recursive partials.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/generator.rb#163
|
||||||
def on_partial(name, offset, indentation); end
|
def on_partial(name, offset, indentation); end
|
||||||
|
|
||||||
|
# Callback fired when the compiler finds a section token. We're
|
||||||
|
# passed the section name and the array of tokens.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/generator.rb#103
|
||||||
def on_section(name, offset, content, raw, delims); end
|
def on_section(name, offset, content, raw, delims); end
|
||||||
|
|
||||||
|
# An unescaped tag.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/generator.rb#168
|
||||||
def on_utag(name, offset); end
|
def on_utag(name, offset); end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/generator.rb#212
|
||||||
def str(s); end
|
def str(s); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# The Parser is responsible for taking a string template and
|
||||||
|
# converting it into an array of tokens and, really, expressions. It
|
||||||
|
# raises SyntaxError if there is anything it doesn't understand and
|
||||||
|
# knows which sigil corresponds to which tag type.
|
||||||
|
#
|
||||||
|
# For example, given this template:
|
||||||
|
#
|
||||||
|
# Hi {{thing}}!
|
||||||
|
#
|
||||||
|
# Run through the Parser we'll get these tokens:
|
||||||
|
#
|
||||||
|
# [:multi,
|
||||||
|
# [:static, "Hi "],
|
||||||
|
# [:mustache, :etag, "thing"],
|
||||||
|
# [:static, "!\n"]]
|
||||||
|
#
|
||||||
|
# You can see the array of tokens for any template with the
|
||||||
|
# mustache(1) command line tool:
|
||||||
|
#
|
||||||
|
# $ mustache --tokens test.mustache
|
||||||
|
# [:multi, [:static, "Hi "], [:mustache, :etag, "thing"], [:static, "!\n"]]
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/parser.rb#25
|
||||||
class Mustache::Parser
|
class Mustache::Parser
|
||||||
|
# Accepts an options hash which does nothing but may be used in
|
||||||
|
# the future.
|
||||||
|
#
|
||||||
|
# @return [Parser] a new instance of Parser
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/parser.rb#91
|
||||||
def initialize(options = T.unsafe(nil)); end
|
def initialize(options = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Given a string template, returns an array of tokens.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/parser.rb#119
|
||||||
def compile(template); end
|
def compile(template); end
|
||||||
|
|
||||||
|
# Returns the value of attribute ctag.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/parser.rb#87
|
||||||
def ctag; end
|
def ctag; end
|
||||||
|
|
||||||
|
# The closing tag delimiter. This too may be changed at runtime.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/parser.rb#113
|
||||||
def ctag=(value); end
|
def ctag=(value); end
|
||||||
|
|
||||||
|
# Returns the value of attribute otag.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/parser.rb#87
|
||||||
def otag; end
|
def otag; end
|
||||||
|
|
||||||
|
# The opening tag delimiter. This may be changed at runtime.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/parser.rb#105
|
||||||
def otag=(value); end
|
def otag=(value); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/parser.rb#150
|
||||||
def content_tags(type, current_ctag_regex); end
|
def content_tags(type, current_ctag_regex); end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/parser.rb#159
|
||||||
def dispatch_based_on_type(type, content, fetch, padding, pre_match_position); end
|
def dispatch_based_on_type(type, content, fetch, padding, pre_match_position); end
|
||||||
|
|
||||||
|
# Raises a SyntaxError. The message should be the name of the
|
||||||
|
# error - other details such as line number and position are
|
||||||
|
# handled for you.
|
||||||
|
#
|
||||||
|
# @raise [SyntaxError]
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/parser.rb#285
|
||||||
def error(message, pos = T.unsafe(nil)); end
|
def error(message, pos = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/parser.rb#163
|
||||||
def find_closing_tag(scanner, current_ctag_regex); end
|
def find_closing_tag(scanner, current_ctag_regex); end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/parser.rb#259
|
||||||
def offset; end
|
def offset; end
|
||||||
|
|
||||||
|
# Returns [lineno, column, line]
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/parser.rb#264
|
||||||
def position; end
|
def position; end
|
||||||
|
|
||||||
|
# Used to quickly convert a string into a regular expression
|
||||||
|
# usable by the string scanner.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/parser.rb#278
|
||||||
def regexp(thing); end
|
def regexp(thing); end
|
||||||
|
|
||||||
|
# This function handles the cases where the scanned tag does not have
|
||||||
|
# a type.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/parser.rb#301
|
||||||
def scan_tag_(content, fetch, padding, pre_match_position); end
|
def scan_tag_(content, fetch, padding, pre_match_position); end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/parser.rb#340
|
||||||
def scan_tag_!(content, fetch, padding, pre_match_position); end
|
def scan_tag_!(content, fetch, padding, pre_match_position); end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/parser.rb#345
|
||||||
def scan_tag_=(content, fetch, padding, pre_match_position); end
|
def scan_tag_=(content, fetch, padding, pre_match_position); end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/parser.rb#306
|
||||||
def scan_tag_block(content, fetch, padding, pre_match_position); end
|
def scan_tag_block(content, fetch, padding, pre_match_position); end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/parser.rb#324
|
||||||
def scan_tag_close(content, fetch, padding, pre_match_position); end
|
def scan_tag_close(content, fetch, padding, pre_match_position); end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/parser.rb#340
|
||||||
def scan_tag_comment(content, fetch, padding, pre_match_position); end
|
def scan_tag_comment(content, fetch, padding, pre_match_position); end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/parser.rb#345
|
||||||
def scan_tag_delimiter(content, fetch, padding, pre_match_position); end
|
def scan_tag_delimiter(content, fetch, padding, pre_match_position); end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/parser.rb#315
|
||||||
def scan_tag_inverted(content, fetch, padding, pre_match_position); end
|
def scan_tag_inverted(content, fetch, padding, pre_match_position); end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/parser.rb#351
|
||||||
def scan_tag_open_partial(content, fetch, padding, pre_match_position); end
|
def scan_tag_open_partial(content, fetch, padding, pre_match_position); end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/parser.rb#364
|
||||||
def scan_tag_unescaped(content, fetch, padding, pre_match_position); end
|
def scan_tag_unescaped(content, fetch, padding, pre_match_position); end
|
||||||
|
|
||||||
|
# Find {{mustaches}} and add them to the @result array.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/parser.rb#168
|
||||||
def scan_tags; end
|
def scan_tags; end
|
||||||
|
|
||||||
|
# Try to find static text, e.g. raw HTML with no {{mustaches}}.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/parser.rb#233
|
||||||
def scan_text; end
|
def scan_text; end
|
||||||
|
|
||||||
|
# Scans the string until the pattern is matched. Returns the substring
|
||||||
|
# *excluding* the end of the match, advancing the scan pointer to that
|
||||||
|
# location. If there is no match, nil is returned.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/parser.rb#251
|
||||||
def scan_until_exclusive(regexp); end
|
def scan_until_exclusive(regexp); end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# Add a supported sigil type (with optional aliases) to the Parser.
|
||||||
|
#
|
||||||
|
# Requires a block, which will be sent the following parameters:
|
||||||
|
#
|
||||||
|
# * content - The raw content of the tag
|
||||||
|
# * fetch- A mustache context fetch expression for the content
|
||||||
|
# * padding - Indentation whitespace from the currently-parsed line
|
||||||
|
# * pre_match_position - Location of the scanner before a match was made
|
||||||
|
#
|
||||||
|
# The provided block will be evaluated against the current instance of
|
||||||
|
# Parser, and may append to the Parser's @result as needed.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/parser.rb#65
|
||||||
def add_type(*types, &block); end
|
def add_type(*types, &block); end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/parser.rb#50
|
||||||
def valid_types; end
|
def valid_types; end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# The content allowed in a tag name.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/parser.rb#81
|
||||||
Mustache::Parser::ALLOWED_CONTENT = T.let(T.unsafe(nil), Regexp)
|
Mustache::Parser::ALLOWED_CONTENT = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
|
# These types of tags allow any content,
|
||||||
|
# the rest only allow ALLOWED_CONTENT.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/parser.rb#85
|
||||||
Mustache::Parser::ANY_CONTENT = T.let(T.unsafe(nil), Array)
|
Mustache::Parser::ANY_CONTENT = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
# After these types of tags, all whitespace until the end of the line will
|
||||||
|
# be skipped if they are the first (and only) non-whitespace content on
|
||||||
|
# the line.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/parser.rb#78
|
||||||
Mustache::Parser::SKIP_WHITESPACE = T.let(T.unsafe(nil), Array)
|
Mustache::Parser::SKIP_WHITESPACE = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
# A SyntaxError is raised when the Parser comes across unclosed
|
||||||
|
# tags, sections, illegal content in tags, or anything of that
|
||||||
|
# sort.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/parser.rb#29
|
||||||
class Mustache::Parser::SyntaxError < ::StandardError
|
class Mustache::Parser::SyntaxError < ::StandardError
|
||||||
|
# @return [SyntaxError] a new instance of SyntaxError
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/parser.rb#30
|
||||||
def initialize(message, position); end
|
def initialize(message, position); end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/parser.rb#37
|
||||||
def to_s; end
|
def to_s; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# The sigil types which are valid after an opening `{{`
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/parser.rb#48
|
||||||
Mustache::Parser::VALID_TYPES = T.let(T.unsafe(nil), Array)
|
Mustache::Parser::VALID_TYPES = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
# A Template represents a Mustache template. It compiles and caches
|
||||||
|
# a raw string template into something usable.
|
||||||
|
#
|
||||||
|
# The idea is this: when handed a Mustache template, convert it into
|
||||||
|
# a Ruby string by transforming Mustache tags into interpolated
|
||||||
|
# Ruby.
|
||||||
|
#
|
||||||
|
# You shouldn't use this class directly, instead:
|
||||||
|
#
|
||||||
|
# >> Mustache.render(template, hash)
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/template.rb#17
|
||||||
class Mustache::Template
|
class Mustache::Template
|
||||||
|
# Expects a Mustache template as a string along with a template
|
||||||
|
# path, which it uses to find partials. Options may be passed.
|
||||||
|
#
|
||||||
|
# @return [Template] a new instance of Template
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/template.rb#22
|
||||||
def initialize(source, options = T.unsafe(nil)); end
|
def initialize(source, options = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Does the dirty work of transforming a Mustache template into an
|
||||||
|
# interpolation-friendly Ruby string.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/template.rb#49
|
||||||
def compile(src = T.unsafe(nil)); end
|
def compile(src = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Returns an array of partials.
|
||||||
|
#
|
||||||
|
# Partials that belong to sections are included, but the section name is not preserved
|
||||||
|
#
|
||||||
|
# @return [Array] Returns an array of partials.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/template.rb#103
|
||||||
def partials; end
|
def partials; end
|
||||||
|
|
||||||
|
# Renders the `@source` Mustache template using the given
|
||||||
|
# `context`, which should be a simple hash keyed with symbols.
|
||||||
|
#
|
||||||
|
# The first time a template is rendered, this method is overriden
|
||||||
|
# and from then on it is "compiled". Subsequent calls will skip
|
||||||
|
# the compilation step and run the Ruby version of the template
|
||||||
|
# directly.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/template.rb#34
|
||||||
def render(context); end
|
def render(context); end
|
||||||
|
|
||||||
|
# Returns an array of sections.
|
||||||
|
#
|
||||||
|
# Sections that belong to other sections will be of the form `section1.childsection`
|
||||||
|
#
|
||||||
|
# @return [Array] Returns an array of section.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/template.rb#86
|
||||||
def sections; end
|
def sections; end
|
||||||
|
|
||||||
|
# Returns the value of attribute source.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/template.rb#18
|
||||||
def source; end
|
def source; end
|
||||||
|
|
||||||
|
# Returns an array of tags.
|
||||||
|
#
|
||||||
|
# Tags that belong to sections will be of the form `section1.tag`.
|
||||||
|
#
|
||||||
|
# @return [Array] Returns an array of tags.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/template.rb#68
|
||||||
def tags; end
|
def tags; end
|
||||||
|
|
||||||
|
# Does the dirty work of transforming a Mustache template into an
|
||||||
|
# interpolation-friendly Ruby string.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/template.rb#49
|
||||||
def to_s(src = T.unsafe(nil)); end
|
def to_s(src = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Returns an array of tokens for a given template.
|
||||||
|
#
|
||||||
|
# @return [Array] Array of tokens.
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/template.rb#58
|
||||||
def tokens(src = T.unsafe(nil)); end
|
def tokens(src = T.unsafe(nil)); end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# Simple recursive iterator for tokens
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/template.rb#115
|
||||||
def recursor(toks, section, &block); end
|
def recursor(toks, section, &block); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/utils.rb#2
|
||||||
module Mustache::Utils; end
|
module Mustache::Utils; end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/utils.rb#3
|
||||||
class Mustache::Utils::String
|
class Mustache::Utils::String
|
||||||
|
# @return [String] a new instance of String
|
||||||
|
#
|
||||||
|
# source://mustache//lib/mustache/utils.rb#4
|
||||||
def initialize(string); end
|
def initialize(string); end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/utils.rb#8
|
||||||
def classify; end
|
def classify; end
|
||||||
|
|
||||||
|
# source://mustache//lib/mustache/utils.rb#17
|
||||||
def underscore(view_namespace); end
|
def underscore(view_namespace); end
|
||||||
end
|
end
|
||||||
|
|||||||
158
Library/Homebrew/sorbet/rbi/gems/netrc@0.11.0.rbi
generated
Normal file
158
Library/Homebrew/sorbet/rbi/gems/netrc@0.11.0.rbi
generated
Normal file
@ -0,0 +1,158 @@
|
|||||||
|
# typed: true
|
||||||
|
|
||||||
|
# DO NOT EDIT MANUALLY
|
||||||
|
# This is an autogenerated file for types exported from the `netrc` gem.
|
||||||
|
# Please instead update this file by running `bin/tapioca gem netrc`.
|
||||||
|
|
||||||
|
# source://netrc//lib/netrc.rb#3
|
||||||
|
class Netrc
|
||||||
|
# @return [Netrc] a new instance of Netrc
|
||||||
|
#
|
||||||
|
# source://netrc//lib/netrc.rb#166
|
||||||
|
def initialize(path, data); end
|
||||||
|
|
||||||
|
# source://netrc//lib/netrc.rb#180
|
||||||
|
def [](k); end
|
||||||
|
|
||||||
|
# source://netrc//lib/netrc.rb#188
|
||||||
|
def []=(k, info); end
|
||||||
|
|
||||||
|
# source://netrc//lib/netrc.rb#200
|
||||||
|
def delete(key); end
|
||||||
|
|
||||||
|
# source://netrc//lib/netrc.rb#211
|
||||||
|
def each(&block); end
|
||||||
|
|
||||||
|
# source://netrc//lib/netrc.rb#196
|
||||||
|
def length; end
|
||||||
|
|
||||||
|
# source://netrc//lib/netrc.rb#215
|
||||||
|
def new_item(m, l, p); end
|
||||||
|
|
||||||
|
# Returns the value of attribute new_item_prefix.
|
||||||
|
#
|
||||||
|
# source://netrc//lib/netrc.rb#178
|
||||||
|
def new_item_prefix; end
|
||||||
|
|
||||||
|
# Sets the attribute new_item_prefix
|
||||||
|
#
|
||||||
|
# @param value the value to set the attribute new_item_prefix to.
|
||||||
|
#
|
||||||
|
# source://netrc//lib/netrc.rb#178
|
||||||
|
def new_item_prefix=(_arg0); end
|
||||||
|
|
||||||
|
# source://netrc//lib/netrc.rb#219
|
||||||
|
def save; end
|
||||||
|
|
||||||
|
# source://netrc//lib/netrc.rb#233
|
||||||
|
def unparse; end
|
||||||
|
|
||||||
|
class << self
|
||||||
|
# source://netrc//lib/netrc.rb#42
|
||||||
|
def check_permissions(path); end
|
||||||
|
|
||||||
|
# source://netrc//lib/netrc.rb#33
|
||||||
|
def config; end
|
||||||
|
|
||||||
|
# @yield [self.config]
|
||||||
|
#
|
||||||
|
# source://netrc//lib/netrc.rb#37
|
||||||
|
def configure; end
|
||||||
|
|
||||||
|
# source://netrc//lib/netrc.rb#10
|
||||||
|
def default_path; end
|
||||||
|
|
||||||
|
# source://netrc//lib/netrc.rb#14
|
||||||
|
def home_path; end
|
||||||
|
|
||||||
|
# source://netrc//lib/netrc.rb#85
|
||||||
|
def lex(lines); end
|
||||||
|
|
||||||
|
# source://netrc//lib/netrc.rb#29
|
||||||
|
def netrc_filename; end
|
||||||
|
|
||||||
|
# Returns two values, a header and a list of items.
|
||||||
|
# Each item is a tuple, containing some or all of:
|
||||||
|
# - machine keyword (including trailing whitespace+comments)
|
||||||
|
# - machine name
|
||||||
|
# - login keyword (including surrounding whitespace+comments)
|
||||||
|
# - login
|
||||||
|
# - password keyword (including surrounding whitespace+comments)
|
||||||
|
# - password
|
||||||
|
# - trailing chars
|
||||||
|
# This lets us change individual fields, then write out the file
|
||||||
|
# with all its original formatting.
|
||||||
|
#
|
||||||
|
# source://netrc//lib/netrc.rb#129
|
||||||
|
def parse(ts); end
|
||||||
|
|
||||||
|
# Reads path and parses it as a .netrc file. If path doesn't
|
||||||
|
# exist, returns an empty object. Decrypt paths ending in .gpg.
|
||||||
|
#
|
||||||
|
# source://netrc//lib/netrc.rb#51
|
||||||
|
def read(path = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://netrc//lib/netrc.rb#112
|
||||||
|
def skip?(s); end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# source://netrc//lib/netrc.rb#8
|
||||||
|
Netrc::CYGWIN = T.let(T.unsafe(nil), T.untyped)
|
||||||
|
|
||||||
|
# source://netrc//lib/netrc.rb#244
|
||||||
|
class Netrc::Entry < ::Struct
|
||||||
|
# Returns the value of attribute login
|
||||||
|
#
|
||||||
|
# @return [Object] the current value of login
|
||||||
|
def login; end
|
||||||
|
|
||||||
|
# Sets the attribute login
|
||||||
|
#
|
||||||
|
# @param value [Object] the value to set the attribute login to.
|
||||||
|
# @return [Object] the newly set value
|
||||||
|
def login=(_); end
|
||||||
|
|
||||||
|
# Returns the value of attribute password
|
||||||
|
#
|
||||||
|
# @return [Object] the current value of password
|
||||||
|
def password; end
|
||||||
|
|
||||||
|
# Sets the attribute password
|
||||||
|
#
|
||||||
|
# @param value [Object] the value to set the attribute password to.
|
||||||
|
# @return [Object] the newly set value
|
||||||
|
def password=(_); end
|
||||||
|
|
||||||
|
def to_ary; end
|
||||||
|
|
||||||
|
class << self
|
||||||
|
def [](*_arg0); end
|
||||||
|
def inspect; end
|
||||||
|
def keyword_init?; end
|
||||||
|
def members; end
|
||||||
|
def new(*_arg0); end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# source://netrc//lib/netrc.rb#250
|
||||||
|
class Netrc::Error < ::StandardError; end
|
||||||
|
|
||||||
|
# source://netrc//lib/netrc.rb#68
|
||||||
|
class Netrc::TokenArray < ::Array
|
||||||
|
# source://netrc//lib/netrc.rb#76
|
||||||
|
def readto; end
|
||||||
|
|
||||||
|
# source://netrc//lib/netrc.rb#69
|
||||||
|
def take; end
|
||||||
|
end
|
||||||
|
|
||||||
|
# source://netrc//lib/netrc.rb#4
|
||||||
|
Netrc::VERSION = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# see http://stackoverflow.com/questions/4871309/what-is-the-correct-way-to-detect-if-ruby-is-running-on-windows
|
||||||
|
#
|
||||||
|
# source://netrc//lib/netrc.rb#7
|
||||||
|
Netrc::WINDOWS = T.let(T.unsafe(nil), T.untyped)
|
||||||
162
Library/Homebrew/sorbet/rbi/gems/parallel@1.23.0.rbi
generated
162
Library/Homebrew/sorbet/rbi/gems/parallel@1.23.0.rbi
generated
@ -4,108 +4,270 @@
|
|||||||
# This is an autogenerated file for types exported from the `parallel` gem.
|
# This is an autogenerated file for types exported from the `parallel` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem parallel`.
|
# Please instead update this file by running `bin/tapioca gem parallel`.
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel/version.rb#2
|
||||||
module Parallel
|
module Parallel
|
||||||
class << self
|
class << self
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://parallel//lib/parallel.rb#243
|
||||||
def all?(*args, &block); end
|
def all?(*args, &block); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://parallel//lib/parallel.rb#238
|
||||||
def any?(*args, &block); end
|
def any?(*args, &block); end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#234
|
||||||
def each(array, options = T.unsafe(nil), &block); end
|
def each(array, options = T.unsafe(nil), &block); end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#248
|
||||||
def each_with_index(array, options = T.unsafe(nil), &block); end
|
def each_with_index(array, options = T.unsafe(nil), &block); end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#307
|
||||||
def filter_map(*args, &block); end
|
def filter_map(*args, &block); end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#303
|
||||||
def flat_map(*args, &block); end
|
def flat_map(*args, &block); end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#228
|
||||||
def in_processes(options = T.unsafe(nil), &block); end
|
def in_processes(options = T.unsafe(nil), &block); end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#212
|
||||||
def in_threads(options = T.unsafe(nil)); end
|
def in_threads(options = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#252
|
||||||
def map(source, options = T.unsafe(nil), &block); end
|
def map(source, options = T.unsafe(nil), &block); end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#299
|
||||||
def map_with_index(array, options = T.unsafe(nil), &block); end
|
def map_with_index(array, options = T.unsafe(nil), &block); end
|
||||||
|
|
||||||
|
# Number of physical processor cores on the current system.
|
||||||
|
#
|
||||||
|
# source://parallel//lib/parallel.rb#312
|
||||||
def physical_processor_count; end
|
def physical_processor_count; end
|
||||||
|
|
||||||
|
# Number of processors seen by the OS, used for process scheduling
|
||||||
|
#
|
||||||
|
# source://parallel//lib/parallel.rb#345
|
||||||
def processor_count; end
|
def processor_count; end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#350
|
||||||
def worker_number; end
|
def worker_number; end
|
||||||
|
|
||||||
|
# TODO: this does not work when doing threads in forks, so should remove and yield the number instead if needed
|
||||||
|
#
|
||||||
|
# source://parallel//lib/parallel.rb#355
|
||||||
def worker_number=(worker_num); end
|
def worker_number=(worker_num); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#361
|
||||||
def add_progress_bar!(job_factory, options); end
|
def add_progress_bar!(job_factory, options); end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#624
|
||||||
def call_with_index(item, index, options, &block); end
|
def call_with_index(item, index, options, &block); end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#556
|
||||||
def create_workers(job_factory, options, &block); end
|
def create_workers(job_factory, options, &block); end
|
||||||
|
|
||||||
|
# options is either a Integer or a Hash with :count
|
||||||
|
#
|
||||||
|
# source://parallel//lib/parallel.rb#614
|
||||||
def extract_count_from_options(options); end
|
def extract_count_from_options(options); end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#642
|
||||||
def instrument_finish(item, index, result, options); end
|
def instrument_finish(item, index, result, options); end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#647
|
||||||
def instrument_start(item, index, options); end
|
def instrument_start(item, index, options); end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#590
|
||||||
def process_incoming_jobs(read, write, job_factory, options, &block); end
|
def process_incoming_jobs(read, write, job_factory, options, &block); end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#544
|
||||||
def replace_worker(job_factory, workers, index, options, blk); end
|
def replace_worker(job_factory, workers, index, options, blk); end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#635
|
||||||
def with_instrumentation(item, index, options); end
|
def with_instrumentation(item, index, options); end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#386
|
||||||
def work_direct(job_factory, options, &block); end
|
def work_direct(job_factory, options, &block); end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#496
|
||||||
def work_in_processes(job_factory, options, &blk); end
|
def work_in_processes(job_factory, options, &blk); end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#430
|
||||||
def work_in_ractors(job_factory, options); end
|
def work_in_ractors(job_factory, options); end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#405
|
||||||
def work_in_threads(job_factory, options, &block); end
|
def work_in_threads(job_factory, options, &block); end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#564
|
||||||
def worker(job_factory, options, &block); end
|
def worker(job_factory, options, &block); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#11
|
||||||
class Parallel::Break < ::StandardError
|
class Parallel::Break < ::StandardError
|
||||||
|
# @return [Break] a new instance of Break
|
||||||
|
#
|
||||||
|
# source://parallel//lib/parallel.rb#14
|
||||||
def initialize(value = T.unsafe(nil)); end
|
def initialize(value = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Returns the value of attribute value.
|
||||||
|
#
|
||||||
|
# source://parallel//lib/parallel.rb#12
|
||||||
def value; end
|
def value; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#8
|
||||||
class Parallel::DeadWorker < ::StandardError; end
|
class Parallel::DeadWorker < ::StandardError; end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#32
|
||||||
class Parallel::ExceptionWrapper
|
class Parallel::ExceptionWrapper
|
||||||
|
# @return [ExceptionWrapper] a new instance of ExceptionWrapper
|
||||||
|
#
|
||||||
|
# source://parallel//lib/parallel.rb#35
|
||||||
def initialize(exception); end
|
def initialize(exception); end
|
||||||
|
|
||||||
|
# Returns the value of attribute exception.
|
||||||
|
#
|
||||||
|
# source://parallel//lib/parallel.rb#33
|
||||||
def exception; end
|
def exception; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#98
|
||||||
class Parallel::JobFactory
|
class Parallel::JobFactory
|
||||||
|
# @return [JobFactory] a new instance of JobFactory
|
||||||
|
#
|
||||||
|
# source://parallel//lib/parallel.rb#99
|
||||||
def initialize(source, mutex); end
|
def initialize(source, mutex); end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#107
|
||||||
def next; end
|
def next; end
|
||||||
|
|
||||||
|
# generate item that is sent to workers
|
||||||
|
# just index is faster + less likely to blow up with unserializable errors
|
||||||
|
#
|
||||||
|
# source://parallel//lib/parallel.rb#136
|
||||||
def pack(item, index); end
|
def pack(item, index); end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#126
|
||||||
def size; end
|
def size; end
|
||||||
|
|
||||||
|
# unpack item that is sent to workers
|
||||||
|
#
|
||||||
|
# source://parallel//lib/parallel.rb#141
|
||||||
def unpack(data); end
|
def unpack(data); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://parallel//lib/parallel.rb#147
|
||||||
def producer?; end
|
def producer?; end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#151
|
||||||
def queue_wrapper(array); end
|
def queue_wrapper(array); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#20
|
||||||
class Parallel::Kill < ::Parallel::Break; end
|
class Parallel::Kill < ::Parallel::Break; end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#6
|
||||||
Parallel::Stop = T.let(T.unsafe(nil), Object)
|
Parallel::Stop = T.let(T.unsafe(nil), Object)
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#23
|
||||||
class Parallel::UndumpableException < ::StandardError
|
class Parallel::UndumpableException < ::StandardError
|
||||||
|
# @return [UndumpableException] a new instance of UndumpableException
|
||||||
|
#
|
||||||
|
# source://parallel//lib/parallel.rb#26
|
||||||
def initialize(original); end
|
def initialize(original); end
|
||||||
|
|
||||||
|
# Returns the value of attribute backtrace.
|
||||||
|
#
|
||||||
|
# source://parallel//lib/parallel.rb#24
|
||||||
def backtrace; end
|
def backtrace; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#156
|
||||||
class Parallel::UserInterruptHandler
|
class Parallel::UserInterruptHandler
|
||||||
class << self
|
class << self
|
||||||
|
# source://parallel//lib/parallel.rb#181
|
||||||
def kill(thing); end
|
def kill(thing); end
|
||||||
|
|
||||||
|
# kill all these pids or threads if user presses Ctrl+c
|
||||||
|
#
|
||||||
|
# source://parallel//lib/parallel.rb#161
|
||||||
def kill_on_ctrl_c(pids, options); end
|
def kill_on_ctrl_c(pids, options); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#205
|
||||||
def restore_interrupt(old, signal); end
|
def restore_interrupt(old, signal); end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#190
|
||||||
def trap_interrupt(signal); end
|
def trap_interrupt(signal); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#157
|
||||||
Parallel::UserInterruptHandler::INTERRUPT_SIGNAL = T.let(T.unsafe(nil), Symbol)
|
Parallel::UserInterruptHandler::INTERRUPT_SIGNAL = T.let(T.unsafe(nil), Symbol)
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel/version.rb#3
|
||||||
Parallel::VERSION = T.let(T.unsafe(nil), String)
|
Parallel::VERSION = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel/version.rb#3
|
||||||
Parallel::Version = T.let(T.unsafe(nil), String)
|
Parallel::Version = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#51
|
||||||
class Parallel::Worker
|
class Parallel::Worker
|
||||||
|
# @return [Worker] a new instance of Worker
|
||||||
|
#
|
||||||
|
# source://parallel//lib/parallel.rb#55
|
||||||
def initialize(read, write, pid); end
|
def initialize(read, write, pid); end
|
||||||
|
|
||||||
|
# might be passed to started_processes and simultaneously closed by another thread
|
||||||
|
# when running in isolation mode, so we have to check if it is closed before closing
|
||||||
|
#
|
||||||
|
# source://parallel//lib/parallel.rb#68
|
||||||
def close_pipes; end
|
def close_pipes; end
|
||||||
|
|
||||||
|
# Returns the value of attribute pid.
|
||||||
|
#
|
||||||
|
# source://parallel//lib/parallel.rb#52
|
||||||
def pid; end
|
def pid; end
|
||||||
|
|
||||||
|
# Returns the value of attribute read.
|
||||||
|
#
|
||||||
|
# source://parallel//lib/parallel.rb#52
|
||||||
def read; end
|
def read; end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#61
|
||||||
def stop; end
|
def stop; end
|
||||||
|
|
||||||
|
# Returns the value of attribute thread.
|
||||||
|
#
|
||||||
|
# source://parallel//lib/parallel.rb#53
|
||||||
def thread; end
|
def thread; end
|
||||||
|
|
||||||
|
# Sets the attribute thread
|
||||||
|
#
|
||||||
|
# @param value the value to set the attribute thread to.
|
||||||
|
#
|
||||||
|
# source://parallel//lib/parallel.rb#53
|
||||||
def thread=(_arg0); end
|
def thread=(_arg0); end
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#73
|
||||||
def work(data); end
|
def work(data); end
|
||||||
|
|
||||||
|
# Returns the value of attribute write.
|
||||||
|
#
|
||||||
|
# source://parallel//lib/parallel.rb#52
|
||||||
def write; end
|
def write; end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://parallel//lib/parallel.rb#91
|
||||||
def wait; end
|
def wait; end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1,95 +0,0 @@
|
|||||||
# typed: true
|
|
||||||
|
|
||||||
# DO NOT EDIT MANUALLY
|
|
||||||
# This is an autogenerated file for types exported from the `parallel_tests` gem.
|
|
||||||
# Please instead update this file by running `bin/tapioca gem parallel_tests`.
|
|
||||||
|
|
||||||
module ParallelTests
|
|
||||||
class << self
|
|
||||||
def bundler_enabled?; end
|
|
||||||
def delta; end
|
|
||||||
def determine_number_of_processes(count); end
|
|
||||||
def first_process?; end
|
|
||||||
def last_process?; end
|
|
||||||
def now; end
|
|
||||||
def number_of_running_processes; end
|
|
||||||
def pid_file_path; end
|
|
||||||
def pids; end
|
|
||||||
def stop_all_processes; end
|
|
||||||
def wait_for_other_processes_to_finish; end
|
|
||||||
def with_pid_file; end
|
|
||||||
def with_ruby_binary(command); end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ParallelTests::CLI
|
|
||||||
def run(argv); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def any_test_failed?(test_results); end
|
|
||||||
def append_test_options(options, argv); end
|
|
||||||
def detailed_duration(seconds); end
|
|
||||||
def execute_command_in_parallel(command, num_processes, options); end
|
|
||||||
def execute_in_parallel(items, num_processes, options); end
|
|
||||||
def extract_file_paths(argv); end
|
|
||||||
def extract_test_options(argv); end
|
|
||||||
def final_fail_message; end
|
|
||||||
def first_is_1?; end
|
|
||||||
def handle_interrupt; end
|
|
||||||
def load_runner(type); end
|
|
||||||
def lock(lockfile); end
|
|
||||||
def parse_options!(argv); end
|
|
||||||
def pluralize(n, singular); end
|
|
||||||
def report_failure_rerun_commmand(test_results, options); end
|
|
||||||
def report_number_of_tests(groups); end
|
|
||||||
def report_results(test_results, options); end
|
|
||||||
def report_time_taken(&block); end
|
|
||||||
def reprint_output(result, lockfile); end
|
|
||||||
def run_tests(group, process_number, num_processes, options); end
|
|
||||||
def run_tests_in_parallel(num_processes, options); end
|
|
||||||
def simulate_output_for_ci(simulate); end
|
|
||||||
def use_colors?; end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ParallelTests::Grouper
|
|
||||||
class << self
|
|
||||||
def by_scenarios(tests, num_groups, options = T.unsafe(nil)); end
|
|
||||||
def by_steps(tests, num_groups, options); end
|
|
||||||
def in_even_groups_by_size(items, num_groups, options = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def add_to_group(group, item, size); end
|
|
||||||
def group_by_features_with_steps(tests, options); end
|
|
||||||
def group_by_scenarios(tests, options = T.unsafe(nil)); end
|
|
||||||
def group_features_by_size(items, groups_to_fill); end
|
|
||||||
def isolate_count(options); end
|
|
||||||
def items_to_group(items); end
|
|
||||||
def largest_first(files); end
|
|
||||||
def smallest_group(groups); end
|
|
||||||
def specify_groups(items, num_groups, options, groups); end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ParallelTests::Pids
|
|
||||||
def initialize(file_path); end
|
|
||||||
|
|
||||||
def add(pid); end
|
|
||||||
def all; end
|
|
||||||
def count; end
|
|
||||||
def delete(pid); end
|
|
||||||
def file_path; end
|
|
||||||
def mutex; end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def clear; end
|
|
||||||
def pids; end
|
|
||||||
def read; end
|
|
||||||
def save; end
|
|
||||||
def sync(&block); end
|
|
||||||
end
|
|
||||||
|
|
||||||
ParallelTests::RUBY_BINARY = T.let(T.unsafe(nil), String)
|
|
||||||
ParallelTests::VERSION = T.let(T.unsafe(nil), String)
|
|
||||||
245
Library/Homebrew/sorbet/rbi/gems/parallel_tests@4.3.0.rbi
generated
Normal file
245
Library/Homebrew/sorbet/rbi/gems/parallel_tests@4.3.0.rbi
generated
Normal file
@ -0,0 +1,245 @@
|
|||||||
|
# typed: true
|
||||||
|
|
||||||
|
# DO NOT EDIT MANUALLY
|
||||||
|
# This is an autogenerated file for types exported from the `parallel_tests` gem.
|
||||||
|
# Please instead update this file by running `bin/tapioca gem parallel_tests`.
|
||||||
|
|
||||||
|
# rake tasks for Rails 3+
|
||||||
|
#
|
||||||
|
# source://parallel_tests//lib/parallel_tests.rb#6
|
||||||
|
module ParallelTests
|
||||||
|
class << self
|
||||||
|
# copied from http://github.com/carlhuda/bundler Bundler::SharedHelpers#find_gemfile
|
||||||
|
#
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://parallel_tests//lib/parallel_tests.rb#50
|
||||||
|
def bundler_enabled?; end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests.rb#95
|
||||||
|
def delta; end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests.rb#16
|
||||||
|
def determine_number_of_processes(count); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://parallel_tests//lib/parallel_tests.rb#66
|
||||||
|
def first_process?; end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://parallel_tests//lib/parallel_tests.rb#70
|
||||||
|
def last_process?; end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests.rb#91
|
||||||
|
def now; end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests.rb#87
|
||||||
|
def number_of_running_processes; end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests.rb#41
|
||||||
|
def pid_file_path; end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests.rb#37
|
||||||
|
def pids; end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests.rb#45
|
||||||
|
def stop_all_processes; end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests.rb#82
|
||||||
|
def wait_for_other_processes_to_finish; end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests.rb#24
|
||||||
|
def with_pid_file; end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests.rb#78
|
||||||
|
def with_ruby_binary(command); end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/cli.rb#9
|
||||||
|
class ParallelTests::CLI
|
||||||
|
# source://parallel_tests//lib/parallel_tests/cli.rb#10
|
||||||
|
def run(argv); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
# exit with correct status code so rake parallel:test && echo 123 works
|
||||||
|
#
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://parallel_tests//lib/parallel_tests/cli.rb#177
|
||||||
|
def any_test_failed?(test_results); end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/cli.rb#347
|
||||||
|
def append_test_options(options, argv); end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/cli.rb#388
|
||||||
|
def detailed_duration(seconds); end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/cli.rb#362
|
||||||
|
def execute_command_in_parallel(command, num_processes, options); end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/cli.rb#56
|
||||||
|
def execute_in_parallel(items, num_processes, options); end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/cli.rb#336
|
||||||
|
def extract_file_paths(argv); end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/cli.rb#342
|
||||||
|
def extract_test_options(argv); end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/cli.rb#395
|
||||||
|
def final_fail_message; end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://parallel_tests//lib/parallel_tests/cli.rb#405
|
||||||
|
def first_is_1?; end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/cli.rb#31
|
||||||
|
def handle_interrupt; end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/cli.rb#355
|
||||||
|
def load_runner(type); end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/cli.rb#126
|
||||||
|
def lock(lockfile); end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/cli.rb#181
|
||||||
|
def parse_options!(argv); end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/cli.rb#166
|
||||||
|
def pluralize(n, singular); end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/cli.rb#144
|
||||||
|
def report_failure_rerun_commmand(test_results, options); end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/cli.rb#158
|
||||||
|
def report_number_of_tests(groups); end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/cli.rb#136
|
||||||
|
def report_results(test_results, options); end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/cli.rb#383
|
||||||
|
def report_time_taken(&block); end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/cli.rb#118
|
||||||
|
def reprint_output(result, lockfile); end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/cli.rb#110
|
||||||
|
def run_tests(group, process_number, num_processes, options); end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/cli.rb#71
|
||||||
|
def run_tests_in_parallel(num_processes, options); end
|
||||||
|
|
||||||
|
# CI systems often fail when there is no output for a long time, so simulate some output
|
||||||
|
#
|
||||||
|
# source://parallel_tests//lib/parallel_tests/cli.rb#411
|
||||||
|
def simulate_output_for_ci(simulate); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://parallel_tests//lib/parallel_tests/cli.rb#401
|
||||||
|
def use_colors?; end
|
||||||
|
end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/grouper.rb#3
|
||||||
|
class ParallelTests::Grouper
|
||||||
|
class << self
|
||||||
|
# source://parallel_tests//lib/parallel_tests/grouper.rb#10
|
||||||
|
def by_scenarios(tests, num_groups, options = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/grouper.rb#5
|
||||||
|
def by_steps(tests, num_groups, options); end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/grouper.rb#15
|
||||||
|
def in_even_groups_by_size(items, num_groups, options = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/grouper.rb#113
|
||||||
|
def add_to_group(group, item, size); end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/grouper.rb#118
|
||||||
|
def group_by_features_with_steps(tests, options); end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/grouper.rb#123
|
||||||
|
def group_by_scenarios(tests, options = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/grouper.rb#128
|
||||||
|
def group_features_by_size(items, groups_to_fill); end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/grouper.rb#95
|
||||||
|
def isolate_count(options); end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/grouper.rb#136
|
||||||
|
def items_to_group(items); end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/grouper.rb#105
|
||||||
|
def largest_first(files); end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/grouper.rb#109
|
||||||
|
def smallest_group(groups); end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/grouper.rb#51
|
||||||
|
def specify_groups(items, num_groups, options, groups); end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/pids.rb#5
|
||||||
|
class ParallelTests::Pids
|
||||||
|
# @return [Pids] a new instance of Pids
|
||||||
|
#
|
||||||
|
# source://parallel_tests//lib/parallel_tests/pids.rb#8
|
||||||
|
def initialize(file_path); end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/pids.rb#13
|
||||||
|
def add(pid); end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/pids.rb#28
|
||||||
|
def all; end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/pids.rb#23
|
||||||
|
def count; end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/pids.rb#18
|
||||||
|
def delete(pid); end
|
||||||
|
|
||||||
|
# Returns the value of attribute file_path.
|
||||||
|
#
|
||||||
|
# source://parallel_tests//lib/parallel_tests/pids.rb#6
|
||||||
|
def file_path; end
|
||||||
|
|
||||||
|
# Returns the value of attribute mutex.
|
||||||
|
#
|
||||||
|
# source://parallel_tests//lib/parallel_tests/pids.rb#6
|
||||||
|
def mutex; end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/pids.rb#39
|
||||||
|
def clear; end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/pids.rb#35
|
||||||
|
def pids; end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/pids.rb#44
|
||||||
|
def read; end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/pids.rb#52
|
||||||
|
def save; end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/pids.rb#56
|
||||||
|
def sync(&block); end
|
||||||
|
end
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests.rb#8
|
||||||
|
ParallelTests::RUBY_BINARY = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests/version.rb#3
|
||||||
|
ParallelTests::VERSION = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://parallel_tests//lib/parallel_tests.rb#7
|
||||||
|
ParallelTests::WINDOWS = T.let(T.unsafe(nil), T.untyped)
|
||||||
929
Library/Homebrew/sorbet/rbi/gems/parlour@8.1.0.rbi
generated
929
Library/Homebrew/sorbet/rbi/gems/parlour@8.1.0.rbi
generated
File diff suppressed because it is too large
Load Diff
5687
Library/Homebrew/sorbet/rbi/gems/parser@3.2.2.4.rbi
generated
5687
Library/Homebrew/sorbet/rbi/gems/parser@3.2.2.4.rbi
generated
File diff suppressed because it is too large
Load Diff
455
Library/Homebrew/sorbet/rbi/gems/patchelf@1.4.0.rbi
generated
455
Library/Homebrew/sorbet/rbi/gems/patchelf@1.4.0.rbi
generated
@ -4,131 +4,586 @@
|
|||||||
# This is an autogenerated file for types exported from the `patchelf` gem.
|
# This is an autogenerated file for types exported from the `patchelf` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem patchelf`.
|
# Please instead update this file by running `bin/tapioca gem patchelf`.
|
||||||
|
|
||||||
|
# Main module of patchelf.
|
||||||
|
#
|
||||||
|
# @author david942j
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf.rb#6
|
||||||
module PatchELF; end
|
module PatchELF; end
|
||||||
|
|
||||||
|
# Helper methods for internal usage.
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/helper.rb#5
|
||||||
module PatchELF::Helper
|
module PatchELF::Helper
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# @example
|
||||||
|
# aligndown(0x1234)
|
||||||
|
# #=> 4096
|
||||||
|
# aligndown(0x33, 0x20)
|
||||||
|
# #=> 32
|
||||||
|
# aligndown(0x10, 0x8)
|
||||||
|
# #=> 16
|
||||||
|
# @param val [Integer]
|
||||||
|
# @param align [Integer]
|
||||||
|
# @return [Integer] Aligned result.
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/helper.rb#65
|
||||||
def aligndown(val, align = T.unsafe(nil)); end
|
def aligndown(val, align = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# @example
|
||||||
|
# alignup(0x1234)
|
||||||
|
# #=> 8192
|
||||||
|
# alignup(0x33, 0x20)
|
||||||
|
# #=> 64
|
||||||
|
# alignup(0x10, 0x8)
|
||||||
|
# #=> 16
|
||||||
|
# @param val [Integer]
|
||||||
|
# @param align [Integer]
|
||||||
|
# @return [Integer] Aligned result.
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/helper.rb#80
|
||||||
def alignup(val, align = T.unsafe(nil)); end
|
def alignup(val, align = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# For {#colorize} to decide if need add color codes.
|
||||||
|
#
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/helper.rb#50
|
||||||
def color_enabled?; end
|
def color_enabled?; end
|
||||||
|
|
||||||
|
# For wrapping string with color codes for prettier inspect.
|
||||||
|
#
|
||||||
|
# @param str [String] Content to colorize.
|
||||||
|
# @param type [Symbol] Specify which kind of color to use, valid symbols are defined in {.COLOR_CODE}.
|
||||||
|
# @return [String] String that wrapped with color codes.
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/helper.rb#40
|
||||||
def colorize(str, type); end
|
def colorize(str, type); end
|
||||||
|
|
||||||
|
# The size of one page.
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/helper.rb#17
|
||||||
def page_size(e_machine = T.unsafe(nil)); end
|
def page_size(e_machine = T.unsafe(nil)); end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# @example
|
||||||
|
# aligndown(0x1234)
|
||||||
|
# #=> 4096
|
||||||
|
# aligndown(0x33, 0x20)
|
||||||
|
# #=> 32
|
||||||
|
# aligndown(0x10, 0x8)
|
||||||
|
# #=> 16
|
||||||
|
# @param val [Integer]
|
||||||
|
# @param align [Integer]
|
||||||
|
# @return [Integer] Aligned result.
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/helper.rb#65
|
||||||
def aligndown(val, align = T.unsafe(nil)); end
|
def aligndown(val, align = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# @example
|
||||||
|
# alignup(0x1234)
|
||||||
|
# #=> 8192
|
||||||
|
# alignup(0x33, 0x20)
|
||||||
|
# #=> 64
|
||||||
|
# alignup(0x10, 0x8)
|
||||||
|
# #=> 16
|
||||||
|
# @param val [Integer]
|
||||||
|
# @param align [Integer]
|
||||||
|
# @return [Integer] Aligned result.
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/helper.rb#80
|
||||||
def alignup(val, align = T.unsafe(nil)); end
|
def alignup(val, align = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# For {#colorize} to decide if need add color codes.
|
||||||
|
#
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/helper.rb#50
|
||||||
def color_enabled?; end
|
def color_enabled?; end
|
||||||
|
|
||||||
|
# For wrapping string with color codes for prettier inspect.
|
||||||
|
#
|
||||||
|
# @param str [String] Content to colorize.
|
||||||
|
# @param type [Symbol] Specify which kind of color to use, valid symbols are defined in {.COLOR_CODE}.
|
||||||
|
# @return [String] String that wrapped with color codes.
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/helper.rb#40
|
||||||
def colorize(str, type); end
|
def colorize(str, type); end
|
||||||
|
|
||||||
|
# The size of one page.
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/helper.rb#17
|
||||||
def page_size(e_machine = T.unsafe(nil)); end
|
def page_size(e_machine = T.unsafe(nil)); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Color codes for pretty print.
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/helper.rb#9
|
||||||
PatchELF::Helper::COLOR_CODE = T.let(T.unsafe(nil), Hash)
|
PatchELF::Helper::COLOR_CODE = T.let(T.unsafe(nil), Hash)
|
||||||
|
|
||||||
|
# A logger for internal usage.
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/logger.rb#9
|
||||||
module PatchELF::Logger
|
module PatchELF::Logger
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://patchelf//lib/patchelf/logger.rb#19
|
||||||
def debug(msg); end
|
def debug(msg); end
|
||||||
|
|
||||||
|
# source://patchelf//lib/patchelf/logger.rb#19
|
||||||
def error(msg); end
|
def error(msg); end
|
||||||
|
|
||||||
|
# source://patchelf//lib/patchelf/logger.rb#19
|
||||||
def info(msg); end
|
def info(msg); end
|
||||||
|
|
||||||
|
# source://patchelf//lib/patchelf/logger.rb#19
|
||||||
def level=(msg); end
|
def level=(msg); end
|
||||||
|
|
||||||
|
# source://patchelf//lib/patchelf/logger.rb#19
|
||||||
def warn(msg); end
|
def warn(msg); end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# source://patchelf//lib/patchelf/logger.rb#19
|
||||||
def debug(msg); end
|
def debug(msg); end
|
||||||
|
|
||||||
|
# source://patchelf//lib/patchelf/logger.rb#19
|
||||||
def error(msg); end
|
def error(msg); end
|
||||||
|
|
||||||
|
# source://patchelf//lib/patchelf/logger.rb#19
|
||||||
def info(msg); end
|
def info(msg); end
|
||||||
|
|
||||||
|
# source://patchelf//lib/patchelf/logger.rb#19
|
||||||
def level=(msg); end
|
def level=(msg); end
|
||||||
|
|
||||||
|
# source://patchelf//lib/patchelf/logger.rb#19
|
||||||
def warn(msg); end
|
def warn(msg); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Memory management, provides malloc/free to allocate LOAD segments.
|
||||||
|
#
|
||||||
|
# @private
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/mm.rb#8
|
||||||
class PatchELF::MM
|
class PatchELF::MM
|
||||||
|
# Instantiate a {MM} object.
|
||||||
|
#
|
||||||
|
# @param elf [ELFTools::ELFFile]
|
||||||
|
# @return [MM] a new instance of MM
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/mm.rb#14
|
||||||
def initialize(elf); end
|
def initialize(elf); end
|
||||||
|
|
||||||
|
# Let the malloc / free requests be effective.
|
||||||
|
#
|
||||||
|
# @return [void]
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/mm.rb#35
|
||||||
def dispatch!; end
|
def dispatch!; end
|
||||||
|
|
||||||
|
# @return [Integer] The size extended.
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/mm.rb#9
|
||||||
def extend_size; end
|
def extend_size; end
|
||||||
|
|
||||||
|
# Query if extended.
|
||||||
|
#
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/mm.rb#57
|
||||||
def extended?; end
|
def extended?; end
|
||||||
|
|
||||||
|
# Get correct offset after the extension.
|
||||||
|
#
|
||||||
|
# @param off [Integer]
|
||||||
|
# @return [Integer] Shifted offset.
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/mm.rb#66
|
||||||
def extended_offset(off); end
|
def extended_offset(off); end
|
||||||
|
|
||||||
|
# @param size [Integer]
|
||||||
|
# @raise [ArgumentError]
|
||||||
|
# @return [void]
|
||||||
|
# @yieldparam off [Integer]
|
||||||
|
# @yieldparam vaddr [Integer]
|
||||||
|
# @yieldreturn [void] One can only do the following things in the block:
|
||||||
|
# 1. Set ELF headers' attributes (with ELFTools)
|
||||||
|
# 2. Invoke {Saver#inline_patch}
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/mm.rb#27
|
||||||
def malloc(size, &block); end
|
def malloc(size, &block); end
|
||||||
|
|
||||||
|
# @return [Integer] Where the file start to be extended.
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/mm.rb#10
|
||||||
def threshold; end
|
def threshold; end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# @raise [ArgumentError]
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/mm.rb#182
|
||||||
def abnormal_elf(msg); end
|
def abnormal_elf(msg); end
|
||||||
|
|
||||||
|
# source://patchelf//lib/patchelf/mm.rb#86
|
||||||
def extend_backward(seg, size = T.unsafe(nil)); end
|
def extend_backward(seg, size = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://patchelf//lib/patchelf/mm.rb#93
|
||||||
def extend_forward(seg, size = T.unsafe(nil)); end
|
def extend_forward(seg, size = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://patchelf//lib/patchelf/mm.rb#75
|
||||||
def fgap_method; end
|
def fgap_method; end
|
||||||
|
|
||||||
|
# source://patchelf//lib/patchelf/mm.rb#122
|
||||||
def find_gap(check_sz: T.unsafe(nil)); end
|
def find_gap(check_sz: T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://patchelf//lib/patchelf/mm.rb#174
|
||||||
def invoke_callbacks(seg, start); end
|
def invoke_callbacks(seg, start); end
|
||||||
|
|
||||||
|
# source://patchelf//lib/patchelf/mm.rb#170
|
||||||
def load_segments; end
|
def load_segments; end
|
||||||
|
|
||||||
|
# source://patchelf//lib/patchelf/mm.rb#102
|
||||||
def mgap_method; end
|
def mgap_method; end
|
||||||
|
|
||||||
|
# TODO
|
||||||
|
#
|
||||||
|
# @raise [NotImplementedError]
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/mm.rb#138
|
||||||
def new_load_method; end
|
def new_load_method; end
|
||||||
|
|
||||||
|
# For all attributes >= threshold, += offset
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/mm.rb#147
|
||||||
def shift_attributes; end
|
def shift_attributes; end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/mm.rb#142
|
||||||
def writable?(seg); end
|
def writable?(seg); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Raised on missing Program Header(segment)
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/exceptions.rb#14
|
||||||
class PatchELF::MissingSegmentError < ::PatchELF::PatchError; end
|
class PatchELF::MissingSegmentError < ::PatchELF::PatchError; end
|
||||||
|
|
||||||
|
# Raised when Dynamic Tag is missing
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/exceptions.rb#11
|
||||||
class PatchELF::MissingTagError < ::PatchELF::PatchError; end
|
class PatchELF::MissingTagError < ::PatchELF::PatchError; end
|
||||||
|
|
||||||
|
# Raised on an error during ELF modification.
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/exceptions.rb#8
|
||||||
class PatchELF::PatchError < ::ELFTools::ELFError; end
|
class PatchELF::PatchError < ::ELFTools::ELFError; end
|
||||||
|
|
||||||
|
# Class to handle all patching things.
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/patcher.rb#12
|
||||||
class PatchELF::Patcher
|
class PatchELF::Patcher
|
||||||
|
# Instantiate a {Patcher} object.
|
||||||
|
#
|
||||||
|
# @param filename [String] Filename of input ELF.
|
||||||
|
# @param logging [Boolean] *deprecated*: use +on_error+ instead
|
||||||
|
# @param on_error [:log, :silent, :exception] action when the desired segment/tag field isn't present
|
||||||
|
# :log = logs to stderr
|
||||||
|
# :exception = raise exception related to the error
|
||||||
|
# :silent = ignore the errors
|
||||||
|
# @raise [ArgumentError]
|
||||||
|
# @return [Patcher] a new instance of Patcher
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/patcher.rb#28
|
||||||
def initialize(filename, on_error: T.unsafe(nil), logging: T.unsafe(nil)); end
|
def initialize(filename, on_error: T.unsafe(nil), logging: T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Add the needed library.
|
||||||
|
#
|
||||||
|
# @note This setting will be saved after {#save} being invoked.
|
||||||
|
# @param need [String]
|
||||||
|
# @return [void]
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/patcher.rb#81
|
||||||
def add_needed(need); end
|
def add_needed(need); end
|
||||||
|
|
||||||
|
# @note This setting will be saved after {#save} being invoked.
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/patcher.rb#16
|
||||||
def elf; end
|
def elf; end
|
||||||
|
|
||||||
|
# @example
|
||||||
|
# PatchELF::Patcher.new('/bin/ls').interpreter
|
||||||
|
# #=> "/lib64/ld-linux-x86-64.so.2"
|
||||||
|
# @return [String?] Get interpreter's name.
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/patcher.rb#44
|
||||||
def interpreter; end
|
def interpreter; end
|
||||||
|
|
||||||
|
# Set interpreter's name.
|
||||||
|
#
|
||||||
|
# If the input ELF has no existent interpreter,
|
||||||
|
# this method will show a warning and has no effect.
|
||||||
|
#
|
||||||
|
# @note This setting will be saved after {#save} being invoked.
|
||||||
|
# @param interp [String]
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/patcher.rb#54
|
||||||
def interpreter=(interp); end
|
def interpreter=(interp); end
|
||||||
|
|
||||||
|
# Get needed libraries.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# patcher = PatchELF::Patcher.new('/bin/ls')
|
||||||
|
# patcher.needed
|
||||||
|
# #=> ["libselinux.so.1", "libc.so.6"]
|
||||||
|
# @return [Array<String>]
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/patcher.rb#66
|
||||||
def needed; end
|
def needed; end
|
||||||
|
|
||||||
|
# Set needed libraries.
|
||||||
|
#
|
||||||
|
# @note This setting will be saved after {#save} being invoked.
|
||||||
|
# @param needs [Array<String>]
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/patcher.rb#73
|
||||||
def needed=(needs); end
|
def needed=(needs); end
|
||||||
|
|
||||||
|
# Remove the needed library.
|
||||||
|
#
|
||||||
|
# @note This setting will be saved after {#save} being invoked.
|
||||||
|
# @param need [String]
|
||||||
|
# @return [void]
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/patcher.rb#90
|
||||||
def remove_needed(need); end
|
def remove_needed(need); end
|
||||||
|
|
||||||
|
# Replace needed library +src+ with +tar+.
|
||||||
|
#
|
||||||
|
# @note This setting will be saved after {#save} being invoked.
|
||||||
|
# @param src [String] Library to be replaced.
|
||||||
|
# @param tar [String] Library replace with.
|
||||||
|
# @return [void]
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/patcher.rb#103
|
||||||
def replace_needed(src, tar); end
|
def replace_needed(src, tar); end
|
||||||
|
|
||||||
|
# Get rpath
|
||||||
|
# return [String?]
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/patcher.rb#142
|
||||||
def rpath; end
|
def rpath; end
|
||||||
|
|
||||||
|
# Set rpath
|
||||||
|
#
|
||||||
|
# Modify / set DT_RPATH of the given ELF.
|
||||||
|
# similar to runpath= except DT_RPATH is modifed/created in DYNAMIC segment.
|
||||||
|
#
|
||||||
|
# @note This setting will be saved after {#save} being invoked.
|
||||||
|
# @param rpath [String]
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/patcher.rb#152
|
||||||
def rpath=(rpath); end
|
def rpath=(rpath); end
|
||||||
|
|
||||||
|
# Get runpath.
|
||||||
|
#
|
||||||
|
# @return [String?]
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/patcher.rb#136
|
||||||
def runpath; end
|
def runpath; end
|
||||||
|
|
||||||
|
# Set runpath.
|
||||||
|
#
|
||||||
|
# If DT_RUNPATH is not presented in the input ELF,
|
||||||
|
# a new DT_RUNPATH attribute will be inserted into the DYNAMIC segment.
|
||||||
|
#
|
||||||
|
# @note This setting will be saved after {#save} being invoked.
|
||||||
|
# @param runpath [String]
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/patcher.rb#162
|
||||||
def runpath=(runpath); end
|
def runpath=(runpath); end
|
||||||
|
|
||||||
|
# Save the patched ELF as +out_file+.
|
||||||
|
#
|
||||||
|
# @param out_file [String?] If +out_file+ is +nil+, the original input file will be modified.
|
||||||
|
# @param patchelf_compatible [Boolean] When +patchelf_compatible+ is true, tries to produce same ELF as the one produced by NixOS/patchelf.
|
||||||
|
# @return [void]
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/patcher.rb#179
|
||||||
def save(out_file = T.unsafe(nil), patchelf_compatible: T.unsafe(nil)); end
|
def save(out_file = T.unsafe(nil), patchelf_compatible: T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Get the soname of a shared library.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# patcher = PatchELF::Patcher.new('/bin/ls')
|
||||||
|
# patcher.soname
|
||||||
|
# # [WARN] Entry DT_SONAME not found, not a shared library?
|
||||||
|
# #=> nil
|
||||||
|
# @example
|
||||||
|
# PatchELF::Patcher.new('/lib/x86_64-linux-gnu/libc.so.6').soname
|
||||||
|
# #=> "libc.so.6"
|
||||||
|
# @return [String?] The name.
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/patcher.rb#118
|
||||||
def soname; end
|
def soname; end
|
||||||
|
|
||||||
|
# Set soname.
|
||||||
|
#
|
||||||
|
# If the input ELF is not a shared library with a soname,
|
||||||
|
# this method will show a warning and has no effect.
|
||||||
|
#
|
||||||
|
# @note This setting will be saved after {#save} being invoked.
|
||||||
|
# @param name [String]
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/patcher.rb#128
|
||||||
def soname=(name); end
|
def soname=(name); end
|
||||||
|
|
||||||
|
# Set all operations related to DT_RUNPATH to use DT_RPATH.
|
||||||
|
#
|
||||||
|
# @return [self]
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/patcher.rb#168
|
||||||
def use_rpath!; end
|
def use_rpath!; end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/patcher.rb#228
|
||||||
def dirty?; end
|
def dirty?; end
|
||||||
|
|
||||||
|
# source://patchelf//lib/patchelf/patcher.rb#242
|
||||||
def dynamic_or_log; end
|
def dynamic_or_log; end
|
||||||
|
|
||||||
|
# source://patchelf//lib/patchelf/patcher.rb#202
|
||||||
def interpreter_; end
|
def interpreter_; end
|
||||||
|
|
||||||
|
# @raise [exception]
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/patcher.rb#196
|
||||||
def log_or_raise(msg, exception = T.unsafe(nil)); end
|
def log_or_raise(msg, exception = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# @return [Array<String>]
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/patcher.rb#210
|
||||||
def needed_; end
|
def needed_; end
|
||||||
|
|
||||||
|
# @return [String?]
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/patcher.rb#218
|
||||||
def runpath_(rpath_sym = T.unsafe(nil)); end
|
def runpath_(rpath_sym = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# @return [String?]
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/patcher.rb#223
|
||||||
def soname_; end
|
def soname_; end
|
||||||
|
|
||||||
|
# source://patchelf//lib/patchelf/patcher.rb#232
|
||||||
def tag_name_or_log(type, log_msg); end
|
def tag_name_or_log(type, log_msg); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Internal use only.
|
||||||
|
#
|
||||||
|
# For {Patcher} to do patching things and save to file.
|
||||||
|
#
|
||||||
|
# @private
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/saver.rb#16
|
||||||
class PatchELF::Saver
|
class PatchELF::Saver
|
||||||
|
# Instantiate a {Saver} object.
|
||||||
|
#
|
||||||
|
# @param in_file [String]
|
||||||
|
# @param out_file [String]
|
||||||
|
# @param set [{Symbol => String, Array}]
|
||||||
|
# @return [Saver] a new instance of Saver
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/saver.rb#24
|
||||||
def initialize(in_file, out_file, set); end
|
def initialize(in_file, out_file, set); end
|
||||||
|
|
||||||
|
# @return [String] Input filename.
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/saver.rb#17
|
||||||
def in_file; end
|
def in_file; end
|
||||||
|
|
||||||
|
# @return [String] Output filename.
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/saver.rb#18
|
||||||
def out_file; end
|
def out_file; end
|
||||||
|
|
||||||
|
# @return [void]
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/saver.rb#37
|
||||||
def save!; end
|
def save!; end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://patchelf//lib/patchelf/saver.rb#278
|
||||||
def dynamic; end
|
def dynamic; end
|
||||||
|
|
||||||
|
# source://patchelf//lib/patchelf/saver.rb#158
|
||||||
def expand_dynamic!; end
|
def expand_dynamic!; end
|
||||||
|
|
||||||
|
# This can only be used for patching interpreter's name
|
||||||
|
# or set strings in a malloc-ed area.
|
||||||
|
# i.e. NEVER intend to change the string defined in strtab
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/saver.rb#238
|
||||||
def inline_patch(off, str); end
|
def inline_patch(off, str); end
|
||||||
|
|
||||||
|
# Create a temp tag header.
|
||||||
|
#
|
||||||
|
# @return [ELFTools::Structs::ELF_Dyn]
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/saver.rb#150
|
||||||
def lazy_dyn(sym); end
|
def lazy_dyn(sym); end
|
||||||
|
|
||||||
|
# source://patchelf//lib/patchelf/saver.rb#179
|
||||||
def malloc_strtab!; end
|
def malloc_strtab!; end
|
||||||
|
|
||||||
|
# source://patchelf//lib/patchelf/saver.rb#88
|
||||||
def patch_dynamic; end
|
def patch_dynamic; end
|
||||||
|
|
||||||
|
# source://patchelf//lib/patchelf/saver.rb#53
|
||||||
def patch_interpreter; end
|
def patch_interpreter; end
|
||||||
|
|
||||||
|
# source://patchelf//lib/patchelf/saver.rb#121
|
||||||
def patch_needed; end
|
def patch_needed; end
|
||||||
|
|
||||||
|
# Modify the out_file according to registered patches.
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/saver.rb#243
|
||||||
def patch_out(out_file); end
|
def patch_out(out_file); end
|
||||||
|
|
||||||
|
# source://patchelf//lib/patchelf/saver.rb#111
|
||||||
def patch_runpath(sym = T.unsafe(nil)); end
|
def patch_runpath(sym = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://patchelf//lib/patchelf/saver.rb#103
|
||||||
def patch_soname; end
|
def patch_soname; end
|
||||||
|
|
||||||
|
# @param str [String]
|
||||||
|
# @yieldparam idx [Integer]
|
||||||
|
# @yieldreturn [void]
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/saver.rb#208
|
||||||
def reg_str_table(str, &block); end
|
def reg_str_table(str, &block); end
|
||||||
|
|
||||||
|
# @return [ELFTools::Sections::Section?]
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/saver.rb#271
|
||||||
def section_header(name); end
|
def section_header(name); end
|
||||||
|
|
||||||
|
# source://patchelf//lib/patchelf/saver.rb#217
|
||||||
def strtab_string; end
|
def strtab_string; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# To mark a not-using tag
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/saver.rb#120
|
||||||
PatchELF::Saver::IGNORE = T.let(T.unsafe(nil), Integer)
|
PatchELF::Saver::IGNORE = T.let(T.unsafe(nil), Integer)
|
||||||
|
|
||||||
|
# Current gem version.
|
||||||
|
#
|
||||||
|
# source://patchelf//lib/patchelf/version.rb#5
|
||||||
PatchELF::VERSION = T.let(T.unsafe(nil), String)
|
PatchELF::VERSION = T.let(T.unsafe(nil), String)
|
||||||
|
|||||||
203
Library/Homebrew/sorbet/rbi/gems/plist@3.7.0.rbi
generated
203
Library/Homebrew/sorbet/rbi/gems/plist@3.7.0.rbi
generated
@ -4,128 +4,331 @@
|
|||||||
# This is an autogenerated file for types exported from the `plist` gem.
|
# This is an autogenerated file for types exported from the `plist` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem plist`.
|
# Please instead update this file by running `bin/tapioca gem plist`.
|
||||||
|
|
||||||
|
# source://plist//lib/plist/generator.rb#174
|
||||||
|
class Array
|
||||||
|
include ::Enumerable
|
||||||
|
include ::Plist::Emit
|
||||||
|
end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/generator.rb#178
|
||||||
|
class Hash
|
||||||
|
include ::Enumerable
|
||||||
|
include ::Plist::Emit
|
||||||
|
end
|
||||||
|
|
||||||
|
# Plist parses Mac OS X xml property list files into ruby data structures.
|
||||||
|
#
|
||||||
|
# === Load a plist file
|
||||||
|
# This is the main point of the library:
|
||||||
|
#
|
||||||
|
# r = Plist.parse_xml(filename_or_xml)
|
||||||
|
#
|
||||||
|
# source://plist//lib/plist/generator.rb#9
|
||||||
module Plist
|
module Plist
|
||||||
class << self
|
class << self
|
||||||
|
# Note that I don't use these two elements much:
|
||||||
|
#
|
||||||
|
# + Date elements are returned as DateTime objects.
|
||||||
|
# + Data elements are implemented as Tempfiles
|
||||||
|
#
|
||||||
|
# Plist.parse_xml will blow up if it encounters a Date element.
|
||||||
|
# If you encounter such an error, or if you have a Date element which
|
||||||
|
# can't be parsed into a Time object, please create an issue
|
||||||
|
# attaching your plist file at https://github.com/patsplat/plist/issues
|
||||||
|
# so folks can implement the proper support.
|
||||||
|
#
|
||||||
|
# By default, <data> will be assumed to be a marshaled Ruby object and
|
||||||
|
# interpreted with <tt>Marshal.load</tt>. Pass <tt>marshal: false</tt>
|
||||||
|
# to disable this behavior and return the raw binary data as an IO
|
||||||
|
# object instead.
|
||||||
|
#
|
||||||
|
# source://plist//lib/plist/parser.rb#34
|
||||||
def parse_xml(filename_or_xml, options = T.unsafe(nil)); end
|
def parse_xml(filename_or_xml, options = T.unsafe(nil)); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# === Create a plist
|
||||||
|
# You can dump an object to a plist in one of two ways:
|
||||||
|
#
|
||||||
|
# * <tt>Plist::Emit.dump(obj)</tt>
|
||||||
|
# * <tt>obj.to_plist</tt>
|
||||||
|
# * This requires that you mixin the <tt>Plist::Emit</tt> module, which is already done for +Array+ and +Hash+.
|
||||||
|
#
|
||||||
|
# The following Ruby classes are converted into native plist types:
|
||||||
|
# Array, Bignum, Date, DateTime, Fixnum, Float, Hash, Integer, String, Symbol, Time, true, false
|
||||||
|
# * +Array+ and +Hash+ are both recursive; their elements will be converted into plist nodes inside the <array> and <dict> containers (respectively).
|
||||||
|
# * +IO+ (and its descendants) and +StringIO+ objects are read from and their contents placed in a <data> element.
|
||||||
|
# * User classes may implement +to_plist_node+ to dictate how they should be serialized; otherwise the object will be passed to <tt>Marshal.dump</tt> and the result placed in a <data> element.
|
||||||
|
#
|
||||||
|
# For detailed usage instructions, refer to USAGE[link:files/docs/USAGE.html] and the methods documented below.
|
||||||
|
#
|
||||||
|
# source://plist//lib/plist/generator.rb#24
|
||||||
module Plist::Emit
|
module Plist::Emit
|
||||||
|
# Helper method for injecting into classes. Calls <tt>Plist::Emit.save_plist</tt> with +self+.
|
||||||
|
#
|
||||||
|
# source://plist//lib/plist/generator.rb#33
|
||||||
def save_plist(filename, options = T.unsafe(nil)); end
|
def save_plist(filename, options = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Helper method for injecting into classes. Calls <tt>Plist::Emit.dump</tt> with +self+.
|
||||||
|
#
|
||||||
|
# source://plist//lib/plist/generator.rb#28
|
||||||
def to_plist(envelope = T.unsafe(nil), options = T.unsafe(nil)); end
|
def to_plist(envelope = T.unsafe(nil), options = T.unsafe(nil)); end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# The following Ruby classes are converted into native plist types:
|
||||||
|
# Array, Bignum, Date, DateTime, Fixnum, Float, Hash, Integer, String, Symbol, Time
|
||||||
|
#
|
||||||
|
# Write us (via RubyForge) if you think another class can be coerced safely into one of the expected plist classes.
|
||||||
|
#
|
||||||
|
# +IO+ and +StringIO+ objects are encoded and placed in <data> elements; other objects are <tt>Marshal.dump</tt>'ed unless they implement +to_plist_node+.
|
||||||
|
#
|
||||||
|
# The +envelope+ parameters dictates whether or not the resultant plist fragment is wrapped in the normal XML/plist header and footer. Set it to false if you only want the fragment.
|
||||||
|
#
|
||||||
|
# source://plist//lib/plist/generator.rb#45
|
||||||
def dump(obj, envelope = T.unsafe(nil), options = T.unsafe(nil)); end
|
def dump(obj, envelope = T.unsafe(nil), options = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Writes the serialized object's plist to the specified filename.
|
||||||
|
#
|
||||||
|
# source://plist//lib/plist/generator.rb#55
|
||||||
def save_plist(obj, filename, options = T.unsafe(nil)); end
|
def save_plist(obj, filename, options = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/generator.rb#162
|
||||||
def wrap(contents); end
|
def wrap(contents); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/generator.rb#25
|
||||||
Plist::Emit::DEFAULT_INDENT = T.let(T.unsafe(nil), String)
|
Plist::Emit::DEFAULT_INDENT = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://plist//lib/plist/generator.rb#63
|
||||||
class Plist::Emit::PlistBuilder
|
class Plist::Emit::PlistBuilder
|
||||||
|
# @return [PlistBuilder] a new instance of PlistBuilder
|
||||||
|
#
|
||||||
|
# source://plist//lib/plist/generator.rb#64
|
||||||
def initialize(indent_str); end
|
def initialize(indent_str); end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/generator.rb#68
|
||||||
def build(element, level = T.unsafe(nil)); end
|
def build(element, level = T.unsafe(nil)); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://plist//lib/plist/generator.rb#157
|
||||||
def comment_tag(content); end
|
def comment_tag(content); end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/generator.rb#125
|
||||||
def data_tag(data, level); end
|
def data_tag(data, level); end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/generator.rb#144
|
||||||
def element_type(item); end
|
def element_type(item); end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/generator.rb#140
|
||||||
def indent(str, level); end
|
def indent(str, level); end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/generator.rb#113
|
||||||
def tag(type, contents, level, &block); end
|
def tag(type, contents, level, &block); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/parser.rb#42
|
||||||
class Plist::Listener
|
class Plist::Listener
|
||||||
|
# @return [Listener] a new instance of Listener
|
||||||
|
#
|
||||||
|
# source://plist//lib/plist/parser.rb#47
|
||||||
def initialize(options = T.unsafe(nil)); end
|
def initialize(options = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# include REXML::StreamListener
|
||||||
|
#
|
||||||
|
# source://plist//lib/plist/parser.rb#45
|
||||||
def open; end
|
def open; end
|
||||||
|
|
||||||
|
# include REXML::StreamListener
|
||||||
|
#
|
||||||
|
# source://plist//lib/plist/parser.rb#45
|
||||||
def open=(_arg0); end
|
def open=(_arg0); end
|
||||||
|
|
||||||
|
# include REXML::StreamListener
|
||||||
|
#
|
||||||
|
# source://plist//lib/plist/parser.rb#45
|
||||||
def result; end
|
def result; end
|
||||||
|
|
||||||
|
# include REXML::StreamListener
|
||||||
|
#
|
||||||
|
# source://plist//lib/plist/parser.rb#45
|
||||||
def result=(_arg0); end
|
def result=(_arg0); end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/parser.rb#64
|
||||||
def tag_end(name); end
|
def tag_end(name); end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/parser.rb#53
|
||||||
def tag_start(name, attributes); end
|
def tag_start(name, attributes); end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/parser.rb#57
|
||||||
def text(contents); end
|
def text(contents); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/parser.rb#210
|
||||||
class Plist::PArray < ::Plist::PTag
|
class Plist::PArray < ::Plist::PTag
|
||||||
|
# source://plist//lib/plist/parser.rb#211
|
||||||
def to_ruby; end
|
def to_ruby; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/parser.rb#250
|
||||||
class Plist::PData < ::Plist::PTag
|
class Plist::PData < ::Plist::PTag
|
||||||
|
# source://plist//lib/plist/parser.rb#251
|
||||||
def to_ruby; end
|
def to_ruby; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/parser.rb#243
|
||||||
class Plist::PDate < ::Plist::PTag
|
class Plist::PDate < ::Plist::PTag
|
||||||
|
# source://plist//lib/plist/parser.rb#244
|
||||||
def to_ruby; end
|
def to_ruby; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/parser.rb#180
|
||||||
class Plist::PDict < ::Plist::PTag
|
class Plist::PDict < ::Plist::PTag
|
||||||
|
# source://plist//lib/plist/parser.rb#181
|
||||||
def to_ruby; end
|
def to_ruby; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/parser.rb#230
|
||||||
class Plist::PFalse < ::Plist::PTag
|
class Plist::PFalse < ::Plist::PTag
|
||||||
|
# source://plist//lib/plist/parser.rb#231
|
||||||
def to_ruby; end
|
def to_ruby; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/parser.rb#218
|
||||||
class Plist::PInteger < ::Plist::PTag
|
class Plist::PInteger < ::Plist::PTag
|
||||||
|
# source://plist//lib/plist/parser.rb#219
|
||||||
def to_ruby; end
|
def to_ruby; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/parser.rb#198
|
||||||
class Plist::PKey < ::Plist::PTag
|
class Plist::PKey < ::Plist::PTag
|
||||||
|
# source://plist//lib/plist/parser.rb#199
|
||||||
def to_ruby; end
|
def to_ruby; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/parser.rb#174
|
||||||
class Plist::PList < ::Plist::PTag
|
class Plist::PList < ::Plist::PTag
|
||||||
|
# source://plist//lib/plist/parser.rb#175
|
||||||
def to_ruby; end
|
def to_ruby; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/parser.rb#236
|
||||||
class Plist::PReal < ::Plist::PTag
|
class Plist::PReal < ::Plist::PTag
|
||||||
|
# source://plist//lib/plist/parser.rb#237
|
||||||
def to_ruby; end
|
def to_ruby; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/parser.rb#204
|
||||||
class Plist::PString < ::Plist::PTag
|
class Plist::PString < ::Plist::PTag
|
||||||
|
# source://plist//lib/plist/parser.rb#205
|
||||||
def to_ruby; end
|
def to_ruby; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/parser.rb#150
|
||||||
class Plist::PTag
|
class Plist::PTag
|
||||||
|
# @return [PTag] a new instance of PTag
|
||||||
|
#
|
||||||
|
# source://plist//lib/plist/parser.rb#164
|
||||||
def initialize(options); end
|
def initialize(options); end
|
||||||
|
|
||||||
|
# Returns the value of attribute children.
|
||||||
|
#
|
||||||
|
# source://plist//lib/plist/parser.rb#163
|
||||||
def children; end
|
def children; end
|
||||||
|
|
||||||
|
# Sets the attribute children
|
||||||
|
#
|
||||||
|
# @param value the value to set the attribute children to.
|
||||||
|
#
|
||||||
|
# source://plist//lib/plist/parser.rb#163
|
||||||
def children=(_arg0); end
|
def children=(_arg0); end
|
||||||
|
|
||||||
|
# Returns the value of attribute options.
|
||||||
|
#
|
||||||
|
# source://plist//lib/plist/parser.rb#163
|
||||||
def options; end
|
def options; end
|
||||||
|
|
||||||
|
# Sets the attribute options
|
||||||
|
#
|
||||||
|
# @param value the value to set the attribute options to.
|
||||||
|
#
|
||||||
|
# source://plist//lib/plist/parser.rb#163
|
||||||
def options=(_arg0); end
|
def options=(_arg0); end
|
||||||
|
|
||||||
|
# Returns the value of attribute text.
|
||||||
|
#
|
||||||
|
# source://plist//lib/plist/parser.rb#163
|
||||||
def text; end
|
def text; end
|
||||||
|
|
||||||
|
# Sets the attribute text
|
||||||
|
#
|
||||||
|
# @param value the value to set the attribute text to.
|
||||||
|
#
|
||||||
|
# source://plist//lib/plist/parser.rb#163
|
||||||
def text=(_arg0); end
|
def text=(_arg0); end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/parser.rb#169
|
||||||
def to_ruby; end
|
def to_ruby; end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# @private
|
||||||
|
#
|
||||||
|
# source://plist//lib/plist/parser.rb#155
|
||||||
def inherited(sub_class); end
|
def inherited(sub_class); end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/parser.rb#151
|
||||||
def mappings; end
|
def mappings; end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/parser.rb#224
|
||||||
class Plist::PTrue < ::Plist::PTag
|
class Plist::PTrue < ::Plist::PTag
|
||||||
|
# source://plist//lib/plist/parser.rb#225
|
||||||
def to_ruby; end
|
def to_ruby; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/parser.rb#74
|
||||||
class Plist::StreamParser
|
class Plist::StreamParser
|
||||||
|
# @return [StreamParser] a new instance of StreamParser
|
||||||
|
#
|
||||||
|
# source://plist//lib/plist/parser.rb#75
|
||||||
def initialize(plist_data_or_file, listener); end
|
def initialize(plist_data_or_file, listener); end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/parser.rb#96
|
||||||
def parse; end
|
def parse; end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://plist//lib/plist/parser.rb#135
|
||||||
def parse_encoding_from_xml_declaration(xml_declaration); end
|
def parse_encoding_from_xml_declaration(xml_declaration); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/parser.rb#88
|
||||||
Plist::StreamParser::CDATA = T.let(T.unsafe(nil), Regexp)
|
Plist::StreamParser::CDATA = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
|
# source://plist//lib/plist/parser.rb#92
|
||||||
Plist::StreamParser::COMMENT_END = T.let(T.unsafe(nil), Regexp)
|
Plist::StreamParser::COMMENT_END = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
|
# source://plist//lib/plist/parser.rb#91
|
||||||
Plist::StreamParser::COMMENT_START = T.let(T.unsafe(nil), Regexp)
|
Plist::StreamParser::COMMENT_START = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
|
# source://plist//lib/plist/parser.rb#90
|
||||||
Plist::StreamParser::DOCTYPE_PATTERN = T.let(T.unsafe(nil), Regexp)
|
Plist::StreamParser::DOCTYPE_PATTERN = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
|
# source://plist//lib/plist/parser.rb#87
|
||||||
Plist::StreamParser::TEXT = T.let(T.unsafe(nil), Regexp)
|
Plist::StreamParser::TEXT = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
|
# source://plist//lib/plist/parser.rb#93
|
||||||
Plist::StreamParser::UNIMPLEMENTED_ERROR = T.let(T.unsafe(nil), String)
|
Plist::StreamParser::UNIMPLEMENTED_ERROR = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://plist//lib/plist/parser.rb#89
|
||||||
Plist::StreamParser::XMLDECL_PATTERN = T.let(T.unsafe(nil), Regexp)
|
Plist::StreamParser::XMLDECL_PATTERN = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
|
# Raised when an element is not implemented
|
||||||
|
#
|
||||||
|
# source://plist//lib/plist/parser.rb#17
|
||||||
class Plist::UnimplementedElementError < ::RuntimeError; end
|
class Plist::UnimplementedElementError < ::RuntimeError; end
|
||||||
|
|
||||||
|
# source://plist//lib/plist/version.rb#4
|
||||||
Plist::VERSION = T.let(T.unsafe(nil), String)
|
Plist::VERSION = T.let(T.unsafe(nil), String)
|
||||||
|
|||||||
951
Library/Homebrew/sorbet/rbi/gems/prettier_print@1.2.1.rbi
generated
Normal file
951
Library/Homebrew/sorbet/rbi/gems/prettier_print@1.2.1.rbi
generated
Normal file
@ -0,0 +1,951 @@
|
|||||||
|
# typed: true
|
||||||
|
|
||||||
|
# DO NOT EDIT MANUALLY
|
||||||
|
# This is an autogenerated file for types exported from the `prettier_print` gem.
|
||||||
|
# Please instead update this file by running `bin/tapioca gem prettier_print`.
|
||||||
|
|
||||||
|
# This class implements a pretty printing algorithm. It finds line breaks and
|
||||||
|
# nice indentations for grouped structure.
|
||||||
|
#
|
||||||
|
# By default, the class assumes that primitive elements are strings and each
|
||||||
|
# byte in the strings is a single column in width. But it can be used for other
|
||||||
|
# situations by giving suitable arguments for some methods:
|
||||||
|
#
|
||||||
|
# * newline object and space generation block for PrettierPrint.new
|
||||||
|
# * optional width argument for PrettierPrint#text
|
||||||
|
# * PrettierPrint#breakable
|
||||||
|
#
|
||||||
|
# There are several candidate uses:
|
||||||
|
# * text formatting using proportional fonts
|
||||||
|
# * multibyte characters which has columns different to number of bytes
|
||||||
|
# * non-string formatting
|
||||||
|
#
|
||||||
|
# == Usage
|
||||||
|
#
|
||||||
|
# To use this module, you will need to generate a tree of print nodes that
|
||||||
|
# represent indentation and newline behavior before it gets sent to the printer.
|
||||||
|
# Each node has different semantics, depending on the desired output.
|
||||||
|
#
|
||||||
|
# The most basic node is a Text node. This represents plain text content that
|
||||||
|
# cannot be broken up even if it doesn't fit on one line. You would create one
|
||||||
|
# of those with the text method, as in:
|
||||||
|
#
|
||||||
|
# PrettierPrint.format { |q| q.text('my content') }
|
||||||
|
#
|
||||||
|
# No matter what the desired output width is, the output for the snippet above
|
||||||
|
# will always be the same.
|
||||||
|
#
|
||||||
|
# If you want to allow the printer to break up the content on the space
|
||||||
|
# character when there isn't enough width for the full string on the same line,
|
||||||
|
# you can use the Breakable and Group nodes. For example:
|
||||||
|
#
|
||||||
|
# PrettierPrint.format do |q|
|
||||||
|
# q.group do
|
||||||
|
# q.text("my")
|
||||||
|
# q.breakable
|
||||||
|
# q.text("content")
|
||||||
|
# end
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# Now, if everything fits on one line (depending on the maximum width specified)
|
||||||
|
# then it will be the same output as the first example. If, however, there is
|
||||||
|
# not enough room on the line, then you will get two lines of output, one for
|
||||||
|
# the first string and one for the second.
|
||||||
|
#
|
||||||
|
# There are other nodes for the print tree as well, described in the
|
||||||
|
# documentation below. They control alignment, indentation, conditional
|
||||||
|
# formatting, and more.
|
||||||
|
#
|
||||||
|
# == References
|
||||||
|
# Christian Lindig, Strictly Pretty, March 2000
|
||||||
|
# https://lindig.github.io/papers/strictly-pretty-2000.pdf
|
||||||
|
#
|
||||||
|
# Philip Wadler, A prettier printer, March 1998
|
||||||
|
# https://homepages.inf.ed.ac.uk/wadler/papers/prettier/prettier.pdf
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#62
|
||||||
|
class PrettierPrint
|
||||||
|
# Creates a buffer for pretty printing.
|
||||||
|
#
|
||||||
|
# +output+ is an output target. If it is not specified, '' is assumed. It
|
||||||
|
# should have a << method which accepts the first argument +obj+ of
|
||||||
|
# PrettierPrint#text, the first argument +separator+ of PrettierPrint#breakable,
|
||||||
|
# the first argument +newline+ of PrettierPrint.new, and the result of a given
|
||||||
|
# block for PrettierPrint.new.
|
||||||
|
#
|
||||||
|
# +maxwidth+ specifies maximum line length. If it is not specified, 80 is
|
||||||
|
# assumed. However actual outputs may overflow +maxwidth+ if long
|
||||||
|
# non-breakable texts are provided.
|
||||||
|
#
|
||||||
|
# +newline+ is used for line breaks. "\n" is used if it is not specified.
|
||||||
|
#
|
||||||
|
# The block is used to generate spaces. ->(n) { ' ' * n } is used if it is not
|
||||||
|
# given.
|
||||||
|
#
|
||||||
|
# @return [PrettierPrint] a new instance of PrettierPrint
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#441
|
||||||
|
def initialize(output = T.unsafe(nil), maxwidth = T.unsafe(nil), newline = T.unsafe(nil), &genspace); end
|
||||||
|
|
||||||
|
# This inserts a BreakParent node into the print tree which forces the
|
||||||
|
# surrounding and all parent group nodes to break.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#814
|
||||||
|
def break_parent; end
|
||||||
|
|
||||||
|
# This says "you can break a line here if necessary", and a +width+\-column
|
||||||
|
# text +separator+ is inserted if a line is not broken at the point.
|
||||||
|
#
|
||||||
|
# If +separator+ is not specified, ' ' is used.
|
||||||
|
#
|
||||||
|
# If +width+ is not specified, +separator.length+ is used. You will have to
|
||||||
|
# specify this when +separator+ is a multibyte character, for example.
|
||||||
|
#
|
||||||
|
# By default, if the surrounding group is broken and a newline is inserted,
|
||||||
|
# the printer will indent the subsequent line up to the current level of
|
||||||
|
# indentation. You can disable this behavior with the +indent+ argument if
|
||||||
|
# that's not desired (rare).
|
||||||
|
#
|
||||||
|
# By default, when you insert a Breakable into the print tree, it only breaks
|
||||||
|
# the surrounding group when the group's contents cannot fit onto the
|
||||||
|
# remaining space of the current line. You can force it to break the
|
||||||
|
# surrounding group instead if you always want the newline with the +force+
|
||||||
|
# argument.
|
||||||
|
#
|
||||||
|
# There are a few circumstances where you'll want to force the newline into
|
||||||
|
# the output but no insert a break parent (because you don't want to
|
||||||
|
# necessarily force the groups to break unless they need to). In this case you
|
||||||
|
# can pass `force: :skip_break_parent` to this method and it will not insert
|
||||||
|
# a break parent.`
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#802
|
||||||
|
def breakable(separator = T.unsafe(nil), width = T.unsafe(nil), indent: T.unsafe(nil), force: T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Another very common breakable call you receive while formatting is an
|
||||||
|
# empty string in flat mode and a newline in break mode. Similar to
|
||||||
|
# breakable_space, this is here for avoid unnecessary calculation.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#646
|
||||||
|
def breakable_empty; end
|
||||||
|
|
||||||
|
# The final of the very common breakable calls you receive while formatting
|
||||||
|
# is the normal breakable space but with the addition of the break_parent.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#652
|
||||||
|
def breakable_force; end
|
||||||
|
|
||||||
|
# This is the same shortcut as breakable_force, except that it doesn't indent
|
||||||
|
# the next line. This is necessary if you're trying to preserve some custom
|
||||||
|
# formatting like a multi-line string.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#660
|
||||||
|
def breakable_return; end
|
||||||
|
|
||||||
|
# The vast majority of breakable calls you receive while formatting are a
|
||||||
|
# space in flat mode and a newline in break mode. Since this is so common,
|
||||||
|
# we have a method here to skip past unnecessary calculation.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#639
|
||||||
|
def breakable_space; end
|
||||||
|
|
||||||
|
# This is an output buffer that wraps the output object and provides
|
||||||
|
# additional functionality depending on its type.
|
||||||
|
#
|
||||||
|
# This defaults to Buffer::StringBuffer.new("".dup)
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#400
|
||||||
|
def buffer; end
|
||||||
|
|
||||||
|
# A convenience method which is same as follows:
|
||||||
|
#
|
||||||
|
# text(",")
|
||||||
|
# breakable
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#669
|
||||||
|
def comma_breakable; end
|
||||||
|
|
||||||
|
# Returns the group most recently added to the stack.
|
||||||
|
#
|
||||||
|
# Contrived example:
|
||||||
|
# out = ""
|
||||||
|
# => ""
|
||||||
|
# q = PrettierPrint.new(out)
|
||||||
|
# => #<PrettierPrint:0x0>
|
||||||
|
# q.group {
|
||||||
|
# q.text q.current_group.inspect
|
||||||
|
# q.text q.newline
|
||||||
|
# q.group(q.current_group.depth + 1) {
|
||||||
|
# q.text q.current_group.inspect
|
||||||
|
# q.text q.newline
|
||||||
|
# q.group(q.current_group.depth + 1) {
|
||||||
|
# q.text q.current_group.inspect
|
||||||
|
# q.text q.newline
|
||||||
|
# q.group(q.current_group.depth + 1) {
|
||||||
|
# q.text q.current_group.inspect
|
||||||
|
# q.text q.newline
|
||||||
|
# }
|
||||||
|
# }
|
||||||
|
# }
|
||||||
|
# }
|
||||||
|
# => 284
|
||||||
|
# puts out
|
||||||
|
# #<PrettierPrint::Group:0x0 @depth=1>
|
||||||
|
# #<PrettierPrint::Group:0x0 @depth=2>
|
||||||
|
# #<PrettierPrint::Group:0x0 @depth=3>
|
||||||
|
# #<PrettierPrint::Group:0x0 @depth=4>
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#484
|
||||||
|
def current_group; end
|
||||||
|
|
||||||
|
# This is similar to #breakable except the decision to break or not is
|
||||||
|
# determined individually.
|
||||||
|
#
|
||||||
|
# Two #fill_breakable under a group may cause 4 results:
|
||||||
|
# (break,break), (break,non-break), (non-break,break), (non-break,non-break).
|
||||||
|
# This is different to #breakable because two #breakable under a group
|
||||||
|
# may cause 2 results: (break,break), (non-break,non-break).
|
||||||
|
#
|
||||||
|
# The text +separator+ is inserted if a line is not broken at this point.
|
||||||
|
#
|
||||||
|
# If +separator+ is not specified, ' ' is used.
|
||||||
|
#
|
||||||
|
# If +width+ is not specified, +separator.length+ is used. You will have to
|
||||||
|
# specify this when +separator+ is a multibyte character, for example.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#688
|
||||||
|
def fill_breakable(separator = T.unsafe(nil), width = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Flushes all of the generated print tree onto the output buffer, then clears
|
||||||
|
# the generated tree from memory.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#490
|
||||||
|
def flush(base_indentation = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# An object that responds to call that takes one argument, of an Integer, and
|
||||||
|
# returns the corresponding number of spaces.
|
||||||
|
#
|
||||||
|
# By default this is: ->(n) { ' ' * n }
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#416
|
||||||
|
def genspace; end
|
||||||
|
|
||||||
|
# Groups line break hints added in the block. The line break hints are all to
|
||||||
|
# be used or not.
|
||||||
|
#
|
||||||
|
# If +indent+ is specified, the method call is regarded as nested by
|
||||||
|
# nest(indent) { ... }.
|
||||||
|
#
|
||||||
|
# If +open_object+ is specified, <tt>text(open_object, open_width)</tt> is
|
||||||
|
# called before grouping. If +close_object+ is specified,
|
||||||
|
# <tt>text(close_object, close_width)</tt> is called after grouping.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#845
|
||||||
|
def group(indent = T.unsafe(nil), open_object = T.unsafe(nil), close_object = T.unsafe(nil), open_width = T.unsafe(nil), close_width = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# The stack of groups that are being printed.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#419
|
||||||
|
def groups; end
|
||||||
|
|
||||||
|
# Inserts an IfBreak node with the contents of the block being added to its
|
||||||
|
# list of nodes that should be printed if the surrounding node breaks. If it
|
||||||
|
# doesn't, then you can specify the contents to be printed with the #if_flat
|
||||||
|
# method used on the return object from this method. For example,
|
||||||
|
#
|
||||||
|
# q.if_break { q.text('do') }.if_flat { q.text('{') }
|
||||||
|
#
|
||||||
|
# In the example above, if the surrounding group is broken it will print 'do'
|
||||||
|
# and if it is not it will print '{'.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#917
|
||||||
|
def if_break; end
|
||||||
|
|
||||||
|
# This is similar to if_break in that it also inserts an IfBreak node into the
|
||||||
|
# print tree, however it's starting from the flat contents, and cannot be used
|
||||||
|
# to build the break contents.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#936
|
||||||
|
def if_flat; end
|
||||||
|
|
||||||
|
# Very similar to the #nest method, this indents the nested content by one
|
||||||
|
# level by inserting an Indent node into the print tree. The contents of the
|
||||||
|
# node are determined by the block.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#956
|
||||||
|
def indent; end
|
||||||
|
|
||||||
|
# This method calculates the position of the text relative to the current
|
||||||
|
# indentation level when the doc has been printed. It's useful for
|
||||||
|
# determining how to align text to doc nodes that are already built into the
|
||||||
|
# tree.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#696
|
||||||
|
def last_position(node); end
|
||||||
|
|
||||||
|
# Inserts a LineSuffix node into the print tree. The contents of the node are
|
||||||
|
# determined by the block.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#967
|
||||||
|
def line_suffix(priority: T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# The maximum width of a line, before it is separated in to a newline
|
||||||
|
#
|
||||||
|
# This defaults to 80, and should be an Integer
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#405
|
||||||
|
def maxwidth; end
|
||||||
|
|
||||||
|
# Increases left margin after newline with +indent+ for line breaks added in
|
||||||
|
# the block.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#977
|
||||||
|
def nest(indent); end
|
||||||
|
|
||||||
|
# The value that is appended to +output+ to add a new line.
|
||||||
|
#
|
||||||
|
# This defaults to "\n", and should be String
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#410
|
||||||
|
def newline; end
|
||||||
|
|
||||||
|
# The output object. It represents the final destination of the contents of
|
||||||
|
# the print tree. It should respond to <<.
|
||||||
|
#
|
||||||
|
# This defaults to "".dup
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#394
|
||||||
|
def output; end
|
||||||
|
|
||||||
|
# This method will remove any breakables from the list of contents so that
|
||||||
|
# no newlines are present in the output. If a newline is being forced into
|
||||||
|
# the output, the replace value will be used.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#721
|
||||||
|
def remove_breaks(node, replace = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Adds a separated list.
|
||||||
|
# The list is separated by comma with breakable space, by default.
|
||||||
|
#
|
||||||
|
# #seplist iterates the +list+ using +iter_method+.
|
||||||
|
# It yields each object to the block given for #seplist.
|
||||||
|
# The procedure +separator_proc+ is called between each yields.
|
||||||
|
#
|
||||||
|
# If the iteration is zero times, +separator_proc+ is not called at all.
|
||||||
|
#
|
||||||
|
# If +separator_proc+ is nil or not given,
|
||||||
|
# +lambda { comma_breakable }+ is used.
|
||||||
|
# If +iter_method+ is not given, :each is used.
|
||||||
|
#
|
||||||
|
# For example, following 3 code fragments has similar effect.
|
||||||
|
#
|
||||||
|
# q.seplist([1,2,3]) {|v| xxx v }
|
||||||
|
#
|
||||||
|
# q.seplist([1,2,3], lambda { q.comma_breakable }, :each) {|v| xxx v }
|
||||||
|
#
|
||||||
|
# xxx 1
|
||||||
|
# q.comma_breakable
|
||||||
|
# xxx 2
|
||||||
|
# q.comma_breakable
|
||||||
|
# xxx 3
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#760
|
||||||
|
def seplist(list, sep = T.unsafe(nil), iter_method = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# The current array of contents that calls to methods that generate print tree
|
||||||
|
# nodes will append to.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#423
|
||||||
|
def target; end
|
||||||
|
|
||||||
|
# This adds +object+ as a text of +width+ columns in width.
|
||||||
|
#
|
||||||
|
# If +width+ is not specified, object.length is used.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#989
|
||||||
|
def text(object = T.unsafe(nil), width = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# This inserts a Trim node into the print tree which, when printed, will clear
|
||||||
|
# all whitespace at the end of the output buffer. This is useful for the rare
|
||||||
|
# case where you need to delete printed indentation and force the next node
|
||||||
|
# to start at the beginning of the line.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#828
|
||||||
|
def trim; end
|
||||||
|
|
||||||
|
# A convenience method used by a lot of the print tree node builders that
|
||||||
|
# temporarily changes the target that the builders will append to.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#1007
|
||||||
|
def with_target(target); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
# This method returns a boolean as to whether or not the remaining commands
|
||||||
|
# fit onto the remaining space on the current line. If we finish printing
|
||||||
|
# all of the commands or if we hit a newline, then we return true. Otherwise
|
||||||
|
# if we continue printing past the remaining space, we return false.
|
||||||
|
#
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#1019
|
||||||
|
def fits?(next_commands, rest_commands, remaining); end
|
||||||
|
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#1091
|
||||||
|
def remove_breaks_with(doc, replace); end
|
||||||
|
|
||||||
|
# Resets the group stack and target array so that this pretty printer object
|
||||||
|
# can continue to be used before calling flush again if desired.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#1085
|
||||||
|
def reset; end
|
||||||
|
|
||||||
|
class << self
|
||||||
|
# This is a convenience method which is same as follows:
|
||||||
|
#
|
||||||
|
# begin
|
||||||
|
# q = PrettierPrint.new(output, maxwidth, newline, &genspace)
|
||||||
|
# ...
|
||||||
|
# q.flush
|
||||||
|
# output
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# @yield [q]
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#377
|
||||||
|
def format(output = T.unsafe(nil), maxwidth = T.unsafe(nil), newline = T.unsafe(nil), genspace = T.unsafe(nil), indentation = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# This is similar to PrettierPrint::format but the result has no breaks.
|
||||||
|
#
|
||||||
|
# +maxwidth+, +newline+ and +genspace+ are ignored.
|
||||||
|
#
|
||||||
|
# The invocation of +breakable+ in the block doesn't break a line and is
|
||||||
|
# treated as just an invocation of +text+.
|
||||||
|
#
|
||||||
|
# @yield [q]
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print/single_line.rb#156
|
||||||
|
def singleline_format(output = T.unsafe(nil), _maxwidth = T.unsafe(nil), _newline = T.unsafe(nil), _genspace = T.unsafe(nil)); end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A node in the print tree that represents aligning nested nodes to a certain
|
||||||
|
# prefix width or string.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#65
|
||||||
|
class PrettierPrint::Align
|
||||||
|
# @return [Align] a new instance of Align
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#68
|
||||||
|
def initialize(indent:, contents: T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Returns the value of attribute contents.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#66
|
||||||
|
def contents; end
|
||||||
|
|
||||||
|
# Returns the value of attribute indent.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#66
|
||||||
|
def indent; end
|
||||||
|
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#73
|
||||||
|
def pretty_print(q); end
|
||||||
|
end
|
||||||
|
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#126
|
||||||
|
PrettierPrint::BREAKABLE_EMPTY = T.let(T.unsafe(nil), PrettierPrint::Breakable)
|
||||||
|
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#127
|
||||||
|
PrettierPrint::BREAKABLE_FORCE = T.let(T.unsafe(nil), PrettierPrint::Breakable)
|
||||||
|
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#128
|
||||||
|
PrettierPrint::BREAKABLE_RETURN = T.let(T.unsafe(nil), PrettierPrint::Breakable)
|
||||||
|
|
||||||
|
# Below here are the most common combination of options that are created when
|
||||||
|
# creating new breakables. They are here to cut down on some allocations.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#125
|
||||||
|
PrettierPrint::BREAKABLE_SPACE = T.let(T.unsafe(nil), PrettierPrint::Breakable)
|
||||||
|
|
||||||
|
# Since there's really no difference in these instances, just using the same
|
||||||
|
# one saves on some allocations.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#141
|
||||||
|
PrettierPrint::BREAK_PARENT = T.let(T.unsafe(nil), PrettierPrint::BreakParent)
|
||||||
|
|
||||||
|
# A node in the print tree that forces the surrounding group to print out in
|
||||||
|
# the "break" mode as opposed to the "flat" mode. Useful for when you need to
|
||||||
|
# force a newline into a group.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#133
|
||||||
|
class PrettierPrint::BreakParent
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#134
|
||||||
|
def pretty_print(q); end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A node in the print tree that represents a place in the buffer that the
|
||||||
|
# content can be broken onto multiple lines.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#82
|
||||||
|
class PrettierPrint::Breakable
|
||||||
|
# @return [Breakable] a new instance of Breakable
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#85
|
||||||
|
def initialize(separator = T.unsafe(nil), width = T.unsafe(nil), force: T.unsafe(nil), indent: T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#97
|
||||||
|
def force?; end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#101
|
||||||
|
def indent?; end
|
||||||
|
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#105
|
||||||
|
def pretty_print(q); end
|
||||||
|
|
||||||
|
# Returns the value of attribute separator.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#83
|
||||||
|
def separator; end
|
||||||
|
|
||||||
|
# Returns the value of attribute width.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#83
|
||||||
|
def width; end
|
||||||
|
end
|
||||||
|
|
||||||
|
# When building up the contents in the output buffer, it's convenient to be
|
||||||
|
# able to trim trailing whitespace before newlines. If the output object is a
|
||||||
|
# string or array or strings, then we can do this with some gsub calls. If
|
||||||
|
# not, then this effectively just wraps the output object and forwards on
|
||||||
|
# calls to <<.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#277
|
||||||
|
module PrettierPrint::Buffer
|
||||||
|
class << self
|
||||||
|
# This is a switch for building the correct output buffer wrapper class for
|
||||||
|
# the given output object.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#336
|
||||||
|
def for(output); end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# This is an output buffer that wraps an array output object. It provides a
|
||||||
|
# trim! method that trims off trailing whitespace from the last element in
|
||||||
|
# the array if it's an unfrozen string using the same method as the
|
||||||
|
# StringBuffer.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#303
|
||||||
|
class PrettierPrint::Buffer::ArrayBuffer
|
||||||
|
# @return [ArrayBuffer] a new instance of ArrayBuffer
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#306
|
||||||
|
def initialize(output = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#310
|
||||||
|
def <<(object); end
|
||||||
|
|
||||||
|
# Returns the value of attribute output.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#304
|
||||||
|
def output; end
|
||||||
|
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#314
|
||||||
|
def trim!; end
|
||||||
|
end
|
||||||
|
|
||||||
|
# This is an output buffer that wraps a string output object. It provides a
|
||||||
|
# trim! method that trims off trailing whitespace from the string using
|
||||||
|
# gsub!.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#281
|
||||||
|
class PrettierPrint::Buffer::StringBuffer
|
||||||
|
# @return [StringBuffer] a new instance of StringBuffer
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#284
|
||||||
|
def initialize(output = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#288
|
||||||
|
def <<(object); end
|
||||||
|
|
||||||
|
# Returns the value of attribute output.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#282
|
||||||
|
def output; end
|
||||||
|
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#292
|
||||||
|
def trim!; end
|
||||||
|
end
|
||||||
|
|
||||||
|
# When generating spaces after a newline for indentation, by default we
|
||||||
|
# generate one space per character needed for indentation. You can change this
|
||||||
|
# behavior (for instance to use tabs) by passing a different genspace
|
||||||
|
# procedure.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#350
|
||||||
|
PrettierPrint::DEFAULT_GENSPACE = T.let(T.unsafe(nil), Proc)
|
||||||
|
|
||||||
|
# The default indentation for printing is zero, assuming that the code starts
|
||||||
|
# at the top level. That can be changed if desired to start from a different
|
||||||
|
# indentation level.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#366
|
||||||
|
PrettierPrint::DEFAULT_INDENTATION = T.let(T.unsafe(nil), Integer)
|
||||||
|
|
||||||
|
# When printing, you can optionally specify the value that should be used
|
||||||
|
# whenever a group needs to be broken onto multiple lines. In this case the
|
||||||
|
# default is \n.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#344
|
||||||
|
PrettierPrint::DEFAULT_NEWLINE = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# A node in the print tree that represents a group of items which the printer
|
||||||
|
# should try to fit onto one line. This is the basic command to tell the
|
||||||
|
# printer when to break. Groups are usually nested, and the printer will try
|
||||||
|
# to fit everything on one line, but if it doesn't fit it will break the
|
||||||
|
# outermost group first and try again. It will continue breaking groups until
|
||||||
|
# everything fits (or there are no more groups to break).
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#149
|
||||||
|
class PrettierPrint::Group
|
||||||
|
# @return [Group] a new instance of Group
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#152
|
||||||
|
def initialize(depth, contents: T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#158
|
||||||
|
def break; end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#162
|
||||||
|
def break?; end
|
||||||
|
|
||||||
|
# Returns the value of attribute contents.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#150
|
||||||
|
def contents; end
|
||||||
|
|
||||||
|
# Returns the value of attribute depth.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#150
|
||||||
|
def depth; end
|
||||||
|
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#166
|
||||||
|
def pretty_print(q); end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A node in the print tree that represents printing one thing if the
|
||||||
|
# surrounding group node is broken and another thing if the surrounding group
|
||||||
|
# node is flat.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#176
|
||||||
|
class PrettierPrint::IfBreak
|
||||||
|
# @return [IfBreak] a new instance of IfBreak
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#179
|
||||||
|
def initialize(break_contents: T.unsafe(nil), flat_contents: T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Returns the value of attribute break_contents.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#177
|
||||||
|
def break_contents; end
|
||||||
|
|
||||||
|
# Returns the value of attribute flat_contents.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#177
|
||||||
|
def flat_contents; end
|
||||||
|
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#184
|
||||||
|
def pretty_print(q); end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A small DSL-like object used for specifying the alternative contents to be
|
||||||
|
# printed if the surrounding group doesn't break for an IfBreak node.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#874
|
||||||
|
class PrettierPrint::IfBreakBuilder
|
||||||
|
# @return [IfBreakBuilder] a new instance of IfBreakBuilder
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#877
|
||||||
|
def initialize(q, flat_contents); end
|
||||||
|
|
||||||
|
# Returns the value of attribute flat_contents.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#875
|
||||||
|
def flat_contents; end
|
||||||
|
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#882
|
||||||
|
def if_flat; end
|
||||||
|
|
||||||
|
# Returns the value of attribute q.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#875
|
||||||
|
def q; end
|
||||||
|
end
|
||||||
|
|
||||||
|
# When we already know that groups are broken, we don't actually need to track
|
||||||
|
# the flat versions of the contents. So this builder version is effectively a
|
||||||
|
# no-op, but we need it to maintain the same API. The only thing this can
|
||||||
|
# impact is that if there's a forced break in the flat contents, then we need
|
||||||
|
# to propagate that break up the whole tree.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#892
|
||||||
|
class PrettierPrint::IfFlatIgnore
|
||||||
|
# @return [IfFlatIgnore] a new instance of IfFlatIgnore
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#895
|
||||||
|
def initialize(q); end
|
||||||
|
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#899
|
||||||
|
def if_flat; end
|
||||||
|
|
||||||
|
# Returns the value of attribute q.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#893
|
||||||
|
def q; end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A node in the print tree that is a variant of the Align node that indents
|
||||||
|
# its contents by one level.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#200
|
||||||
|
class PrettierPrint::Indent
|
||||||
|
# @return [Indent] a new instance of Indent
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#203
|
||||||
|
def initialize(contents: T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Returns the value of attribute contents.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#201
|
||||||
|
def contents; end
|
||||||
|
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#207
|
||||||
|
def pretty_print(q); end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A node in the print tree that has its own special buffer for implementing
|
||||||
|
# content that should flush before any newline.
|
||||||
|
#
|
||||||
|
# Useful for implementating trailing content, as it's not always practical to
|
||||||
|
# constantly check where the line ends to avoid accidentally printing some
|
||||||
|
# content after a line suffix node.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#220
|
||||||
|
class PrettierPrint::LineSuffix
|
||||||
|
# @return [LineSuffix] a new instance of LineSuffix
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#225
|
||||||
|
def initialize(priority: T.unsafe(nil), contents: T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Returns the value of attribute contents.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#223
|
||||||
|
def contents; end
|
||||||
|
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#230
|
||||||
|
def pretty_print(q); end
|
||||||
|
|
||||||
|
# Returns the value of attribute priority.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#223
|
||||||
|
def priority; end
|
||||||
|
end
|
||||||
|
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#221
|
||||||
|
PrettierPrint::LineSuffix::DEFAULT_PRIORITY = T.let(T.unsafe(nil), Integer)
|
||||||
|
|
||||||
|
# There are two modes in printing, break and flat. When we're in break mode,
|
||||||
|
# any lines will use their newline, any if-breaks will use their break
|
||||||
|
# contents, etc.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#356
|
||||||
|
PrettierPrint::MODE_BREAK = T.let(T.unsafe(nil), Integer)
|
||||||
|
|
||||||
|
# This is another print mode much like MODE_BREAK. When we're in flat mode, we
|
||||||
|
# attempt to print everything on one line until we either hit a broken group,
|
||||||
|
# a forced line, or the maximum width.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#361
|
||||||
|
PrettierPrint::MODE_FLAT = T.let(T.unsafe(nil), Integer)
|
||||||
|
|
||||||
|
# PrettierPrint::SingleLine is used by PrettierPrint.singleline_format
|
||||||
|
#
|
||||||
|
# It is passed to be similar to a PrettierPrint object itself, by responding to
|
||||||
|
# all of the same print tree node builder methods, as well as the #flush
|
||||||
|
# method.
|
||||||
|
#
|
||||||
|
# The significant difference here is that there are no line breaks in the
|
||||||
|
# output. If an IfBreak node is used, only the flat contents are printed.
|
||||||
|
# LineSuffix nodes are printed at the end of the buffer when #flush is called.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print/single_line.rb#13
|
||||||
|
class PrettierPrint::SingleLine
|
||||||
|
# Create a PrettierPrint::SingleLine object
|
||||||
|
#
|
||||||
|
# Arguments:
|
||||||
|
# * +output+ - String (or similar) to store rendered text. Needs to respond
|
||||||
|
# to '<<'.
|
||||||
|
# * +maxwidth+ - Argument position expected to be here for compatibility.
|
||||||
|
# This argument is a noop.
|
||||||
|
# * +newline+ - Argument position expected to be here for compatibility.
|
||||||
|
# This argument is a noop.
|
||||||
|
#
|
||||||
|
# @return [SingleLine] a new instance of SingleLine
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print/single_line.rb#34
|
||||||
|
def initialize(output, _maxwidth = T.unsafe(nil), _newline = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Here for compatibility, does nothing.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print/single_line.rb#64
|
||||||
|
def break_parent; end
|
||||||
|
|
||||||
|
# Appends +separator+ to the text to be output. By default +separator+ is
|
||||||
|
# ' '
|
||||||
|
#
|
||||||
|
# The +width+, +indent+, and +force+ arguments are here for compatibility.
|
||||||
|
# They are all noop arguments.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print/single_line.rb#54
|
||||||
|
def breakable(separator = T.unsafe(nil), _width = T.unsafe(nil), indent: T.unsafe(nil), force: T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Appends +separator+ to the output buffer. +width+ is a noop here for
|
||||||
|
# compatibility.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print/single_line.rb#69
|
||||||
|
def fill_breakable(separator = T.unsafe(nil), _width = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Flushes the line suffixes onto the output buffer.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print/single_line.rb#41
|
||||||
|
def flush; end
|
||||||
|
|
||||||
|
# Opens a block for grouping objects to be pretty printed.
|
||||||
|
#
|
||||||
|
# Arguments:
|
||||||
|
# * +indent+ - noop argument. Present for compatibility.
|
||||||
|
# * +open_obj+ - text appended before the &block. Default is ''
|
||||||
|
# * +close_obj+ - text appended after the &block. Default is ''
|
||||||
|
# * +open_width+ - noop argument. Present for compatibility.
|
||||||
|
# * +close_width+ - noop argument. Present for compatibility.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print/single_line.rb#90
|
||||||
|
def group(_indent = T.unsafe(nil), open_object = T.unsafe(nil), close_object = T.unsafe(nil), _open_width = T.unsafe(nil), _close_width = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Effectively unnecessary, but here for compatibility.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print/single_line.rb#113
|
||||||
|
def if_break; end
|
||||||
|
|
||||||
|
# Also effectively unnecessary, but here for compatibility.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print/single_line.rb#118
|
||||||
|
def if_flat; end
|
||||||
|
|
||||||
|
# A noop that immediately yields.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print/single_line.rb#122
|
||||||
|
def indent; end
|
||||||
|
|
||||||
|
# Changes the target output buffer to the line suffix output buffer which
|
||||||
|
# will get flushed at the end of printing.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print/single_line.rb#128
|
||||||
|
def line_suffix; end
|
||||||
|
|
||||||
|
# A buffer output that wraps any calls to line_suffix that will be flushed
|
||||||
|
# at the end of printing.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print/single_line.rb#23
|
||||||
|
def line_suffixes; end
|
||||||
|
|
||||||
|
# Takes +indent+ arg, but does nothing with it.
|
||||||
|
#
|
||||||
|
# Yields to a block.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print/single_line.rb#137
|
||||||
|
def nest(_indent); end
|
||||||
|
|
||||||
|
# The output object. It stores rendered text and should respond to <<.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print/single_line.rb#15
|
||||||
|
def output; end
|
||||||
|
|
||||||
|
# The current array of contents that the print tree builder methods should
|
||||||
|
# append to.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print/single_line.rb#19
|
||||||
|
def target; end
|
||||||
|
|
||||||
|
# Add +object+ to the text to be output.
|
||||||
|
#
|
||||||
|
# +width+ argument is here for compatibility. It is a noop argument.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print/single_line.rb#144
|
||||||
|
def text(object = T.unsafe(nil), _width = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Immediately trims the output buffer.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print/single_line.rb#74
|
||||||
|
def trim; end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A class that wraps the ability to call #if_flat. The contents of the
|
||||||
|
# #if_flat block are executed immediately, so effectively this class and the
|
||||||
|
# #if_break method that triggers it are unnecessary, but they're here to
|
||||||
|
# maintain compatibility.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print/single_line.rb#106
|
||||||
|
class PrettierPrint::SingleLine::IfBreakBuilder
|
||||||
|
# source://prettier_print//lib/prettier_print/single_line.rb#107
|
||||||
|
def if_flat; end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Since all of the instances here are the same, we can reuse the same one to
|
||||||
|
# cut down on allocations.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#270
|
||||||
|
PrettierPrint::TRIM = T.let(T.unsafe(nil), PrettierPrint::Trim)
|
||||||
|
|
||||||
|
# A node in the print tree that represents plain content that cannot be broken
|
||||||
|
# up (by default this assumes strings, but it can really be anything).
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#239
|
||||||
|
class PrettierPrint::Text
|
||||||
|
# @return [Text] a new instance of Text
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#242
|
||||||
|
def initialize; end
|
||||||
|
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#247
|
||||||
|
def add(object: T.unsafe(nil), width: T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Returns the value of attribute objects.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#240
|
||||||
|
def objects; end
|
||||||
|
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#252
|
||||||
|
def pretty_print(q); end
|
||||||
|
|
||||||
|
# Returns the value of attribute width.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#240
|
||||||
|
def width; end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A node in the print tree that represents trimming all of the indentation of
|
||||||
|
# the current line, in the rare case that you need to ignore the indentation
|
||||||
|
# that you've already created. This node should be placed after a Breakable.
|
||||||
|
#
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#262
|
||||||
|
class PrettierPrint::Trim
|
||||||
|
# source://prettier_print//lib/prettier_print.rb#263
|
||||||
|
def pretty_print(q); end
|
||||||
|
end
|
||||||
29883
Library/Homebrew/sorbet/rbi/gems/prism@0.19.0.rbi
generated
Normal file
29883
Library/Homebrew/sorbet/rbi/gems/prism@0.19.0.rbi
generated
Normal file
File diff suppressed because it is too large
Load Diff
7703
Library/Homebrew/sorbet/rbi/gems/pry@0.14.2.rbi
generated
7703
Library/Homebrew/sorbet/rbi/gems/pry@0.14.2.rbi
generated
File diff suppressed because it is too large
Load Diff
790
Library/Homebrew/sorbet/rbi/gems/public_suffix@5.0.4.rbi
generated
790
Library/Homebrew/sorbet/rbi/gems/public_suffix@5.0.4.rbi
generated
@ -4,142 +4,932 @@
|
|||||||
# This is an autogenerated file for types exported from the `public_suffix` gem.
|
# This is an autogenerated file for types exported from the `public_suffix` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem public_suffix`.
|
# Please instead update this file by running `bin/tapioca gem public_suffix`.
|
||||||
|
|
||||||
|
# PublicSuffix is a Ruby domain name parser based on the Public Suffix List.
|
||||||
|
#
|
||||||
|
# The [Public Suffix List](https://publicsuffix.org) is a cross-vendor initiative
|
||||||
|
# to provide an accurate list of domain name suffixes.
|
||||||
|
#
|
||||||
|
# The Public Suffix List is an initiative of the Mozilla Project,
|
||||||
|
# but is maintained as a community resource. It is available for use in any software,
|
||||||
|
# but was originally created to meet the needs of browser manufacturers.
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/domain.rb#9
|
||||||
module PublicSuffix
|
module PublicSuffix
|
||||||
class << self
|
class << self
|
||||||
|
# private
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix.rb#149
|
||||||
def decompose(name, rule); end
|
def decompose(name, rule); end
|
||||||
|
|
||||||
|
# Attempt to parse the name and returns the domain, if valid.
|
||||||
|
#
|
||||||
|
# This method doesn't raise. Instead, it returns nil if the domain is not valid for whatever reason.
|
||||||
|
#
|
||||||
|
# @param name [#to_s] The domain name or fully qualified domain name to parse.
|
||||||
|
# @param list [PublicSuffix::List] The rule list to search, defaults to the default {PublicSuffix::List}
|
||||||
|
# @param ignore_private [Boolean]
|
||||||
|
# @return [String]
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix.rb#140
|
||||||
def domain(name, **options); end
|
def domain(name, **options); end
|
||||||
|
|
||||||
|
# Pretend we know how to deal with user input.
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix.rb#164
|
||||||
def normalize(name); end
|
def normalize(name); end
|
||||||
|
|
||||||
|
# Parses +name+ and returns the {PublicSuffix::Domain} instance.
|
||||||
|
#
|
||||||
|
# @example Parse a valid domain
|
||||||
|
# PublicSuffix.parse("google.com")
|
||||||
|
# # => #<PublicSuffix::Domain:0x007fec2e51e588 @sld="google", @tld="com", @trd=nil>
|
||||||
|
# @example Parse a valid subdomain
|
||||||
|
# PublicSuffix.parse("www.google.com")
|
||||||
|
# # => #<PublicSuffix::Domain:0x007fec276d4cf8 @sld="google", @tld="com", @trd="www">
|
||||||
|
# @example Parse a fully qualified domain
|
||||||
|
# PublicSuffix.parse("google.com.")
|
||||||
|
# # => #<PublicSuffix::Domain:0x007fec257caf38 @sld="google", @tld="com", @trd=nil>
|
||||||
|
# @example Parse a fully qualified domain (subdomain)
|
||||||
|
# PublicSuffix.parse("www.google.com.")
|
||||||
|
# # => #<PublicSuffix::Domain:0x007fec27b6bca8 @sld="google", @tld="com", @trd="www">
|
||||||
|
# @example Parse an invalid (unlisted) domain
|
||||||
|
# PublicSuffix.parse("x.yz")
|
||||||
|
# # => #<PublicSuffix::Domain:0x007fec2f49bec0 @sld="x", @tld="yz", @trd=nil>
|
||||||
|
# @example Parse an invalid (unlisted) domain with strict checking (without applying the default * rule)
|
||||||
|
# PublicSuffix.parse("x.yz", default_rule: nil)
|
||||||
|
# # => PublicSuffix::DomainInvalid: `x.yz` is not a valid domain
|
||||||
|
# @example Parse an URL (not supported, only domains)
|
||||||
|
# PublicSuffix.parse("http://www.google.com")
|
||||||
|
# # => PublicSuffix::DomainInvalid: http://www.google.com is not expected to contain a scheme
|
||||||
|
# @param name [#to_s] The domain name or fully qualified domain name to parse.
|
||||||
|
# @param list [PublicSuffix::List] The rule list to search, defaults to the default {PublicSuffix::List}
|
||||||
|
# @param ignore_private [Boolean]
|
||||||
|
# @raise [PublicSuffix::DomainInvalid] If domain is not a valid domain.
|
||||||
|
# @raise [PublicSuffix::DomainNotAllowed] If a rule for +domain+ is found, but the rule doesn't allow +domain+.
|
||||||
|
# @return [PublicSuffix::Domain]
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix.rb#67
|
||||||
def parse(name, list: T.unsafe(nil), default_rule: T.unsafe(nil), ignore_private: T.unsafe(nil)); end
|
def parse(name, list: T.unsafe(nil), default_rule: T.unsafe(nil), ignore_private: T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Checks whether +domain+ is assigned and allowed, without actually parsing it.
|
||||||
|
#
|
||||||
|
# This method doesn't care whether domain is a domain or subdomain.
|
||||||
|
# The validation is performed using the default {PublicSuffix::List}.
|
||||||
|
#
|
||||||
|
# @example Validate a valid domain
|
||||||
|
# PublicSuffix.valid?("example.com")
|
||||||
|
# # => true
|
||||||
|
# @example Validate a valid subdomain
|
||||||
|
# PublicSuffix.valid?("www.example.com")
|
||||||
|
# # => true
|
||||||
|
# @example Validate a not-listed domain
|
||||||
|
# PublicSuffix.valid?("example.tldnotlisted")
|
||||||
|
# # => true
|
||||||
|
# @example Validate a not-listed domain with strict checking (without applying the default * rule)
|
||||||
|
# PublicSuffix.valid?("example.tldnotlisted")
|
||||||
|
# # => true
|
||||||
|
# PublicSuffix.valid?("example.tldnotlisted", default_rule: nil)
|
||||||
|
# # => false
|
||||||
|
# @example Validate a fully qualified domain
|
||||||
|
# PublicSuffix.valid?("google.com.")
|
||||||
|
# # => true
|
||||||
|
# PublicSuffix.valid?("www.google.com.")
|
||||||
|
# # => true
|
||||||
|
# @example Check an URL (which is not a valid domain)
|
||||||
|
# PublicSuffix.valid?("http://www.example.com")
|
||||||
|
# # => false
|
||||||
|
# @param name [#to_s] The domain name or fully qualified domain name to validate.
|
||||||
|
# @param ignore_private [Boolean]
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix.rb#123
|
||||||
def valid?(name, list: T.unsafe(nil), default_rule: T.unsafe(nil), ignore_private: T.unsafe(nil)); end
|
def valid?(name, list: T.unsafe(nil), default_rule: T.unsafe(nil), ignore_private: T.unsafe(nil)); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://public_suffix//lib/public_suffix.rb#26
|
||||||
PublicSuffix::BANG = T.let(T.unsafe(nil), String)
|
PublicSuffix::BANG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://public_suffix//lib/public_suffix.rb#25
|
||||||
PublicSuffix::DOT = T.let(T.unsafe(nil), String)
|
PublicSuffix::DOT = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# Domain represents a domain name, composed by a TLD, SLD and TRD.
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/domain.rb#12
|
||||||
class PublicSuffix::Domain
|
class PublicSuffix::Domain
|
||||||
|
# Creates and returns a new {PublicSuffix::Domain} instance.
|
||||||
|
#
|
||||||
|
# @example Initialize with a TLD and SLD
|
||||||
|
# PublicSuffix::Domain.new("com", "example")
|
||||||
|
# # => #<PublicSuffix::Domain @tld="com", @trd=nil>
|
||||||
|
# @example Initialize with a TLD
|
||||||
|
# PublicSuffix::Domain.new("com")
|
||||||
|
# # => #<PublicSuffix::Domain @tld="com">
|
||||||
|
# @example Initialize with a TLD, SLD and TRD
|
||||||
|
# PublicSuffix::Domain.new("com", "example", "wwww")
|
||||||
|
# # => #<PublicSuffix::Domain @tld="com", @trd=nil, @sld="example">
|
||||||
|
# @overload initialize
|
||||||
|
# @overload initialize
|
||||||
|
# @overload initialize
|
||||||
|
# @return [Domain] a new instance of Domain
|
||||||
|
# @yield [self] Yields on self.
|
||||||
|
# @yieldparam self [PublicSuffix::Domain] The newly creates instance
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/domain.rb#65
|
||||||
def initialize(*args); end
|
def initialize(*args); end
|
||||||
|
|
||||||
|
# Returns a domain-like representation of this object
|
||||||
|
# if the object is a {#domain?}, <tt>nil</tt> otherwise.
|
||||||
|
#
|
||||||
|
# PublicSuffix::Domain.new("com").domain
|
||||||
|
# # => nil
|
||||||
|
#
|
||||||
|
# PublicSuffix::Domain.new("com", "google").domain
|
||||||
|
# # => "google.com"
|
||||||
|
#
|
||||||
|
# PublicSuffix::Domain.new("com", "google", "www").domain
|
||||||
|
# # => "www.google.com"
|
||||||
|
#
|
||||||
|
# This method doesn't validate the input. It handles the domain
|
||||||
|
# as a valid domain name and simply applies the necessary transformations.
|
||||||
|
#
|
||||||
|
# This method returns a FQD, not just the domain part.
|
||||||
|
# To get the domain part, use <tt>#sld</tt> (aka second level domain).
|
||||||
|
#
|
||||||
|
# PublicSuffix::Domain.new("com", "google", "www").domain
|
||||||
|
# # => "google.com"
|
||||||
|
#
|
||||||
|
# PublicSuffix::Domain.new("com", "google", "www").sld
|
||||||
|
# # => "google"
|
||||||
|
#
|
||||||
|
# @return [String]
|
||||||
|
# @see #domain?
|
||||||
|
# @see #subdomain
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/domain.rb#137
|
||||||
def domain; end
|
def domain; end
|
||||||
|
|
||||||
|
# Checks whether <tt>self</tt> looks like a domain.
|
||||||
|
#
|
||||||
|
# This method doesn't actually validate the domain.
|
||||||
|
# It only checks whether the instance contains
|
||||||
|
# a value for the {#tld} and {#sld} attributes.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
#
|
||||||
|
# PublicSuffix::Domain.new("com").domain?
|
||||||
|
# # => false
|
||||||
|
#
|
||||||
|
# PublicSuffix::Domain.new("com", "google").domain?
|
||||||
|
# # => true
|
||||||
|
#
|
||||||
|
# PublicSuffix::Domain.new("com", "google", "www").domain?
|
||||||
|
# # => true
|
||||||
|
#
|
||||||
|
# # This is an invalid domain, but returns true
|
||||||
|
# # because this method doesn't validate the content.
|
||||||
|
# PublicSuffix::Domain.new("com", nil).domain?
|
||||||
|
# # => true
|
||||||
|
# @return [Boolean]
|
||||||
|
# @see #subdomain?
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/domain.rb#198
|
||||||
def domain?; end
|
def domain?; end
|
||||||
|
|
||||||
|
# Returns the full domain name.
|
||||||
|
#
|
||||||
|
# @example Gets the domain name of a domain
|
||||||
|
# PublicSuffix::Domain.new("com", "google").name
|
||||||
|
# # => "google.com"
|
||||||
|
# @example Gets the domain name of a subdomain
|
||||||
|
# PublicSuffix::Domain.new("com", "google", "www").name
|
||||||
|
# # => "www.google.com"
|
||||||
|
# @return [String]
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/domain.rb#105
|
||||||
def name; end
|
def name; end
|
||||||
|
|
||||||
|
# Returns the value of attribute sld.
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/domain.rb#33
|
||||||
def sld; end
|
def sld; end
|
||||||
|
|
||||||
|
# Returns a subdomain-like representation of this object
|
||||||
|
# if the object is a {#subdomain?}, <tt>nil</tt> otherwise.
|
||||||
|
#
|
||||||
|
# PublicSuffix::Domain.new("com").subdomain
|
||||||
|
# # => nil
|
||||||
|
#
|
||||||
|
# PublicSuffix::Domain.new("com", "google").subdomain
|
||||||
|
# # => nil
|
||||||
|
#
|
||||||
|
# PublicSuffix::Domain.new("com", "google", "www").subdomain
|
||||||
|
# # => "www.google.com"
|
||||||
|
#
|
||||||
|
# This method doesn't validate the input. It handles the domain
|
||||||
|
# as a valid domain name and simply applies the necessary transformations.
|
||||||
|
#
|
||||||
|
# This method returns a FQD, not just the subdomain part.
|
||||||
|
# To get the subdomain part, use <tt>#trd</tt> (aka third level domain).
|
||||||
|
#
|
||||||
|
# PublicSuffix::Domain.new("com", "google", "www").subdomain
|
||||||
|
# # => "www.google.com"
|
||||||
|
#
|
||||||
|
# PublicSuffix::Domain.new("com", "google", "www").trd
|
||||||
|
# # => "www"
|
||||||
|
#
|
||||||
|
# @return [String]
|
||||||
|
# @see #subdomain?
|
||||||
|
# @see #domain
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/domain.rb#169
|
||||||
def subdomain; end
|
def subdomain; end
|
||||||
|
|
||||||
|
# Checks whether <tt>self</tt> looks like a subdomain.
|
||||||
|
#
|
||||||
|
# This method doesn't actually validate the subdomain.
|
||||||
|
# It only checks whether the instance contains
|
||||||
|
# a value for the {#tld}, {#sld} and {#trd} attributes.
|
||||||
|
# If you also want to validate the domain,
|
||||||
|
# use {#valid_subdomain?} instead.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
#
|
||||||
|
# PublicSuffix::Domain.new("com").subdomain?
|
||||||
|
# # => false
|
||||||
|
#
|
||||||
|
# PublicSuffix::Domain.new("com", "google").subdomain?
|
||||||
|
# # => false
|
||||||
|
#
|
||||||
|
# PublicSuffix::Domain.new("com", "google", "www").subdomain?
|
||||||
|
# # => true
|
||||||
|
#
|
||||||
|
# # This is an invalid domain, but returns true
|
||||||
|
# # because this method doesn't validate the content.
|
||||||
|
# PublicSuffix::Domain.new("com", "example", nil).subdomain?
|
||||||
|
# # => true
|
||||||
|
# @return [Boolean]
|
||||||
|
# @see #domain?
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/domain.rb#229
|
||||||
def subdomain?; end
|
def subdomain?; end
|
||||||
|
|
||||||
|
# Returns the value of attribute tld.
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/domain.rb#33
|
||||||
def tld; end
|
def tld; end
|
||||||
|
|
||||||
|
# Returns an array containing the domain parts.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
#
|
||||||
|
# PublicSuffix::Domain.new("google.com").to_a
|
||||||
|
# # => [nil, "google", "com"]
|
||||||
|
#
|
||||||
|
# PublicSuffix::Domain.new("www.google.com").to_a
|
||||||
|
# # => [nil, "google", "com"]
|
||||||
|
# @return [Array<String, nil>]
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/domain.rb#89
|
||||||
def to_a; end
|
def to_a; end
|
||||||
|
|
||||||
|
# Returns a string representation of this object.
|
||||||
|
#
|
||||||
|
# @return [String]
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/domain.rb#73
|
||||||
def to_s; end
|
def to_s; end
|
||||||
|
|
||||||
|
# Returns the value of attribute trd.
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/domain.rb#33
|
||||||
def trd; end
|
def trd; end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# Splits a string into the labels, that is the dot-separated parts.
|
||||||
|
#
|
||||||
|
# The input is not validated, but it is assumed to be a valid domain name.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
#
|
||||||
|
# name_to_labels('example.com')
|
||||||
|
# # => ['example', 'com']
|
||||||
|
#
|
||||||
|
# name_to_labels('example.co.uk')
|
||||||
|
# # => ['example', 'co', 'uk']
|
||||||
|
# @param name [String, #to_s] The domain name to split.
|
||||||
|
# @return [Array<String>]
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/domain.rb#28
|
||||||
def name_to_labels(name); end
|
def name_to_labels(name); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Raised when trying to parse an invalid name.
|
||||||
|
# A name is considered invalid when no rule is found in the definition list.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
#
|
||||||
|
# PublicSuffix.parse("nic.test")
|
||||||
|
# # => PublicSuffix::DomainInvalid
|
||||||
|
#
|
||||||
|
# PublicSuffix.parse("http://www.nic.it")
|
||||||
|
# # => PublicSuffix::DomainInvalid
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/errors.rb#25
|
||||||
class PublicSuffix::DomainInvalid < ::PublicSuffix::Error; end
|
class PublicSuffix::DomainInvalid < ::PublicSuffix::Error; end
|
||||||
|
|
||||||
|
# Raised when trying to parse a name that matches a suffix.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
#
|
||||||
|
# PublicSuffix.parse("nic.do")
|
||||||
|
# # => PublicSuffix::DomainNotAllowed
|
||||||
|
#
|
||||||
|
# PublicSuffix.parse("www.nic.do")
|
||||||
|
# # => PublicSuffix::Domain
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/errors.rb#38
|
||||||
class PublicSuffix::DomainNotAllowed < ::PublicSuffix::DomainInvalid; end
|
class PublicSuffix::DomainNotAllowed < ::PublicSuffix::DomainInvalid; end
|
||||||
|
|
||||||
|
# source://public_suffix//lib/public_suffix/errors.rb#11
|
||||||
class PublicSuffix::Error < ::StandardError; end
|
class PublicSuffix::Error < ::StandardError; end
|
||||||
|
|
||||||
|
# A {PublicSuffix::List} is a collection of one
|
||||||
|
# or more {PublicSuffix::Rule}.
|
||||||
|
#
|
||||||
|
# Given a {PublicSuffix::List},
|
||||||
|
# you can add or remove {PublicSuffix::Rule},
|
||||||
|
# iterate all items in the list or search for the first rule
|
||||||
|
# which matches a specific domain name.
|
||||||
|
#
|
||||||
|
# # Create a new list
|
||||||
|
# list = PublicSuffix::List.new
|
||||||
|
#
|
||||||
|
# # Push two rules to the list
|
||||||
|
# list << PublicSuffix::Rule.factory("it")
|
||||||
|
# list << PublicSuffix::Rule.factory("com")
|
||||||
|
#
|
||||||
|
# # Get the size of the list
|
||||||
|
# list.size
|
||||||
|
# # => 2
|
||||||
|
#
|
||||||
|
# # Search for the rule matching given domain
|
||||||
|
# list.find("example.com")
|
||||||
|
# # => #<PublicSuffix::Rule::Normal>
|
||||||
|
# list.find("example.org")
|
||||||
|
# # => nil
|
||||||
|
#
|
||||||
|
# You can create as many {PublicSuffix::List} you want.
|
||||||
|
# The {PublicSuffix::List.default} rule list is used
|
||||||
|
# to tokenize and validate a domain.
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/list.rb#40
|
||||||
class PublicSuffix::List
|
class PublicSuffix::List
|
||||||
|
# Initializes an empty {PublicSuffix::List}.
|
||||||
|
#
|
||||||
|
# @return [List] a new instance of List
|
||||||
|
# @yield [self] Yields on self.
|
||||||
|
# @yieldparam self [PublicSuffix::List] The newly created instance.
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/list.rb#106
|
||||||
def initialize; end
|
def initialize; end
|
||||||
|
|
||||||
|
# Adds the given object to the list and optionally refreshes the rule index.
|
||||||
|
#
|
||||||
|
# @param rule [PublicSuffix::Rule::*] the rule to add to the list
|
||||||
|
# @return [self]
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/list.rb#141
|
||||||
def <<(rule); end
|
def <<(rule); end
|
||||||
|
|
||||||
|
# Checks whether two lists are equal.
|
||||||
|
#
|
||||||
|
# List <tt>one</tt> is equal to <tt>two</tt>, if <tt>two</tt> is an instance of
|
||||||
|
# {PublicSuffix::List} and each +PublicSuffix::Rule::*+
|
||||||
|
# in list <tt>one</tt> is available in list <tt>two</tt>, in the same order.
|
||||||
|
#
|
||||||
|
# @param other [PublicSuffix::List] the List to compare
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/list.rb#120
|
||||||
def ==(other); end
|
def ==(other); end
|
||||||
|
|
||||||
|
# Adds the given object to the list and optionally refreshes the rule index.
|
||||||
|
#
|
||||||
|
# @param rule [PublicSuffix::Rule::*] the rule to add to the list
|
||||||
|
# @return [self]
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/list.rb#141
|
||||||
def add(rule); end
|
def add(rule); end
|
||||||
|
|
||||||
|
# Removes all rules.
|
||||||
|
#
|
||||||
|
# @return [self]
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/list.rb#164
|
||||||
def clear; end
|
def clear; end
|
||||||
|
|
||||||
|
# Gets the default rule.
|
||||||
|
#
|
||||||
|
# @return [PublicSuffix::Rule::*]
|
||||||
|
# @see PublicSuffix::Rule.default_rule
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/list.rb#226
|
||||||
def default_rule; end
|
def default_rule; end
|
||||||
|
|
||||||
|
# Iterates each rule in the list.
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/list.rb#128
|
||||||
def each(&block); end
|
def each(&block); end
|
||||||
|
|
||||||
|
# Checks whether the list is empty.
|
||||||
|
#
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/list.rb#157
|
||||||
def empty?; end
|
def empty?; end
|
||||||
|
|
||||||
|
# Checks whether two lists are equal.
|
||||||
|
#
|
||||||
|
# List <tt>one</tt> is equal to <tt>two</tt>, if <tt>two</tt> is an instance of
|
||||||
|
# {PublicSuffix::List} and each +PublicSuffix::Rule::*+
|
||||||
|
# in list <tt>one</tt> is available in list <tt>two</tt>, in the same order.
|
||||||
|
#
|
||||||
|
# @param other [PublicSuffix::List] the List to compare
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/list.rb#120
|
||||||
def eql?(other); end
|
def eql?(other); end
|
||||||
|
|
||||||
|
# Finds and returns the rule corresponding to the longest public suffix for the hostname.
|
||||||
|
#
|
||||||
|
# @param name [#to_s] the hostname
|
||||||
|
# @param default [PublicSuffix::Rule::*] the default rule to return in case no rule matches
|
||||||
|
# @return [PublicSuffix::Rule::*]
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/list.rb#174
|
||||||
def find(name, default: T.unsafe(nil), **options); end
|
def find(name, default: T.unsafe(nil), **options); end
|
||||||
|
|
||||||
|
# Gets the number of rules in the list.
|
||||||
|
#
|
||||||
|
# @return [Integer]
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/list.rb#150
|
||||||
def size; end
|
def size; end
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
||||||
|
# Returns the value of attribute rules.
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/list.rb#233
|
||||||
def rules; end
|
def rules; end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://public_suffix//lib/public_suffix/list.rb#238
|
||||||
def entry_to_rule(entry, value); end
|
def entry_to_rule(entry, value); end
|
||||||
|
|
||||||
|
# source://public_suffix//lib/public_suffix/list.rb#242
|
||||||
def rule_to_entry(rule); end
|
def rule_to_entry(rule); end
|
||||||
|
|
||||||
|
# Selects all the rules matching given hostame.
|
||||||
|
#
|
||||||
|
# If `ignore_private` is set to true, the algorithm will skip the rules that are flagged as
|
||||||
|
# private domain. Note that the rules will still be part of the loop.
|
||||||
|
# If you frequently need to access lists ignoring the private domains,
|
||||||
|
# you should create a list that doesn't include these domains setting the
|
||||||
|
# `private_domains: false` option when calling {.parse}.
|
||||||
|
#
|
||||||
|
# Note that this method is currently private, as you should not rely on it. Instead,
|
||||||
|
# the public interface is {#find}. The current internal algorithm allows to return all
|
||||||
|
# matching rules, but different data structures may not be able to do it, and instead would
|
||||||
|
# return only the match. For this reason, you should rely on {#find}.
|
||||||
|
#
|
||||||
|
# @param name [#to_s] the hostname
|
||||||
|
# @param ignore_private [Boolean]
|
||||||
|
# @return [Array<PublicSuffix::Rule::*>]
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/list.rb#199
|
||||||
def select(name, ignore_private: T.unsafe(nil)); end
|
def select(name, ignore_private: T.unsafe(nil)); end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# Gets the default rule list.
|
||||||
|
#
|
||||||
|
# Initializes a new {PublicSuffix::List} parsing the content
|
||||||
|
# of {PublicSuffix::List.default_list_content}, if required.
|
||||||
|
#
|
||||||
|
# @return [PublicSuffix::List]
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/list.rb#50
|
||||||
def default(**options); end
|
def default(**options); end
|
||||||
|
|
||||||
|
# Sets the default rule list to +value+.
|
||||||
|
#
|
||||||
|
# @param value [PublicSuffix::List] the new list
|
||||||
|
# @return [PublicSuffix::List]
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/list.rb#58
|
||||||
def default=(value); end
|
def default=(value); end
|
||||||
|
|
||||||
|
# Parse given +input+ treating the content as Public Suffix List.
|
||||||
|
#
|
||||||
|
# See http://publicsuffix.org/format/ for more details about input format.
|
||||||
|
#
|
||||||
|
# @param input [#each_line] the list to parse
|
||||||
|
# @param private_domains [Boolean] whether to ignore the private domains section
|
||||||
|
# @return [PublicSuffix::List]
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/list.rb#69
|
||||||
def parse(input, private_domains: T.unsafe(nil)); end
|
def parse(input, private_domains: T.unsafe(nil)); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://public_suffix//lib/public_suffix/list.rb#42
|
||||||
PublicSuffix::List::DEFAULT_LIST_PATH = T.let(T.unsafe(nil), String)
|
PublicSuffix::List::DEFAULT_LIST_PATH = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# A Rule is a special object which holds a single definition
|
||||||
|
# of the Public Suffix List.
|
||||||
|
#
|
||||||
|
# There are 3 types of rules, each one represented by a specific
|
||||||
|
# subclass within the +PublicSuffix::Rule+ namespace.
|
||||||
|
#
|
||||||
|
# To create a new Rule, use the {PublicSuffix::Rule#factory} method.
|
||||||
|
#
|
||||||
|
# PublicSuffix::Rule.factory("ar")
|
||||||
|
# # => #<PublicSuffix::Rule::Normal>
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#22
|
||||||
module PublicSuffix::Rule
|
module PublicSuffix::Rule
|
||||||
class << self
|
class << self
|
||||||
|
# The default rule to use if no rule match.
|
||||||
|
#
|
||||||
|
# The default rule is "*". From https://publicsuffix.org/list/:
|
||||||
|
#
|
||||||
|
# > If no rules match, the prevailing rule is "*".
|
||||||
|
#
|
||||||
|
# @return [PublicSuffix::Rule::Wildcard] The default rule.
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#344
|
||||||
def default; end
|
def default; end
|
||||||
|
|
||||||
|
# Takes the +name+ of the rule, detects the specific rule class
|
||||||
|
# and creates a new instance of that class.
|
||||||
|
# The +name+ becomes the rule +value+.
|
||||||
|
#
|
||||||
|
# @example Creates a Normal rule
|
||||||
|
# PublicSuffix::Rule.factory("ar")
|
||||||
|
# # => #<PublicSuffix::Rule::Normal>
|
||||||
|
# @example Creates a Wildcard rule
|
||||||
|
# PublicSuffix::Rule.factory("*.ar")
|
||||||
|
# # => #<PublicSuffix::Rule::Wildcard>
|
||||||
|
# @example Creates an Exception rule
|
||||||
|
# PublicSuffix::Rule.factory("!congresodelalengua3.ar")
|
||||||
|
# # => #<PublicSuffix::Rule::Exception>
|
||||||
|
# @param content [#to_s] the content of the rule
|
||||||
|
# @return [PublicSuffix::Rule::*] A rule instance.
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#326
|
||||||
def factory(content, private: T.unsafe(nil)); end
|
def factory(content, private: T.unsafe(nil)); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# = Abstract rule class
|
||||||
|
#
|
||||||
|
# This represent the base class for a Rule definition
|
||||||
|
# in the {Public Suffix List}[https://publicsuffix.org].
|
||||||
|
#
|
||||||
|
# This is intended to be an Abstract class
|
||||||
|
# and you shouldn't create a direct instance. The only purpose
|
||||||
|
# of this class is to expose a common interface
|
||||||
|
# for all the available subclasses.
|
||||||
|
#
|
||||||
|
# * {PublicSuffix::Rule::Normal}
|
||||||
|
# * {PublicSuffix::Rule::Exception}
|
||||||
|
# * {PublicSuffix::Rule::Wildcard}
|
||||||
|
#
|
||||||
|
# ## Properties
|
||||||
|
#
|
||||||
|
# A rule is composed by 4 properties:
|
||||||
|
#
|
||||||
|
# value - A normalized version of the rule name.
|
||||||
|
# The normalization process depends on rule tpe.
|
||||||
|
#
|
||||||
|
# Here's an example
|
||||||
|
#
|
||||||
|
# PublicSuffix::Rule.factory("*.google.com")
|
||||||
|
# #<PublicSuffix::Rule::Wildcard:0x1015c14b0
|
||||||
|
# @value="google.com"
|
||||||
|
# >
|
||||||
|
#
|
||||||
|
# ## Rule Creation
|
||||||
|
#
|
||||||
|
# The best way to create a new rule is passing the rule name
|
||||||
|
# to the <tt>PublicSuffix::Rule.factory</tt> method.
|
||||||
|
#
|
||||||
|
# PublicSuffix::Rule.factory("com")
|
||||||
|
# # => PublicSuffix::Rule::Normal
|
||||||
|
#
|
||||||
|
# PublicSuffix::Rule.factory("*.com")
|
||||||
|
# # => PublicSuffix::Rule::Wildcard
|
||||||
|
#
|
||||||
|
# This method will detect the rule type and create an instance
|
||||||
|
# from the proper rule class.
|
||||||
|
#
|
||||||
|
# ## Rule Usage
|
||||||
|
#
|
||||||
|
# A rule describes the composition of a domain name and explains how to tokenize
|
||||||
|
# the name into tld, sld and trd.
|
||||||
|
#
|
||||||
|
# To use a rule, you first need to be sure the name you want to tokenize
|
||||||
|
# can be handled by the current rule.
|
||||||
|
# You can use the <tt>#match?</tt> method.
|
||||||
|
#
|
||||||
|
# rule = PublicSuffix::Rule.factory("com")
|
||||||
|
#
|
||||||
|
# rule.match?("google.com")
|
||||||
|
# # => true
|
||||||
|
#
|
||||||
|
# rule.match?("google.com")
|
||||||
|
# # => false
|
||||||
|
#
|
||||||
|
# Rule order is significant. A name can match more than one rule.
|
||||||
|
# See the {Public Suffix Documentation}[http://publicsuffix.org/format/]
|
||||||
|
# to learn more about rule priority.
|
||||||
|
#
|
||||||
|
# When you have the right rule, you can use it to tokenize the domain name.
|
||||||
|
#
|
||||||
|
# rule = PublicSuffix::Rule.factory("com")
|
||||||
|
#
|
||||||
|
# rule.decompose("google.com")
|
||||||
|
# # => ["google", "com"]
|
||||||
|
#
|
||||||
|
# rule.decompose("www.google.com")
|
||||||
|
# # => ["www.google", "com"]
|
||||||
|
#
|
||||||
|
# @abstract
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#102
|
||||||
class PublicSuffix::Rule::Base
|
class PublicSuffix::Rule::Base
|
||||||
|
# Initializes a new rule.
|
||||||
|
#
|
||||||
|
# @param value [String]
|
||||||
|
# @param private [Boolean]
|
||||||
|
# @return [Base] a new instance of Base
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#126
|
||||||
def initialize(value:, length: T.unsafe(nil), private: T.unsafe(nil)); end
|
def initialize(value:, length: T.unsafe(nil), private: T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Checks whether this rule is equal to <tt>other</tt>.
|
||||||
|
#
|
||||||
|
# @param other [PublicSuffix::Rule::*] The rule to compare
|
||||||
|
# @return [Boolean] true if this rule and other are instances of the same class
|
||||||
|
# and has the same value, false otherwise.
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#137
|
||||||
def ==(other); end
|
def ==(other); end
|
||||||
|
|
||||||
|
# @abstract
|
||||||
|
# @param domain [#to_s] The domain name to decompose
|
||||||
|
# @raise [NotImplementedError]
|
||||||
|
# @return [Array<String, nil>]
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#180
|
||||||
def decompose(*_arg0); end
|
def decompose(*_arg0); end
|
||||||
|
|
||||||
|
# Checks whether this rule is equal to <tt>other</tt>.
|
||||||
|
#
|
||||||
|
# @param other [PublicSuffix::Rule::*] The rule to compare
|
||||||
|
# @return [Boolean] true if this rule and other are instances of the same class
|
||||||
|
# and has the same value, false otherwise.
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#137
|
||||||
def eql?(other); end
|
def eql?(other); end
|
||||||
|
|
||||||
|
# @return [String] the length of the rule
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#108
|
||||||
def length; end
|
def length; end
|
||||||
|
|
||||||
|
# Checks if this rule matches +name+.
|
||||||
|
#
|
||||||
|
# A domain name is said to match a rule if and only if
|
||||||
|
# all of the following conditions are met:
|
||||||
|
#
|
||||||
|
# - When the domain and rule are split into corresponding labels,
|
||||||
|
# that the domain contains as many or more labels than the rule.
|
||||||
|
# - Beginning with the right-most labels of both the domain and the rule,
|
||||||
|
# and continuing for all labels in the rule, one finds that for every pair,
|
||||||
|
# either they are identical, or that the label from the rule is "*".
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# PublicSuffix::Rule.factory("com").match?("example.com")
|
||||||
|
# # => true
|
||||||
|
# PublicSuffix::Rule.factory("com").match?("example.net")
|
||||||
|
# # => false
|
||||||
|
# @param name [String] the domain name to check
|
||||||
|
# @return [Boolean]
|
||||||
|
# @see https://publicsuffix.org/list/
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#163
|
||||||
def match?(name); end
|
def match?(name); end
|
||||||
|
|
||||||
|
# @abstract
|
||||||
|
# @raise [NotImplementedError]
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#173
|
||||||
def parts; end
|
def parts; end
|
||||||
|
|
||||||
|
# @return [Boolean] true if the rule is a private domain
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#111
|
||||||
def private; end
|
def private; end
|
||||||
|
|
||||||
|
# @return [String] the rule definition
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#105
|
||||||
def value; end
|
def value; end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# Initializes a new rule from the content.
|
||||||
|
#
|
||||||
|
# @param content [String] the content of the rule
|
||||||
|
# @param private [Boolean]
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#118
|
||||||
def build(content, private: T.unsafe(nil)); end
|
def build(content, private: T.unsafe(nil)); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# @api internal
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#25
|
||||||
class PublicSuffix::Rule::Entry < ::Struct
|
class PublicSuffix::Rule::Entry < ::Struct
|
||||||
|
# Returns the value of attribute length
|
||||||
|
#
|
||||||
|
# @return [Object] the current value of length
|
||||||
def length; end
|
def length; end
|
||||||
|
|
||||||
|
# Sets the attribute length
|
||||||
|
#
|
||||||
|
# @param value [Object] the value to set the attribute length to.
|
||||||
|
# @return [Object] the newly set value
|
||||||
def length=(_); end
|
def length=(_); end
|
||||||
|
|
||||||
|
# Returns the value of attribute private
|
||||||
|
#
|
||||||
|
# @return [Object] the current value of private
|
||||||
def private; end
|
def private; end
|
||||||
|
|
||||||
|
# Sets the attribute private
|
||||||
|
#
|
||||||
|
# @param value [Object] the value to set the attribute private to.
|
||||||
|
# @return [Object] the newly set value
|
||||||
def private=(_); end
|
def private=(_); end
|
||||||
|
|
||||||
|
# Returns the value of attribute type
|
||||||
|
#
|
||||||
|
# @return [Object] the current value of type
|
||||||
def type; end
|
def type; end
|
||||||
|
|
||||||
|
# Sets the attribute type
|
||||||
|
#
|
||||||
|
# @param value [Object] the value to set the attribute type to.
|
||||||
|
# @return [Object] the newly set value
|
||||||
def type=(_); end
|
def type=(_); end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
def [](*_arg0); end
|
def [](*_arg0); end
|
||||||
def inspect; end
|
def inspect; end
|
||||||
|
def keyword_init?; end
|
||||||
def members; end
|
def members; end
|
||||||
def new(*_arg0); end
|
def new(*_arg0); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Exception represents an exception rule (e.g. !parliament.uk).
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#265
|
||||||
class PublicSuffix::Rule::Exception < ::PublicSuffix::Rule::Base
|
class PublicSuffix::Rule::Exception < ::PublicSuffix::Rule::Base
|
||||||
|
# Decomposes the domain name according to rule properties.
|
||||||
|
#
|
||||||
|
# @param domain [#to_s] The domain name to decompose
|
||||||
|
# @return [Array<String>] The array with [trd + sld, tld].
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#286
|
||||||
def decompose(domain); end
|
def decompose(domain); end
|
||||||
|
|
||||||
|
# dot-split rule value and returns all rule parts
|
||||||
|
# in the order they appear in the value.
|
||||||
|
# The leftmost label is not considered a label.
|
||||||
|
#
|
||||||
|
# See http://publicsuffix.org/format/:
|
||||||
|
# If the prevailing rule is a exception rule,
|
||||||
|
# modify it by removing the leftmost label.
|
||||||
|
#
|
||||||
|
# @return [Array<String>]
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#301
|
||||||
def parts; end
|
def parts; end
|
||||||
|
|
||||||
|
# Gets the original rule definition.
|
||||||
|
#
|
||||||
|
# @return [String] The rule definition.
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#278
|
||||||
def rule; end
|
def rule; end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# Initializes a new rule from the content.
|
||||||
|
#
|
||||||
|
# @param content [#to_s] the content of the rule
|
||||||
|
# @param private [Boolean]
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#271
|
||||||
def build(content, private: T.unsafe(nil)); end
|
def build(content, private: T.unsafe(nil)); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Normal represents a standard rule (e.g. com).
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#187
|
||||||
class PublicSuffix::Rule::Normal < ::PublicSuffix::Rule::Base
|
class PublicSuffix::Rule::Normal < ::PublicSuffix::Rule::Base
|
||||||
|
# Decomposes the domain name according to rule properties.
|
||||||
|
#
|
||||||
|
# @param domain [#to_s] The domain name to decompose
|
||||||
|
# @return [Array<String>] The array with [trd + sld, tld].
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#200
|
||||||
def decompose(domain); end
|
def decompose(domain); end
|
||||||
|
|
||||||
|
# dot-split rule value and returns all rule parts
|
||||||
|
# in the order they appear in the value.
|
||||||
|
#
|
||||||
|
# @return [Array<String>]
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#210
|
||||||
def parts; end
|
def parts; end
|
||||||
|
|
||||||
|
# Gets the original rule definition.
|
||||||
|
#
|
||||||
|
# @return [String] The rule definition.
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#192
|
||||||
def rule; end
|
def rule; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Wildcard represents a wildcard rule (e.g. *.co.uk).
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#217
|
||||||
class PublicSuffix::Rule::Wildcard < ::PublicSuffix::Rule::Base
|
class PublicSuffix::Rule::Wildcard < ::PublicSuffix::Rule::Base
|
||||||
|
# Initializes a new rule.
|
||||||
|
#
|
||||||
|
# @param value [String]
|
||||||
|
# @param length [Integer]
|
||||||
|
# @param private [Boolean]
|
||||||
|
# @return [Wildcard] a new instance of Wildcard
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#232
|
||||||
def initialize(value:, length: T.unsafe(nil), private: T.unsafe(nil)); end
|
def initialize(value:, length: T.unsafe(nil), private: T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Decomposes the domain name according to rule properties.
|
||||||
|
#
|
||||||
|
# @param domain [#to_s] The domain name to decompose
|
||||||
|
# @return [Array<String>] The array with [trd + sld, tld].
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#248
|
||||||
def decompose(domain); end
|
def decompose(domain); end
|
||||||
|
|
||||||
|
# dot-split rule value and returns all rule parts
|
||||||
|
# in the order they appear in the value.
|
||||||
|
#
|
||||||
|
# @return [Array<String>]
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#258
|
||||||
def parts; end
|
def parts; end
|
||||||
|
|
||||||
|
# Gets the original rule definition.
|
||||||
|
#
|
||||||
|
# @return [String] The rule definition.
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#240
|
||||||
def rule; end
|
def rule; end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# Initializes a new rule from the content.
|
||||||
|
#
|
||||||
|
# @param content [String] the content of the rule
|
||||||
|
# @param private [Boolean]
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/rule.rb#223
|
||||||
def build(content, private: T.unsafe(nil)); end
|
def build(content, private: T.unsafe(nil)); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://public_suffix//lib/public_suffix.rb#27
|
||||||
PublicSuffix::STAR = T.let(T.unsafe(nil), String)
|
PublicSuffix::STAR = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# @return [String] the current library version
|
||||||
|
#
|
||||||
|
# source://public_suffix//lib/public_suffix/version.rb#12
|
||||||
PublicSuffix::VERSION = T.let(T.unsafe(nil), String)
|
PublicSuffix::VERSION = T.let(T.unsafe(nil), String)
|
||||||
|
|||||||
1407
Library/Homebrew/sorbet/rbi/gems/racc@1.7.3.rbi
generated
1407
Library/Homebrew/sorbet/rbi/gems/racc@1.7.3.rbi
generated
File diff suppressed because it is too large
Load Diff
3813
Library/Homebrew/sorbet/rbi/gems/rack@3.0.8.rbi
generated
3813
Library/Homebrew/sorbet/rbi/gems/rack@3.0.8.rbi
generated
File diff suppressed because it is too large
Load Diff
246
Library/Homebrew/sorbet/rbi/gems/rainbow@3.1.1.rbi
generated
246
Library/Homebrew/sorbet/rbi/gems/rainbow@3.1.1.rbi
generated
@ -4,154 +4,400 @@
|
|||||||
# This is an autogenerated file for types exported from the `rainbow` gem.
|
# This is an autogenerated file for types exported from the `rainbow` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem rainbow`.
|
# Please instead update this file by running `bin/tapioca gem rainbow`.
|
||||||
|
|
||||||
|
class Object < ::BasicObject
|
||||||
|
include ::ActiveSupport::ForkTracker::CoreExt
|
||||||
|
include ::Kernel
|
||||||
|
include ::PP::ObjectMixin
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/global.rb#23
|
||||||
|
def Rainbow(string); end
|
||||||
|
end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/string_utils.rb#3
|
||||||
module Rainbow
|
module Rainbow
|
||||||
class << self
|
class << self
|
||||||
|
# source://rainbow//lib/rainbow/global.rb#10
|
||||||
def enabled; end
|
def enabled; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/global.rb#14
|
||||||
def enabled=(value); end
|
def enabled=(value); end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/global.rb#6
|
||||||
def global; end
|
def global; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow.rb#6
|
||||||
def new; end
|
def new; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/global.rb#18
|
||||||
def uncolor(string); end
|
def uncolor(string); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/color.rb#4
|
||||||
class Rainbow::Color
|
class Rainbow::Color
|
||||||
|
# Returns the value of attribute ground.
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/color.rb#5
|
||||||
def ground; end
|
def ground; end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# source://rainbow//lib/rainbow/color.rb#7
|
||||||
def build(ground, values); end
|
def build(ground, values); end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/color.rb#40
|
||||||
def parse_hex_color(hex); end
|
def parse_hex_color(hex); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/color.rb#54
|
||||||
class Rainbow::Color::Indexed < ::Rainbow::Color
|
class Rainbow::Color::Indexed < ::Rainbow::Color
|
||||||
|
# @return [Indexed] a new instance of Indexed
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/color.rb#57
|
||||||
def initialize(ground, num); end
|
def initialize(ground, num); end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/color.rb#62
|
||||||
def codes; end
|
def codes; end
|
||||||
|
|
||||||
|
# Returns the value of attribute num.
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/color.rb#55
|
||||||
def num; end
|
def num; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/color.rb#69
|
||||||
class Rainbow::Color::Named < ::Rainbow::Color::Indexed
|
class Rainbow::Color::Named < ::Rainbow::Color::Indexed
|
||||||
|
# @return [Named] a new instance of Named
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/color.rb#90
|
||||||
def initialize(ground, name); end
|
def initialize(ground, name); end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# source://rainbow//lib/rainbow/color.rb#82
|
||||||
def color_names; end
|
def color_names; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/color.rb#86
|
||||||
def valid_names; end
|
def valid_names; end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/color.rb#70
|
||||||
Rainbow::Color::Named::NAMES = T.let(T.unsafe(nil), Hash)
|
Rainbow::Color::Named::NAMES = T.let(T.unsafe(nil), Hash)
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/color.rb#100
|
||||||
class Rainbow::Color::RGB < ::Rainbow::Color::Indexed
|
class Rainbow::Color::RGB < ::Rainbow::Color::Indexed
|
||||||
|
# @return [RGB] a new instance of RGB
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/color.rb#107
|
||||||
def initialize(ground, *values); end
|
def initialize(ground, *values); end
|
||||||
|
|
||||||
|
# Returns the value of attribute b.
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/color.rb#101
|
||||||
def b; end
|
def b; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/color.rb#116
|
||||||
def codes; end
|
def codes; end
|
||||||
|
|
||||||
|
# Returns the value of attribute g.
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/color.rb#101
|
||||||
def g; end
|
def g; end
|
||||||
|
|
||||||
|
# Returns the value of attribute r.
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/color.rb#101
|
||||||
def r; end
|
def r; end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/color.rb#122
|
||||||
def code_from_rgb; end
|
def code_from_rgb; end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# source://rainbow//lib/rainbow/color.rb#103
|
||||||
def to_ansi_domain(value); end
|
def to_ansi_domain(value); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/color.rb#129
|
||||||
class Rainbow::Color::X11Named < ::Rainbow::Color::RGB
|
class Rainbow::Color::X11Named < ::Rainbow::Color::RGB
|
||||||
include ::Rainbow::X11ColorNames
|
include ::Rainbow::X11ColorNames
|
||||||
|
|
||||||
|
# @return [X11Named] a new instance of X11Named
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/color.rb#140
|
||||||
def initialize(ground, name); end
|
def initialize(ground, name); end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# source://rainbow//lib/rainbow/color.rb#132
|
||||||
def color_names; end
|
def color_names; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/color.rb#136
|
||||||
def valid_names; end
|
def valid_names; end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/null_presenter.rb#4
|
||||||
class Rainbow::NullPresenter < ::String
|
class Rainbow::NullPresenter < ::String
|
||||||
|
# source://rainbow//lib/rainbow/null_presenter.rb#9
|
||||||
def background(*_values); end
|
def background(*_values); end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/null_presenter.rb#9
|
||||||
def bg(*_values); end
|
def bg(*_values); end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/null_presenter.rb#49
|
||||||
def black; end
|
def black; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/null_presenter.rb#33
|
||||||
def blink; end
|
def blink; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/null_presenter.rb#65
|
||||||
def blue; end
|
def blue; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/null_presenter.rb#17
|
||||||
def bold; end
|
def bold; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/null_presenter.rb#17
|
||||||
def bright; end
|
def bright; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/null_presenter.rb#5
|
||||||
def color(*_values); end
|
def color(*_values); end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/null_presenter.rb#45
|
||||||
def cross_out; end
|
def cross_out; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/null_presenter.rb#73
|
||||||
def cyan; end
|
def cyan; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/null_presenter.rb#21
|
||||||
def dark; end
|
def dark; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/null_presenter.rb#21
|
||||||
def faint; end
|
def faint; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/null_presenter.rb#5
|
||||||
def fg(*_values); end
|
def fg(*_values); end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/null_presenter.rb#5
|
||||||
def foreground(*_values); end
|
def foreground(*_values); end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/null_presenter.rb#57
|
||||||
def green; end
|
def green; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/null_presenter.rb#41
|
||||||
def hide; end
|
def hide; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/null_presenter.rb#37
|
||||||
def inverse; end
|
def inverse; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/null_presenter.rb#25
|
||||||
def italic; end
|
def italic; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/null_presenter.rb#69
|
||||||
def magenta; end
|
def magenta; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/null_presenter.rb#81
|
||||||
def method_missing(method_name, *args); end
|
def method_missing(method_name, *args); end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/null_presenter.rb#53
|
||||||
def red; end
|
def red; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/null_presenter.rb#13
|
||||||
def reset; end
|
def reset; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/null_presenter.rb#45
|
||||||
def strike; end
|
def strike; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/null_presenter.rb#29
|
||||||
def underline; end
|
def underline; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/null_presenter.rb#77
|
||||||
def white; end
|
def white; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/null_presenter.rb#61
|
||||||
def yellow; end
|
def yellow; end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/null_presenter.rb#89
|
||||||
def respond_to_missing?(method_name, *args); end
|
def respond_to_missing?(method_name, *args); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#8
|
||||||
class Rainbow::Presenter < ::String
|
class Rainbow::Presenter < ::String
|
||||||
|
# Sets background color of this text.
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#30
|
||||||
def background(*values); end
|
def background(*values); end
|
||||||
|
|
||||||
|
# Sets background color of this text.
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#30
|
||||||
def bg(*values); end
|
def bg(*values); end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#92
|
||||||
def black; end
|
def black; end
|
||||||
|
|
||||||
|
# Turns on blinking attribute for this text (not well supported by terminal
|
||||||
|
# emulators).
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#72
|
||||||
def blink; end
|
def blink; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#108
|
||||||
def blue; end
|
def blue; end
|
||||||
|
|
||||||
|
# Turns on bright/bold for this text.
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#45
|
||||||
def bold; end
|
def bold; end
|
||||||
|
|
||||||
|
# Turns on bright/bold for this text.
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#45
|
||||||
def bright; end
|
def bright; end
|
||||||
|
|
||||||
|
# Sets color of this text.
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#22
|
||||||
def color(*values); end
|
def color(*values); end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#86
|
||||||
def cross_out; end
|
def cross_out; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#116
|
||||||
def cyan; end
|
def cyan; end
|
||||||
|
|
||||||
|
# Turns on faint/dark for this text (not well supported by terminal
|
||||||
|
# emulators).
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#53
|
||||||
def dark; end
|
def dark; end
|
||||||
|
|
||||||
|
# Turns on faint/dark for this text (not well supported by terminal
|
||||||
|
# emulators).
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#53
|
||||||
def faint; end
|
def faint; end
|
||||||
|
|
||||||
|
# Sets color of this text.
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#22
|
||||||
def fg(*values); end
|
def fg(*values); end
|
||||||
|
|
||||||
|
# Sets color of this text.
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#22
|
||||||
def foreground(*values); end
|
def foreground(*values); end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#100
|
||||||
def green; end
|
def green; end
|
||||||
|
|
||||||
|
# Hides this text (set its color to the same as background).
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#82
|
||||||
def hide; end
|
def hide; end
|
||||||
|
|
||||||
|
# Inverses current foreground/background colors.
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#77
|
||||||
def inverse; end
|
def inverse; end
|
||||||
|
|
||||||
|
# Turns on italic style for this text (not well supported by terminal
|
||||||
|
# emulators).
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#61
|
||||||
def italic; end
|
def italic; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#112
|
||||||
def magenta; end
|
def magenta; end
|
||||||
|
|
||||||
|
# We take care of X11 color method call here.
|
||||||
|
# Such as #aqua, #ghostwhite.
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#126
|
||||||
def method_missing(method_name, *args); end
|
def method_missing(method_name, *args); end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#96
|
||||||
def red; end
|
def red; end
|
||||||
|
|
||||||
|
# Resets terminal to default colors/backgrounds.
|
||||||
|
#
|
||||||
|
# It shouldn't be needed to use this method because all methods
|
||||||
|
# append terminal reset code to end of string.
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#40
|
||||||
def reset; end
|
def reset; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#86
|
||||||
def strike; end
|
def strike; end
|
||||||
|
|
||||||
|
# Turns on underline decoration for this text.
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#66
|
||||||
def underline; end
|
def underline; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#120
|
||||||
def white; end
|
def white; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#104
|
||||||
def yellow; end
|
def yellow; end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#134
|
||||||
def respond_to_missing?(method_name, *args); end
|
def respond_to_missing?(method_name, *args); end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#140
|
||||||
def wrap_with_sgr(codes); end
|
def wrap_with_sgr(codes); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/presenter.rb#9
|
||||||
Rainbow::Presenter::TERM_EFFECTS = T.let(T.unsafe(nil), Hash)
|
Rainbow::Presenter::TERM_EFFECTS = T.let(T.unsafe(nil), Hash)
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/string_utils.rb#4
|
||||||
class Rainbow::StringUtils
|
class Rainbow::StringUtils
|
||||||
class << self
|
class << self
|
||||||
|
# source://rainbow//lib/rainbow/string_utils.rb#17
|
||||||
def uncolor(string); end
|
def uncolor(string); end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/string_utils.rb#5
|
||||||
def wrap_with_sgr(string, codes); end
|
def wrap_with_sgr(string, codes); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/wrapper.rb#7
|
||||||
class Rainbow::Wrapper
|
class Rainbow::Wrapper
|
||||||
|
# @return [Wrapper] a new instance of Wrapper
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/wrapper.rb#10
|
||||||
def initialize(enabled = T.unsafe(nil)); end
|
def initialize(enabled = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Returns the value of attribute enabled.
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/wrapper.rb#8
|
||||||
def enabled; end
|
def enabled; end
|
||||||
|
|
||||||
|
# Sets the attribute enabled
|
||||||
|
#
|
||||||
|
# @param value the value to set the attribute enabled to.
|
||||||
|
#
|
||||||
|
# source://rainbow//lib/rainbow/wrapper.rb#8
|
||||||
def enabled=(_arg0); end
|
def enabled=(_arg0); end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/wrapper.rb#14
|
||||||
def wrap(string); end
|
def wrap(string); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/x11_color_names.rb#4
|
||||||
module Rainbow::X11ColorNames; end
|
module Rainbow::X11ColorNames; end
|
||||||
|
|
||||||
|
# source://rainbow//lib/rainbow/x11_color_names.rb#5
|
||||||
Rainbow::X11ColorNames::NAMES = T.let(T.unsafe(nil), Hash)
|
Rainbow::X11ColorNames::NAMES = T.let(T.unsafe(nil), Hash)
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
204
Library/Homebrew/sorbet/rbi/gems/rdiscount@2.2.7.1.rbi
generated
204
Library/Homebrew/sorbet/rbi/gems/rdiscount@2.2.7.1.rbi
generated
@ -4,50 +4,254 @@
|
|||||||
# This is an autogenerated file for types exported from the `rdiscount` gem.
|
# This is an autogenerated file for types exported from the `rdiscount` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem rdiscount`.
|
# Please instead update this file by running `bin/tapioca gem rdiscount`.
|
||||||
|
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#117
|
||||||
Markdown = RDiscount
|
Markdown = RDiscount
|
||||||
|
|
||||||
|
# Discount is an implementation of John Gruber's Markdown markup
|
||||||
|
# language in C. It implements all of the language as described in
|
||||||
|
# {Markdown Syntax}[http://daringfireball.net/projects/markdown/syntax]
|
||||||
|
# and passes the Markdown 1.0 test suite. The RDiscount extension makes
|
||||||
|
# the Discount processor available via a Ruby C Extension library.
|
||||||
|
#
|
||||||
|
# == Usage
|
||||||
|
#
|
||||||
|
# RDiscount implements the basic protocol popularized by RedCloth and adopted
|
||||||
|
# by BlueCloth:
|
||||||
|
# require 'rdiscount'
|
||||||
|
# markdown = RDiscount.new("Hello World!")
|
||||||
|
# puts markdown.to_html
|
||||||
|
#
|
||||||
|
# == Replacing BlueCloth
|
||||||
|
#
|
||||||
|
# Inject RDiscount into your BlueCloth-using code by replacing your bluecloth
|
||||||
|
# require statements with the following:
|
||||||
|
# begin
|
||||||
|
# require 'rdiscount'
|
||||||
|
# BlueCloth = RDiscount
|
||||||
|
# rescue LoadError
|
||||||
|
# require 'bluecloth'
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#26
|
||||||
class RDiscount
|
class RDiscount
|
||||||
|
# Create a RDiscount Markdown processor. The +text+ argument
|
||||||
|
# should be a string containing Markdown text. Additional arguments may be
|
||||||
|
# supplied to set various processing options:
|
||||||
|
#
|
||||||
|
# * <tt>:smart</tt> - Enable SmartyPants processing.
|
||||||
|
# * <tt>:filter_styles</tt> - Do not output <tt><style></tt> tags.
|
||||||
|
# * <tt>:filter_html</tt> - Do not output any raw HTML tags included in
|
||||||
|
# the source text.
|
||||||
|
# * <tt>:fold_lines</tt> - RedCloth compatible line folding (not used).
|
||||||
|
# * <tt>:footnotes</tt> - PHP markdown extra-style footnotes.
|
||||||
|
# * <tt>:generate_toc</tt> - Enable Table Of Contents generation
|
||||||
|
# * <tt>:no_image</tt> - Do not output any <tt><img></tt> tags.
|
||||||
|
# * <tt>:no_links</tt> - Do not output any <tt><a></tt> tags.
|
||||||
|
# * <tt>:no_tables</tt> - Do not output any tables.
|
||||||
|
# * <tt>:strict</tt> - Disable superscript and relaxed emphasis processing.
|
||||||
|
# * <tt>:autolink</tt> - Greedily urlify links.
|
||||||
|
# * <tt>:safelink</tt> - Do not make links for unknown URL types.
|
||||||
|
# * <tt>:no_pseudo_protocols</tt> - Do not process pseudo-protocols.
|
||||||
|
# * <tt>:no_superscript</tt> - Disable superscript processing.
|
||||||
|
# * <tt>:no_strikethrough</tt> - Disable strikethrough processing.
|
||||||
|
# * <tt>:latex</tt> - Keep LaTeX inside $$ intact.
|
||||||
|
# * <tt>:explicitlist</tt> - Don't merge adjacent list into a single list.
|
||||||
|
#
|
||||||
|
# @return [RDiscount] a new instance of RDiscount
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#110
|
||||||
def initialize(text, *extensions); end
|
def initialize(text, *extensions); end
|
||||||
|
|
||||||
|
# Convert URL in links, even if they aren't encased in <tt><></tt>
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#64
|
||||||
def autolink; end
|
def autolink; end
|
||||||
|
|
||||||
|
# Convert URL in links, even if they aren't encased in <tt><></tt>
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#64
|
||||||
def autolink=(_arg0); end
|
def autolink=(_arg0); end
|
||||||
|
|
||||||
|
# Don't merge adjacent list into a single list.
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#82
|
||||||
def explicitlist; end
|
def explicitlist; end
|
||||||
|
|
||||||
|
# Don't merge adjacent list into a single list.
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#82
|
||||||
def explicitlist=(_arg0); end
|
def explicitlist=(_arg0); end
|
||||||
|
|
||||||
|
# Do not output any raw HTML included in the source text.
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#39
|
||||||
def filter_html; end
|
def filter_html; end
|
||||||
|
|
||||||
|
# Do not output any raw HTML included in the source text.
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#39
|
||||||
def filter_html=(_arg0); end
|
def filter_html=(_arg0); end
|
||||||
|
|
||||||
|
# Do not output <tt><style></tt> tags included in the source text.
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#36
|
||||||
def filter_styles; end
|
def filter_styles; end
|
||||||
|
|
||||||
|
# Do not output <tt><style></tt> tags included in the source text.
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#36
|
||||||
def filter_styles=(_arg0); end
|
def filter_styles=(_arg0); end
|
||||||
|
|
||||||
|
# RedCloth compatible line folding -- not used for Markdown but
|
||||||
|
# included for compatibility.
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#43
|
||||||
def fold_lines; end
|
def fold_lines; end
|
||||||
|
|
||||||
|
# RedCloth compatible line folding -- not used for Markdown but
|
||||||
|
# included for compatibility.
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#43
|
||||||
def fold_lines=(_arg0); end
|
def fold_lines=(_arg0); end
|
||||||
|
|
||||||
|
# Enable php markdown extra-style footnotes
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#46
|
||||||
def footnotes; end
|
def footnotes; end
|
||||||
|
|
||||||
|
# Enable php markdown extra-style footnotes
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#46
|
||||||
def footnotes=(_arg0); end
|
def footnotes=(_arg0); end
|
||||||
|
|
||||||
|
# Enable Table Of Contents generation
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#49
|
||||||
def generate_toc; end
|
def generate_toc; end
|
||||||
|
|
||||||
|
# Enable Table Of Contents generation
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#49
|
||||||
def generate_toc=(_arg0); end
|
def generate_toc=(_arg0); end
|
||||||
|
|
||||||
|
# Keep LaTeX inside $$ intact.
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#79
|
||||||
def latex; end
|
def latex; end
|
||||||
|
|
||||||
|
# Keep LaTeX inside $$ intact.
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#79
|
||||||
def latex=(_arg0); end
|
def latex=(_arg0); end
|
||||||
|
|
||||||
|
# Not documented: run in markdown 1 compat mode (only used for MarkdownTest1.0)
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#85
|
||||||
def md1compat; end
|
def md1compat; end
|
||||||
|
|
||||||
|
# Not documented: run in markdown 1 compat mode (only used for MarkdownTest1.0)
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#85
|
||||||
def md1compat=(_arg0); end
|
def md1compat=(_arg0); end
|
||||||
|
|
||||||
|
# Do not process <tt>![]</tt> and remove <tt><img></tt> tags from the output.
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#52
|
||||||
def no_image; end
|
def no_image; end
|
||||||
|
|
||||||
|
# Do not process <tt>![]</tt> and remove <tt><img></tt> tags from the output.
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#52
|
||||||
def no_image=(_arg0); end
|
def no_image=(_arg0); end
|
||||||
|
|
||||||
|
# Do not process <tt>[]</tt> and remove <tt><a></tt> tags from the output.
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#55
|
||||||
def no_links; end
|
def no_links; end
|
||||||
|
|
||||||
|
# Do not process <tt>[]</tt> and remove <tt><a></tt> tags from the output.
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#55
|
||||||
def no_links=(_arg0); end
|
def no_links=(_arg0); end
|
||||||
|
|
||||||
|
# Do not process pseudo-protocols like <tt>[](id:name)</tt>
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#70
|
||||||
def no_pseudo_protocols; end
|
def no_pseudo_protocols; end
|
||||||
|
|
||||||
|
# Do not process pseudo-protocols like <tt>[](id:name)</tt>
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#70
|
||||||
def no_pseudo_protocols=(_arg0); end
|
def no_pseudo_protocols=(_arg0); end
|
||||||
|
|
||||||
|
# Disable strikethrough processing.
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#76
|
||||||
def no_strikethrough; end
|
def no_strikethrough; end
|
||||||
|
|
||||||
|
# Disable strikethrough processing.
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#76
|
||||||
def no_strikethrough=(_arg0); end
|
def no_strikethrough=(_arg0); end
|
||||||
|
|
||||||
|
# Disable superscript processing.
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#73
|
||||||
def no_superscript; end
|
def no_superscript; end
|
||||||
|
|
||||||
|
# Disable superscript processing.
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#73
|
||||||
def no_superscript=(_arg0); end
|
def no_superscript=(_arg0); end
|
||||||
|
|
||||||
|
# Do not process tables
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#58
|
||||||
def no_tables; end
|
def no_tables; end
|
||||||
|
|
||||||
|
# Do not process tables
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#58
|
||||||
def no_tables=(_arg0); end
|
def no_tables=(_arg0); end
|
||||||
|
|
||||||
|
# Don't make hyperlinks from <tt>[][]</tt> links that have unknown URL types.
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#67
|
||||||
def safelink; end
|
def safelink; end
|
||||||
|
|
||||||
|
# Don't make hyperlinks from <tt>[][]</tt> links that have unknown URL types.
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#67
|
||||||
def safelink=(_arg0); end
|
def safelink=(_arg0); end
|
||||||
|
|
||||||
|
# Set true to have smarty-like quote translation performed.
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#33
|
||||||
def smart; end
|
def smart; end
|
||||||
|
|
||||||
|
# Set true to have smarty-like quote translation performed.
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#33
|
||||||
def smart=(_arg0); end
|
def smart=(_arg0); end
|
||||||
|
|
||||||
|
# Disable superscript and relaxed emphasis processing.
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#61
|
||||||
def strict; end
|
def strict; end
|
||||||
|
|
||||||
|
# Disable superscript and relaxed emphasis processing.
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#61
|
||||||
def strict=(_arg0); end
|
def strict=(_arg0); end
|
||||||
|
|
||||||
|
# Original Markdown formatted text.
|
||||||
|
#
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#30
|
||||||
def text; end
|
def text; end
|
||||||
|
|
||||||
def to_html(*_arg0); end
|
def to_html(*_arg0); end
|
||||||
def toc_content(*_arg0); end
|
def toc_content(*_arg0); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://rdiscount//lib/rdiscount.rb#27
|
||||||
RDiscount::VERSION = T.let(T.unsafe(nil), String)
|
RDiscount::VERSION = T.let(T.unsafe(nil), String)
|
||||||
|
|||||||
2445
Library/Homebrew/sorbet/rbi/gems/regexp_parser@2.8.3.rbi
generated
2445
Library/Homebrew/sorbet/rbi/gems/regexp_parser@2.8.3.rbi
generated
File diff suppressed because it is too large
Load Diff
4088
Library/Homebrew/sorbet/rbi/gems/rexml@3.2.6.rbi
generated
4088
Library/Homebrew/sorbet/rbi/gems/rexml@3.2.6.rbi
generated
File diff suppressed because it is too large
Load Diff
565
Library/Homebrew/sorbet/rbi/gems/ronn@0.7.3.rbi
generated
565
Library/Homebrew/sorbet/rbi/gems/ronn@0.7.3.rbi
generated
@ -4,191 +4,756 @@
|
|||||||
# This is an autogenerated file for types exported from the `ronn` gem.
|
# This is an autogenerated file for types exported from the `ronn` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem ronn`.
|
# Please instead update this file by running `bin/tapioca gem ronn`.
|
||||||
|
|
||||||
|
# Ronn is a humane text format and toolchain for authoring manpages (and
|
||||||
|
# things that appear as manpages from a distance). Use it to build /
|
||||||
|
# install standard UNIX roff(7) formatted manpages or to generate
|
||||||
|
# beautiful HTML manpages.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn.rb#5
|
||||||
module Ronn
|
module Ronn
|
||||||
class << self
|
class << self
|
||||||
|
# Create a new Ronn::Document for the given ronn file. See
|
||||||
|
# Ronn::Document.new for usage information.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn.rb#14
|
||||||
def new(filename, attributes = T.unsafe(nil), &block); end
|
def new(filename, attributes = T.unsafe(nil), &block); end
|
||||||
|
|
||||||
|
# truthy when this a release (\d.\d.\d) version.
|
||||||
|
#
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn.rb#19
|
||||||
def release?; end
|
def release?; end
|
||||||
|
|
||||||
|
# revision: 0.6.6-5-gdacd74b
|
||||||
|
# revision: 0.6.25
|
||||||
|
#
|
||||||
|
# The string revision as reported by: git-describe --tags. This is just the
|
||||||
|
# tag name when a tag references the HEAD commit (0.6.25). When the HEAD
|
||||||
|
# commit is not tagged, this is a "<tag>-<offset>-<sha1>" string:
|
||||||
|
# <tag> - closest tag name
|
||||||
|
# <offset> - number of commits ahead of <tag>
|
||||||
|
# <sha1> - 7c short SHA1 for HEAD
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn.rb#43
|
||||||
def revision; end
|
def revision; end
|
||||||
|
|
||||||
|
# version: 0.6.11
|
||||||
|
#
|
||||||
|
# A semantic version number based on the git revision. The third element
|
||||||
|
# of the version is incremented by the commit offset, such that version
|
||||||
|
# 0.6.6-5-gdacd74b => 0.6.11
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn.rb#28
|
||||||
def version; end
|
def version; end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# The Document class can be used to load and inspect a ronn document
|
||||||
|
# and to convert a ronn document into other formats, like roff or
|
||||||
|
# HTML.
|
||||||
|
#
|
||||||
|
# Ronn files may optionally follow the naming convention:
|
||||||
|
# "<name>.<section>.ronn". The <name> and <section> are used in
|
||||||
|
# generated documentation unless overridden by the information
|
||||||
|
# extracted from the document's name section.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#18
|
||||||
class Ronn::Document
|
class Ronn::Document
|
||||||
include ::Ronn::Utils
|
include ::Ronn::Utils
|
||||||
|
|
||||||
|
# Create a Ronn::Document given a path or with the data returned by
|
||||||
|
# calling the block. The document is loaded and preprocessed before
|
||||||
|
# the intialize method returns. The attributes hash may contain values
|
||||||
|
# for any writeable attributes defined on this class.
|
||||||
|
#
|
||||||
|
# @return [Document] a new instance of Document
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#64
|
||||||
def initialize(path = T.unsafe(nil), attributes = T.unsafe(nil), &block); end
|
def initialize(path = T.unsafe(nil), attributes = T.unsafe(nil), &block); end
|
||||||
|
|
||||||
|
# Generate a file basename of the form "<name>.<section>.<type>"
|
||||||
|
# for the given file extension. Uses the name and section from
|
||||||
|
# the source file path but falls back on the name and section
|
||||||
|
# defined in the document.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#91
|
||||||
def basename(type = T.unsafe(nil)); end
|
def basename(type = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Convert the document to :roff, :html, or :html_fragment and
|
||||||
|
# return the result as a string.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#220
|
||||||
def convert(format); end
|
def convert(format); end
|
||||||
|
|
||||||
|
# The raw input data, read from path or stream and unmodified.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#26
|
||||||
def data; end
|
def data; end
|
||||||
|
|
||||||
|
# The date the man page was published. If not set explicitly,
|
||||||
|
# this is the file's modified time or, if no file is given,
|
||||||
|
# the current time.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#166
|
||||||
def date; end
|
def date; end
|
||||||
|
|
||||||
|
# The date the document was published; center displayed in
|
||||||
|
# the document footer.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#55
|
||||||
def date=(_arg0); end
|
def date=(_arg0); end
|
||||||
|
|
||||||
|
# A Hpricot::Document for the manual content fragment.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#214
|
||||||
def html; end
|
def html; end
|
||||||
|
|
||||||
|
# The index used to resolve man and file references.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#29
|
||||||
def index; end
|
def index; end
|
||||||
|
|
||||||
|
# The index used to resolve man and file references.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#29
|
||||||
def index=(_arg0); end
|
def index=(_arg0); end
|
||||||
|
|
||||||
|
# The manual this document belongs to; center displayed in
|
||||||
|
# the header.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#47
|
||||||
def manual; end
|
def manual; end
|
||||||
|
|
||||||
|
# The manual this document belongs to; center displayed in
|
||||||
|
# the header.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#47
|
||||||
def manual=(_arg0); end
|
def manual=(_arg0); end
|
||||||
|
|
||||||
|
# Preprocessed markdown input text.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#209
|
||||||
def markdown; end
|
def markdown; end
|
||||||
|
|
||||||
|
# Returns the manual page name based first on the document's
|
||||||
|
# contents and then on the path name.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#123
|
||||||
def name; end
|
def name; end
|
||||||
|
|
||||||
|
# The man pages name: usually a single word name of
|
||||||
|
# a program or filename; displayed along with the section in
|
||||||
|
# the left and right portions of the header as well as the bottom
|
||||||
|
# right section of the footer.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#35
|
||||||
def name=(_arg0); end
|
def name=(_arg0); end
|
||||||
|
|
||||||
|
# Truthful when the name was extracted from the name section
|
||||||
|
# of the document.
|
||||||
|
#
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#129
|
||||||
def name?; end
|
def name?; end
|
||||||
|
|
||||||
|
# The name of the group, organization, or individual responsible
|
||||||
|
# for this document; displayed in the left portion of the footer.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#51
|
||||||
def organization; end
|
def organization; end
|
||||||
|
|
||||||
|
# The name of the group, organization, or individual responsible
|
||||||
|
# for this document; displayed in the left portion of the footer.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#51
|
||||||
def organization=(_arg0); end
|
def organization=(_arg0); end
|
||||||
|
|
||||||
|
# Path to the Ronn document. This may be '-' or nil when the Ronn::Document
|
||||||
|
# object is created with a stream.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#23
|
||||||
def path; end
|
def path; end
|
||||||
|
|
||||||
|
# Construct a path for a file near the source file. Uses the
|
||||||
|
# Document#basename method to generate the basename part and
|
||||||
|
# appends it to the dirname of the source document.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#100
|
||||||
def path_for(type = T.unsafe(nil)); end
|
def path_for(type = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Returns the <name> part of the path, or nil when no path is
|
||||||
|
# available. This is used as the manual page name when the
|
||||||
|
# file contents do not include a name section.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#111
|
||||||
def path_name; end
|
def path_name; end
|
||||||
|
|
||||||
|
# Returns the <section> part of the path, or nil when
|
||||||
|
# no path is available.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#117
|
||||||
def path_section; end
|
def path_section; end
|
||||||
|
|
||||||
|
# The name used to reference this manual.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#146
|
||||||
def reference_name; end
|
def reference_name; end
|
||||||
|
|
||||||
|
# Returns the manual page section based first on the document's
|
||||||
|
# contents and then on the path name.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#135
|
||||||
def section; end
|
def section; end
|
||||||
|
|
||||||
|
# The man page's section: a string whose first character
|
||||||
|
# is numeric; displayed in parenthesis along with the name.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#39
|
||||||
def section=(_arg0); end
|
def section=(_arg0); end
|
||||||
|
|
||||||
|
# True when the section number was extracted from the name
|
||||||
|
# section of the document.
|
||||||
|
#
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#141
|
||||||
def section?; end
|
def section?; end
|
||||||
|
|
||||||
|
# Retrieve a list of top-level section headings in the document and return
|
||||||
|
# as an array of +[id, text]+ tuples, where +id+ is the element's generated
|
||||||
|
# id and +text+ is the inner text of the heading element.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#175
|
||||||
def section_heads; end
|
def section_heads; end
|
||||||
|
|
||||||
|
# Sniff the document header and extract basic document metadata. Return a
|
||||||
|
# tuple of the form: [name, section, description], where missing information
|
||||||
|
# is represented by nil and any element may be missing.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#190
|
||||||
def sniff; end
|
def sniff; end
|
||||||
|
|
||||||
|
# Array of style modules to apply to the document.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#58
|
||||||
def styles; end
|
def styles; end
|
||||||
|
|
||||||
|
# Styles to insert in the generated HTML output. This is a simple Array of
|
||||||
|
# string module names or file paths.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#183
|
||||||
def styles=(styles); end
|
def styles=(styles); end
|
||||||
|
|
||||||
|
# Single sentence description of the thing being described
|
||||||
|
# by this man page; displayed in the NAME section.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#43
|
||||||
def tagline; end
|
def tagline; end
|
||||||
|
|
||||||
|
# Single sentence description of the thing being described
|
||||||
|
# by this man page; displayed in the NAME section.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#43
|
||||||
def tagline=(_arg0); end
|
def tagline=(_arg0); end
|
||||||
|
|
||||||
|
# The document's title when no name section was defined. When a name section
|
||||||
|
# exists, this value is nil.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#159
|
||||||
def title; end
|
def title; end
|
||||||
|
|
||||||
|
# Truthful when the document started with an h1 but did not follow
|
||||||
|
# the "<name>(<sect>) -- <tagline>" convention. We assume this is some kind
|
||||||
|
# of custom title.
|
||||||
|
#
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#153
|
||||||
def title?; end
|
def title?; end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/document.rb#263
|
||||||
def to_h; end
|
def to_h; end
|
||||||
|
|
||||||
|
# Convert the document to HTML and return the result as a string.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#234
|
||||||
def to_html; end
|
def to_html; end
|
||||||
|
|
||||||
|
# Convert the document to HTML and return the result
|
||||||
|
# as a string. The HTML does not include <html>, <head>,
|
||||||
|
# or <style> tags.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#250
|
||||||
def to_html_fragment(wrap_class = T.unsafe(nil)); end
|
def to_html_fragment(wrap_class = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/document.rb#273
|
||||||
def to_json; end
|
def to_json; end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/document.rb#259
|
||||||
def to_markdown; end
|
def to_markdown; end
|
||||||
|
|
||||||
|
# Convert the document to roff and return the result as a string.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#225
|
||||||
def to_roff; end
|
def to_roff; end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/document.rb#268
|
||||||
def to_yaml; end
|
def to_yaml; end
|
||||||
|
|
||||||
|
# Retrieve a list of top-level section headings in the document and return
|
||||||
|
# as an array of +[id, text]+ tuples, where +id+ is the element's generated
|
||||||
|
# id and +text+ is the inner text of the heading element.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#175
|
||||||
def toc; end
|
def toc; end
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
||||||
|
# Perform angle quote (<THESE>) post filtering.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#355
|
||||||
def html_filter_angle_quotes; end
|
def html_filter_angle_quotes; end
|
||||||
|
|
||||||
|
# Add a 'data-bare-link' attribute to hyperlinks
|
||||||
|
# whose text labels are the same as their href URLs.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#423
|
||||||
def html_filter_annotate_bare_links; end
|
def html_filter_annotate_bare_links; end
|
||||||
|
|
||||||
|
# Convert special format unordered lists to definition lists.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#369
|
||||||
def html_filter_definition_lists; end
|
def html_filter_definition_lists; end
|
||||||
|
|
||||||
|
# Add URL anchors to all HTML heading elements.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#415
|
||||||
def html_filter_heading_anchors; end
|
def html_filter_heading_anchors; end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/document.rb#395
|
||||||
def html_filter_inject_name_section; end
|
def html_filter_inject_name_section; end
|
||||||
|
|
||||||
|
# Convert text of the form "name(section)" to a hyperlink. The URL is
|
||||||
|
# obtaiend from the index.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#439
|
||||||
def html_filter_manual_reference_links; end
|
def html_filter_manual_reference_links; end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/document.rb#289
|
||||||
def input_html; end
|
def input_html; end
|
||||||
|
|
||||||
|
# Convert <WORD> to <var>WORD</var> but only if WORD isn't an HTML tag.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#341
|
||||||
def markdown_filter_angle_quotes(markdown); end
|
def markdown_filter_angle_quotes(markdown); end
|
||||||
|
|
||||||
|
# Add [id]: #ANCHOR elements to the markdown source text for all sections.
|
||||||
|
# This lets us use the [SECTION-REF][] syntax
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#328
|
||||||
def markdown_filter_heading_anchors(markdown); end
|
def markdown_filter_heading_anchors(markdown); end
|
||||||
|
|
||||||
|
# Appends all index links to the end of the document as Markdown reference
|
||||||
|
# links. This lets us use [foo(3)][] syntax to link to index entries.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#320
|
||||||
def markdown_filter_link_index(markdown); end
|
def markdown_filter_link_index(markdown); end
|
||||||
|
|
||||||
|
# Parse the document and extract the name, section, and tagline from its
|
||||||
|
# contents. This is called while the object is being initialized.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/document.rb#284
|
||||||
def preprocess!; end
|
def preprocess!; end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/document.rb#304
|
||||||
def process_html!; end
|
def process_html!; end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/document.rb#298
|
||||||
def process_markdown!; end
|
def process_markdown!; end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/document.rb#293
|
||||||
def strip_heading(html); end
|
def strip_heading(html); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Maintains a list of links / references to manuals and other resources.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/index.rb#6
|
||||||
class Ronn::Index
|
class Ronn::Index
|
||||||
include ::Enumerable
|
include ::Enumerable
|
||||||
|
|
||||||
|
# @return [Index] a new instance of Index
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/index.rb#30
|
||||||
def initialize(path, &bk); end
|
def initialize(path, &bk); end
|
||||||
|
|
||||||
|
# @raise [ArgumentError]
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/index.rb#89
|
||||||
def <<(path); end
|
def <<(path); end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/index.rb#81
|
||||||
def [](name); end
|
def [](name); end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/index.rb#102
|
||||||
def add_manual(manual); end
|
def add_manual(manual); end
|
||||||
|
|
||||||
|
# Enumerable and friends
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/index.rb#61
|
||||||
def each(&bk); end
|
def each(&bk); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/index.rb#77
|
||||||
def empty?; end
|
def empty?; end
|
||||||
|
|
||||||
|
# Determine whether the index file exists.
|
||||||
|
#
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/index.rb#43
|
||||||
def exist?; end
|
def exist?; end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/index.rb#69
|
||||||
def first; end
|
def first; end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/index.rb#73
|
||||||
def last; end
|
def last; end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/index.rb#107
|
||||||
def manual(path); end
|
def manual(path); end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/index.rb#111
|
||||||
def manuals; end
|
def manuals; end
|
||||||
|
|
||||||
|
# Returns the value of attribute path.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/index.rb#9
|
||||||
def path; end
|
def path; end
|
||||||
|
|
||||||
|
# Load index data from a string.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/index.rb#48
|
||||||
def read!(data); end
|
def read!(data); end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/index.rb#85
|
||||||
def reference(name, path); end
|
def reference(name, path); end
|
||||||
|
|
||||||
|
# Returns the value of attribute references.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/index.rb#10
|
||||||
def references; end
|
def references; end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/index.rb#131
|
||||||
def relative_to_index(path); end
|
def relative_to_index(path); end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/index.rb#65
|
||||||
def size; end
|
def size; end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/index.rb#123
|
||||||
def to_a; end
|
def to_a; end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/index.rb#127
|
||||||
def to_h; end
|
def to_h; end
|
||||||
|
|
||||||
|
# Converting
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/index.rb#119
|
||||||
def to_text; end
|
def to_text; end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# Retrieve an Index for <path>, where <path> is a directory or normal
|
||||||
|
# file. The index is loaded from the corresponding index.txt file if
|
||||||
|
# one exists.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/index.rb#15
|
||||||
def [](path); end
|
def [](path); end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/index.rb#20
|
||||||
def index_path_for_file(file); end
|
def index_path_for_file(file); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# value generated by: rake rev
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn.rb#48
|
||||||
Ronn::REV = T.let(T.unsafe(nil), String)
|
Ronn::REV = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# An individual index reference. A reference can point to one of a few types
|
||||||
|
# of locations:
|
||||||
|
#
|
||||||
|
# - URLs: "http://man.cx/crontab(5)"
|
||||||
|
# - Relative paths to ronn manuals: "crontab.5.ronn"
|
||||||
|
#
|
||||||
|
# The #url method should be used to obtain the href value for HTML.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/index.rb#145
|
||||||
class Ronn::Reference
|
class Ronn::Reference
|
||||||
|
# @return [Reference] a new instance of Reference
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/index.rb#149
|
||||||
def initialize(index, name, location); end
|
def initialize(index, name, location); end
|
||||||
|
|
||||||
|
# Returns the value of attribute location.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/index.rb#147
|
||||||
def location; end
|
def location; end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/index.rb#155
|
||||||
def manual?; end
|
def manual?; end
|
||||||
|
|
||||||
|
# Returns the value of attribute name.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/index.rb#146
|
||||||
def name; end
|
def name; end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/index.rb#179
|
||||||
def path; end
|
def path; end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/index.rb#167
|
||||||
def relative?; end
|
def relative?; end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/index.rb#163
|
||||||
def remote?; end
|
def remote?; end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/index.rb#159
|
||||||
def ronn?; end
|
def ronn?; end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/index.rb#171
|
||||||
def url; end
|
def url; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/roff.rb#5
|
||||||
class Ronn::RoffFilter
|
class Ronn::RoffFilter
|
||||||
include ::Ronn::Utils
|
include ::Ronn::Utils
|
||||||
|
|
||||||
|
# Convert Ronn HTML to roff.
|
||||||
|
#
|
||||||
|
# @return [RoffFilter] a new instance of RoffFilter
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/roff.rb#9
|
||||||
def initialize(html, name, section, tagline, manual = T.unsafe(nil), version = T.unsafe(nil), date = T.unsafe(nil)); end
|
def initialize(html, name, section, tagline, manual = T.unsafe(nil), version = T.unsafe(nil), date = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/roff.rb#19
|
||||||
def to_s; end
|
def to_s; end
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/roff.rb#80
|
||||||
def block_filter(node); end
|
def block_filter(node); end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/roff.rb#276
|
||||||
def comment(text); end
|
def comment(text); end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/roff.rb#241
|
||||||
def escape(text); end
|
def escape(text); end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/roff.rb#162
|
||||||
def inline_filter(node); end
|
def inline_filter(node); end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/roff.rb#221
|
||||||
def macro(name, value = T.unsafe(nil)); end
|
def macro(name, value = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/roff.rb#47
|
||||||
def normalize_whitespace!(node); end
|
def normalize_whitespace!(node); end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/roff.rb#24
|
||||||
def previous(node); end
|
def previous(node); end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/roff.rb#254
|
||||||
def quote(text); end
|
def quote(text); end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/roff.rb#39
|
||||||
def remove_extraneous_elements!(doc); end
|
def remove_extraneous_elements!(doc); end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/roff.rb#32
|
||||||
def title_heading(name, section, tagline, manual, version, date); end
|
def title_heading(name, section, tagline, manual, version, date); end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/roff.rb#280
|
||||||
def warn(text, *args); end
|
def warn(text, *args); end
|
||||||
|
|
||||||
|
# write text to output buffer
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/roff.rb#259
|
||||||
def write(text); end
|
def write(text); end
|
||||||
|
|
||||||
|
# write text to output buffer on a new line.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/roff.rb#270
|
||||||
def writeln(text); end
|
def writeln(text); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/roff.rb#225
|
||||||
Ronn::RoffFilter::HTML_ROFF_ENTITIES = T.let(T.unsafe(nil), Hash)
|
Ronn::RoffFilter::HTML_ROFF_ENTITIES = T.let(T.unsafe(nil), Hash)
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/template.rb#4
|
||||||
class Ronn::Template < ::Mustache
|
class Ronn::Template < ::Mustache
|
||||||
|
# @return [Template] a new instance of Template
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/template.rb#8
|
||||||
def initialize(document, style_path = T.unsafe(nil)); end
|
def initialize(document, style_path = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/template.rb#45
|
||||||
def custom_title?; end
|
def custom_title?; end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/template.rb#69
|
||||||
def date; end
|
def date; end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/template.rb#57
|
||||||
def generator; end
|
def generator; end
|
||||||
|
|
||||||
|
# TEMPLATE CSS LOADING
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/template.rb#144
|
||||||
def inline_stylesheet(path, media = T.unsafe(nil)); end
|
def inline_stylesheet(path, media = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/template.rb#61
|
||||||
def manual; end
|
def manual; end
|
||||||
|
|
||||||
|
# Array of style names for which no file could be found.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/template.rb#134
|
||||||
def missing_styles; end
|
def missing_styles; end
|
||||||
|
|
||||||
|
# Basic document attributes
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/template.rb#20
|
||||||
def name; end
|
def name; end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/template.rb#33
|
||||||
def name_and_section?; end
|
def name_and_section?; end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/template.rb#65
|
||||||
def organization; end
|
def organization; end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/template.rb#49
|
||||||
def page_name; end
|
def page_name; end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/template.rb#162
|
||||||
def remote_stylesheet(name, media = T.unsafe(nil)); end
|
def remote_stylesheet(name, media = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/template.rb#13
|
||||||
def render(template = T.unsafe(nil)); end
|
def render(template = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/template.rb#24
|
||||||
def section; end
|
def section; end
|
||||||
|
|
||||||
|
# Section TOCs
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/template.rb#80
|
||||||
def section_heads; end
|
def section_heads; end
|
||||||
|
|
||||||
|
# Array of expanded stylesheet file names. If a file cannot be found, the
|
||||||
|
# resulting array will include nil elements in positions corresponding to
|
||||||
|
# the stylesheets array.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/template.rb#123
|
||||||
def style_files; end
|
def style_files; end
|
||||||
|
|
||||||
|
# Returns the value of attribute style_path.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/template.rb#118
|
||||||
def style_path; end
|
def style_path; end
|
||||||
|
|
||||||
|
# Sets the attribute style_path
|
||||||
|
#
|
||||||
|
# @param value the value to set the attribute style_path to.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/template.rb#118
|
||||||
def style_path=(_arg0); end
|
def style_path=(_arg0); end
|
||||||
|
|
||||||
|
# Array of style module names as given on the command line.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/template.rb#93
|
||||||
def styles; end
|
def styles; end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/template.rb#167
|
||||||
def stylesheet(path, media = T.unsafe(nil)); end
|
def stylesheet(path, media = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# All embedded stylesheets.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/template.rb#112
|
||||||
def stylesheet_tags; end
|
def stylesheet_tags; end
|
||||||
|
|
||||||
|
# Array of stylesheet info hashes.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/template.rb#98
|
||||||
def stylesheets; end
|
def stylesheets; end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/template.rb#28
|
||||||
def tagline; end
|
def tagline; end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/template.rb#28
|
||||||
def tagline?; end
|
def tagline?; end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/template.rb#37
|
||||||
def title; end
|
def title; end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/template.rb#73
|
||||||
def wrap_class_name; end
|
def wrap_class_name; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn/utils.rb#5
|
||||||
module Ronn::Utils
|
module Ronn::Utils
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/utils.rb#31
|
||||||
def block_element?(name); end
|
def block_element?(name); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/utils.rb#47
|
||||||
def child_of?(node, tag); end
|
def child_of?(node, tag); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/utils.rb#39
|
||||||
def empty_element?(name); end
|
def empty_element?(name); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/utils.rb#43
|
||||||
def html_element?(name); end
|
def html_element?(name); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/utils.rb#35
|
||||||
def inline_element?(name); end
|
def inline_element?(name); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# All HTML 4 elements and some that are in common use.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/utils.rb#8
|
||||||
Ronn::Utils::HTML = T.let(T.unsafe(nil), Set)
|
Ronn::Utils::HTML = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
# Block elements.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/utils.rb#18
|
||||||
Ronn::Utils::HTML_BLOCK = T.let(T.unsafe(nil), Set)
|
Ronn::Utils::HTML_BLOCK = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
# Elements that don't have a closing tag.
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/utils.rb#29
|
||||||
Ronn::Utils::HTML_EMPTY = T.let(T.unsafe(nil), Set)
|
Ronn::Utils::HTML_EMPTY = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
# Inline elements
|
||||||
|
#
|
||||||
|
# source://ronn//lib/ronn/utils.rb#26
|
||||||
Ronn::Utils::HTML_INLINE = T.let(T.unsafe(nil), Set)
|
Ronn::Utils::HTML_INLINE = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
# source://ronn//lib/ronn.rb#49
|
||||||
Ronn::VERSION = T.let(T.unsafe(nil), String)
|
Ronn::VERSION = T.let(T.unsafe(nil), String)
|
||||||
|
|||||||
8462
Library/Homebrew/sorbet/rbi/gems/rspec-core@3.12.2.rbi
generated
8462
Library/Homebrew/sorbet/rbi/gems/rspec-core@3.12.2.rbi
generated
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -4,60 +4,127 @@
|
|||||||
# This is an autogenerated file for types exported from the `rspec-github` gem.
|
# This is an autogenerated file for types exported from the `rspec-github` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem rspec-github`.
|
# Please instead update this file by running `bin/tapioca gem rspec-github`.
|
||||||
|
|
||||||
|
# source://rspec-github//lib/rspec/github/version.rb#3
|
||||||
module RSpec
|
module RSpec
|
||||||
extend ::RSpec::Support::Warnings
|
|
||||||
extend ::RSpec::Core::Warnings
|
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#70
|
||||||
def clear_examples; end
|
def clear_examples; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#85
|
||||||
def configuration; end
|
def configuration; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#49
|
||||||
def configuration=(_arg0); end
|
def configuration=(_arg0); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#97
|
||||||
def configure; end
|
def configure; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#194
|
||||||
def const_missing(name); end
|
def const_missing(name); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def context(*args, &example_group_block); end
|
def context(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#122
|
||||||
def current_example; end
|
def current_example; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#128
|
||||||
def current_example=(example); end
|
def current_example=(example); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#154
|
||||||
def current_scope; end
|
def current_scope; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#134
|
||||||
def current_scope=(scope); end
|
def current_scope=(scope); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def describe(*args, &example_group_block); end
|
def describe(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def example_group(*args, &example_group_block); end
|
def example_group(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def fcontext(*args, &example_group_block); end
|
def fcontext(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def fdescribe(*args, &example_group_block); end
|
def fdescribe(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#58
|
||||||
def reset; end
|
def reset; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/shared_example_group.rb#110
|
||||||
def shared_context(name, *args, &block); end
|
def shared_context(name, *args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/shared_example_group.rb#110
|
||||||
def shared_examples(name, *args, &block); end
|
def shared_examples(name, *args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/shared_example_group.rb#110
|
||||||
def shared_examples_for(name, *args, &block); end
|
def shared_examples_for(name, *args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#160
|
||||||
def world; end
|
def world; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#49
|
||||||
def world=(_arg0); end
|
def world=(_arg0); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def xcontext(*args, &example_group_block); end
|
def xcontext(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def xdescribe(*args, &example_group_block); end
|
def xdescribe(*args, &example_group_block); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://rspec-github//lib/rspec/github/version.rb#4
|
||||||
module RSpec::Github; end
|
module RSpec::Github; end
|
||||||
|
|
||||||
|
# source://rspec-github//lib/rspec/github/formatter.rb#9
|
||||||
class RSpec::Github::Formatter < ::RSpec::Core::Formatters::BaseFormatter
|
class RSpec::Github::Formatter < ::RSpec::Core::Formatters::BaseFormatter
|
||||||
|
# source://rspec-github//lib/rspec/github/formatter.rb#12
|
||||||
def example_failed(failure); end
|
def example_failed(failure); end
|
||||||
|
|
||||||
|
# source://rspec-github//lib/rspec/github/formatter.rb#18
|
||||||
def example_pending(pending); end
|
def example_pending(pending); end
|
||||||
|
|
||||||
|
# source://rspec-github//lib/rspec/github/formatter.rb#24
|
||||||
def seed(notification); end
|
def seed(notification); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://rspec-github//lib/rspec/github/notification_decorator.rb#5
|
||||||
class RSpec::Github::NotificationDecorator
|
class RSpec::Github::NotificationDecorator
|
||||||
|
# @return [NotificationDecorator] a new instance of NotificationDecorator
|
||||||
|
#
|
||||||
|
# source://rspec-github//lib/rspec/github/notification_decorator.rb#13
|
||||||
def initialize(notification); end
|
def initialize(notification); end
|
||||||
|
|
||||||
|
# source://rspec-github//lib/rspec/github/notification_decorator.rb#21
|
||||||
def annotation; end
|
def annotation; end
|
||||||
|
|
||||||
|
# source://rspec-github//lib/rspec/github/notification_decorator.rb#17
|
||||||
def line; end
|
def line; end
|
||||||
|
|
||||||
|
# source://rspec-github//lib/rspec/github/notification_decorator.rb#26
|
||||||
def path; end
|
def path; end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://rspec-github//lib/rspec/github/notification_decorator.rb#33
|
||||||
def example; end
|
def example; end
|
||||||
|
|
||||||
|
# source://rspec-github//lib/rspec/github/notification_decorator.rb#37
|
||||||
def message; end
|
def message; end
|
||||||
|
|
||||||
|
# source://rspec-github//lib/rspec/github/notification_decorator.rb#45
|
||||||
def raw_path; end
|
def raw_path; end
|
||||||
|
|
||||||
|
# source://rspec-github//lib/rspec/github/notification_decorator.rb#49
|
||||||
def workspace; end
|
def workspace; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# See https://github.community/t/set-output-truncates-multiline-strings/16852/3.
|
||||||
|
#
|
||||||
|
# source://rspec-github//lib/rspec/github/notification_decorator.rb#7
|
||||||
RSpec::Github::NotificationDecorator::ESCAPE_MAP = T.let(T.unsafe(nil), Hash)
|
RSpec::Github::NotificationDecorator::ESCAPE_MAP = T.let(T.unsafe(nil), Hash)
|
||||||
|
|
||||||
|
# source://rspec-github//lib/rspec/github/version.rb#5
|
||||||
RSpec::Github::VERSION = T.let(T.unsafe(nil), String)
|
RSpec::Github::VERSION = T.let(T.unsafe(nil), String)
|
||||||
RSpec::MODULES_TO_AUTOLOAD = T.let(T.unsafe(nil), Hash)
|
|
||||||
RSpec::SharedContext = RSpec::Core::SharedContext
|
|
||||||
|
|||||||
164
Library/Homebrew/sorbet/rbi/gems/rspec-its@1.3.0.rbi
generated
164
Library/Homebrew/sorbet/rbi/gems/rspec-its@1.3.0.rbi
generated
@ -4,40 +4,194 @@
|
|||||||
# This is an autogenerated file for types exported from the `rspec-its` gem.
|
# This is an autogenerated file for types exported from the `rspec-its` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem rspec-its`.
|
# Please instead update this file by running `bin/tapioca gem rspec-its`.
|
||||||
|
|
||||||
|
# source://rspec-its//lib/rspec/its/version.rb#1
|
||||||
module RSpec
|
module RSpec
|
||||||
extend ::RSpec::Support::Warnings
|
|
||||||
extend ::RSpec::Core::Warnings
|
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#70
|
||||||
def clear_examples; end
|
def clear_examples; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#85
|
||||||
def configuration; end
|
def configuration; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#49
|
||||||
def configuration=(_arg0); end
|
def configuration=(_arg0); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#97
|
||||||
def configure; end
|
def configure; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#194
|
||||||
def const_missing(name); end
|
def const_missing(name); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def context(*args, &example_group_block); end
|
def context(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#122
|
||||||
def current_example; end
|
def current_example; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#128
|
||||||
def current_example=(example); end
|
def current_example=(example); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#154
|
||||||
def current_scope; end
|
def current_scope; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#134
|
||||||
def current_scope=(scope); end
|
def current_scope=(scope); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def describe(*args, &example_group_block); end
|
def describe(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def example_group(*args, &example_group_block); end
|
def example_group(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def fcontext(*args, &example_group_block); end
|
def fcontext(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def fdescribe(*args, &example_group_block); end
|
def fdescribe(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#58
|
||||||
def reset; end
|
def reset; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/shared_example_group.rb#110
|
||||||
def shared_context(name, *args, &block); end
|
def shared_context(name, *args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/shared_example_group.rb#110
|
||||||
def shared_examples(name, *args, &block); end
|
def shared_examples(name, *args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/shared_example_group.rb#110
|
||||||
def shared_examples_for(name, *args, &block); end
|
def shared_examples_for(name, *args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#160
|
||||||
def world; end
|
def world; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#49
|
||||||
def world=(_arg0); end
|
def world=(_arg0); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def xcontext(*args, &example_group_block); end
|
def xcontext(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def xdescribe(*args, &example_group_block); end
|
def xdescribe(*args, &example_group_block); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
module RSpec::Core::SharedContext
|
||||||
|
include ::RSpec::Its
|
||||||
|
end
|
||||||
|
|
||||||
|
# source://rspec-its//lib/rspec/its/version.rb#2
|
||||||
module RSpec::Its
|
module RSpec::Its
|
||||||
|
# Creates a nested example group named by the submitted `attribute`,
|
||||||
|
# and then generates an example using the submitted block.
|
||||||
|
#
|
||||||
|
# The attribute can be a `Symbol` or a `String`. Given a `String`
|
||||||
|
# with dots, the result is as though you concatenated that `String`
|
||||||
|
# onto the subject in an expression.
|
||||||
|
#
|
||||||
|
# When the subject is a `Hash`, you can refer to the Hash keys by
|
||||||
|
# specifying a `Symbol` or `String` in an array.
|
||||||
|
#
|
||||||
|
# With an implicit subject, `is_expected` can be used as an alternative
|
||||||
|
# to `should` (e.g. for one-liner use). An `are_expected` alias is also
|
||||||
|
# supplied.
|
||||||
|
#
|
||||||
|
# With an implicit subject, `will` can be used as an alternative
|
||||||
|
# to `expect { subject.attribute }.to matcher` (e.g. for one-liner use).
|
||||||
|
#
|
||||||
|
# With an implicit subject, `will_not` can be used as an alternative
|
||||||
|
# to `expect { subject.attribute }.to_not matcher` (e.g. for one-liner use).
|
||||||
|
#
|
||||||
|
# You can pass more than one argument on the `its` block to add
|
||||||
|
# some metadata to the generated example
|
||||||
|
#
|
||||||
|
# Note that this method does not modify `subject` in any way, so if you
|
||||||
|
# refer to `subject` in `let` or `before` blocks, you're still
|
||||||
|
# referring to the outer subject.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
#
|
||||||
|
# describe Person do
|
||||||
|
# subject { Person.new }
|
||||||
|
# before { subject.age = 25 }
|
||||||
|
# its(:age) { should eq(25) }
|
||||||
|
# end
|
||||||
|
# @example
|
||||||
|
#
|
||||||
|
# describe Person do
|
||||||
|
# subject do
|
||||||
|
# Person.new.tap do |person|
|
||||||
|
# person.phone_numbers << "555-1212"
|
||||||
|
# end
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# its("phone_numbers.first") { should eq("555-1212") }
|
||||||
|
# end
|
||||||
|
# @example
|
||||||
|
#
|
||||||
|
# describe "a configuration Hash" do
|
||||||
|
# subject do
|
||||||
|
# { :max_users => 3,
|
||||||
|
# 'admin' => :all_permissions.
|
||||||
|
# 'john_doe' => {:permissions => [:read, :write]}}
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# its([:max_users]) { should eq(3) }
|
||||||
|
# its(['admin']) { should eq(:all_permissions) }
|
||||||
|
# its(['john_doe', :permissions]) { should eq([:read, :write]) }
|
||||||
|
#
|
||||||
|
# # You can still access its regular methods this way:
|
||||||
|
# its(:keys) { should include(:max_users) }
|
||||||
|
# its(:count) { should eq(2) }
|
||||||
|
# end
|
||||||
|
# @example
|
||||||
|
#
|
||||||
|
# describe Array do
|
||||||
|
# its(:size) { is_expected.to eq(0) }
|
||||||
|
# end
|
||||||
|
# @example
|
||||||
|
#
|
||||||
|
# describe Array do
|
||||||
|
# its(:foo) { will raise_error(NoMethodError) }
|
||||||
|
# end
|
||||||
|
# @example
|
||||||
|
#
|
||||||
|
# describe Array do
|
||||||
|
# its(:size) { will_not raise_error }
|
||||||
|
# end
|
||||||
|
# @example
|
||||||
|
#
|
||||||
|
# # This ...
|
||||||
|
# describe Array do
|
||||||
|
# its(:size, :focus) { should eq(0) }
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# # ... generates the same runtime structure as this:
|
||||||
|
# describe Array do
|
||||||
|
# describe "size" do
|
||||||
|
# it "should eq(0)", :focus do
|
||||||
|
# subject.size.should eq(0)
|
||||||
|
# end
|
||||||
|
# end
|
||||||
|
# end
|
||||||
|
# @example
|
||||||
|
#
|
||||||
|
# # This ...
|
||||||
|
# describe Array do
|
||||||
|
# its(:size) { should eq(0) }
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# # ... generates the same runtime structure as this:
|
||||||
|
# describe Array do
|
||||||
|
# describe "size" do
|
||||||
|
# it "should eq(0)" do
|
||||||
|
# subject.size.should eq(0)
|
||||||
|
# end
|
||||||
|
# end
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# source://rspec-its//lib/rspec/its.rb#121
|
||||||
def its(attribute, *options, &block); end
|
def its(attribute, *options, &block); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://rspec-its//lib/rspec/its/version.rb#3
|
||||||
RSpec::Its::VERSION = T.let(T.unsafe(nil), String)
|
RSpec::Its::VERSION = T.let(T.unsafe(nil), String)
|
||||||
RSpec::MODULES_TO_AUTOLOAD = T.let(T.unsafe(nil), Hash)
|
|
||||||
RSpec::SharedContext = RSpec::Core::SharedContext
|
|
||||||
|
|||||||
3904
Library/Homebrew/sorbet/rbi/gems/rspec-mocks@3.12.6.rbi
generated
3904
Library/Homebrew/sorbet/rbi/gems/rspec-mocks@3.12.6.rbi
generated
File diff suppressed because it is too large
Load Diff
462
Library/Homebrew/sorbet/rbi/gems/rspec-retry@0.6.2.rbi
generated
462
Library/Homebrew/sorbet/rbi/gems/rspec-retry@0.6.2.rbi
generated
@ -4,281 +4,703 @@
|
|||||||
# This is an autogenerated file for types exported from the `rspec-retry` gem.
|
# This is an autogenerated file for types exported from the `rspec-retry` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem rspec-retry`.
|
# Please instead update this file by running `bin/tapioca gem rspec-retry`.
|
||||||
|
|
||||||
|
# source://rspec-retry//lib/rspec/retry/version.rb#1
|
||||||
module RSpec
|
module RSpec
|
||||||
extend ::RSpec::Support::Warnings
|
|
||||||
extend ::RSpec::Core::Warnings
|
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#70
|
||||||
def clear_examples; end
|
def clear_examples; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#85
|
||||||
def configuration; end
|
def configuration; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#49
|
||||||
def configuration=(_arg0); end
|
def configuration=(_arg0); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#97
|
||||||
def configure; end
|
def configure; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#194
|
||||||
def const_missing(name); end
|
def const_missing(name); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def context(*args, &example_group_block); end
|
def context(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#122
|
||||||
def current_example; end
|
def current_example; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#128
|
||||||
def current_example=(example); end
|
def current_example=(example); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#154
|
||||||
def current_scope; end
|
def current_scope; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#134
|
||||||
def current_scope=(scope); end
|
def current_scope=(scope); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def describe(*args, &example_group_block); end
|
def describe(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def example_group(*args, &example_group_block); end
|
def example_group(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def fcontext(*args, &example_group_block); end
|
def fcontext(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def fdescribe(*args, &example_group_block); end
|
def fdescribe(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#58
|
||||||
def reset; end
|
def reset; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/shared_example_group.rb#110
|
||||||
def shared_context(name, *args, &block); end
|
def shared_context(name, *args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/shared_example_group.rb#110
|
||||||
def shared_examples(name, *args, &block); end
|
def shared_examples(name, *args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/shared_example_group.rb#110
|
||||||
def shared_examples_for(name, *args, &block); end
|
def shared_examples_for(name, *args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#160
|
||||||
def world; end
|
def world; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#49
|
||||||
def world=(_arg0); end
|
def world=(_arg0); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def xcontext(*args, &example_group_block); end
|
def xcontext(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def xdescribe(*args, &example_group_block); end
|
def xdescribe(*args, &example_group_block); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://rspec-retry//lib/rspec_ext/rspec_ext.rb#2
|
||||||
module RSpec::Core
|
module RSpec::Core
|
||||||
class << self
|
class << self
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#181
|
||||||
def path_to_executable; end
|
def path_to_executable; end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class RSpec::Core::DeprecationError < ::StandardError; end
|
# source://rspec-retry//lib/rspec_ext/rspec_ext.rb#3
|
||||||
|
|
||||||
class RSpec::Core::Example
|
class RSpec::Core::Example
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#186
|
||||||
def initialize(example_group_class, description, user_metadata, example_block = T.unsafe(nil)); end
|
def initialize(example_group_class, description, user_metadata, example_block = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Returns the value of attribute attempts.
|
||||||
|
#
|
||||||
|
# source://rspec-retry//lib/rspec_ext/rspec_ext.rb#4
|
||||||
def attempts; end
|
def attempts; end
|
||||||
|
|
||||||
|
# Sets the attribute attempts
|
||||||
|
#
|
||||||
|
# @param value the value to set the attribute attempts to.
|
||||||
|
#
|
||||||
|
# source://rspec-retry//lib/rspec_ext/rspec_ext.rb#4
|
||||||
def attempts=(_arg0); end
|
def attempts=(_arg0); end
|
||||||
|
|
||||||
|
# source://rspec-retry//lib/rspec_ext/rspec_ext.rb#6
|
||||||
def clear_exception; end
|
def clear_exception; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#174
|
||||||
def clock; end
|
def clock; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#174
|
||||||
def clock=(_arg0); end
|
def clock=(_arg0); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#76
|
||||||
def description; end
|
def description; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#388
|
||||||
def display_exception; end
|
def display_exception; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#396
|
||||||
def display_exception=(ex); end
|
def display_exception=(ex); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#132
|
||||||
def duplicate_with(metadata_overrides = T.unsafe(nil)); end
|
def duplicate_with(metadata_overrides = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#230
|
||||||
def example_group; end
|
def example_group; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#170
|
||||||
def example_group_instance; end
|
def example_group_instance; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#158
|
||||||
def exception; end
|
def exception; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#49
|
||||||
def execution_result; end
|
def execution_result; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#439
|
||||||
def fail_with_exception(reporter, exception); end
|
def fail_with_exception(reporter, exception); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#49
|
||||||
def file_path; end
|
def file_path; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#49
|
||||||
def full_description; end
|
def full_description; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#117
|
||||||
def id; end
|
def id; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#220
|
||||||
def inspect; end
|
def inspect; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#87
|
||||||
def inspect_output; end
|
def inspect_output; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#456
|
||||||
def instance_exec(*args, &block); end
|
def instance_exec(*args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#49
|
||||||
def location; end
|
def location; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#96
|
||||||
def location_rerun_argument; end
|
def location_rerun_argument; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#163
|
||||||
def metadata; end
|
def metadata; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#49
|
||||||
def pending; end
|
def pending; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#234
|
||||||
def pending?; end
|
def pending?; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#226
|
||||||
def reporter; end
|
def reporter; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#111
|
||||||
def rerun_argument; end
|
def rerun_argument; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#246
|
||||||
def run(example_group_instance, reporter); end
|
def run(example_group_instance, reporter); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#425
|
||||||
def set_aggregate_failures_exception(exception); end
|
def set_aggregate_failures_exception(exception); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#412
|
||||||
def set_exception(exception); end
|
def set_exception(exception); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#49
|
||||||
def skip; end
|
def skip; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#449
|
||||||
def skip_with_exception(reporter, exception); end
|
def skip_with_exception(reporter, exception); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#238
|
||||||
def skipped?; end
|
def skipped?; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#220
|
||||||
def to_s; end
|
def to_s; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#148
|
||||||
def update_inherited_metadata(updates); end
|
def update_inherited_metadata(updates); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#534
|
||||||
def assign_generated_description; end
|
def assign_generated_description; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#478
|
||||||
def finish(reporter); end
|
def finish(reporter); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#543
|
||||||
def generate_description; end
|
def generate_description; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#462
|
||||||
def hooks; end
|
def hooks; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#550
|
||||||
def location_description; end
|
def location_description; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#530
|
||||||
def mocks_need_verification?; end
|
def mocks_need_verification?; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#498
|
||||||
def record_finished(status, reporter); end
|
def record_finished(status, reporter); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#516
|
||||||
def run_after_example; end
|
def run_after_example; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#503
|
||||||
def run_before_example; end
|
def run_before_example; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#473
|
||||||
def start(reporter); end
|
def start(reporter); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#524
|
||||||
def verify_mocks; end
|
def verify_mocks; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#508
|
||||||
def with_around_and_singleton_context_hooks; end
|
def with_around_and_singleton_context_hooks; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#466
|
||||||
def with_around_example_hooks; end
|
def with_around_example_hooks; end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#48
|
||||||
def delegate_to_metadata(key); end
|
def delegate_to_metadata(key); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#122
|
||||||
def parse_id(id); end
|
def parse_id(id); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
RSpec::Core::Example::AllExceptionsExcludingDangerousOnesOnRubiesThatAllowIt = RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue
|
# source://rspec-retry//lib/rspec_ext/rspec_ext.rb#10
|
||||||
|
|
||||||
class RSpec::Core::Example::Procsy
|
class RSpec::Core::Example::Procsy
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#362
|
||||||
def initialize(example, &block); end
|
def initialize(example, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#346
|
||||||
def <<(*a, &b); end
|
def <<(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#346
|
||||||
|
def ==(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#346
|
||||||
def ===(*a, &b); end
|
def ===(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#346
|
||||||
def >>(*a, &b); end
|
def >>(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#346
|
||||||
def [](*a, &b); end
|
def [](*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#346
|
||||||
def arity(*a, &b); end
|
def arity(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-retry//lib/rspec_ext/rspec_ext.rb#15
|
||||||
def attempts; end
|
def attempts; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#346
|
||||||
def binding(*a, &b); end
|
def binding(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#350
|
||||||
def call(*args, &block); end
|
def call(*args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#339
|
||||||
def clock(*a, &b); end
|
def clock(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#339
|
||||||
def clock=(*a, &b); end
|
def clock=(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#346
|
||||||
def clone(*a, &b); end
|
def clone(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#346
|
||||||
def curry(*a, &b); end
|
def curry(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#339
|
||||||
def description(*a, &b); end
|
def description(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#346
|
||||||
def dup(*a, &b); end
|
def dup(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#339
|
||||||
def duplicate_with(*a, &b); end
|
def duplicate_with(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#346
|
||||||
|
def eql?(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#333
|
||||||
def example; end
|
def example; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#339
|
||||||
def example_group(*a, &b); end
|
def example_group(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#339
|
||||||
def example_group_instance(*a, &b); end
|
def example_group_instance(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#339
|
||||||
def exception(*a, &b); end
|
def exception(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#374
|
||||||
def executed?; end
|
def executed?; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#339
|
||||||
def execution_result(*a, &b); end
|
def execution_result(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#339
|
||||||
def file_path(*a, &b); end
|
def file_path(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#339
|
||||||
def full_description(*a, &b); end
|
def full_description(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#346
|
||||||
def hash(*a, &b); end
|
def hash(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#339
|
||||||
def id(*a, &b); end
|
def id(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#379
|
||||||
def inspect; end
|
def inspect; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#339
|
||||||
def inspect_output(*a, &b); end
|
def inspect_output(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#346
|
||||||
def lambda?(*a, &b); end
|
def lambda?(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#339
|
||||||
def location(*a, &b); end
|
def location(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#339
|
||||||
def location_rerun_argument(*a, &b); end
|
def location_rerun_argument(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#339
|
||||||
def metadata(*a, &b); end
|
def metadata(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#346
|
||||||
def parameters(*a, &b); end
|
def parameters(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#339
|
||||||
def pending(*a, &b); end
|
def pending(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#339
|
||||||
def pending?(*a, &b); end
|
def pending?(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#339
|
||||||
def reporter(*a, &b); end
|
def reporter(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#339
|
||||||
def rerun_argument(*a, &b); end
|
def rerun_argument(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#346
|
||||||
|
def ruby2_keywords(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#350
|
||||||
def run(*args, &block); end
|
def run(*args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-retry//lib/rspec_ext/rspec_ext.rb#11
|
||||||
def run_with_retry(opts = T.unsafe(nil)); end
|
def run_with_retry(opts = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#339
|
||||||
def skip(*a, &b); end
|
def skip(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#339
|
||||||
def skipped?(*a, &b); end
|
def skipped?(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#346
|
||||||
def source_location(*a, &b); end
|
def source_location(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#358
|
||||||
def to_proc; end
|
def to_proc; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#339
|
||||||
def update_inherited_metadata(*a, &b); end
|
def update_inherited_metadata(*a, &b); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#369
|
||||||
def wrap(&block); end
|
def wrap(&block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example.rb#346
|
||||||
def yield(*a, &b); end
|
def yield(*a, &b); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://rspec-retry//lib/rspec_ext/rspec_ext.rb#25
|
||||||
class RSpec::Core::ExampleGroup
|
class RSpec::Core::ExampleGroup
|
||||||
include ::RSpec::Core::MemoizedHelpers
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#707
|
||||||
include ::RSpec::Core::Pending
|
|
||||||
extend ::RSpec::Core::Hooks
|
|
||||||
extend ::RSpec::Core::MemoizedHelpers::ClassMethods
|
|
||||||
extend ::RSpec::Core::SharedExampleGroup
|
|
||||||
|
|
||||||
def initialize(inspect_output = T.unsafe(nil)); end
|
def initialize(inspect_output = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://rspec-retry//lib/rspec_ext/rspec_ext.rb#34
|
||||||
def clear_lets; end
|
def clear_lets; end
|
||||||
|
|
||||||
|
# source://rspec-retry//lib/rspec_ext/rspec_ext.rb#26
|
||||||
def clear_memoized; end
|
def clear_memoized; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#99
|
||||||
def described_class; end
|
def described_class; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#713
|
||||||
def inspect; end
|
def inspect; end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def method_missing(name, *args); end
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#758
|
||||||
|
def method_missing(name, *args, **_arg2); end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#367
|
||||||
def add_example(example); end
|
def add_example(example); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#529
|
||||||
def before_context_ivars; end
|
def before_context_ivars; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#466
|
||||||
def children; end
|
def children; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#247
|
||||||
def context(*args, &example_group_block); end
|
def context(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#542
|
||||||
def currently_executing_a_context_hook?; end
|
def currently_executing_a_context_hook?; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#667
|
||||||
def declaration_locations; end
|
def declaration_locations; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#246
|
||||||
def define_example_group_method(name, metadata = T.unsafe(nil)); end
|
def define_example_group_method(name, metadata = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#145
|
||||||
def define_example_method(name, extra_options = T.unsafe(nil)); end
|
def define_example_method(name, extra_options = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#317
|
||||||
def define_nested_shared_group_method(new_name, report_label = T.unsafe(nil)); end
|
def define_nested_shared_group_method(new_name, report_label = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#76
|
||||||
def delegate_to_metadata(*names); end
|
def delegate_to_metadata(*names); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#460
|
||||||
def descendant_filtered_examples; end
|
def descendant_filtered_examples; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#503
|
||||||
def descendants; end
|
def descendants; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#247
|
||||||
def describe(*args, &example_group_block); end
|
def describe(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#78
|
||||||
def described_class; end
|
def described_class; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#85
|
||||||
def description; end
|
def description; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#700
|
||||||
def each_instance_variable_for_example(group); end
|
def each_instance_variable_for_example(group); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#518
|
||||||
def ensure_example_groups_are_configured; end
|
def ensure_example_groups_are_configured; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#146
|
||||||
def example(*all_args, &block); end
|
def example(*all_args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#247
|
||||||
def example_group(*args, &example_group_block); end
|
def example_group(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#450
|
||||||
def examples; end
|
def examples; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#247
|
||||||
def fcontext(*args, &example_group_block); end
|
def fcontext(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#247
|
||||||
def fdescribe(*args, &example_group_block); end
|
def fdescribe(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#146
|
||||||
def fexample(*all_args, &block); end
|
def fexample(*all_args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#78
|
||||||
def file_path; end
|
def file_path; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#455
|
||||||
def filtered_examples; end
|
def filtered_examples; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#379
|
||||||
def find_and_eval_shared(label, name, inclusion_location, *args, &customization_block); end
|
def find_and_eval_shared(label, name, inclusion_location, *args, &customization_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#146
|
||||||
def fit(*all_args, &block); end
|
def fit(*all_args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#146
|
||||||
def focus(*all_args, &block); end
|
def focus(*all_args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#655
|
||||||
def for_filtered_examples(reporter, &block); end
|
def for_filtered_examples(reporter, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#146
|
||||||
def fspecify(*all_args, &block); end
|
def fspecify(*all_args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#675
|
||||||
def id; end
|
def id; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#40
|
||||||
def idempotently_define_singleton_method(name, &definition); end
|
def idempotently_define_singleton_method(name, &definition); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#343
|
||||||
def include_context(name, *args, &block); end
|
def include_context(name, *args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#353
|
||||||
def include_examples(name, *args, &block); end
|
def include_examples(name, *args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#146
|
||||||
def it(*all_args, &block); end
|
def it(*all_args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#318
|
||||||
def it_behaves_like(name, *args, &customization_block); end
|
def it_behaves_like(name, *args, &customization_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#318
|
||||||
def it_should_behave_like(name, *args, &customization_block); end
|
def it_should_behave_like(name, *args, &customization_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#78
|
||||||
def location; end
|
def location; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#51
|
||||||
def metadata; end
|
def metadata; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#485
|
||||||
def next_runnable_index_for(file); end
|
def next_runnable_index_for(file); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#625
|
||||||
def ordering_strategy; end
|
def ordering_strategy; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#508
|
||||||
def parent_groups; end
|
def parent_groups; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#146
|
||||||
def pending(*all_args, &block); end
|
def pending(*all_args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#373
|
||||||
def remove_example(example); end
|
def remove_example(example); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#359
|
||||||
def reset_memoized; end
|
def reset_memoized; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#599
|
||||||
def run(reporter = T.unsafe(nil)); end
|
def run(reporter = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#585
|
||||||
def run_after_context_hooks(example_group_instance); end
|
def run_after_context_hooks(example_group_instance); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#547
|
||||||
def run_before_context_hooks(example_group_instance); end
|
def run_before_context_hooks(example_group_instance); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#641
|
||||||
def run_examples(reporter); end
|
def run_examples(reporter); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#410
|
||||||
def set_it_up(description, args, registration_collection, &example_group_block); end
|
def set_it_up(description, args, registration_collection, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#685
|
||||||
def set_ivars(instance, ivars); end
|
def set_ivars(instance, ivars); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#146
|
||||||
def skip(*all_args, &block); end
|
def skip(*all_args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#146
|
||||||
def specify(*all_args, &block); end
|
def specify(*all_args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#534
|
||||||
def store_before_context_ivars(example_group_instance); end
|
def store_before_context_ivars(example_group_instance); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#395
|
||||||
def subclass(parent, description, args, registration_collection, &example_group_block); end
|
def subclass(parent, description, args, registration_collection, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#562
|
||||||
def superclass_before_context_ivars; end
|
def superclass_before_context_ivars; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#71
|
||||||
def superclass_metadata; end
|
def superclass_metadata; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#513
|
||||||
def top_level?; end
|
def top_level?; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#680
|
||||||
def top_level_description; end
|
def top_level_description; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#476
|
||||||
def traverse_tree_until(&block); end
|
def traverse_tree_until(&block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#727
|
||||||
def update_inherited_metadata(updates); end
|
def update_inherited_metadata(updates); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#61
|
||||||
def with_replaced_metadata(meta); end
|
def with_replaced_metadata(meta); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#247
|
||||||
def xcontext(*args, &example_group_block); end
|
def xcontext(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#247
|
||||||
def xdescribe(*args, &example_group_block); end
|
def xdescribe(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#146
|
||||||
def xexample(*all_args, &block); end
|
def xexample(*all_args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#146
|
||||||
def xit(*all_args, &block); end
|
def xit(*all_args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#146
|
||||||
def xspecify(*all_args, &block); end
|
def xspecify(*all_args, &block); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/example_group.rb#742
|
||||||
def method_missing(name, *args); end
|
def method_missing(name, *args); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
RSpec::Core::ExampleGroup::INSTANCE_VARIABLE_TO_IGNORE = T.let(T.unsafe(nil), Symbol)
|
# source://rspec-retry//lib/rspec/retry/version.rb#2
|
||||||
class RSpec::Core::ExampleGroup::WrongScopeError < ::NoMethodError; end
|
|
||||||
RSpec::Core::ExclusionRules = RSpec::Core::FilterRules
|
|
||||||
RSpec::MODULES_TO_AUTOLOAD = T.let(T.unsafe(nil), Hash)
|
|
||||||
|
|
||||||
class RSpec::Retry
|
class RSpec::Retry
|
||||||
|
# @return [Retry] a new instance of Retry
|
||||||
|
#
|
||||||
|
# source://rspec-retry//lib/rspec/retry.rb#44
|
||||||
def initialize(ex, opts = T.unsafe(nil)); end
|
def initialize(ex, opts = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://rspec-retry//lib/rspec/retry.rb#66
|
||||||
def attempts; end
|
def attempts; end
|
||||||
|
|
||||||
|
# source://rspec-retry//lib/rspec/retry.rb#70
|
||||||
def attempts=(val); end
|
def attempts=(val); end
|
||||||
|
|
||||||
|
# source://rspec-retry//lib/rspec/retry.rb#74
|
||||||
def clear_lets; end
|
def clear_lets; end
|
||||||
|
|
||||||
|
# Returns the value of attribute context.
|
||||||
|
#
|
||||||
|
# source://rspec-retry//lib/rspec/retry.rb#42
|
||||||
def context; end
|
def context; end
|
||||||
|
|
||||||
|
# source://rspec-retry//lib/rspec/retry.rb#50
|
||||||
def current_example; end
|
def current_example; end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://rspec-retry//lib/rspec/retry.rb#103
|
||||||
def display_try_failure_messages?; end
|
def display_try_failure_messages?; end
|
||||||
|
|
||||||
|
# Returns the value of attribute ex.
|
||||||
|
#
|
||||||
|
# source://rspec-retry//lib/rspec/retry.rb#42
|
||||||
def ex; end
|
def ex; end
|
||||||
|
|
||||||
|
# source://rspec-retry//lib/rspec/retry.rb#89
|
||||||
def exceptions_to_hard_fail; end
|
def exceptions_to_hard_fail; end
|
||||||
|
|
||||||
|
# source://rspec-retry//lib/rspec/retry.rb#94
|
||||||
def exceptions_to_retry; end
|
def exceptions_to_retry; end
|
||||||
|
|
||||||
|
# source://rspec-retry//lib/rspec/retry.rb#54
|
||||||
def retry_count; end
|
def retry_count; end
|
||||||
|
|
||||||
|
# source://rspec-retry//lib/rspec/retry.rb#107
|
||||||
def run; end
|
def run; end
|
||||||
|
|
||||||
|
# source://rspec-retry//lib/rspec/retry.rb#80
|
||||||
def sleep_interval; end
|
def sleep_interval; end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://rspec-retry//lib/rspec/retry.rb#99
|
||||||
def verbose_retry?; end
|
def verbose_retry?; end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://rspec-retry//lib/rspec/retry.rb#183
|
||||||
def exception_exists_in?(list, exception); end
|
def exception_exists_in?(list, exception); end
|
||||||
|
|
||||||
|
# borrowed from ActiveSupport::Inflector
|
||||||
|
#
|
||||||
|
# source://rspec-retry//lib/rspec/retry.rb#170
|
||||||
def ordinalize(number); end
|
def ordinalize(number); end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# source://rspec-retry//lib/rspec/retry.rb#7
|
||||||
def setup; end
|
def setup; end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://rspec-retry//lib/rspec/retry/version.rb#3
|
||||||
RSpec::Retry::VERSION = T.let(T.unsafe(nil), String)
|
RSpec::Retry::VERSION = T.let(T.unsafe(nil), String)
|
||||||
RSpec::SharedContext = RSpec::Core::SharedContext
|
|
||||||
|
|||||||
@ -4,90 +4,160 @@
|
|||||||
# This is an autogenerated file for types exported from the `rspec-sorbet` gem.
|
# This is an autogenerated file for types exported from the `rspec-sorbet` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem rspec-sorbet`.
|
# Please instead update this file by running `bin/tapioca gem rspec-sorbet`.
|
||||||
|
|
||||||
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#6
|
||||||
module RSpec
|
module RSpec
|
||||||
extend ::RSpec::Support::Warnings
|
|
||||||
extend ::RSpec::Core::Warnings
|
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#70
|
||||||
def clear_examples; end
|
def clear_examples; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#85
|
||||||
def configuration; end
|
def configuration; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#49
|
||||||
def configuration=(_arg0); end
|
def configuration=(_arg0); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#97
|
||||||
def configure; end
|
def configure; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#194
|
||||||
def const_missing(name); end
|
def const_missing(name); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def context(*args, &example_group_block); end
|
def context(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#122
|
||||||
def current_example; end
|
def current_example; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#128
|
||||||
def current_example=(example); end
|
def current_example=(example); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#154
|
||||||
def current_scope; end
|
def current_scope; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#134
|
||||||
def current_scope=(scope); end
|
def current_scope=(scope); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def describe(*args, &example_group_block); end
|
def describe(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def example_group(*args, &example_group_block); end
|
def example_group(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def fcontext(*args, &example_group_block); end
|
def fcontext(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def fdescribe(*args, &example_group_block); end
|
def fdescribe(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#58
|
||||||
def reset; end
|
def reset; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/shared_example_group.rb#110
|
||||||
def shared_context(name, *args, &block); end
|
def shared_context(name, *args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/shared_example_group.rb#110
|
||||||
def shared_examples(name, *args, &block); end
|
def shared_examples(name, *args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/shared_example_group.rb#110
|
||||||
def shared_examples_for(name, *args, &block); end
|
def shared_examples_for(name, *args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#160
|
||||||
def world; end
|
def world; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#49
|
||||||
def world=(_arg0); end
|
def world=(_arg0); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def xcontext(*args, &example_group_block); end
|
def xcontext(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def xdescribe(*args, &example_group_block); end
|
def xdescribe(*args, &example_group_block); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
RSpec::MODULES_TO_AUTOLOAD = T.let(T.unsafe(nil), Hash)
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#7
|
||||||
RSpec::SharedContext = RSpec::Core::SharedContext
|
|
||||||
|
|
||||||
module RSpec::Sorbet
|
module RSpec::Sorbet
|
||||||
extend ::RSpec::Sorbet::Doubles
|
extend ::RSpec::Sorbet::Doubles
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#8
|
||||||
module RSpec::Sorbet::Doubles
|
module RSpec::Sorbet::Doubles
|
||||||
requires_ancestor { Kernel }
|
requires_ancestor { Kernel }
|
||||||
|
|
||||||
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#15
|
||||||
sig { void }
|
sig { void }
|
||||||
def allow_doubles!; end
|
def allow_doubles!; end
|
||||||
|
|
||||||
def allow_instance_doubles!(*args, &blk); end
|
# @return [void]
|
||||||
|
#
|
||||||
|
# source://sorbet-runtime/0.5.11150/lib/types/private/methods/_methods.rb#255
|
||||||
|
def allow_instance_doubles!(*args, **_arg1, &blk); end
|
||||||
|
|
||||||
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#36
|
||||||
sig { params(clear_existing: T::Boolean).void }
|
sig { params(clear_existing: T::Boolean).void }
|
||||||
def reset!(clear_existing: T.unsafe(nil)); end
|
def reset!(clear_existing: T.unsafe(nil)); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#139
|
||||||
sig { params(signature: T.untyped, opts: T::Hash[T.untyped, T.untyped]).void }
|
sig { params(signature: T.untyped, opts: T::Hash[T.untyped, T.untyped]).void }
|
||||||
def call_validation_error_handler(signature, opts); end
|
def call_validation_error_handler(signature, opts); end
|
||||||
|
|
||||||
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#65
|
||||||
sig { returns(T.nilable(T::Boolean)) }
|
sig { returns(T.nilable(T::Boolean)) }
|
||||||
def configured; end
|
def configured; end
|
||||||
|
|
||||||
|
# @return [Boolean, nil]
|
||||||
|
#
|
||||||
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#65
|
||||||
def configured=(_arg0); end
|
def configured=(_arg0); end
|
||||||
|
|
||||||
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#127
|
||||||
sig { params(message: ::String).returns(T::Boolean) }
|
sig { params(message: ::String).returns(T::Boolean) }
|
||||||
def double_message_with_ellipsis?(message); end
|
def double_message_with_ellipsis?(message); end
|
||||||
|
|
||||||
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#62
|
||||||
sig { returns(T.nilable(T.proc.params(signature: T.untyped, opts: T::Hash[T.untyped, T.untyped]).void)) }
|
sig { returns(T.nilable(T.proc.params(signature: T.untyped, opts: T::Hash[T.untyped, T.untyped]).void)) }
|
||||||
def existing_call_validation_error_handler; end
|
def existing_call_validation_error_handler; end
|
||||||
|
|
||||||
|
# @return [T.proc.params(signature: T.untyped, opts: T::Hash[T.untyped, T.untyped]).void, nil]
|
||||||
|
#
|
||||||
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#62
|
||||||
def existing_call_validation_error_handler=(_arg0); end
|
def existing_call_validation_error_handler=(_arg0); end
|
||||||
|
|
||||||
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#59
|
||||||
sig { returns(T.nilable(T.proc.params(signature: ::Exception).void)) }
|
sig { returns(T.nilable(T.proc.params(signature: ::Exception).void)) }
|
||||||
def existing_inline_type_error_handler; end
|
def existing_inline_type_error_handler; end
|
||||||
|
|
||||||
|
# @return [T.proc.params(signature: Exception).void, nil]
|
||||||
|
#
|
||||||
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#59
|
||||||
def existing_inline_type_error_handler=(_arg0); end
|
def existing_inline_type_error_handler=(_arg0); end
|
||||||
|
|
||||||
|
# @raise [TypeError]
|
||||||
|
#
|
||||||
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#73
|
||||||
sig { params(signature: T.untyped, opts: T.untyped).void }
|
sig { params(signature: T.untyped, opts: T.untyped).void }
|
||||||
def handle_call_validation_error(signature, opts); end
|
def handle_call_validation_error(signature, opts); end
|
||||||
|
|
||||||
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#80
|
||||||
sig { params(error: ::Exception).void }
|
sig { params(error: ::Exception).void }
|
||||||
def inline_type_error_handler(error); end
|
def inline_type_error_handler(error); end
|
||||||
|
|
||||||
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#134
|
||||||
sig { params(message: ::String).returns(T::Boolean) }
|
sig { params(message: ::String).returns(T::Boolean) }
|
||||||
def typed_array_message?(message); end
|
def typed_array_message?(message); end
|
||||||
|
|
||||||
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#118
|
||||||
sig { params(message: ::String).returns(T::Boolean) }
|
sig { params(message: ::String).returns(T::Boolean) }
|
||||||
def unable_to_check_type_for_message?(message); end
|
def unable_to_check_type_for_message?(message); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#68
|
||||||
RSpec::Sorbet::Doubles::INLINE_DOUBLE_REGEX = T.let(T.unsafe(nil), Regexp)
|
RSpec::Sorbet::Doubles::INLINE_DOUBLE_REGEX = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#131
|
||||||
RSpec::Sorbet::Doubles::TYPED_ARRAY_MESSAGE = T.let(T.unsafe(nil), Regexp)
|
RSpec::Sorbet::Doubles::TYPED_ARRAY_MESSAGE = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
|
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#123
|
||||||
RSpec::Sorbet::Doubles::VERIFYING_DOUBLE_OR_DOUBLE = T.let(T.unsafe(nil), Regexp)
|
RSpec::Sorbet::Doubles::VERIFYING_DOUBLE_OR_DOUBLE = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|||||||
1150
Library/Homebrew/sorbet/rbi/gems/rspec-support@3.12.1.rbi
generated
1150
Library/Homebrew/sorbet/rbi/gems/rspec-support@3.12.1.rbi
generated
File diff suppressed because it is too large
Load Diff
52
Library/Homebrew/sorbet/rbi/gems/rspec@3.12.0.rbi
generated
52
Library/Homebrew/sorbet/rbi/gems/rspec@3.12.0.rbi
generated
@ -4,37 +4,79 @@
|
|||||||
# This is an autogenerated file for types exported from the `rspec` gem.
|
# This is an autogenerated file for types exported from the `rspec` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem rspec`.
|
# Please instead update this file by running `bin/tapioca gem rspec`.
|
||||||
|
|
||||||
|
# source://rspec//lib/rspec/version.rb#1
|
||||||
module RSpec
|
module RSpec
|
||||||
extend ::RSpec::Support::Warnings
|
|
||||||
extend ::RSpec::Core::Warnings
|
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#70
|
||||||
def clear_examples; end
|
def clear_examples; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#85
|
||||||
def configuration; end
|
def configuration; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#49
|
||||||
def configuration=(_arg0); end
|
def configuration=(_arg0); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#97
|
||||||
def configure; end
|
def configure; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#194
|
||||||
def const_missing(name); end
|
def const_missing(name); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def context(*args, &example_group_block); end
|
def context(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#122
|
||||||
def current_example; end
|
def current_example; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#128
|
||||||
def current_example=(example); end
|
def current_example=(example); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#154
|
||||||
def current_scope; end
|
def current_scope; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#134
|
||||||
def current_scope=(scope); end
|
def current_scope=(scope); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def describe(*args, &example_group_block); end
|
def describe(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def example_group(*args, &example_group_block); end
|
def example_group(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def fcontext(*args, &example_group_block); end
|
def fcontext(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def fdescribe(*args, &example_group_block); end
|
def fdescribe(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#58
|
||||||
def reset; end
|
def reset; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/shared_example_group.rb#110
|
||||||
def shared_context(name, *args, &block); end
|
def shared_context(name, *args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/shared_example_group.rb#110
|
||||||
def shared_examples(name, *args, &block); end
|
def shared_examples(name, *args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/shared_example_group.rb#110
|
||||||
def shared_examples_for(name, *args, &block); end
|
def shared_examples_for(name, *args, &block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#160
|
||||||
def world; end
|
def world; end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core.rb#49
|
||||||
def world=(_arg0); end
|
def world=(_arg0); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def xcontext(*args, &example_group_block); end
|
def xcontext(*args, &example_group_block); end
|
||||||
|
|
||||||
|
# source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
|
||||||
def xdescribe(*args, &example_group_block); end
|
def xdescribe(*args, &example_group_block); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
RSpec::MODULES_TO_AUTOLOAD = T.let(T.unsafe(nil), Hash)
|
# source://rspec//lib/rspec/version.rb#2
|
||||||
RSpec::SharedContext = RSpec::Core::SharedContext
|
|
||||||
module RSpec::Version; end
|
module RSpec::Version; end
|
||||||
|
|
||||||
|
# source://rspec//lib/rspec/version.rb#3
|
||||||
RSpec::Version::STRING = T.let(T.unsafe(nil), String)
|
RSpec::Version::STRING = T.let(T.unsafe(nil), String)
|
||||||
|
|||||||
@ -4,47 +4,140 @@
|
|||||||
# This is an autogenerated file for types exported from the `rspec_junit_formatter` gem.
|
# This is an autogenerated file for types exported from the `rspec_junit_formatter` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem rspec_junit_formatter`.
|
# Please instead update this file by running `bin/tapioca gem rspec_junit_formatter`.
|
||||||
|
|
||||||
|
# Dumps rspec results as a JUnit XML file.
|
||||||
|
# Based on XML schema: http://windyroad.org/dl/Open%20Source/JUnit.xsd
|
||||||
|
#
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter.rb#12
|
||||||
class RSpecJUnitFormatter < ::RSpec::Core::Formatters::BaseFormatter
|
class RSpecJUnitFormatter < ::RSpec::Core::Formatters::BaseFormatter
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#19
|
||||||
def dump_summary(notification); end
|
def dump_summary(notification); end
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#9
|
||||||
def start(notification); end
|
def start(notification); end
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#15
|
||||||
def stop(notification); end
|
def stop(notification); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#69
|
||||||
def classname_for(notification); end
|
def classname_for(notification); end
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#78
|
||||||
def description_for(notification); end
|
def description_for(notification); end
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#40
|
||||||
def duration; end
|
def duration; end
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#74
|
||||||
def duration_for(notification); end
|
def duration_for(notification); end
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#48
|
||||||
def error_count; end
|
def error_count; end
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter.rb#167
|
||||||
def escape(text); end
|
def escape(text); end
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#28
|
||||||
def example_count; end
|
def example_count; end
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#61
|
||||||
def example_group_file_path_for(notification); end
|
def example_group_file_path_for(notification); end
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#44
|
||||||
def examples; end
|
def examples; end
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#94
|
||||||
def exception_for(notification); end
|
def exception_for(notification); end
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#36
|
||||||
def failure_count; end
|
def failure_count; end
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#90
|
||||||
def failure_for(notification); end
|
def failure_for(notification); end
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#86
|
||||||
def failure_message_for(example); end
|
def failure_message_for(example); end
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#82
|
||||||
def failure_type_for(example); end
|
def failure_type_for(example); end
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#32
|
||||||
def pending_count; end
|
def pending_count; end
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#57
|
||||||
def result_of(notification); end
|
def result_of(notification); end
|
||||||
|
|
||||||
|
# Returns the value of attribute started.
|
||||||
|
#
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#26
|
||||||
def started; end
|
def started; end
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#141
|
||||||
def stderr_for(example_notification); end
|
def stderr_for(example_notification); end
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#137
|
||||||
def stdout_for(example_notification); end
|
def stdout_for(example_notification); end
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter.rb#175
|
||||||
def strip_diff_colors(string); end
|
def strip_diff_colors(string); end
|
||||||
|
|
||||||
|
# rspec makes it really difficult to swap in configuration temporarily due to
|
||||||
|
# the way it cascades defaults, command line arguments, and user
|
||||||
|
# configuration. This method makes sure configuration gets swapped in
|
||||||
|
# correctly, but also that the original state is definitely restored.
|
||||||
|
#
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#102
|
||||||
def swap_rspec_configuration(key, value); end
|
def swap_rspec_configuration(key, value); end
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#123
|
||||||
def without_color(&block); end
|
def without_color(&block); end
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter.rb#16
|
||||||
def xml_dump; end
|
def xml_dump; end
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter.rb#68
|
||||||
def xml_dump_example(example); end
|
def xml_dump_example(example); end
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter.rb#38
|
||||||
def xml_dump_examples; end
|
def xml_dump_examples; end
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter.rb#57
|
||||||
def xml_dump_failed(example); end
|
def xml_dump_failed(example); end
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter.rb#82
|
||||||
def xml_dump_output(example); end
|
def xml_dump_output(example); end
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter.rb#51
|
||||||
def xml_dump_pending(example); end
|
def xml_dump_pending(example); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Discouraged characters from https://www.w3.org/TR/xml/#charsets
|
||||||
|
# Plus special characters with well-known entity replacements
|
||||||
|
#
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter.rb#129
|
||||||
RSpecJUnitFormatter::DISCOURAGED_REGEXP = T.let(T.unsafe(nil), Regexp)
|
RSpecJUnitFormatter::DISCOURAGED_REGEXP = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
|
# Translate well-known entities, or use generic unicode hex entity
|
||||||
|
#
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter.rb#159
|
||||||
RSpecJUnitFormatter::DISCOURAGED_REPLACEMENTS = T.let(T.unsafe(nil), Hash)
|
RSpecJUnitFormatter::DISCOURAGED_REPLACEMENTS = T.let(T.unsafe(nil), Hash)
|
||||||
|
|
||||||
|
# Inversion of character range from https://www.w3.org/TR/xml/#charsets
|
||||||
|
#
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter.rb#97
|
||||||
RSpecJUnitFormatter::ILLEGAL_REGEXP = T.let(T.unsafe(nil), Regexp)
|
RSpecJUnitFormatter::ILLEGAL_REGEXP = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
|
# Replace illegals with a Ruby-like escape
|
||||||
|
#
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter.rb#109
|
||||||
RSpecJUnitFormatter::ILLEGAL_REPLACEMENT = T.let(T.unsafe(nil), Hash)
|
RSpecJUnitFormatter::ILLEGAL_REPLACEMENT = T.let(T.unsafe(nil), Hash)
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter.rb#172
|
||||||
RSpecJUnitFormatter::STRIP_DIFF_COLORS_BLOCK_REGEXP = T.let(T.unsafe(nil), Regexp)
|
RSpecJUnitFormatter::STRIP_DIFF_COLORS_BLOCK_REGEXP = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter.rb#173
|
||||||
RSpecJUnitFormatter::STRIP_DIFF_COLORS_CODES_REGEXP = T.let(T.unsafe(nil), Regexp)
|
RSpecJUnitFormatter::STRIP_DIFF_COLORS_CODES_REGEXP = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
|
# source://rspec_junit_formatter//lib/rspec_junit_formatter.rb#189
|
||||||
RspecJunitFormatter = RSpecJUnitFormatter
|
RspecJunitFormatter = RSpecJUnitFormatter
|
||||||
|
|||||||
5534
Library/Homebrew/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi
generated
5534
Library/Homebrew/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi
generated
File diff suppressed because it is too large
Load Diff
@ -1,210 +0,0 @@
|
|||||||
# typed: true
|
|
||||||
|
|
||||||
# DO NOT EDIT MANUALLY
|
|
||||||
# This is an autogenerated file for types exported from the `rubocop-capybara` gem.
|
|
||||||
# Please instead update this file by running `bin/tapioca gem rubocop-capybara`.
|
|
||||||
|
|
||||||
module RuboCop; end
|
|
||||||
module RuboCop::Cop; end
|
|
||||||
module RuboCop::Cop::Capybara; end
|
|
||||||
|
|
||||||
module RuboCop::Cop::Capybara::CapybaraHelp
|
|
||||||
private
|
|
||||||
|
|
||||||
def common_attributes?(selector); end
|
|
||||||
def include_option?(node, option); end
|
|
||||||
def replaceable_attributes?(attrs); end
|
|
||||||
def replaceable_element?(node, element, attrs); end
|
|
||||||
def replaceable_option?(node, locator, element); end
|
|
||||||
def replaceable_pseudo_class?(pseudo_class, locator); end
|
|
||||||
def replaceable_pseudo_class_not?(locator); end
|
|
||||||
def replaceable_pseudo_classes?(locator); end
|
|
||||||
def replaceable_to_link?(node, attrs); end
|
|
||||||
|
|
||||||
class << self
|
|
||||||
def common_attributes?(selector); end
|
|
||||||
def include_option?(node, option); end
|
|
||||||
def replaceable_attributes?(attrs); end
|
|
||||||
def replaceable_element?(node, element, attrs); end
|
|
||||||
def replaceable_option?(node, locator, element); end
|
|
||||||
def replaceable_pseudo_class?(pseudo_class, locator); end
|
|
||||||
def replaceable_pseudo_class_not?(locator); end
|
|
||||||
def replaceable_pseudo_classes?(locator); end
|
|
||||||
def replaceable_to_link?(node, attrs); end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Capybara::CapybaraHelp::COMMON_OPTIONS = T.let(T.unsafe(nil), Array)
|
|
||||||
RuboCop::Cop::Capybara::CapybaraHelp::SPECIFIC_OPTIONS = T.let(T.unsafe(nil), Hash)
|
|
||||||
RuboCop::Cop::Capybara::CapybaraHelp::SPECIFIC_PSEUDO_CLASSES = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
module RuboCop::Cop::Capybara::CssSelector
|
|
||||||
private
|
|
||||||
|
|
||||||
def attribute?(selector); end
|
|
||||||
def attributes(selector); end
|
|
||||||
def classes(selector); end
|
|
||||||
def id(selector); end
|
|
||||||
def id?(selector); end
|
|
||||||
def multiple_selectors?(selector); end
|
|
||||||
def normalize_value(value); end
|
|
||||||
def pseudo_classes(selector); end
|
|
||||||
|
|
||||||
class << self
|
|
||||||
def attribute?(selector); end
|
|
||||||
def attributes(selector); end
|
|
||||||
def classes(selector); end
|
|
||||||
def id(selector); end
|
|
||||||
def id?(selector); end
|
|
||||||
def multiple_selectors?(selector); end
|
|
||||||
def normalize_value(value); end
|
|
||||||
def pseudo_classes(selector); end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class RuboCop::Cop::Capybara::CurrentPathExpectation < ::RuboCop::Cop::Base
|
|
||||||
include ::RuboCop::Cop::RangeHelp
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def as_is_matcher(param0 = T.unsafe(nil)); end
|
|
||||||
def expectation_set_on_current_path(param0 = T.unsafe(nil)); end
|
|
||||||
def on_send(node); end
|
|
||||||
def regexp_node_matcher(param0 = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def add_argument_parentheses(corrector, arg_node); end
|
|
||||||
def add_ignore_query_options(corrector, node); end
|
|
||||||
def autocorrect(corrector, node); end
|
|
||||||
def convert_regexp_node_to_literal(corrector, matcher_node, regexp_node); end
|
|
||||||
def method_call_with_no_parentheses?(arg_node); end
|
|
||||||
def regexp_node_to_regexp_expr(regexp_node); end
|
|
||||||
def rewrite_expectation(corrector, node, to_symbol, matcher_node); end
|
|
||||||
|
|
||||||
class << self
|
|
||||||
def autocorrect_incompatible_with; end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Capybara::CurrentPathExpectation::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Capybara::CurrentPathExpectation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Capybara::MatchStyle < ::RuboCop::Cop::Base
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def on_send(node); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def message(node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Capybara::MatchStyle::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Capybara::MatchStyle::PREFERRED_METHOD = T.let(T.unsafe(nil), Hash)
|
|
||||||
RuboCop::Cop::Capybara::MatchStyle::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Capybara::NegationMatcher < ::RuboCop::Cop::Base
|
|
||||||
include ::RuboCop::Cop::ConfigurableEnforcedStyle
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def have_no?(param0 = T.unsafe(nil)); end
|
|
||||||
def not_to?(param0 = T.unsafe(nil)); end
|
|
||||||
def on_send(node); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def message(matcher); end
|
|
||||||
def offense?(node); end
|
|
||||||
def offense_range(node); end
|
|
||||||
def replaced_matcher(matcher); end
|
|
||||||
def replaced_runner; end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Capybara::NegationMatcher::CAPYBARA_MATCHERS = T.let(T.unsafe(nil), Array)
|
|
||||||
RuboCop::Cop::Capybara::NegationMatcher::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Capybara::NegationMatcher::NEGATIVE_MATCHERS = T.let(T.unsafe(nil), Set)
|
|
||||||
RuboCop::Cop::Capybara::NegationMatcher::POSITIVE_MATCHERS = T.let(T.unsafe(nil), Set)
|
|
||||||
RuboCop::Cop::Capybara::NegationMatcher::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Capybara::SpecificActions < ::RuboCop::Cop::Base
|
|
||||||
def click_on_selector(param0 = T.unsafe(nil)); end
|
|
||||||
def on_send(node); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def good_action(action); end
|
|
||||||
def last_selector(arg); end
|
|
||||||
def message(action, selector); end
|
|
||||||
def offense_range(node, receiver); end
|
|
||||||
def replaceable?(node, arg, action); end
|
|
||||||
def replaceable_attributes?(selector); end
|
|
||||||
def specific_action(selector); end
|
|
||||||
def supported_selector?(selector); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Capybara::SpecificActions::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Capybara::SpecificActions::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
RuboCop::Cop::Capybara::SpecificActions::SPECIFIC_ACTION = T.let(T.unsafe(nil), Hash)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Capybara::SpecificFinders < ::RuboCop::Cop::Base
|
|
||||||
include ::RuboCop::Cop::RangeHelp
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def class_options(param0); end
|
|
||||||
def find_argument(param0 = T.unsafe(nil)); end
|
|
||||||
def on_send(node); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def append_options(classes, options); end
|
|
||||||
def attribute?(arg); end
|
|
||||||
def autocorrect_classes(corrector, node, classes); end
|
|
||||||
def end_pos(node); end
|
|
||||||
def keyword_argument_class(classes); end
|
|
||||||
def offense_range(node); end
|
|
||||||
def on_attr(node, arg); end
|
|
||||||
def on_id(node, arg); end
|
|
||||||
def register_offense(node, id, classes = T.unsafe(nil)); end
|
|
||||||
def replaced_arguments(arg, id); end
|
|
||||||
def to_options(attrs); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Capybara::SpecificFinders::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Capybara::SpecificFinders::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Capybara::SpecificMatcher < ::RuboCop::Cop::Base
|
|
||||||
def first_argument(param0 = T.unsafe(nil)); end
|
|
||||||
def on_send(node); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def good_matcher(node, matcher); end
|
|
||||||
def message(node, matcher); end
|
|
||||||
def replaceable?(node, arg, matcher); end
|
|
||||||
def replaceable_attributes?(selector); end
|
|
||||||
def specific_matcher(arg); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Capybara::SpecificMatcher::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Capybara::SpecificMatcher::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
RuboCop::Cop::Capybara::SpecificMatcher::SPECIFIC_MATCHER = T.let(T.unsafe(nil), Hash)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Capybara::VisibilityMatcher < ::RuboCop::Cop::Base
|
|
||||||
def on_send(node); end
|
|
||||||
def visible_false?(param0 = T.unsafe(nil)); end
|
|
||||||
def visible_true?(param0 = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def capybara_matcher?(method_name); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Capybara::VisibilityMatcher::CAPYBARA_MATCHER_METHODS = T.let(T.unsafe(nil), Array)
|
|
||||||
RuboCop::Cop::Capybara::VisibilityMatcher::MSG_FALSE = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Capybara::VisibilityMatcher::MSG_TRUE = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Capybara::VisibilityMatcher::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
RuboCop::Cop::IgnoredMethods = RuboCop::Cop::AllowedMethods
|
|
||||||
RuboCop::Cop::IgnoredPattern = RuboCop::Cop::AllowedPattern
|
|
||||||
RuboCop::NodePattern = RuboCop::AST::NodePattern
|
|
||||||
RuboCop::ProcessedSource = RuboCop::AST::ProcessedSource
|
|
||||||
RuboCop::Token = RuboCop::AST::Token
|
|
||||||
1125
Library/Homebrew/sorbet/rbi/gems/rubocop-capybara@2.19.0.rbi
generated
Normal file
1125
Library/Homebrew/sorbet/rbi/gems/rubocop-capybara@2.19.0.rbi
generated
Normal file
File diff suppressed because it is too large
Load Diff
878
Library/Homebrew/sorbet/rbi/gems/rubocop-factory_bot@2.24.0.rbi
generated
Normal file
878
Library/Homebrew/sorbet/rbi/gems/rubocop-factory_bot@2.24.0.rbi
generated
Normal file
@ -0,0 +1,878 @@
|
|||||||
|
# typed: true
|
||||||
|
|
||||||
|
# DO NOT EDIT MANUALLY
|
||||||
|
# This is an autogenerated file for types exported from the `rubocop-factory_bot` gem.
|
||||||
|
# Please instead update this file by running `bin/tapioca gem rubocop-factory_bot`.
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/factory_bot/factory_bot.rb#3
|
||||||
|
module RuboCop; end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/mixin/configurable_explicit_only.rb#4
|
||||||
|
module RuboCop::Cop; end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/mixin/configurable_explicit_only.rb#5
|
||||||
|
module RuboCop::Cop::FactoryBot; end
|
||||||
|
|
||||||
|
# Use a consistent style to define associations.
|
||||||
|
#
|
||||||
|
# @example EnforcedStyle: implicit (default)
|
||||||
|
# # bad
|
||||||
|
# factory :post do
|
||||||
|
# association :user
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# # good
|
||||||
|
# factory :post do
|
||||||
|
# user
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# # bad
|
||||||
|
# factory :post do
|
||||||
|
# association :user, :author
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# # good
|
||||||
|
# factory :post do
|
||||||
|
# user factory: %i[user author]
|
||||||
|
# end
|
||||||
|
# @example EnforcedStyle: explicit
|
||||||
|
# # bad
|
||||||
|
# factory :post do
|
||||||
|
# user
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# # good
|
||||||
|
# factory :post do
|
||||||
|
# association :user
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# # bad
|
||||||
|
# factory :post do
|
||||||
|
# user factory: %i[user author]
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# # good
|
||||||
|
# factory :post do
|
||||||
|
# association :user, :author
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# # good (NonImplicitAssociationMethodNames: ['email'])
|
||||||
|
# sequence :email do |n|
|
||||||
|
# "person#{n}@example.com"
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# factory :user do
|
||||||
|
# email
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#63
|
||||||
|
class RuboCop::Cop::FactoryBot::AssociationStyle < ::RuboCop::Cop::Base
|
||||||
|
include ::RuboCop::Cop::ConfigurableEnforcedStyle
|
||||||
|
extend ::RuboCop::Cop::AutoCorrector
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#139
|
||||||
|
def association_names(param0); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#96
|
||||||
|
def explicit_association?(param0 = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#113
|
||||||
|
def factory_option_matcher(param0 = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#108
|
||||||
|
def implicit_association?(param0 = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#82
|
||||||
|
def on_send(node); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#144
|
||||||
|
def trait_name(param0); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#134
|
||||||
|
def trait_names_from_explicit(param0 = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#101
|
||||||
|
def with_strategy_build_option?(param0 = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#148
|
||||||
|
def autocorrect(corrector, node); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#156
|
||||||
|
def autocorrect_to_explicit_style(corrector, node); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#164
|
||||||
|
def autocorrect_to_implicit_style(corrector, node); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#174
|
||||||
|
def bad?(node); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#195
|
||||||
|
def bad_associations_in(node); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#201
|
||||||
|
def children_of_factory_block(node); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#213
|
||||||
|
def factory_names_from_explicit(node); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#185
|
||||||
|
def keyword?(node); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#223
|
||||||
|
def non_implicit_association_method_name?(method_name); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#227
|
||||||
|
def non_implicit_association_method_names; end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#240
|
||||||
|
def options_for_autocorrect_to_implicit_style(node); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#232
|
||||||
|
def options_from_explicit(node); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#249
|
||||||
|
def trait_within_trait?(node); end
|
||||||
|
end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#68
|
||||||
|
RuboCop::Cop::FactoryBot::AssociationStyle::DEFAULT_NON_IMPLICIT_ASSOCIATION_METHOD_NAMES = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#76
|
||||||
|
RuboCop::Cop::FactoryBot::AssociationStyle::KEYWORDS = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#75
|
||||||
|
RuboCop::Cop::FactoryBot::AssociationStyle::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
# Always declare attribute values as blocks.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# # bad
|
||||||
|
# kind [:active, :rejected].sample
|
||||||
|
#
|
||||||
|
# # good
|
||||||
|
# kind { [:active, :rejected].sample }
|
||||||
|
#
|
||||||
|
# # bad
|
||||||
|
# closed_at 1.day.from_now
|
||||||
|
#
|
||||||
|
# # good
|
||||||
|
# closed_at { 1.day.from_now }
|
||||||
|
#
|
||||||
|
# # bad
|
||||||
|
# count 1
|
||||||
|
#
|
||||||
|
# # good
|
||||||
|
# count { 1 }
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#27
|
||||||
|
class RuboCop::Cop::FactoryBot::AttributeDefinedStatically < ::RuboCop::Cop::Base
|
||||||
|
extend ::RuboCop::Cop::AutoCorrector
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#85
|
||||||
|
def association?(param0 = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#38
|
||||||
|
def factory_attributes(param0 = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#42
|
||||||
|
def on_block(node); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#33
|
||||||
|
def value_matcher(param0 = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#119
|
||||||
|
def attribute_defining_method?(method_name); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#58
|
||||||
|
def autocorrect(corrector, node); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#87
|
||||||
|
def autocorrect_replacing_parens(corrector, node); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#94
|
||||||
|
def autocorrect_without_parens(corrector, node); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#103
|
||||||
|
def braces(node); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#66
|
||||||
|
def offensive_receiver?(receiver, node); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#80
|
||||||
|
def proc?(attribute); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#72
|
||||||
|
def receiver_matches_first_block_argument?(receiver, node); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#115
|
||||||
|
def reserved_method?(method_name); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#111
|
||||||
|
def value_hash_without_braces?(node); end
|
||||||
|
end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#30
|
||||||
|
RuboCop::Cop::FactoryBot::AttributeDefinedStatically::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# Handles `ExplicitOnly` configuration parameters.
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/mixin/configurable_explicit_only.rb#7
|
||||||
|
module RuboCop::Cop::FactoryBot::ConfigurableExplicitOnly
|
||||||
|
include ::RuboCop::FactoryBot::Language
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/mixin/configurable_explicit_only.rb#16
|
||||||
|
def explicit_only?; end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/mixin/configurable_explicit_only.rb#10
|
||||||
|
def factory_call?(node); end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Use a consistent style for parentheses in factory_bot calls.
|
||||||
|
#
|
||||||
|
# @example `EnforcedStyle: require_parentheses` (default)
|
||||||
|
#
|
||||||
|
# # bad
|
||||||
|
# create :user
|
||||||
|
# build :login
|
||||||
|
#
|
||||||
|
# # good
|
||||||
|
# create(:user)
|
||||||
|
# build(:login)
|
||||||
|
# @example `EnforcedStyle: omit_parentheses`
|
||||||
|
#
|
||||||
|
# # bad
|
||||||
|
# create(:user)
|
||||||
|
# build(:login)
|
||||||
|
#
|
||||||
|
# # good
|
||||||
|
# create :user
|
||||||
|
# build :login
|
||||||
|
#
|
||||||
|
# # also good
|
||||||
|
# # when method name and first argument are not on same line
|
||||||
|
# create(
|
||||||
|
# :user
|
||||||
|
# )
|
||||||
|
# build(
|
||||||
|
# :user,
|
||||||
|
# name: 'foo'
|
||||||
|
# )
|
||||||
|
# @example `ExplicitOnly: false` (default)
|
||||||
|
#
|
||||||
|
# # bad - with `EnforcedStyle: require_parentheses`
|
||||||
|
# FactoryBot.create :user
|
||||||
|
# build :user
|
||||||
|
#
|
||||||
|
# # good - with `EnforcedStyle: require_parentheses`
|
||||||
|
# FactoryBot.create(:user)
|
||||||
|
# build(:user)
|
||||||
|
# @example `ExplicitOnly: true`
|
||||||
|
#
|
||||||
|
# # bad - with `EnforcedStyle: require_parentheses`
|
||||||
|
# FactoryBot.create :user
|
||||||
|
# FactoryBot.build :user
|
||||||
|
#
|
||||||
|
# # good - with `EnforcedStyle: require_parentheses`
|
||||||
|
# FactoryBot.create(:user)
|
||||||
|
# FactoryBot.build(:user)
|
||||||
|
# create :user
|
||||||
|
# build :user
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#60
|
||||||
|
class RuboCop::Cop::FactoryBot::ConsistentParenthesesStyle < ::RuboCop::Cop::Base
|
||||||
|
include ::RuboCop::Cop::ConfigurableEnforcedStyle
|
||||||
|
include ::RuboCop::FactoryBot::Language
|
||||||
|
include ::RuboCop::Cop::FactoryBot::ConfigurableExplicitOnly
|
||||||
|
extend ::RuboCop::Cop::AutoCorrector
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#71
|
||||||
|
def factory_call(param0 = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#82
|
||||||
|
def on_send(node); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#118
|
||||||
|
def ambiguous_without_parentheses?(node); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#90
|
||||||
|
def register_offense(node); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#97
|
||||||
|
def register_offense_with_parentheses(node); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#107
|
||||||
|
def register_offense_without_parentheses(node); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#122
|
||||||
|
def remove_parentheses(corrector, node); end
|
||||||
|
|
||||||
|
class << self
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#78
|
||||||
|
def autocorrect_incompatible_with; end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#116
|
||||||
|
RuboCop::Cop::FactoryBot::ConsistentParenthesesStyle::AMBIGUOUS_TYPES = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#67
|
||||||
|
RuboCop::Cop::FactoryBot::ConsistentParenthesesStyle::FACTORY_CALLS = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#66
|
||||||
|
RuboCop::Cop::FactoryBot::ConsistentParenthesesStyle::MSG_OMIT_PARENS = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#65
|
||||||
|
RuboCop::Cop::FactoryBot::ConsistentParenthesesStyle::MSG_REQUIRE_PARENS = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#68
|
||||||
|
RuboCop::Cop::FactoryBot::ConsistentParenthesesStyle::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
# Checks for create_list usage.
|
||||||
|
#
|
||||||
|
# This cop can be configured using the `EnforcedStyle` option
|
||||||
|
#
|
||||||
|
# @example `EnforcedStyle: create_list` (default)
|
||||||
|
# # bad
|
||||||
|
# 3.times { create :user }
|
||||||
|
# 3.times.map { create :user }
|
||||||
|
# [create(:user), create(:user), create(:user)]
|
||||||
|
# Array.new(3) { create :user }
|
||||||
|
#
|
||||||
|
# # good
|
||||||
|
# create_list :user, 3
|
||||||
|
#
|
||||||
|
# # bad
|
||||||
|
# 3.times { create :user, age: 18 }
|
||||||
|
#
|
||||||
|
# # good - index is used to alter the created models attributes
|
||||||
|
# 3.times { |n| create :user, age: n }
|
||||||
|
#
|
||||||
|
# # good - contains a method call, may return different values
|
||||||
|
# 3.times { create :user, age: rand }
|
||||||
|
# @example `EnforcedStyle: n_times`
|
||||||
|
# # bad
|
||||||
|
# create_list :user, 3
|
||||||
|
# [create(:user), create(:user), create(:user)]
|
||||||
|
#
|
||||||
|
# # good
|
||||||
|
# 3.times.map { create :user }
|
||||||
|
# @example `ExplicitOnly: false` (default)
|
||||||
|
#
|
||||||
|
# # bad - with `EnforcedStyle: create_list`
|
||||||
|
# 3.times { FactoryBot.create :user }
|
||||||
|
# 3.times { create :user }
|
||||||
|
#
|
||||||
|
# # good - with `EnforcedStyle: create_list`
|
||||||
|
# FactoryBot.create_list :user, 3
|
||||||
|
# create_list :user, 3
|
||||||
|
# @example `ExplicitOnly: true`
|
||||||
|
#
|
||||||
|
# # bad - with `EnforcedStyle: create_list`
|
||||||
|
# 3.times { FactoryBot.create :user }
|
||||||
|
#
|
||||||
|
# # good - with `EnforcedStyle: create_list`
|
||||||
|
# FactoryBot.create_list :user, 3
|
||||||
|
# create_list :user, 3
|
||||||
|
# 3.times { create :user }
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#61
|
||||||
|
class RuboCop::Cop::FactoryBot::CreateList < ::RuboCop::Cop::Base
|
||||||
|
include ::RuboCop::Cop::ConfigurableEnforcedStyle
|
||||||
|
include ::RuboCop::FactoryBot::Language
|
||||||
|
include ::RuboCop::Cop::FactoryBot::ConfigurableExplicitOnly
|
||||||
|
extend ::RuboCop::Cop::AutoCorrector
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#92
|
||||||
|
def arguments_include_method_call?(param0 = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#83
|
||||||
|
def block_with_arg_and_used?(param0 = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#97
|
||||||
|
def factory_call(param0 = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#107
|
||||||
|
def factory_calls_in_array?(param0); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#102
|
||||||
|
def factory_list_call(param0 = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#111
|
||||||
|
def on_array(node); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#123
|
||||||
|
def on_block(node); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#136
|
||||||
|
def on_send(node); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#72
|
||||||
|
def repeat_count(param0 = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
# For ease of modification, it is replaced with the `n_times` style,
|
||||||
|
# but if it is not appropriate for the configured style,
|
||||||
|
# it will be replaced in the subsequent autocorrection.
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#160
|
||||||
|
def autocorrect_same_factory_calls_in_array(corrector, node); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#171
|
||||||
|
def contains_only_factory?(node); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#179
|
||||||
|
def preferred_message_for_array(node); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#151
|
||||||
|
def repeat_multiple_time?(node); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#188
|
||||||
|
def same_factory_calls_in_array?(node); end
|
||||||
|
end
|
||||||
|
|
||||||
|
# :nodoc
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#194
|
||||||
|
module RuboCop::Cop::FactoryBot::CreateList::Corrector
|
||||||
|
private
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#197
|
||||||
|
def build_options_string(options); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#201
|
||||||
|
def format_method_call(node, method, arguments); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#209
|
||||||
|
def format_receiver(receiver); end
|
||||||
|
end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#254
|
||||||
|
class RuboCop::Cop::FactoryBot::CreateList::CreateListCorrector
|
||||||
|
include ::RuboCop::Cop::FactoryBot::CreateList::Corrector
|
||||||
|
|
||||||
|
# @return [CreateListCorrector] a new instance of CreateListCorrector
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#257
|
||||||
|
def initialize(node); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#261
|
||||||
|
def call(corrector); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#284
|
||||||
|
def build_arguments(node, count); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#293
|
||||||
|
def call_replacement(node); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#275
|
||||||
|
def call_with_block_replacement(node); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#306
|
||||||
|
def count_from(node); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#319
|
||||||
|
def format_block(node); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#327
|
||||||
|
def format_multiline_block(node); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#335
|
||||||
|
def format_singleline_block(node); end
|
||||||
|
|
||||||
|
# Returns the value of attribute node.
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#273
|
||||||
|
def node; end
|
||||||
|
end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#67
|
||||||
|
RuboCop::Cop::FactoryBot::CreateList::MSG_CREATE_LIST = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#68
|
||||||
|
RuboCop::Cop::FactoryBot::CreateList::MSG_N_TIMES = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#69
|
||||||
|
RuboCop::Cop::FactoryBot::CreateList::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
# :nodoc
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#217
|
||||||
|
class RuboCop::Cop::FactoryBot::CreateList::TimesCorrector
|
||||||
|
include ::RuboCop::Cop::FactoryBot::CreateList::Corrector
|
||||||
|
|
||||||
|
# @return [TimesCorrector] a new instance of TimesCorrector
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#220
|
||||||
|
def initialize(node); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#224
|
||||||
|
def call(corrector); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#246
|
||||||
|
def factory_call_block_source; end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#233
|
||||||
|
def generate_n_times_block(node); end
|
||||||
|
|
||||||
|
# Returns the value of attribute node.
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#231
|
||||||
|
def node; end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Use definition in factory association instead of hard coding a strategy.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# # bad - only works for one strategy
|
||||||
|
# factory :foo do
|
||||||
|
# profile { create(:profile) }
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# # good - implicit
|
||||||
|
# factory :foo do
|
||||||
|
# profile
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# # good - explicit
|
||||||
|
# factory :foo do
|
||||||
|
# association :profile
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# # good - inline
|
||||||
|
# factory :foo do
|
||||||
|
# profile { association :profile }
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_association_with_strategy.rb#29
|
||||||
|
class RuboCop::Cop::FactoryBot::FactoryAssociationWithStrategy < ::RuboCop::Cop::Base
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_association_with_strategy.rb#36
|
||||||
|
def factory_declaration(param0 = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_association_with_strategy.rb#43
|
||||||
|
def factory_strategy_association(param0 = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_association_with_strategy.rb#51
|
||||||
|
def on_block(node); end
|
||||||
|
end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_association_with_strategy.rb#33
|
||||||
|
RuboCop::Cop::FactoryBot::FactoryAssociationWithStrategy::HARDCODED = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_association_with_strategy.rb#30
|
||||||
|
RuboCop::Cop::FactoryBot::FactoryAssociationWithStrategy::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# Use string value when setting the class attribute explicitly.
|
||||||
|
#
|
||||||
|
# This cop would promote faster tests by lazy-loading of
|
||||||
|
# application files. Also, this could help you suppress potential bugs
|
||||||
|
# in combination with external libraries by avoiding a preload of
|
||||||
|
# application files from the factory files.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# # bad
|
||||||
|
# factory :foo, class: Foo do
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# # good
|
||||||
|
# factory :foo, class: 'Foo' do
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_class_name.rb#22
|
||||||
|
class RuboCop::Cop::FactoryBot::FactoryClassName < ::RuboCop::Cop::Base
|
||||||
|
extend ::RuboCop::Cop::AutoCorrector
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_class_name.rb#31
|
||||||
|
def class_name(param0 = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_class_name.rb#35
|
||||||
|
def on_send(node); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_class_name.rb#48
|
||||||
|
def allowed?(const_name); end
|
||||||
|
end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_class_name.rb#27
|
||||||
|
RuboCop::Cop::FactoryBot::FactoryClassName::ALLOWED_CONSTANTS = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_class_name.rb#25
|
||||||
|
RuboCop::Cop::FactoryBot::FactoryClassName::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_class_name.rb#28
|
||||||
|
RuboCop::Cop::FactoryBot::FactoryClassName::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
# Checks for name style for argument of FactoryBot::Syntax::Methods.
|
||||||
|
#
|
||||||
|
# @example EnforcedStyle: symbol (default)
|
||||||
|
# # bad
|
||||||
|
# create('user')
|
||||||
|
# build "user", username: "NAME"
|
||||||
|
#
|
||||||
|
# # good
|
||||||
|
# create(:user)
|
||||||
|
# build :user, username: "NAME"
|
||||||
|
# @example EnforcedStyle: string
|
||||||
|
# # bad
|
||||||
|
# create(:user)
|
||||||
|
# build :user, username: "NAME"
|
||||||
|
#
|
||||||
|
# # good
|
||||||
|
# create('user')
|
||||||
|
# build "user", username: "NAME"
|
||||||
|
# @example `ExplicitOnly: false` (default)
|
||||||
|
#
|
||||||
|
# # bad - with `EnforcedStyle: symbol`
|
||||||
|
# FactoryBot.create('user')
|
||||||
|
# create('user')
|
||||||
|
#
|
||||||
|
# # good - with `EnforcedStyle: symbol`
|
||||||
|
# FactoryBot.create(:user)
|
||||||
|
# create(:user)
|
||||||
|
# @example `ExplicitOnly: true`
|
||||||
|
#
|
||||||
|
# # bad - with `EnforcedStyle: symbol`
|
||||||
|
# FactoryBot.create(:user)
|
||||||
|
# FactoryBot.build "user", username: "NAME"
|
||||||
|
#
|
||||||
|
# # good - with `EnforcedStyle: symbol`
|
||||||
|
# FactoryBot.create('user')
|
||||||
|
# FactoryBot.build "user", username: "NAME"
|
||||||
|
# FactoryBot.create(:user)
|
||||||
|
# create(:user)
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#48
|
||||||
|
class RuboCop::Cop::FactoryBot::FactoryNameStyle < ::RuboCop::Cop::Base
|
||||||
|
include ::RuboCop::Cop::ConfigurableEnforcedStyle
|
||||||
|
include ::RuboCop::FactoryBot::Language
|
||||||
|
include ::RuboCop::Cop::FactoryBot::ConfigurableExplicitOnly
|
||||||
|
extend ::RuboCop::Cop::AutoCorrector
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#59
|
||||||
|
def factory_call(param0 = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#66
|
||||||
|
def on_send(node); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#82
|
||||||
|
def offense_for_string_style?(name); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#78
|
||||||
|
def offense_for_symbol_style?(name); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#86
|
||||||
|
def register_offense(name, prefer); end
|
||||||
|
end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#55
|
||||||
|
RuboCop::Cop::FactoryBot::FactoryNameStyle::FACTORY_CALLS = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#54
|
||||||
|
RuboCop::Cop::FactoryBot::FactoryNameStyle::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#56
|
||||||
|
RuboCop::Cop::FactoryBot::FactoryNameStyle::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
# Do not create a FactoryBot sequence for an id column.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# # bad - can lead to conflicts between FactoryBot and DB sequences
|
||||||
|
# factory :foo do
|
||||||
|
# sequence :id
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# # good - a non-id column
|
||||||
|
# factory :foo do
|
||||||
|
# sequence :some_non_id_column
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/id_sequence.rb#19
|
||||||
|
class RuboCop::Cop::FactoryBot::IdSequence < ::RuboCop::Cop::Base
|
||||||
|
include ::RuboCop::Cop::RangeHelp
|
||||||
|
extend ::RuboCop::Cop::AutoCorrector
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/id_sequence.rb#26
|
||||||
|
def on_send(node); end
|
||||||
|
end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/id_sequence.rb#23
|
||||||
|
RuboCop::Cop::FactoryBot::IdSequence::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/id_sequence.rb#24
|
||||||
|
RuboCop::Cop::FactoryBot::IdSequence::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
# Checks for redundant `factory` option.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# # bad
|
||||||
|
# association :user, factory: :user
|
||||||
|
#
|
||||||
|
# # good
|
||||||
|
# association :user
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/redundant_factory_option.rb#14
|
||||||
|
class RuboCop::Cop::FactoryBot::RedundantFactoryOption < ::RuboCop::Cop::Base
|
||||||
|
include ::RuboCop::Cop::RangeHelp
|
||||||
|
extend ::RuboCop::Cop::AutoCorrector
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/redundant_factory_option.rb#24
|
||||||
|
def association_with_a_factory_option(param0 = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/redundant_factory_option.rb#42
|
||||||
|
def on_send(node); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/redundant_factory_option.rb#55
|
||||||
|
def autocorrect(corrector, node); end
|
||||||
|
end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/redundant_factory_option.rb#19
|
||||||
|
RuboCop::Cop::FactoryBot::RedundantFactoryOption::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/redundant_factory_option.rb#21
|
||||||
|
RuboCop::Cop::FactoryBot::RedundantFactoryOption::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
# Use shorthands from `FactoryBot::Syntax::Methods` in your specs.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# # bad
|
||||||
|
# FactoryBot.create(:bar)
|
||||||
|
# FactoryBot.build(:bar)
|
||||||
|
# FactoryBot.attributes_for(:bar)
|
||||||
|
#
|
||||||
|
# # good
|
||||||
|
# create(:bar)
|
||||||
|
# build(:bar)
|
||||||
|
# attributes_for(:bar)
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#48
|
||||||
|
class RuboCop::Cop::FactoryBot::SyntaxMethods < ::RuboCop::Cop::Base
|
||||||
|
include ::RuboCop::Cop::RangeHelp
|
||||||
|
include ::RuboCop::FactoryBot::Language
|
||||||
|
extend ::RuboCop::Cop::AutoCorrector
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#73
|
||||||
|
def on_send(node); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#58
|
||||||
|
def spec_group?(param0 = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#87
|
||||||
|
def crime_scene(node); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#109
|
||||||
|
def example_group_root?(node); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#113
|
||||||
|
def example_group_root_with_siblings?(node); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#101
|
||||||
|
def inside_example_group?(node); end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#94
|
||||||
|
def offense(node); end
|
||||||
|
end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#53
|
||||||
|
RuboCop::Cop::FactoryBot::SyntaxMethods::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#55
|
||||||
|
RuboCop::Cop::FactoryBot::SyntaxMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
# RuboCop factory_bot project namespace
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/factory_bot/factory_bot.rb#5
|
||||||
|
module RuboCop::FactoryBot
|
||||||
|
class << self
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/factory_bot/factory_bot.rb#54
|
||||||
|
def attribute_defining_methods; end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/factory_bot/factory_bot.rb#58
|
||||||
|
def reserved_methods; end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/factory_bot/factory_bot.rb#6
|
||||||
|
RuboCop::FactoryBot::ATTRIBUTE_DEFINING_METHODS = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/factory_bot/factory_bot.rb#29
|
||||||
|
RuboCop::FactoryBot::DEFINITION_PROXY_METHODS = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
# Contains node matchers for common factory_bot DSL.
|
||||||
|
#
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/factory_bot/language.rb#6
|
||||||
|
module RuboCop::FactoryBot::Language
|
||||||
|
extend ::RuboCop::AST::NodePattern::Macros
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/factory_bot/language.rb#30
|
||||||
|
def factory_bot?(param0 = T.unsafe(nil)); end
|
||||||
|
end
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/factory_bot/language.rb#9
|
||||||
|
RuboCop::FactoryBot::Language::METHODS = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/factory_bot/factory_bot.rb#42
|
||||||
|
RuboCop::FactoryBot::RESERVED_METHODS = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
# source://rubocop-factory_bot//lib/rubocop/factory_bot/factory_bot.rb#14
|
||||||
|
RuboCop::FactoryBot::UNPROXIED_METHODS = T.let(T.unsafe(nil), Array)
|
||||||
@ -1,938 +0,0 @@
|
|||||||
# typed: true
|
|
||||||
|
|
||||||
# DO NOT EDIT MANUALLY
|
|
||||||
# This is an autogenerated file for types exported from the `rubocop-performance` gem.
|
|
||||||
# Please instead update this file by running `bin/tapioca gem rubocop-performance`.
|
|
||||||
|
|
||||||
module RuboCop; end
|
|
||||||
module RuboCop::Cop; end
|
|
||||||
RuboCop::Cop::IgnoredMethods = RuboCop::Cop::AllowedMethods
|
|
||||||
RuboCop::Cop::IgnoredPattern = RuboCop::Cop::AllowedPattern
|
|
||||||
module RuboCop::Cop::Performance; end
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::AncestorsInclude < ::RuboCop::Cop::Base
|
|
||||||
include ::RuboCop::Cop::RangeHelp
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def ancestors_include_candidate?(param0 = T.unsafe(nil)); end
|
|
||||||
def on_send(node); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def range(node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::AncestorsInclude::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::AncestorsInclude::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::ArraySemiInfiniteRangeSlice < ::RuboCop::Cop::Base
|
|
||||||
include ::RuboCop::Cop::RangeHelp
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
extend ::RuboCop::Cop::TargetRubyVersion
|
|
||||||
|
|
||||||
def endless_range?(param0 = T.unsafe(nil)); end
|
|
||||||
def endless_range_slice?(param0 = T.unsafe(nil)); end
|
|
||||||
def on_send(node); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def correction(receiver, range_node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::ArraySemiInfiniteRangeSlice::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::ArraySemiInfiniteRangeSlice::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set)
|
|
||||||
RuboCop::Cop::Performance::ArraySemiInfiniteRangeSlice::SLICE_METHODS = T.let(T.unsafe(nil), Set)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::BigDecimalWithNumericArgument < ::RuboCop::Cop::Base
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def big_decimal_with_numeric_argument?(param0 = T.unsafe(nil)); end
|
|
||||||
def on_send(node); end
|
|
||||||
def to_d?(param0 = T.unsafe(nil)); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::BigDecimalWithNumericArgument::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::BigDecimalWithNumericArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::BindCall < ::RuboCop::Cop::Base
|
|
||||||
include ::RuboCop::Cop::RangeHelp
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
extend ::RuboCop::Cop::TargetRubyVersion
|
|
||||||
|
|
||||||
def bind_with_call_method?(param0 = T.unsafe(nil)); end
|
|
||||||
def on_send(node); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def build_call_args(call_args_node); end
|
|
||||||
def correction_range(receiver, node); end
|
|
||||||
def message(bind_arg, call_args); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::BindCall::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::BindCall::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::BlockGivenWithExplicitBlock < ::RuboCop::Cop::Base
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def on_send(node); end
|
|
||||||
def reassigns_block_arg?(param0 = T.unsafe(nil), param1); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::BlockGivenWithExplicitBlock::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::BlockGivenWithExplicitBlock::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::Caller < ::RuboCop::Cop::Base
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def caller_with_scope_method?(param0 = T.unsafe(nil)); end
|
|
||||||
def on_send(node); end
|
|
||||||
def slow_caller?(param0 = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def int_value(node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::Caller::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::Caller::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::CaseWhenSplat < ::RuboCop::Cop::Base
|
|
||||||
include ::RuboCop::Cop::Alignment
|
|
||||||
include ::RuboCop::Cop::RangeHelp
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def on_case(case_node); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def autocorrect(corrector, when_node); end
|
|
||||||
def indent_for(node); end
|
|
||||||
def inline_fix_branch(corrector, when_node); end
|
|
||||||
def needs_reorder?(when_node); end
|
|
||||||
def new_branch_without_then(node, new_condition); end
|
|
||||||
def new_condition_with_then(node, new_condition); end
|
|
||||||
def non_splat?(condition); end
|
|
||||||
def range(node); end
|
|
||||||
def reorder_condition(corrector, when_node); end
|
|
||||||
def reordering_correction(when_node); end
|
|
||||||
def replacement(conditions); end
|
|
||||||
def splat_offenses(when_conditions); end
|
|
||||||
def when_branch_range(when_node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::CaseWhenSplat::ARRAY_MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::CaseWhenSplat::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::Casecmp < ::RuboCop::Cop::Base
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def downcase_downcase(param0 = T.unsafe(nil)); end
|
|
||||||
def downcase_eq(param0 = T.unsafe(nil)); end
|
|
||||||
def eq_downcase(param0 = T.unsafe(nil)); end
|
|
||||||
def on_send(node); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def autocorrect(corrector, node, replacement); end
|
|
||||||
def build_good_method(method, arg, variable); end
|
|
||||||
def take_method_apart(node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::Casecmp::CASE_METHODS = T.let(T.unsafe(nil), Array)
|
|
||||||
RuboCop::Cop::Performance::Casecmp::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::Casecmp::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::ChainArrayAllocation < ::RuboCop::Cop::Base
|
|
||||||
include ::RuboCop::Cop::RangeHelp
|
|
||||||
|
|
||||||
def chain_array_allocation?(param0 = T.unsafe(nil)); end
|
|
||||||
def on_send(node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::ChainArrayAllocation::ALWAYS_RETURNS_NEW_ARRAY = T.let(T.unsafe(nil), Set)
|
|
||||||
RuboCop::Cop::Performance::ChainArrayAllocation::HAS_MUTATION_ALTERNATIVE = T.let(T.unsafe(nil), Set)
|
|
||||||
RuboCop::Cop::Performance::ChainArrayAllocation::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::ChainArrayAllocation::RETURNS_NEW_ARRAY = T.let(T.unsafe(nil), Set)
|
|
||||||
RuboCop::Cop::Performance::ChainArrayAllocation::RETURNS_NEW_ARRAY_WHEN_NO_BLOCK = T.let(T.unsafe(nil), Set)
|
|
||||||
RuboCop::Cop::Performance::ChainArrayAllocation::RETURN_NEW_ARRAY_WHEN_ARGS = T.let(T.unsafe(nil), Set)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::CollectionLiteralInLoop < ::RuboCop::Cop::Base
|
|
||||||
def enumerable_loop?(param0 = T.unsafe(nil)); end
|
|
||||||
def kernel_loop?(param0 = T.unsafe(nil)); end
|
|
||||||
def on_send(node); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def check_literal?(node, method); end
|
|
||||||
def enumerable_method?(method_name); end
|
|
||||||
def keyword_loop?(type); end
|
|
||||||
def literal_class(node); end
|
|
||||||
def loop?(ancestor, node); end
|
|
||||||
def min_size; end
|
|
||||||
def node_within_enumerable_loop?(node, ancestor); end
|
|
||||||
def nonmutable_method_of_array_or_hash?(node, method); end
|
|
||||||
def parent_is_loop?(node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::CollectionLiteralInLoop::ARRAY_METHODS = T.let(T.unsafe(nil), Set)
|
|
||||||
RuboCop::Cop::Performance::CollectionLiteralInLoop::ENUMERABLE_METHOD_NAMES = T.let(T.unsafe(nil), Set)
|
|
||||||
RuboCop::Cop::Performance::CollectionLiteralInLoop::HASH_METHODS = T.let(T.unsafe(nil), Set)
|
|
||||||
RuboCop::Cop::Performance::CollectionLiteralInLoop::LOOP_TYPES = T.let(T.unsafe(nil), Array)
|
|
||||||
RuboCop::Cop::Performance::CollectionLiteralInLoop::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::CollectionLiteralInLoop::NONMUTATING_ARRAY_METHODS = T.let(T.unsafe(nil), Array)
|
|
||||||
RuboCop::Cop::Performance::CollectionLiteralInLoop::NONMUTATING_HASH_METHODS = T.let(T.unsafe(nil), Array)
|
|
||||||
RuboCop::Cop::Performance::CollectionLiteralInLoop::POST_CONDITION_LOOP_TYPES = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::CompareWithBlock < ::RuboCop::Cop::Base
|
|
||||||
include ::RuboCop::Cop::RangeHelp
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def compare?(param0 = T.unsafe(nil)); end
|
|
||||||
def on_block(node); end
|
|
||||||
def replaceable_body?(param0 = T.unsafe(nil), param1, param2); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def compare_range(send, node); end
|
|
||||||
def message(send, method, var_a, var_b, args); end
|
|
||||||
def slow_compare?(method, args_a, args_b); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::CompareWithBlock::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::ConcurrentMonotonicTime < ::RuboCop::Cop::Base
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def concurrent_monotonic_time?(param0 = T.unsafe(nil)); end
|
|
||||||
def on_send(node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::ConcurrentMonotonicTime::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::ConcurrentMonotonicTime::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::ConstantRegexp < ::RuboCop::Cop::Base
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def on_regexp(node); end
|
|
||||||
def regexp_escape?(param0 = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def include_interpolated_const?(node); end
|
|
||||||
def within_allowed_assignment?(node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::ConstantRegexp::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::Count < ::RuboCop::Cop::Base
|
|
||||||
include ::RuboCop::Cop::RangeHelp
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def count_candidate?(param0 = T.unsafe(nil)); end
|
|
||||||
def on_send(node); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def autocorrect(corrector, node, selector_node, selector); end
|
|
||||||
def eligible_node?(node); end
|
|
||||||
def negate_block_pass_as_inline_block(node); end
|
|
||||||
def negate_block_pass_reject(corrector, node); end
|
|
||||||
def negate_block_reject(corrector, node); end
|
|
||||||
def negate_expression(node); end
|
|
||||||
def negate_reject(corrector, node); end
|
|
||||||
def source_starting_at(node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::Count::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::Count::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::DeletePrefix < ::RuboCop::Cop::Base
|
|
||||||
include ::RuboCop::Cop::RegexpMetacharacter
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
extend ::RuboCop::Cop::TargetRubyVersion
|
|
||||||
|
|
||||||
def delete_prefix_candidate?(param0 = T.unsafe(nil)); end
|
|
||||||
def on_send(node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::DeletePrefix::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::DeletePrefix::PREFERRED_METHODS = T.let(T.unsafe(nil), Hash)
|
|
||||||
RuboCop::Cop::Performance::DeletePrefix::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::DeleteSuffix < ::RuboCop::Cop::Base
|
|
||||||
include ::RuboCop::Cop::RegexpMetacharacter
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
extend ::RuboCop::Cop::TargetRubyVersion
|
|
||||||
|
|
||||||
def delete_suffix_candidate?(param0 = T.unsafe(nil)); end
|
|
||||||
def on_send(node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::DeleteSuffix::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::DeleteSuffix::PREFERRED_METHODS = T.let(T.unsafe(nil), Hash)
|
|
||||||
RuboCop::Cop::Performance::DeleteSuffix::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::Detect < ::RuboCop::Cop::Base
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def detect_candidate?(param0 = T.unsafe(nil)); end
|
|
||||||
def on_send(node); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def accept_first_call?(receiver, body); end
|
|
||||||
def autocorrect(corrector, node, replacement); end
|
|
||||||
def lazy?(node); end
|
|
||||||
def message_for_method(method, index); end
|
|
||||||
def preferred_method; end
|
|
||||||
def register_offense(node, receiver, second_method, index); end
|
|
||||||
def replacement(method, index); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::Detect::CANDIDATE_METHODS = T.let(T.unsafe(nil), Set)
|
|
||||||
RuboCop::Cop::Performance::Detect::INDEX_MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::Detect::INDEX_REVERSE_MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::Detect::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::Detect::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
RuboCop::Cop::Performance::Detect::REVERSE_MSG = T.let(T.unsafe(nil), String)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::DoubleStartEndWith < ::RuboCop::Cop::Base
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def check_with_active_support_aliases(param0 = T.unsafe(nil)); end
|
|
||||||
def on_or(node); end
|
|
||||||
def two_start_end_with_calls(param0 = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def autocorrect(corrector, first_call_args, second_call_args, combined_args); end
|
|
||||||
def check_for_active_support_aliases?; end
|
|
||||||
def combine_args(first_call_args, second_call_args); end
|
|
||||||
def message(node, receiver, method, combined_args); end
|
|
||||||
def process_source(node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::DoubleStartEndWith::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::EndWith < ::RuboCop::Cop::Base
|
|
||||||
include ::RuboCop::Cop::RegexpMetacharacter
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def on_match_with_lvasgn(node); end
|
|
||||||
def on_send(node); end
|
|
||||||
def redundant_regex?(param0 = T.unsafe(nil)); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::EndWith::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::EndWith::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::FixedSize < ::RuboCop::Cop::Base
|
|
||||||
def counter(param0 = T.unsafe(nil)); end
|
|
||||||
def on_send(node); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def allowed_argument?(arg); end
|
|
||||||
def allowed_parent?(node); end
|
|
||||||
def allowed_variable?(var); end
|
|
||||||
def contains_double_splat?(node); end
|
|
||||||
def contains_splat?(node); end
|
|
||||||
def non_string_argument?(node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::FixedSize::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::FixedSize::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::FlatMap < ::RuboCop::Cop::Base
|
|
||||||
include ::RuboCop::Cop::RangeHelp
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def flat_map_candidate?(param0 = T.unsafe(nil)); end
|
|
||||||
def on_send(node); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def autocorrect(corrector, node); end
|
|
||||||
def offense_for_levels(node, map_node, first_method, flatten); end
|
|
||||||
def offense_for_method(node, map_node, first_method, flatten); end
|
|
||||||
def register_offense(node, map_node, first_method, flatten, message); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::FlatMap::FLATTEN_MULTIPLE_LEVELS = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::FlatMap::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::FlatMap::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::InefficientHashSearch < ::RuboCop::Cop::Base
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def inefficient_include?(param0 = T.unsafe(nil)); end
|
|
||||||
def on_send(node); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def autocorrect_argument(node); end
|
|
||||||
def autocorrect_hash_expression(node); end
|
|
||||||
def autocorrect_method(node); end
|
|
||||||
def current_method(node); end
|
|
||||||
def message(node); end
|
|
||||||
def use_long_method; end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::InefficientHashSearch::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::IoReadlines < ::RuboCop::Cop::Base
|
|
||||||
include ::RuboCop::Cop::RangeHelp
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def on_send(node); end
|
|
||||||
def readlines_on_class?(param0 = T.unsafe(nil)); end
|
|
||||||
def readlines_on_instance?(param0 = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def autocorrect(corrector, enumerable_call, readlines_call, receiver); end
|
|
||||||
def build_bad_method(enumerable_call); end
|
|
||||||
def build_call_args(call_args_node); end
|
|
||||||
def build_good_method(enumerable_call); end
|
|
||||||
def correction_range(enumerable_call, readlines_call); end
|
|
||||||
def offense_range(enumerable_call, readlines_call); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::IoReadlines::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::IoReadlines::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::MapCompact < ::RuboCop::Cop::Base
|
|
||||||
include ::RuboCop::Cop::RangeHelp
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
extend ::RuboCop::Cop::TargetRubyVersion
|
|
||||||
|
|
||||||
def map_compact(param0 = T.unsafe(nil)); end
|
|
||||||
def on_send(node); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def compact_method_with_final_newline_range(compact_method_range); end
|
|
||||||
def invoke_method_after_map_compact_on_same_line?(compact_node, chained_method); end
|
|
||||||
def map_method_and_compact_method_on_same_line?(map_node, compact_node); end
|
|
||||||
def remove_compact_method(corrector, map_node, compact_node, chained_method); end
|
|
||||||
def use_dot?(node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::MapCompact::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::MapCompact::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::MethodObjectAsBlock < ::RuboCop::Cop::Base
|
|
||||||
def method_object_as_argument?(param0 = T.unsafe(nil)); end
|
|
||||||
def on_block_pass(node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::MethodObjectAsBlock::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::OpenStruct < ::RuboCop::Cop::Base
|
|
||||||
def on_send(node); end
|
|
||||||
def open_struct(param0 = T.unsafe(nil)); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::OpenStruct::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::OpenStruct::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::RangeInclude < ::RuboCop::Cop::Base
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def on_send(node); end
|
|
||||||
def range_include(param0 = T.unsafe(nil)); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::RangeInclude::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::RangeInclude::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::RedundantBlockCall < ::RuboCop::Cop::Base
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def blockarg_assigned?(param0, param1); end
|
|
||||||
def blockarg_calls(param0, param1); end
|
|
||||||
def blockarg_def(param0 = T.unsafe(nil)); end
|
|
||||||
def on_def(node); end
|
|
||||||
def on_defs(node); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def args_include_block_pass?(blockcall); end
|
|
||||||
def autocorrect(corrector, node); end
|
|
||||||
def calls_to_report(argname, body); end
|
|
||||||
def shadowed_block_argument?(body, block_argument_of_method_signature); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::RedundantBlockCall::CLOSE_PAREN = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::RedundantBlockCall::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::RedundantBlockCall::OPEN_PAREN = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::RedundantBlockCall::SPACE = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::RedundantBlockCall::YIELD = T.let(T.unsafe(nil), String)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::RedundantEqualityComparisonBlock < ::RuboCop::Cop::Base
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
extend ::RuboCop::Cop::TargetRubyVersion
|
|
||||||
|
|
||||||
def on_block(node); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def allow_regexp_match?; end
|
|
||||||
def new_argument(block_argument, block_body); end
|
|
||||||
def offense_range(node); end
|
|
||||||
def one_block_argument?(block_arguments); end
|
|
||||||
def same_block_argument_and_is_a_argument?(block_body, block_argument); end
|
|
||||||
def use_block_argument_in_method_argument_of_operand?(block_argument, operand); end
|
|
||||||
def use_equality_comparison_block?(block_body); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::RedundantEqualityComparisonBlock::COMPARISON_METHODS = T.let(T.unsafe(nil), Array)
|
|
||||||
RuboCop::Cop::Performance::RedundantEqualityComparisonBlock::IS_A_METHODS = T.let(T.unsafe(nil), Array)
|
|
||||||
RuboCop::Cop::Performance::RedundantEqualityComparisonBlock::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::RedundantEqualityComparisonBlock::REGEXP_METHODS = T.let(T.unsafe(nil), Array)
|
|
||||||
RuboCop::Cop::Performance::RedundantEqualityComparisonBlock::TARGET_METHODS = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::RedundantMatch < ::RuboCop::Cop::Base
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def match_call?(param0 = T.unsafe(nil)); end
|
|
||||||
def on_send(node); end
|
|
||||||
def only_truthiness_matters?(param0 = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def autocorrect(corrector, node); end
|
|
||||||
def autocorrectable?(node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::RedundantMatch::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::RedundantMatch::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::RedundantMerge < ::RuboCop::Cop::Base
|
|
||||||
include ::RuboCop::Cop::Alignment
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def modifier_flow_control?(param0 = T.unsafe(nil)); end
|
|
||||||
def on_send(node); end
|
|
||||||
def redundant_merge_candidate(param0 = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def correct_multiple_elements(corrector, node, parent, new_source); end
|
|
||||||
def correct_single_element(corrector, node, new_source); end
|
|
||||||
def each_redundant_merge(node); end
|
|
||||||
def kwsplat_used?(pairs); end
|
|
||||||
def leading_spaces(node); end
|
|
||||||
def max_key_value_pairs; end
|
|
||||||
def message(node); end
|
|
||||||
def non_redundant_merge?(node, receiver, pairs); end
|
|
||||||
def non_redundant_pairs?(receiver, pairs); end
|
|
||||||
def non_redundant_value_used?(receiver, node); end
|
|
||||||
def rewrite_with_modifier(node, parent, new_source); end
|
|
||||||
def to_assignments(receiver, pairs); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::RedundantMerge::AREF_ASGN = T.let(T.unsafe(nil), String)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::RedundantMerge::EachWithObjectInspector
|
|
||||||
extend ::RuboCop::AST::NodePattern::Macros
|
|
||||||
|
|
||||||
def initialize(node, receiver); end
|
|
||||||
|
|
||||||
def each_with_object_node(param0 = T.unsafe(nil)); end
|
|
||||||
def value_used?; end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def eligible_receiver?; end
|
|
||||||
def node; end
|
|
||||||
def receiver; end
|
|
||||||
def second_argument; end
|
|
||||||
def unwind(receiver); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::RedundantMerge::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::RedundantMerge::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
RuboCop::Cop::Performance::RedundantMerge::WITH_MODIFIER_CORRECTION = T.let(T.unsafe(nil), String)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::RedundantSortBlock < ::RuboCop::Cop::Base
|
|
||||||
include ::RuboCop::Cop::RangeHelp
|
|
||||||
include ::RuboCop::Cop::SortBlock
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def on_block(node); end
|
|
||||||
def on_numblock(node); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def register_offense(send, node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::RedundantSortBlock::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::RedundantSplitRegexpArgument < ::RuboCop::Cop::Base
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def on_send(node); end
|
|
||||||
def split_call_with_regexp?(param0 = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def determinist_regexp?(regexp_node); end
|
|
||||||
def replacement(regexp_node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::RedundantSplitRegexpArgument::DETERMINISTIC_REGEX = T.let(T.unsafe(nil), Regexp)
|
|
||||||
RuboCop::Cop::Performance::RedundantSplitRegexpArgument::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::RedundantSplitRegexpArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
RuboCop::Cop::Performance::RedundantSplitRegexpArgument::STR_SPECIAL_CHARS = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::RedundantStringChars < ::RuboCop::Cop::Base
|
|
||||||
include ::RuboCop::Cop::RangeHelp
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def on_send(node); end
|
|
||||||
def redundant_chars_call?(param0 = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def build_bad_method(method, args); end
|
|
||||||
def build_call_args(call_args_node); end
|
|
||||||
def build_good_method(method, args); end
|
|
||||||
def build_good_method_for_brackets_or_first_method(method, args); end
|
|
||||||
def build_message(method, args); end
|
|
||||||
def correction_range(receiver, node); end
|
|
||||||
def offense_range(receiver, node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::RedundantStringChars::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::RedundantStringChars::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::RegexpMatch < ::RuboCop::Cop::Base
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
extend ::RuboCop::Cop::TargetRubyVersion
|
|
||||||
|
|
||||||
def last_matches(param0); end
|
|
||||||
def match_method?(param0 = T.unsafe(nil)); end
|
|
||||||
def match_node?(param0 = T.unsafe(nil)); end
|
|
||||||
def match_operator?(param0 = T.unsafe(nil)); end
|
|
||||||
def match_threequals?(param0 = T.unsafe(nil)); end
|
|
||||||
def match_with_int_arg_method?(param0 = T.unsafe(nil)); end
|
|
||||||
def match_with_lvasgn?(node); end
|
|
||||||
def on_case(node); end
|
|
||||||
def on_if(node); end
|
|
||||||
def search_match_nodes(param0); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def autocorrect(corrector, node); end
|
|
||||||
def check_condition(cond); end
|
|
||||||
def correct_operator(corrector, recv, arg, oper = T.unsafe(nil)); end
|
|
||||||
def correction_range(recv, arg); end
|
|
||||||
def find_last_match(body, range, scope_root); end
|
|
||||||
def last_match_used?(match_node); end
|
|
||||||
def match_gvar?(sym); end
|
|
||||||
def message(node); end
|
|
||||||
def modifier_form?(match_node); end
|
|
||||||
def next_match_pos(body, match_node_pos, scope_root); end
|
|
||||||
def range_to_search_for_last_matches(match_node, body, scope_root); end
|
|
||||||
def replace_with_match_predicate_method(corrector, recv, arg, op_range); end
|
|
||||||
def scope_body(node); end
|
|
||||||
def scope_root(node); end
|
|
||||||
def swap_receiver_and_arg(corrector, recv, arg); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::RegexpMatch::MATCH_NODE_PATTERN = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::RegexpMatch::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::RegexpMatch::TYPES_IMPLEMENTING_MATCH = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::ReverseEach < ::RuboCop::Cop::Base
|
|
||||||
include ::RuboCop::Cop::RangeHelp
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def on_send(node); end
|
|
||||||
def reverse_each?(param0 = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def offense_range(node); end
|
|
||||||
def use_return_value?(node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::ReverseEach::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::ReverseEach::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::ReverseFirst < ::RuboCop::Cop::Base
|
|
||||||
include ::RuboCop::Cop::RangeHelp
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def on_send(node); end
|
|
||||||
def reverse_first_candidate?(param0 = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def build_bad_method(node); end
|
|
||||||
def build_good_method(node); end
|
|
||||||
def build_message(node); end
|
|
||||||
def correction_range(receiver, node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::ReverseFirst::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::ReverseFirst::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::SelectMap < ::RuboCop::Cop::Base
|
|
||||||
include ::RuboCop::Cop::RangeHelp
|
|
||||||
extend ::RuboCop::Cop::TargetRubyVersion
|
|
||||||
|
|
||||||
def bad_method?(param0 = T.unsafe(nil)); end
|
|
||||||
def on_send(node); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def map_method_candidate(node); end
|
|
||||||
def offense_range(node, map_method); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::SelectMap::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::SelectMap::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::Size < ::RuboCop::Cop::Base
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def array?(param0 = T.unsafe(nil)); end
|
|
||||||
def count?(param0 = T.unsafe(nil)); end
|
|
||||||
def hash?(param0 = T.unsafe(nil)); end
|
|
||||||
def on_send(node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::Size::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::Size::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::SortReverse < ::RuboCop::Cop::Base
|
|
||||||
include ::RuboCop::Cop::RangeHelp
|
|
||||||
include ::RuboCop::Cop::SortBlock
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def on_block(node); end
|
|
||||||
def on_numblock(node); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def register_offense(send, node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::SortReverse::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::Squeeze < ::RuboCop::Cop::Base
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def on_send(node); end
|
|
||||||
def squeeze_candidate?(param0 = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def repeating_literal?(regex_str); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::Squeeze::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::Squeeze::PREFERRED_METHODS = T.let(T.unsafe(nil), Hash)
|
|
||||||
RuboCop::Cop::Performance::Squeeze::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::StartWith < ::RuboCop::Cop::Base
|
|
||||||
include ::RuboCop::Cop::RegexpMetacharacter
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def on_match_with_lvasgn(node); end
|
|
||||||
def on_send(node); end
|
|
||||||
def redundant_regex?(param0 = T.unsafe(nil)); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::StartWith::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::StartWith::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::StringIdentifierArgument < ::RuboCop::Cop::Base
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def on_send(node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::StringIdentifierArgument::COMMAND_METHODS = T.let(T.unsafe(nil), Array)
|
|
||||||
RuboCop::Cop::Performance::StringIdentifierArgument::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::StringIdentifierArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::StringInclude < ::RuboCop::Cop::Base
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def on_match_with_lvasgn(node); end
|
|
||||||
def on_send(node); end
|
|
||||||
def redundant_regex?(param0 = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def literal?(regex_str); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::StringInclude::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::StringInclude::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::StringReplacement < ::RuboCop::Cop::Base
|
|
||||||
include ::RuboCop::Cop::RangeHelp
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def on_send(node); end
|
|
||||||
def string_replacement?(param0 = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def accept_first_param?(first_param); end
|
|
||||||
def accept_second_param?(second_param); end
|
|
||||||
def autocorrect(corrector, node); end
|
|
||||||
def first_source(first_param); end
|
|
||||||
def message(node, first_source, second_source); end
|
|
||||||
def method_suffix(node); end
|
|
||||||
def offense(node, first_param, second_param); end
|
|
||||||
def range(node); end
|
|
||||||
def remove_second_param(corrector, node, first_param); end
|
|
||||||
def replace_method(corrector, node, first_source, second_source, first_param); end
|
|
||||||
def replacement_method(node, first_source, second_source); end
|
|
||||||
def source_from_regex_constructor(node); end
|
|
||||||
def source_from_regex_literal(node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::StringReplacement::BANG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::StringReplacement::DELETE = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::StringReplacement::DETERMINISTIC_REGEX = T.let(T.unsafe(nil), Regexp)
|
|
||||||
RuboCop::Cop::Performance::StringReplacement::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::StringReplacement::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
RuboCop::Cop::Performance::StringReplacement::TR = T.let(T.unsafe(nil), String)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::Sum < ::RuboCop::Cop::Base
|
|
||||||
include ::RuboCop::Cop::RangeHelp
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
extend ::RuboCop::Cop::TargetRubyVersion
|
|
||||||
|
|
||||||
def acc_plus_elem?(param0 = T.unsafe(nil), param1, param2); end
|
|
||||||
def elem_plus_acc?(param0 = T.unsafe(nil), param1, param2); end
|
|
||||||
def on_block(node); end
|
|
||||||
def on_send(node); end
|
|
||||||
def sum_candidate?(param0 = T.unsafe(nil)); end
|
|
||||||
def sum_map_candidate?(param0 = T.unsafe(nil)); end
|
|
||||||
def sum_with_block_candidate?(param0 = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def array_literal?(node); end
|
|
||||||
def autocorrect(corrector, init, range); end
|
|
||||||
def autocorrect_sum_map(corrector, sum, map, init); end
|
|
||||||
def build_block_bad_method(method, init, var_acc, var_elem, body); end
|
|
||||||
def build_block_message(send, init, var_acc, var_elem, body); end
|
|
||||||
def build_good_method(init, block_pass = T.unsafe(nil)); end
|
|
||||||
def build_method_bad_method(init, method, operation); end
|
|
||||||
def build_method_message(node, method, init, operation); end
|
|
||||||
def build_sum_map_message(method, init); end
|
|
||||||
def empty_array_literal?(node); end
|
|
||||||
def handle_sum_candidate(node); end
|
|
||||||
def handle_sum_map_candidate(node); end
|
|
||||||
def method_call_with_args_range(node); end
|
|
||||||
def sum_block_range(send, node); end
|
|
||||||
def sum_map_range(map, sum); end
|
|
||||||
def sum_method_range(node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::Sum::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::Sum::MSG_IF_NO_INIT_VALUE = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::Sum::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::TimesMap < ::RuboCop::Cop::Base
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def on_block(node); end
|
|
||||||
def on_numblock(node); end
|
|
||||||
def on_send(node); end
|
|
||||||
def times_map_call(param0 = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def check(node); end
|
|
||||||
def message(map_or_collect, count); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::TimesMap::MESSAGE = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::TimesMap::MESSAGE_ONLY_IF = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::TimesMap::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::UnfreezeString < ::RuboCop::Cop::Base
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def dup_string?(param0 = T.unsafe(nil)); end
|
|
||||||
def on_send(node); end
|
|
||||||
def string_new?(param0 = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def string_value(node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::UnfreezeString::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::UnfreezeString::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::UriDefaultParser < ::RuboCop::Cop::Base
|
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
|
||||||
|
|
||||||
def on_send(node); end
|
|
||||||
def uri_parser_new?(param0 = T.unsafe(nil)); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Cop::Performance::UriDefaultParser::MSG = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::Cop::Performance::UriDefaultParser::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
module RuboCop::Cop::RegexpMetacharacter
|
|
||||||
private
|
|
||||||
|
|
||||||
def drop_end_metacharacter(regexp_string); end
|
|
||||||
def drop_start_metacharacter(regexp_string); end
|
|
||||||
def literal_at_end?(regexp); end
|
|
||||||
def literal_at_end_with_backslash_z?(regex_str); end
|
|
||||||
def literal_at_end_with_dollar?(regex_str); end
|
|
||||||
def literal_at_start?(regexp); end
|
|
||||||
def literal_at_start_with_backslash_a?(regex_str); end
|
|
||||||
def literal_at_start_with_caret?(regex_str); end
|
|
||||||
def safe_multiline?; end
|
|
||||||
end
|
|
||||||
|
|
||||||
module RuboCop::Cop::SortBlock
|
|
||||||
include ::RuboCop::Cop::RangeHelp
|
|
||||||
extend ::RuboCop::AST::NodePattern::Macros
|
|
||||||
|
|
||||||
def replaceable_body?(param0 = T.unsafe(nil), param1, param2); end
|
|
||||||
def sort_with_block?(param0 = T.unsafe(nil)); end
|
|
||||||
def sort_with_numblock?(param0 = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def sort_range(send, node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::NodePattern = RuboCop::AST::NodePattern
|
|
||||||
module RuboCop::Performance; end
|
|
||||||
RuboCop::Performance::CONFIG = T.let(T.unsafe(nil), Hash)
|
|
||||||
RuboCop::Performance::CONFIG_DEFAULT = T.let(T.unsafe(nil), Pathname)
|
|
||||||
|
|
||||||
module RuboCop::Performance::Inject
|
|
||||||
class << self
|
|
||||||
def defaults!; end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Performance::PROJECT_ROOT = T.let(T.unsafe(nil), Pathname)
|
|
||||||
|
|
||||||
module RuboCop::Performance::Version
|
|
||||||
class << self
|
|
||||||
def document_version; end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
RuboCop::Performance::Version::STRING = T.let(T.unsafe(nil), String)
|
|
||||||
RuboCop::ProcessedSource = RuboCop::AST::ProcessedSource
|
|
||||||
RuboCop::Token = RuboCop::AST::Token
|
|
||||||
3208
Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.19.1.rbi
generated
Normal file
3208
Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.19.1.rbi
generated
Normal file
File diff suppressed because it is too large
Load Diff
2452
Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.19.1.rbi
generated
2452
Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.19.1.rbi
generated
File diff suppressed because it is too large
Load Diff
9137
Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.22.2.rbi
generated
Normal file
9137
Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.22.2.rbi
generated
Normal file
File diff suppressed because it is too large
Load Diff
2302
Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@2.20.0.rbi
generated
2302
Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@2.20.0.rbi
generated
File diff suppressed because it is too large
Load Diff
8164
Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@2.25.0.rbi
generated
Normal file
8164
Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@2.25.0.rbi
generated
Normal file
File diff suppressed because it is too large
Load Diff
1033
Library/Homebrew/sorbet/rbi/gems/rubocop-sorbet@0.7.6.rbi
generated
1033
Library/Homebrew/sorbet/rbi/gems/rubocop-sorbet@0.7.6.rbi
generated
File diff suppressed because it is too large
Load Diff
14873
Library/Homebrew/sorbet/rbi/gems/rubocop@1.50.2.rbi
generated
14873
Library/Homebrew/sorbet/rbi/gems/rubocop@1.50.2.rbi
generated
File diff suppressed because it is too large
Load Diff
57245
Library/Homebrew/sorbet/rbi/gems/rubocop@1.59.0.rbi
generated
Normal file
57245
Library/Homebrew/sorbet/rbi/gems/rubocop@1.59.0.rbi
generated
Normal file
File diff suppressed because it is too large
Load Diff
3438
Library/Homebrew/sorbet/rbi/gems/ruby-macho@4.0.0.rbi
generated
3438
Library/Homebrew/sorbet/rbi/gems/ruby-macho@4.0.0.rbi
generated
File diff suppressed because it is too large
Load Diff
699
Library/Homebrew/sorbet/rbi/gems/ruby-prof@1.4.3.rbi
generated
699
Library/Homebrew/sorbet/rbi/gems/ruby-prof@1.4.3.rbi
generated
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -4,83 +4,187 @@
|
|||||||
# This is an autogenerated file for types exported from the `simplecov-cobertura` gem.
|
# This is an autogenerated file for types exported from the `simplecov-cobertura` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem simplecov-cobertura`.
|
# Please instead update this file by running `bin/tapioca gem simplecov-cobertura`.
|
||||||
|
|
||||||
|
# source://simplecov-cobertura//lib/simplecov-cobertura/version.rb#1
|
||||||
module SimpleCov
|
module SimpleCov
|
||||||
extend ::SimpleCov::Configuration
|
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#174
|
||||||
def at_exit_behavior; end
|
def at_exit_behavior; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#170
|
||||||
def clear_result; end
|
def clear_result; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#86
|
||||||
def collate(result_filenames, profile = T.unsafe(nil), ignore_timeout: T.unsafe(nil), &block); end
|
def collate(result_filenames, profile = T.unsafe(nil), ignore_timeout: T.unsafe(nil), &block); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#223
|
||||||
def exit_and_report_previous_error(exit_status); end
|
def exit_and_report_previous_error(exit_status); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#200
|
||||||
def exit_status_from_exception; end
|
def exit_status_from_exception; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#28
|
||||||
def external_at_exit; end
|
def external_at_exit; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#28
|
||||||
def external_at_exit=(_arg0); end
|
def external_at_exit=(_arg0); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#28
|
||||||
def external_at_exit?; end
|
def external_at_exit?; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#131
|
||||||
def filtered(files); end
|
def filtered(files); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#268
|
||||||
def final_result_process?; end
|
def final_result_process?; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#142
|
||||||
def grouped(files); end
|
def grouped(files); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#162
|
||||||
def load_adapter(name); end
|
def load_adapter(name); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#158
|
||||||
def load_profile(name); end
|
def load_profile(name); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#24
|
||||||
def pid; end
|
def pid; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#24
|
||||||
def pid=(_arg0); end
|
def pid=(_arg0); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#213
|
||||||
def previous_error?(error_exit_status); end
|
def previous_error?(error_exit_status); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#248
|
||||||
def process_result(result); end
|
def process_result(result); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#233
|
||||||
def process_results_and_report_error; end
|
def process_results_and_report_error; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#229
|
||||||
def ready_to_process_results?; end
|
def ready_to_process_results?; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#101
|
||||||
def result; end
|
def result; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#124
|
||||||
def result?; end
|
def result?; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#256
|
||||||
def result_exit_status(result); end
|
def result_exit_status(result); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#296
|
||||||
def round_coverage(coverage); end
|
def round_coverage(coverage); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#186
|
||||||
def run_exit_tasks!; end
|
def run_exit_tasks!; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#24
|
||||||
def running; end
|
def running; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#24
|
||||||
def running=(_arg0); end
|
def running=(_arg0); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#48
|
||||||
def start(profile = T.unsafe(nil), &block); end
|
def start(profile = T.unsafe(nil), &block); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#276
|
||||||
def wait_for_other_processes; end
|
def wait_for_other_processes; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#285
|
||||||
def write_last_run(result); end
|
def write_last_run(result); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#399
|
||||||
def adapt_coverage_result; end
|
def adapt_coverage_result; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#371
|
||||||
def add_not_loaded_files(result); end
|
def add_not_loaded_files(result); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#302
|
||||||
def initial_setup(profile, &block); end
|
def initial_setup(profile, &block); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#363
|
||||||
def lookup_corresponding_ruby_coverage_name(criterion); end
|
def lookup_corresponding_ruby_coverage_name(criterion); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#425
|
||||||
def make_parallel_tests_available; end
|
def make_parallel_tests_available; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#434
|
||||||
def probably_running_parallel_tests?; end
|
def probably_running_parallel_tests?; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#388
|
||||||
def process_coverage_result; end
|
def process_coverage_result; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#410
|
||||||
def remove_useless_results; end
|
def remove_useless_results; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#420
|
||||||
def result_with_not_loaded_files; end
|
def result_with_not_loaded_files; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#314
|
||||||
def start_coverage_measurement; end
|
def start_coverage_measurement; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#349
|
||||||
def start_coverage_with_criteria; end
|
def start_coverage_with_criteria; end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
module SimpleCov::Formatter
|
# source://simplecov-cobertura//lib/simplecov-cobertura/version.rb#2
|
||||||
class << self
|
module SimpleCov::Formatter; end
|
||||||
def from_env(env); end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
|
# source://simplecov-cobertura//lib/simplecov-cobertura/version.rb#3
|
||||||
class SimpleCov::Formatter::CoberturaFormatter
|
class SimpleCov::Formatter::CoberturaFormatter
|
||||||
|
# @return [CoberturaFormatter] a new instance of CoberturaFormatter
|
||||||
|
#
|
||||||
|
# source://simplecov-cobertura//lib/simplecov-cobertura.rb#15
|
||||||
def initialize(result_file_name: T.unsafe(nil)); end
|
def initialize(result_file_name: T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://simplecov-cobertura//lib/simplecov-cobertura.rb#19
|
||||||
def format(result); end
|
def format(result); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://simplecov-cobertura//lib/simplecov-cobertura.rb#151
|
||||||
def coverage_output(result); end
|
def coverage_output(result); end
|
||||||
|
|
||||||
|
# source://simplecov-cobertura//lib/simplecov-cobertura.rb#166
|
||||||
def extract_rate(percent); end
|
def extract_rate(percent); end
|
||||||
|
|
||||||
|
# source://simplecov-cobertura//lib/simplecov-cobertura.rb#170
|
||||||
def project_root; end
|
def project_root; end
|
||||||
|
|
||||||
|
# source://simplecov-cobertura//lib/simplecov-cobertura.rb#162
|
||||||
def resolve_filename(filename); end
|
def resolve_filename(filename); end
|
||||||
|
|
||||||
|
# source://simplecov-cobertura//lib/simplecov-cobertura.rb#36
|
||||||
def result_to_xml(result); end
|
def result_to_xml(result); end
|
||||||
|
|
||||||
|
# source://simplecov-cobertura//lib/simplecov-cobertura.rb#134
|
||||||
def set_branch_attributes(line, file_line, branched_lines, branched_lines_covered); end
|
def set_branch_attributes(line, file_line, branched_lines, branched_lines_covered); end
|
||||||
|
|
||||||
|
# source://simplecov-cobertura//lib/simplecov-cobertura.rb#115
|
||||||
def set_class_attributes(class_, file); end
|
def set_class_attributes(class_, file); end
|
||||||
|
|
||||||
|
# source://simplecov-cobertura//lib/simplecov-cobertura.rb#86
|
||||||
def set_coverage_attributes(coverage, result); end
|
def set_coverage_attributes(coverage, result); end
|
||||||
|
|
||||||
|
# source://simplecov-cobertura//lib/simplecov-cobertura.rb#129
|
||||||
def set_line_attributes(line, file_line); end
|
def set_line_attributes(line, file_line); end
|
||||||
|
|
||||||
|
# source://simplecov-cobertura//lib/simplecov-cobertura.rb#103
|
||||||
def set_package_attributes(package, name, result); end
|
def set_package_attributes(package, name, result); end
|
||||||
|
|
||||||
|
# source://simplecov-cobertura//lib/simplecov-cobertura.rb#144
|
||||||
def set_xml_head(lines = T.unsafe(nil)); end
|
def set_xml_head(lines = T.unsafe(nil)); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://simplecov-cobertura//lib/simplecov-cobertura.rb#13
|
||||||
SimpleCov::Formatter::CoberturaFormatter::DTD_URL = T.let(T.unsafe(nil), String)
|
SimpleCov::Formatter::CoberturaFormatter::DTD_URL = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://simplecov-cobertura//lib/simplecov-cobertura.rb#12
|
||||||
SimpleCov::Formatter::CoberturaFormatter::RESULT_FILE_NAME = T.let(T.unsafe(nil), String)
|
SimpleCov::Formatter::CoberturaFormatter::RESULT_FILE_NAME = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://simplecov-cobertura//lib/simplecov-cobertura/version.rb#4
|
||||||
SimpleCov::Formatter::CoberturaFormatter::VERSION = T.let(T.unsafe(nil), String)
|
SimpleCov::Formatter::CoberturaFormatter::VERSION = T.let(T.unsafe(nil), String)
|
||||||
SimpleCov::VERSION = T.let(T.unsafe(nil), String)
|
|
||||||
|
|||||||
@ -4,86 +4,208 @@
|
|||||||
# This is an autogenerated file for types exported from the `simplecov-html` gem.
|
# This is an autogenerated file for types exported from the `simplecov-html` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem simplecov-html`.
|
# Please instead update this file by running `bin/tapioca gem simplecov-html`.
|
||||||
|
|
||||||
|
# source://simplecov-html//lib/simplecov-html.rb#16
|
||||||
module SimpleCov
|
module SimpleCov
|
||||||
extend ::SimpleCov::Configuration
|
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#174
|
||||||
def at_exit_behavior; end
|
def at_exit_behavior; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#170
|
||||||
def clear_result; end
|
def clear_result; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#86
|
||||||
def collate(result_filenames, profile = T.unsafe(nil), ignore_timeout: T.unsafe(nil), &block); end
|
def collate(result_filenames, profile = T.unsafe(nil), ignore_timeout: T.unsafe(nil), &block); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#223
|
||||||
def exit_and_report_previous_error(exit_status); end
|
def exit_and_report_previous_error(exit_status); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#200
|
||||||
def exit_status_from_exception; end
|
def exit_status_from_exception; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#28
|
||||||
def external_at_exit; end
|
def external_at_exit; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#28
|
||||||
def external_at_exit=(_arg0); end
|
def external_at_exit=(_arg0); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#28
|
||||||
def external_at_exit?; end
|
def external_at_exit?; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#131
|
||||||
def filtered(files); end
|
def filtered(files); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#268
|
||||||
def final_result_process?; end
|
def final_result_process?; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#142
|
||||||
def grouped(files); end
|
def grouped(files); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#162
|
||||||
def load_adapter(name); end
|
def load_adapter(name); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#158
|
||||||
def load_profile(name); end
|
def load_profile(name); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#24
|
||||||
def pid; end
|
def pid; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#24
|
||||||
def pid=(_arg0); end
|
def pid=(_arg0); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#213
|
||||||
def previous_error?(error_exit_status); end
|
def previous_error?(error_exit_status); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#248
|
||||||
def process_result(result); end
|
def process_result(result); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#233
|
||||||
def process_results_and_report_error; end
|
def process_results_and_report_error; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#229
|
||||||
def ready_to_process_results?; end
|
def ready_to_process_results?; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#101
|
||||||
def result; end
|
def result; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#124
|
||||||
def result?; end
|
def result?; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#256
|
||||||
def result_exit_status(result); end
|
def result_exit_status(result); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#296
|
||||||
def round_coverage(coverage); end
|
def round_coverage(coverage); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#186
|
||||||
def run_exit_tasks!; end
|
def run_exit_tasks!; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#24
|
||||||
def running; end
|
def running; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#24
|
||||||
def running=(_arg0); end
|
def running=(_arg0); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#48
|
||||||
def start(profile = T.unsafe(nil), &block); end
|
def start(profile = T.unsafe(nil), &block); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#276
|
||||||
def wait_for_other_processes; end
|
def wait_for_other_processes; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#285
|
||||||
def write_last_run(result); end
|
def write_last_run(result); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#399
|
||||||
def adapt_coverage_result; end
|
def adapt_coverage_result; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#371
|
||||||
def add_not_loaded_files(result); end
|
def add_not_loaded_files(result); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#302
|
||||||
def initial_setup(profile, &block); end
|
def initial_setup(profile, &block); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#363
|
||||||
def lookup_corresponding_ruby_coverage_name(criterion); end
|
def lookup_corresponding_ruby_coverage_name(criterion); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#425
|
||||||
def make_parallel_tests_available; end
|
def make_parallel_tests_available; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#434
|
||||||
def probably_running_parallel_tests?; end
|
def probably_running_parallel_tests?; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#388
|
||||||
def process_coverage_result; end
|
def process_coverage_result; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#410
|
||||||
def remove_useless_results; end
|
def remove_useless_results; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#420
|
||||||
def result_with_not_loaded_files; end
|
def result_with_not_loaded_files; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#314
|
||||||
def start_coverage_measurement; end
|
def start_coverage_measurement; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#349
|
||||||
def start_coverage_with_criteria; end
|
def start_coverage_with_criteria; end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
module SimpleCov::Formatter
|
# source://simplecov-html//lib/simplecov-html.rb#17
|
||||||
class << self
|
module SimpleCov::Formatter; end
|
||||||
def from_env(env); end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
|
# source://simplecov-html//lib/simplecov-html.rb#18
|
||||||
class SimpleCov::Formatter::HTMLFormatter
|
class SimpleCov::Formatter::HTMLFormatter
|
||||||
|
# @return [HTMLFormatter] a new instance of HTMLFormatter
|
||||||
|
#
|
||||||
|
# source://simplecov-html//lib/simplecov-html.rb#19
|
||||||
def initialize; end
|
def initialize; end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://simplecov-html//lib/simplecov-html.rb#38
|
||||||
def branchable_result?; end
|
def branchable_result?; end
|
||||||
|
|
||||||
|
# source://simplecov-html//lib/simplecov-html.rb#23
|
||||||
def format(result); end
|
def format(result); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://simplecov-html//lib/simplecov-html.rb#45
|
||||||
def line_status?(source_file, line); end
|
def line_status?(source_file, line); end
|
||||||
|
|
||||||
|
# source://simplecov-html//lib/simplecov-html.rb#34
|
||||||
def output_message(result); end
|
def output_message(result); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://simplecov-html//lib/simplecov-html.rb#64
|
||||||
def asset_output_path; end
|
def asset_output_path; end
|
||||||
|
|
||||||
|
# source://simplecov-html//lib/simplecov-html.rb#72
|
||||||
def assets_path(name); end
|
def assets_path(name); end
|
||||||
|
|
||||||
|
# source://simplecov-html//lib/simplecov-html.rb#97
|
||||||
def coverage_css_class(covered_percent); end
|
def coverage_css_class(covered_percent); end
|
||||||
|
|
||||||
|
# source://simplecov-html//lib/simplecov-html.rb#93
|
||||||
def covered_percent(percent); end
|
def covered_percent(percent); end
|
||||||
|
|
||||||
|
# Returns a table containing the given source files
|
||||||
|
#
|
||||||
|
# source://simplecov-html//lib/simplecov-html.rb#84
|
||||||
def formatted_file_list(title, source_files); end
|
def formatted_file_list(title, source_files); end
|
||||||
|
|
||||||
|
# Returns the html for the given source_file
|
||||||
|
#
|
||||||
|
# source://simplecov-html//lib/simplecov-html.rb#77
|
||||||
def formatted_source_file(source_file); end
|
def formatted_source_file(source_file); end
|
||||||
|
|
||||||
|
# Return a (kind of) unique id for the source file given. Uses SHA1 on path for the id
|
||||||
|
#
|
||||||
|
# source://simplecov-html//lib/simplecov-html.rb#118
|
||||||
def id(source_file); end
|
def id(source_file); end
|
||||||
|
|
||||||
|
# source://simplecov-html//lib/simplecov-html.rb#130
|
||||||
def link_to_source_file(source_file); end
|
def link_to_source_file(source_file); end
|
||||||
|
|
||||||
|
# source://simplecov-html//lib/simplecov-html.rb#60
|
||||||
def output_path; end
|
def output_path; end
|
||||||
|
|
||||||
|
# source://simplecov-html//lib/simplecov-html.rb#126
|
||||||
def shortened_filename(source_file); end
|
def shortened_filename(source_file); end
|
||||||
|
|
||||||
|
# source://simplecov-html//lib/simplecov-html.rb#107
|
||||||
def strength_css_class(covered_strength); end
|
def strength_css_class(covered_strength); end
|
||||||
|
|
||||||
|
# Returns the an erb instance for the template of given name
|
||||||
|
#
|
||||||
|
# source://simplecov-html//lib/simplecov-html.rb#56
|
||||||
def template(name); end
|
def template(name); end
|
||||||
|
|
||||||
|
# source://simplecov-html//lib/simplecov-html.rb#122
|
||||||
def timeago(time); end
|
def timeago(time); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://simplecov-html//lib/simplecov-html/version.rb#6
|
||||||
SimpleCov::Formatter::HTMLFormatter::VERSION = T.let(T.unsafe(nil), String)
|
SimpleCov::Formatter::HTMLFormatter::VERSION = T.let(T.unsafe(nil), String)
|
||||||
SimpleCov::VERSION = T.let(T.unsafe(nil), String)
|
|
||||||
|
|||||||
1607
Library/Homebrew/sorbet/rbi/gems/simplecov@0.22.0.rbi
generated
1607
Library/Homebrew/sorbet/rbi/gems/simplecov@0.22.0.rbi
generated
File diff suppressed because it is too large
Load Diff
@ -4,112 +4,230 @@
|
|||||||
# This is an autogenerated file for types exported from the `simplecov_json_formatter` gem.
|
# This is an autogenerated file for types exported from the `simplecov_json_formatter` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem simplecov_json_formatter`.
|
# Please instead update this file by running `bin/tapioca gem simplecov_json_formatter`.
|
||||||
|
|
||||||
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter.rb#7
|
||||||
module SimpleCov
|
module SimpleCov
|
||||||
extend ::SimpleCov::Configuration
|
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#174
|
||||||
def at_exit_behavior; end
|
def at_exit_behavior; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#170
|
||||||
def clear_result; end
|
def clear_result; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#86
|
||||||
def collate(result_filenames, profile = T.unsafe(nil), ignore_timeout: T.unsafe(nil), &block); end
|
def collate(result_filenames, profile = T.unsafe(nil), ignore_timeout: T.unsafe(nil), &block); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#223
|
||||||
def exit_and_report_previous_error(exit_status); end
|
def exit_and_report_previous_error(exit_status); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#200
|
||||||
def exit_status_from_exception; end
|
def exit_status_from_exception; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#28
|
||||||
def external_at_exit; end
|
def external_at_exit; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#28
|
||||||
def external_at_exit=(_arg0); end
|
def external_at_exit=(_arg0); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#28
|
||||||
def external_at_exit?; end
|
def external_at_exit?; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#131
|
||||||
def filtered(files); end
|
def filtered(files); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#268
|
||||||
def final_result_process?; end
|
def final_result_process?; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#142
|
||||||
def grouped(files); end
|
def grouped(files); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#162
|
||||||
def load_adapter(name); end
|
def load_adapter(name); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#158
|
||||||
def load_profile(name); end
|
def load_profile(name); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#24
|
||||||
def pid; end
|
def pid; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#24
|
||||||
def pid=(_arg0); end
|
def pid=(_arg0); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#213
|
||||||
def previous_error?(error_exit_status); end
|
def previous_error?(error_exit_status); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#248
|
||||||
def process_result(result); end
|
def process_result(result); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#233
|
||||||
def process_results_and_report_error; end
|
def process_results_and_report_error; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#229
|
||||||
def ready_to_process_results?; end
|
def ready_to_process_results?; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#101
|
||||||
def result; end
|
def result; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#124
|
||||||
def result?; end
|
def result?; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#256
|
||||||
def result_exit_status(result); end
|
def result_exit_status(result); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#296
|
||||||
def round_coverage(coverage); end
|
def round_coverage(coverage); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#186
|
||||||
def run_exit_tasks!; end
|
def run_exit_tasks!; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#24
|
||||||
def running; end
|
def running; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#24
|
||||||
def running=(_arg0); end
|
def running=(_arg0); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#48
|
||||||
def start(profile = T.unsafe(nil), &block); end
|
def start(profile = T.unsafe(nil), &block); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#276
|
||||||
def wait_for_other_processes; end
|
def wait_for_other_processes; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#285
|
||||||
def write_last_run(result); end
|
def write_last_run(result); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#399
|
||||||
def adapt_coverage_result; end
|
def adapt_coverage_result; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#371
|
||||||
def add_not_loaded_files(result); end
|
def add_not_loaded_files(result); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#302
|
||||||
def initial_setup(profile, &block); end
|
def initial_setup(profile, &block); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#363
|
||||||
def lookup_corresponding_ruby_coverage_name(criterion); end
|
def lookup_corresponding_ruby_coverage_name(criterion); end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#425
|
||||||
def make_parallel_tests_available; end
|
def make_parallel_tests_available; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#434
|
||||||
def probably_running_parallel_tests?; end
|
def probably_running_parallel_tests?; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#388
|
||||||
def process_coverage_result; end
|
def process_coverage_result; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#410
|
||||||
def remove_useless_results; end
|
def remove_useless_results; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#420
|
||||||
def result_with_not_loaded_files; end
|
def result_with_not_loaded_files; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#314
|
||||||
def start_coverage_measurement; end
|
def start_coverage_measurement; end
|
||||||
|
|
||||||
|
# source://simplecov/0.22.0/lib/simplecov.rb#349
|
||||||
def start_coverage_with_criteria; end
|
def start_coverage_with_criteria; end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
module SimpleCov::Formatter
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter.rb#8
|
||||||
class << self
|
module SimpleCov::Formatter; end
|
||||||
def from_env(env); end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter.rb#9
|
||||||
class SimpleCov::Formatter::JSONFormatter
|
class SimpleCov::Formatter::JSONFormatter
|
||||||
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter.rb#10
|
||||||
def format(result); end
|
def format(result); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter.rb#25
|
||||||
def export_formatted_result(result_hash); end
|
def export_formatted_result(result_hash); end
|
||||||
|
|
||||||
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter.rb#20
|
||||||
def format_result(result); end
|
def format_result(result); end
|
||||||
|
|
||||||
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter.rb#30
|
||||||
def output_message(result); end
|
def output_message(result); end
|
||||||
end
|
end
|
||||||
|
|
||||||
SimpleCov::VERSION = T.let(T.unsafe(nil), String)
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter/source_file_formatter.rb#3
|
||||||
module SimpleCovJSONFormatter; end
|
module SimpleCovJSONFormatter; end
|
||||||
|
|
||||||
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter/result_exporter.rb#4
|
||||||
class SimpleCovJSONFormatter::ResultExporter
|
class SimpleCovJSONFormatter::ResultExporter
|
||||||
|
# @return [ResultExporter] a new instance of ResultExporter
|
||||||
|
#
|
||||||
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter/result_exporter.rb#7
|
||||||
def initialize(result_hash); end
|
def initialize(result_hash); end
|
||||||
|
|
||||||
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter/result_exporter.rb#11
|
||||||
def export; end
|
def export; end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter/result_exporter.rb#23
|
||||||
def export_path; end
|
def export_path; end
|
||||||
|
|
||||||
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter/result_exporter.rb#19
|
||||||
def json_result; end
|
def json_result; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter/result_exporter.rb#5
|
||||||
SimpleCovJSONFormatter::ResultExporter::FILENAME = T.let(T.unsafe(nil), String)
|
SimpleCovJSONFormatter::ResultExporter::FILENAME = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter/result_hash_formatter.rb#6
|
||||||
class SimpleCovJSONFormatter::ResultHashFormatter
|
class SimpleCovJSONFormatter::ResultHashFormatter
|
||||||
|
# @return [ResultHashFormatter] a new instance of ResultHashFormatter
|
||||||
|
#
|
||||||
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter/result_hash_formatter.rb#7
|
||||||
def initialize(result); end
|
def initialize(result); end
|
||||||
|
|
||||||
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter/result_hash_formatter.rb#11
|
||||||
def format; end
|
def format; end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter/result_hash_formatter.rb#20
|
||||||
def format_files; end
|
def format_files; end
|
||||||
|
|
||||||
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter/result_hash_formatter.rb#27
|
||||||
def format_groups; end
|
def format_groups; end
|
||||||
|
|
||||||
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter/result_hash_formatter.rb#47
|
||||||
def format_source_file(source_file); end
|
def format_source_file(source_file); end
|
||||||
|
|
||||||
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter/result_hash_formatter.rb#37
|
||||||
def formatted_result; end
|
def formatted_result; end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter/source_file_formatter.rb#4
|
||||||
class SimpleCovJSONFormatter::SourceFileFormatter
|
class SimpleCovJSONFormatter::SourceFileFormatter
|
||||||
|
# @return [SourceFileFormatter] a new instance of SourceFileFormatter
|
||||||
|
#
|
||||||
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter/source_file_formatter.rb#5
|
||||||
def initialize(source_file); end
|
def initialize(source_file); end
|
||||||
|
|
||||||
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter/source_file_formatter.rb#10
|
||||||
def format; end
|
def format; end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter/source_file_formatter.rb#26
|
||||||
def branch_coverage; end
|
def branch_coverage; end
|
||||||
|
|
||||||
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter/source_file_formatter.rb#41
|
||||||
def branches; end
|
def branches; end
|
||||||
|
|
||||||
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter/source_file_formatter.rb#20
|
||||||
def line_coverage; end
|
def line_coverage; end
|
||||||
|
|
||||||
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter/source_file_formatter.rb#32
|
||||||
def lines; end
|
def lines; end
|
||||||
|
|
||||||
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter/source_file_formatter.rb#56
|
||||||
def parse_branch(branch); end
|
def parse_branch(branch); end
|
||||||
|
|
||||||
|
# source://simplecov_json_formatter//lib/simplecov_json_formatter/source_file_formatter.rb#50
|
||||||
def parse_line(line); end
|
def parse_line(line); end
|
||||||
end
|
end
|
||||||
|
|||||||
137
Library/Homebrew/sorbet/rbi/gems/simpleidn@0.2.1.rbi
generated
137
Library/Homebrew/sorbet/rbi/gems/simpleidn@0.2.1.rbi
generated
@ -4,56 +4,193 @@
|
|||||||
# This is an autogenerated file for types exported from the `simpleidn` gem.
|
# This is an autogenerated file for types exported from the `simpleidn` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem simpleidn`.
|
# Please instead update this file by running `bin/tapioca gem simpleidn`.
|
||||||
|
|
||||||
|
# IdnaMappingTable-9.0.0.txt
|
||||||
|
# Date: 2016-06-16, 13:35:01 GMT
|
||||||
|
# © 2016 Unicode®, Inc.
|
||||||
|
# Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries.
|
||||||
|
# For terms of use, see http://www.unicode.org/terms_of_use.html
|
||||||
|
#
|
||||||
|
# Unicode IDNA Compatible Preprocessing (UTS #46)
|
||||||
|
# For documentation, see http://www.unicode.org/reports/tr46/
|
||||||
|
# Total code points: 1114112
|
||||||
|
#
|
||||||
|
# source://simpleidn//lib/simpleidn/version.rb#1
|
||||||
module SimpleIDN
|
module SimpleIDN
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# Converts a UTF-8 unicode string to a punycode ACE string.
|
||||||
|
# == Example
|
||||||
|
# SimpleIDN.to_ascii("møllerriis.com")
|
||||||
|
# => "xn--mllerriis-l8a.com"
|
||||||
|
#
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#233
|
||||||
def to_ascii(domain, transitional = T.unsafe(nil)); end
|
def to_ascii(domain, transitional = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Converts a punycode ACE string to a UTF-8 unicode string.
|
||||||
|
# == Example
|
||||||
|
# SimpleIDN.to_unicode("xn--mllerriis-l8a.com")
|
||||||
|
# => "møllerriis.com"
|
||||||
|
#
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#257
|
||||||
def to_unicode(domain, transitional = T.unsafe(nil)); end
|
def to_unicode(domain, transitional = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Applies UTS46 mapping to a Unicode string
|
||||||
|
# Returns a UTF-8 string in Normalization Form C (NFC)
|
||||||
|
#
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#222
|
||||||
def uts46map(str, transitional = T.unsafe(nil)); end
|
def uts46map(str, transitional = T.unsafe(nil)); end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# Converts a UTF-8 unicode string to a punycode ACE string.
|
||||||
|
# == Example
|
||||||
|
# SimpleIDN.to_ascii("møllerriis.com")
|
||||||
|
# => "xn--mllerriis-l8a.com"
|
||||||
|
#
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#233
|
||||||
def to_ascii(domain, transitional = T.unsafe(nil)); end
|
def to_ascii(domain, transitional = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Converts a punycode ACE string to a UTF-8 unicode string.
|
||||||
|
# == Example
|
||||||
|
# SimpleIDN.to_unicode("xn--mllerriis-l8a.com")
|
||||||
|
# => "møllerriis.com"
|
||||||
|
#
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#257
|
||||||
def to_unicode(domain, transitional = T.unsafe(nil)); end
|
def to_unicode(domain, transitional = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Applies UTS46 mapping to a Unicode string
|
||||||
|
# Returns a UTF-8 string in Normalization Form C (NFC)
|
||||||
|
#
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#222
|
||||||
def uts46map(str, transitional = T.unsafe(nil)); end
|
def uts46map(str, transitional = T.unsafe(nil)); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#199
|
||||||
SimpleIDN::ACE_PREFIX = T.let(T.unsafe(nil), String)
|
SimpleIDN::ACE_PREFIX = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#200
|
||||||
SimpleIDN::ASCII_MAX = T.let(T.unsafe(nil), Integer)
|
SimpleIDN::ASCII_MAX = T.let(T.unsafe(nil), Integer)
|
||||||
|
|
||||||
|
# The ConversionError is raised when an error occurs during a
|
||||||
|
# Punycode <-> Unicode conversion.
|
||||||
|
#
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#8
|
||||||
class SimpleIDN::ConversionError < ::RangeError; end
|
class SimpleIDN::ConversionError < ::RangeError; end
|
||||||
|
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#201
|
||||||
SimpleIDN::DOT = T.let(T.unsafe(nil), String)
|
SimpleIDN::DOT = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#202
|
||||||
SimpleIDN::EMPTY = T.let(T.unsafe(nil), String)
|
SimpleIDN::EMPTY = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#203
|
||||||
SimpleIDN::LABEL_SEPERATOR_RE = T.let(T.unsafe(nil), Regexp)
|
SimpleIDN::LABEL_SEPERATOR_RE = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#11
|
||||||
module SimpleIDN::Punycode
|
module SimpleIDN::Punycode
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# Bias adaptation function
|
||||||
|
#
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#44
|
||||||
def adapt(delta, numpoints, firsttime); end
|
def adapt(delta, numpoints, firsttime); end
|
||||||
|
|
||||||
|
# Main decode
|
||||||
|
#
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#57
|
||||||
def decode(input); end
|
def decode(input); end
|
||||||
|
|
||||||
|
# decode_digit(cp) returns the numeric value of a basic code
|
||||||
|
# point (for use in representing integers) in the range 0 to
|
||||||
|
# base-1, or base if cp is does not represent a value.
|
||||||
|
#
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#30
|
||||||
def decode_digit(cp); end
|
def decode_digit(cp); end
|
||||||
|
|
||||||
|
# Main encode function
|
||||||
|
#
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#129
|
||||||
def encode(input); end
|
def encode(input); end
|
||||||
|
|
||||||
|
# encode_digit(d) returns the basic code point whose value
|
||||||
|
# (when used for representing integers) is d, which needs to be in
|
||||||
|
# the range 0 to base-1.
|
||||||
|
#
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#37
|
||||||
def encode_digit(d); end
|
def encode_digit(d); end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# Bias adaptation function
|
||||||
|
#
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#44
|
||||||
def adapt(delta, numpoints, firsttime); end
|
def adapt(delta, numpoints, firsttime); end
|
||||||
|
|
||||||
|
# Main decode
|
||||||
|
#
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#57
|
||||||
def decode(input); end
|
def decode(input); end
|
||||||
|
|
||||||
|
# decode_digit(cp) returns the numeric value of a basic code
|
||||||
|
# point (for use in representing integers) in the range 0 to
|
||||||
|
# base-1, or base if cp is does not represent a value.
|
||||||
|
#
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#30
|
||||||
def decode_digit(cp); end
|
def decode_digit(cp); end
|
||||||
|
|
||||||
|
# Main encode function
|
||||||
|
#
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#129
|
||||||
def encode(input); end
|
def encode(input); end
|
||||||
|
|
||||||
|
# encode_digit(d) returns the basic code point whose value
|
||||||
|
# (when used for representing integers) is d, which needs to be in
|
||||||
|
# the range 0 to base-1.
|
||||||
|
#
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#37
|
||||||
def encode_digit(d); end
|
def encode_digit(d); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#21
|
||||||
SimpleIDN::Punycode::ASCII_MAX = T.let(T.unsafe(nil), Integer)
|
SimpleIDN::Punycode::ASCII_MAX = T.let(T.unsafe(nil), Integer)
|
||||||
|
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#15
|
||||||
SimpleIDN::Punycode::BASE = T.let(T.unsafe(nil), Integer)
|
SimpleIDN::Punycode::BASE = T.let(T.unsafe(nil), Integer)
|
||||||
|
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#16
|
||||||
SimpleIDN::Punycode::DAMP = T.let(T.unsafe(nil), Integer)
|
SimpleIDN::Punycode::DAMP = T.let(T.unsafe(nil), Integer)
|
||||||
|
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#14
|
||||||
SimpleIDN::Punycode::DELIMITER = T.let(T.unsafe(nil), Integer)
|
SimpleIDN::Punycode::DELIMITER = T.let(T.unsafe(nil), Integer)
|
||||||
|
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#23
|
||||||
SimpleIDN::Punycode::EMPTY = T.let(T.unsafe(nil), String)
|
SimpleIDN::Punycode::EMPTY = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#13
|
||||||
SimpleIDN::Punycode::INITIAL_BIAS = T.let(T.unsafe(nil), Integer)
|
SimpleIDN::Punycode::INITIAL_BIAS = T.let(T.unsafe(nil), Integer)
|
||||||
|
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#12
|
||||||
SimpleIDN::Punycode::INITIAL_N = T.let(T.unsafe(nil), Integer)
|
SimpleIDN::Punycode::INITIAL_N = T.let(T.unsafe(nil), Integer)
|
||||||
|
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#20
|
||||||
SimpleIDN::Punycode::MAXINT = T.let(T.unsafe(nil), Integer)
|
SimpleIDN::Punycode::MAXINT = T.let(T.unsafe(nil), Integer)
|
||||||
|
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#19
|
||||||
SimpleIDN::Punycode::SKEW = T.let(T.unsafe(nil), Integer)
|
SimpleIDN::Punycode::SKEW = T.let(T.unsafe(nil), Integer)
|
||||||
|
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#18
|
||||||
SimpleIDN::Punycode::TMAX = T.let(T.unsafe(nil), Integer)
|
SimpleIDN::Punycode::TMAX = T.let(T.unsafe(nil), Integer)
|
||||||
|
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#17
|
||||||
SimpleIDN::Punycode::TMIN = T.let(T.unsafe(nil), Integer)
|
SimpleIDN::Punycode::TMIN = T.let(T.unsafe(nil), Integer)
|
||||||
|
|
||||||
|
# See UTS46 Table 1
|
||||||
|
#
|
||||||
|
# source://simpleidn//lib/simpleidn.rb#211
|
||||||
SimpleIDN::TRANSITIONAL = T.let(T.unsafe(nil), Hash)
|
SimpleIDN::TRANSITIONAL = T.let(T.unsafe(nil), Hash)
|
||||||
|
|
||||||
|
# source://simpleidn//lib/simpleidn/uts46mapping.rb#14
|
||||||
SimpleIDN::UTS64MAPPING = T.let(T.unsafe(nil), Hash)
|
SimpleIDN::UTS64MAPPING = T.let(T.unsafe(nil), Hash)
|
||||||
|
|
||||||
|
# source://simpleidn//lib/simpleidn/version.rb#2
|
||||||
SimpleIDN::VERSION = T.let(T.unsafe(nil), String)
|
SimpleIDN::VERSION = T.let(T.unsafe(nil), String)
|
||||||
|
|||||||
1445
Library/Homebrew/sorbet/rbi/gems/spoom@1.1.11.rbi
generated
1445
Library/Homebrew/sorbet/rbi/gems/spoom@1.1.11.rbi
generated
File diff suppressed because it is too large
Load Diff
3777
Library/Homebrew/sorbet/rbi/gems/spoom@1.2.4.rbi
generated
Normal file
3777
Library/Homebrew/sorbet/rbi/gems/spoom@1.2.4.rbi
generated
Normal file
File diff suppressed because it is too large
Load Diff
153
Library/Homebrew/sorbet/rbi/gems/stackprof@0.2.25.rbi
generated
153
Library/Homebrew/sorbet/rbi/gems/stackprof@0.2.25.rbi
generated
@ -4,11 +4,15 @@
|
|||||||
# This is an autogenerated file for types exported from the `stackprof` gem.
|
# This is an autogenerated file for types exported from the `stackprof` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem stackprof`.
|
# Please instead update this file by running `bin/tapioca gem stackprof`.
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof.rb#16
|
||||||
module StackProf
|
module StackProf
|
||||||
class << self
|
class << self
|
||||||
def results(*_arg0); end
|
def results(*_arg0); end
|
||||||
def run(*_arg0); end
|
def run(*_arg0); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
def running?; end
|
def running?; end
|
||||||
|
|
||||||
def sample; end
|
def sample; end
|
||||||
def start(*_arg0); end
|
def start(*_arg0); end
|
||||||
def stop; end
|
def stop; end
|
||||||
@ -16,73 +20,222 @@ module StackProf
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/middleware.rb#4
|
||||||
class StackProf::Middleware
|
class StackProf::Middleware
|
||||||
|
# @return [Middleware] a new instance of Middleware
|
||||||
|
#
|
||||||
|
# source://stackprof//lib/stackprof/middleware.rb#5
|
||||||
def initialize(app, options = T.unsafe(nil)); end
|
def initialize(app, options = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/middleware.rb#20
|
||||||
def call(env); end
|
def call(env); end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# Returns the value of attribute enabled.
|
||||||
|
#
|
||||||
|
# source://stackprof//lib/stackprof/middleware.rb#40
|
||||||
def enabled; end
|
def enabled; end
|
||||||
|
|
||||||
|
# Sets the attribute enabled
|
||||||
|
#
|
||||||
|
# @param value the value to set the attribute enabled to.
|
||||||
|
#
|
||||||
|
# source://stackprof//lib/stackprof/middleware.rb#40
|
||||||
def enabled=(_arg0); end
|
def enabled=(_arg0); end
|
||||||
|
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# source://stackprof//lib/stackprof/middleware.rb#42
|
||||||
def enabled?(env); end
|
def enabled?(env); end
|
||||||
|
|
||||||
|
# Returns the value of attribute interval.
|
||||||
|
#
|
||||||
|
# source://stackprof//lib/stackprof/middleware.rb#40
|
||||||
def interval; end
|
def interval; end
|
||||||
|
|
||||||
|
# Sets the attribute interval
|
||||||
|
#
|
||||||
|
# @param value the value to set the attribute interval to.
|
||||||
|
#
|
||||||
|
# source://stackprof//lib/stackprof/middleware.rb#40
|
||||||
def interval=(_arg0); end
|
def interval=(_arg0); end
|
||||||
|
|
||||||
|
# Returns the value of attribute metadata.
|
||||||
|
#
|
||||||
|
# source://stackprof//lib/stackprof/middleware.rb#40
|
||||||
def metadata; end
|
def metadata; end
|
||||||
|
|
||||||
|
# Sets the attribute metadata
|
||||||
|
#
|
||||||
|
# @param value the value to set the attribute metadata to.
|
||||||
|
#
|
||||||
|
# source://stackprof//lib/stackprof/middleware.rb#40
|
||||||
def metadata=(_arg0); end
|
def metadata=(_arg0); end
|
||||||
|
|
||||||
|
# Returns the value of attribute mode.
|
||||||
|
#
|
||||||
|
# source://stackprof//lib/stackprof/middleware.rb#40
|
||||||
def mode; end
|
def mode; end
|
||||||
|
|
||||||
|
# Sets the attribute mode
|
||||||
|
#
|
||||||
|
# @param value the value to set the attribute mode to.
|
||||||
|
#
|
||||||
|
# source://stackprof//lib/stackprof/middleware.rb#40
|
||||||
def mode=(_arg0); end
|
def mode=(_arg0); end
|
||||||
|
|
||||||
|
# Returns the value of attribute path.
|
||||||
|
#
|
||||||
|
# source://stackprof//lib/stackprof/middleware.rb#40
|
||||||
def path; end
|
def path; end
|
||||||
|
|
||||||
|
# Sets the attribute path
|
||||||
|
#
|
||||||
|
# @param value the value to set the attribute path to.
|
||||||
|
#
|
||||||
|
# source://stackprof//lib/stackprof/middleware.rb#40
|
||||||
def path=(_arg0); end
|
def path=(_arg0); end
|
||||||
|
|
||||||
|
# Returns the value of attribute raw.
|
||||||
|
#
|
||||||
|
# source://stackprof//lib/stackprof/middleware.rb#40
|
||||||
def raw; end
|
def raw; end
|
||||||
|
|
||||||
|
# Sets the attribute raw
|
||||||
|
#
|
||||||
|
# @param value the value to set the attribute raw to.
|
||||||
|
#
|
||||||
|
# source://stackprof//lib/stackprof/middleware.rb#40
|
||||||
def raw=(_arg0); end
|
def raw=(_arg0); end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/middleware.rb#50
|
||||||
def save; end
|
def save; end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#8
|
||||||
class StackProf::Report
|
class StackProf::Report
|
||||||
|
# @return [Report] a new instance of Report
|
||||||
|
#
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#42
|
||||||
def initialize(data); end
|
def initialize(data); end
|
||||||
|
|
||||||
|
# @raise [ArgumentError]
|
||||||
|
#
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#618
|
||||||
def +(other); end
|
def +(other); end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#92
|
||||||
def add_lines(a, b); end
|
def add_lines(a, b); end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#212
|
||||||
def convert_to_d3_flame_graph_format(name, stacks, depth); end
|
def convert_to_d3_flame_graph_format(name, stacks, depth); end
|
||||||
|
|
||||||
|
# Returns the value of attribute data.
|
||||||
|
#
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#45
|
||||||
def data; end
|
def data; end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#80
|
||||||
def files; end
|
def files; end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#205
|
||||||
def flamegraph_row(f, x, y, weight, addr); end
|
def flamegraph_row(f, x, y, weight, addr); end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#187
|
||||||
def flamegraph_stacks(raw); end
|
def flamegraph_stacks(raw); end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#47
|
||||||
def frames(sort_by_total = T.unsafe(nil)); end
|
def frames(sort_by_total = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#76
|
||||||
def max_samples; end
|
def max_samples; end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#68
|
||||||
def modeline; end
|
def modeline; end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#52
|
||||||
def normalized_frames; end
|
def normalized_frames; end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#72
|
||||||
def overall_samples; end
|
def overall_samples; end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#128
|
||||||
def print_alphabetical_flamegraph(f = T.unsafe(nil), skip_common = T.unsafe(nil)); end
|
def print_alphabetical_flamegraph(f = T.unsafe(nil), skip_common = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#495
|
||||||
def print_callgrind(f = T.unsafe(nil)); end
|
def print_callgrind(f = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#242
|
||||||
def print_d3_flamegraph(f = T.unsafe(nil), skip_common = T.unsafe(nil)); end
|
def print_d3_flamegraph(f = T.unsafe(nil), skip_common = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#99
|
||||||
def print_debug; end
|
def print_debug; end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#103
|
||||||
def print_dump(f = T.unsafe(nil)); end
|
def print_dump(f = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#610
|
||||||
def print_file(filter, f = T.unsafe(nil)); end
|
def print_file(filter, f = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#600
|
||||||
def print_files(sort_by_total = T.unsafe(nil), limit = T.unsafe(nil), f = T.unsafe(nil)); end
|
def print_files(sort_by_total = T.unsafe(nil), limit = T.unsafe(nil), f = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#132
|
||||||
def print_flamegraph(f, skip_common, alphabetical = T.unsafe(nil)); end
|
def print_flamegraph(f, skip_common, alphabetical = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#414
|
||||||
def print_graphviz(options = T.unsafe(nil), f = T.unsafe(nil)); end
|
def print_graphviz(options = T.unsafe(nil), f = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#107
|
||||||
def print_json(f = T.unsafe(nil)); end
|
def print_json(f = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#526
|
||||||
def print_method(name, f = T.unsafe(nil)); end
|
def print_method(name, f = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#112
|
||||||
def print_stackcollapse; end
|
def print_stackcollapse; end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#476
|
||||||
def print_text(sort_by_total = T.unsafe(nil), limit = T.unsafe(nil), select_files = T.unsafe(nil), reject_files = T.unsafe(nil), select_names = T.unsafe(nil), reject_names = T.unsafe(nil), f = T.unsafe(nil)); end
|
def print_text(sort_by_total = T.unsafe(nil), limit = T.unsafe(nil), select_files = T.unsafe(nil), reject_files = T.unsafe(nil), select_names = T.unsafe(nil), reject_names = T.unsafe(nil), f = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#124
|
||||||
def print_timeline_flamegraph(f = T.unsafe(nil), skip_common = T.unsafe(nil)); end
|
def print_timeline_flamegraph(f = T.unsafe(nil), skip_common = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#64
|
||||||
def version; end
|
def version; end
|
||||||
|
|
||||||
|
# Walk up and down the stack from a given starting point (name). Loops
|
||||||
|
# until `:exit` is selected
|
||||||
|
#
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#561
|
||||||
def walk_method(name); end
|
def walk_method(name); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#669
|
||||||
def callers_for(addr); end
|
def callers_for(addr); end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#665
|
||||||
def root_frames; end
|
def root_frames; end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#674
|
||||||
def source_display(f, file, lines, range = T.unsafe(nil)); end
|
def source_display(f, file, lines, range = T.unsafe(nil)); end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#12
|
||||||
def from_file(file); end
|
def from_file(file); end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#20
|
||||||
def from_json(json); end
|
def from_json(json); end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#24
|
||||||
def parse_json(json); end
|
def parse_json(json); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof/report.rb#9
|
||||||
StackProf::Report::MARSHAL_SIGNATURE = T.let(T.unsafe(nil), String)
|
StackProf::Report::MARSHAL_SIGNATURE = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://stackprof//lib/stackprof.rb#17
|
||||||
StackProf::VERSION = T.let(T.unsafe(nil), String)
|
StackProf::VERSION = T.let(T.unsafe(nil), String)
|
||||||
|
|||||||
23136
Library/Homebrew/sorbet/rbi/gems/syntax_tree@6.2.0.rbi
generated
Normal file
23136
Library/Homebrew/sorbet/rbi/gems/syntax_tree@6.2.0.rbi
generated
Normal file
File diff suppressed because it is too large
Load Diff
3504
Library/Homebrew/sorbet/rbi/gems/tapioca@0.11.13.rbi
generated
Normal file
3504
Library/Homebrew/sorbet/rbi/gems/tapioca@0.11.13.rbi
generated
Normal file
File diff suppressed because it is too large
Load Diff
1723
Library/Homebrew/sorbet/rbi/gems/tapioca@0.7.3.rbi
generated
1723
Library/Homebrew/sorbet/rbi/gems/tapioca@0.7.3.rbi
generated
File diff suppressed because it is too large
Load Diff
3401
Library/Homebrew/sorbet/rbi/gems/thor@1.3.0.rbi
generated
3401
Library/Homebrew/sorbet/rbi/gems/thor@1.3.0.rbi
generated
File diff suppressed because it is too large
Load Diff
5048
Library/Homebrew/sorbet/rbi/gems/tzinfo@2.0.6.rbi
generated
5048
Library/Homebrew/sorbet/rbi/gems/tzinfo@2.0.6.rbi
generated
File diff suppressed because it is too large
Load Diff
17
Library/Homebrew/sorbet/rbi/gems/unf@0.1.4.rbi
generated
17
Library/Homebrew/sorbet/rbi/gems/unf@0.1.4.rbi
generated
@ -4,20 +4,35 @@
|
|||||||
# This is an autogenerated file for types exported from the `unf` gem.
|
# This is an autogenerated file for types exported from the `unf` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem unf`.
|
# Please instead update this file by running `bin/tapioca gem unf`.
|
||||||
|
|
||||||
|
# source://unf//lib/unf/version.rb#1
|
||||||
module UNF; end
|
module UNF; end
|
||||||
|
|
||||||
|
# UTF-8 string normalizer class. Implementations may vary depending
|
||||||
|
# on the platform.
|
||||||
|
#
|
||||||
|
# source://unf//lib/unf/normalizer.rb#10
|
||||||
class UNF::Normalizer
|
class UNF::Normalizer
|
||||||
include ::Singleton
|
include ::Singleton
|
||||||
extend ::Singleton::SingletonClassMethods
|
extend ::Singleton::SingletonClassMethods
|
||||||
|
|
||||||
|
# @return [Normalizer] a new instance of Normalizer
|
||||||
def initialize; end
|
def initialize; end
|
||||||
|
|
||||||
def normalize(_arg0, _arg1); end
|
def normalize(_arg0, _arg1); end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
def instance; end
|
def new(*_arg0); end
|
||||||
|
|
||||||
|
# A shortcut for instance.normalize(string, form).
|
||||||
|
#
|
||||||
|
# source://unf//lib/unf/normalizer.rb#24
|
||||||
def normalize(string, form); end
|
def normalize(string, form); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def allocate; end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://unf//lib/unf/version.rb#2
|
||||||
UNF::VERSION = T.let(T.unsafe(nil), String)
|
UNF::VERSION = T.let(T.unsafe(nil), String)
|
||||||
|
|||||||
@ -5,4 +5,4 @@
|
|||||||
# Please instead update this file by running `bin/tapioca gem unf_ext`.
|
# Please instead update this file by running `bin/tapioca gem unf_ext`.
|
||||||
|
|
||||||
# THIS IS AN EMPTY RBI FILE.
|
# THIS IS AN EMPTY RBI FILE.
|
||||||
# see https://github.com/Shopify/tapioca/wiki/Manual-Gem-Requires
|
# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
|
||||||
|
|||||||
@ -4,28 +4,62 @@
|
|||||||
# This is an autogenerated file for types exported from the `unicode-display_width` gem.
|
# This is an autogenerated file for types exported from the `unicode-display_width` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem unicode-display_width`.
|
# Please instead update this file by running `bin/tapioca gem unicode-display_width`.
|
||||||
|
|
||||||
|
# source://unicode-display_width//lib/unicode/display_width/constants.rb#3
|
||||||
module Unicode; end
|
module Unicode; end
|
||||||
|
|
||||||
|
# source://unicode-display_width//lib/unicode/display_width/constants.rb#4
|
||||||
class Unicode::DisplayWidth
|
class Unicode::DisplayWidth
|
||||||
|
# @return [DisplayWidth] a new instance of DisplayWidth
|
||||||
|
#
|
||||||
|
# source://unicode-display_width//lib/unicode/display_width.rb#104
|
||||||
def initialize(ambiguous: T.unsafe(nil), overwrite: T.unsafe(nil), emoji: T.unsafe(nil)); end
|
def initialize(ambiguous: T.unsafe(nil), overwrite: T.unsafe(nil), emoji: T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://unicode-display_width//lib/unicode/display_width.rb#110
|
||||||
def get_config(**kwargs); end
|
def get_config(**kwargs); end
|
||||||
|
|
||||||
|
# source://unicode-display_width//lib/unicode/display_width.rb#118
|
||||||
def of(string, **kwargs); end
|
def of(string, **kwargs); end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
# source://unicode-display_width//lib/unicode/display_width/index.rb#14
|
||||||
def decompress_index(index, level); end
|
def decompress_index(index, level); end
|
||||||
|
|
||||||
|
# source://unicode-display_width//lib/unicode/display_width.rb#86
|
||||||
def emoji_extra_width_of(string, ambiguous = T.unsafe(nil), overwrite = T.unsafe(nil), _ = T.unsafe(nil)); end
|
def emoji_extra_width_of(string, ambiguous = T.unsafe(nil), overwrite = T.unsafe(nil), _ = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://unicode-display_width//lib/unicode/display_width.rb#12
|
||||||
def of(string, ambiguous = T.unsafe(nil), overwrite = T.unsafe(nil), options = T.unsafe(nil)); end
|
def of(string, ambiguous = T.unsafe(nil), overwrite = T.unsafe(nil), options = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Same as .width_no_overwrite - but with applying overwrites for each char
|
||||||
|
#
|
||||||
|
# source://unicode-display_width//lib/unicode/display_width.rb#57
|
||||||
def width_all_features(string, ambiguous, overwrite, options); end
|
def width_all_features(string, ambiguous, overwrite, options); end
|
||||||
|
|
||||||
|
# source://unicode-display_width//lib/unicode/display_width.rb#30
|
||||||
def width_no_overwrite(string, ambiguous, options = T.unsafe(nil)); end
|
def width_no_overwrite(string, ambiguous, options = T.unsafe(nil)); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://unicode-display_width//lib/unicode/display_width.rb#9
|
||||||
Unicode::DisplayWidth::ASCII_NON_ZERO_REGEX = T.let(T.unsafe(nil), Regexp)
|
Unicode::DisplayWidth::ASCII_NON_ZERO_REGEX = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
|
# source://unicode-display_width//lib/unicode/display_width/constants.rb#7
|
||||||
Unicode::DisplayWidth::DATA_DIRECTORY = T.let(T.unsafe(nil), String)
|
Unicode::DisplayWidth::DATA_DIRECTORY = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://unicode-display_width//lib/unicode/display_width.rb#10
|
||||||
Unicode::DisplayWidth::FIRST_4096 = T.let(T.unsafe(nil), Array)
|
Unicode::DisplayWidth::FIRST_4096 = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
# source://unicode-display_width//lib/unicode/display_width/index.rb#11
|
||||||
Unicode::DisplayWidth::INDEX = T.let(T.unsafe(nil), Array)
|
Unicode::DisplayWidth::INDEX = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
# source://unicode-display_width//lib/unicode/display_width/constants.rb#8
|
||||||
Unicode::DisplayWidth::INDEX_FILENAME = T.let(T.unsafe(nil), String)
|
Unicode::DisplayWidth::INDEX_FILENAME = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://unicode-display_width//lib/unicode/display_width.rb#8
|
||||||
Unicode::DisplayWidth::INITIAL_DEPTH = T.let(T.unsafe(nil), Integer)
|
Unicode::DisplayWidth::INITIAL_DEPTH = T.let(T.unsafe(nil), Integer)
|
||||||
|
|
||||||
|
# source://unicode-display_width//lib/unicode/display_width/constants.rb#6
|
||||||
Unicode::DisplayWidth::UNICODE_VERSION = T.let(T.unsafe(nil), String)
|
Unicode::DisplayWidth::UNICODE_VERSION = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# source://unicode-display_width//lib/unicode/display_width/constants.rb#5
|
||||||
Unicode::DisplayWidth::VERSION = T.let(T.unsafe(nil), String)
|
Unicode::DisplayWidth::VERSION = T.let(T.unsafe(nil), String)
|
||||||
|
|||||||
1834
Library/Homebrew/sorbet/rbi/gems/unparser@0.6.4.rbi
generated
1834
Library/Homebrew/sorbet/rbi/gems/unparser@0.6.4.rbi
generated
File diff suppressed because it is too large
Load Diff
128
Library/Homebrew/sorbet/rbi/gems/warning@1.3.0.rbi
generated
128
Library/Homebrew/sorbet/rbi/gems/warning@1.3.0.rbi
generated
@ -4,24 +4,150 @@
|
|||||||
# This is an autogenerated file for types exported from the `warning` gem.
|
# This is an autogenerated file for types exported from the `warning` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem warning`.
|
# Please instead update this file by running `bin/tapioca gem warning`.
|
||||||
|
|
||||||
|
# source://warning//lib/warning.rb#3
|
||||||
module Warning
|
module Warning
|
||||||
extend ::Warning
|
extend ::Warning
|
||||||
extend ::Warning::Processor
|
extend ::Warning::Processor
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# source://warning//lib/warning.rb#4
|
||||||
module Warning::Processor
|
module Warning::Processor
|
||||||
|
# Clear all current ignored warnings, warning processors, and duplicate check cache.
|
||||||
|
# Also disables deduplicating warnings if that is currently enabled.
|
||||||
|
#
|
||||||
|
# If a block is passed, the previous values are restored after the block exits.
|
||||||
|
#
|
||||||
|
# Examples:
|
||||||
|
#
|
||||||
|
# # Clear warning state
|
||||||
|
# Warning.clear
|
||||||
|
#
|
||||||
|
# Warning.clear do
|
||||||
|
# # Clear warning state inside the block
|
||||||
|
# ...
|
||||||
|
# end
|
||||||
|
# # Previous warning state restored when block exists
|
||||||
|
#
|
||||||
|
# source://warning//lib/warning.rb#48
|
||||||
def clear; end
|
def clear; end
|
||||||
|
|
||||||
|
# Deduplicate warnings, suppress warning messages if the same warning message
|
||||||
|
# has already occurred. Note that this can lead to unbounded memory use
|
||||||
|
# if unique warnings are generated.
|
||||||
|
#
|
||||||
|
# source://warning//lib/warning.rb#79
|
||||||
def dedup; end
|
def dedup; end
|
||||||
|
|
||||||
|
# source://warning//lib/warning.rb#83
|
||||||
def freeze; end
|
def freeze; end
|
||||||
|
|
||||||
|
# Ignore any warning messages matching the given regexp, if they
|
||||||
|
# start with the given path.
|
||||||
|
# The regexp can also be one of the following symbols (or an array including them), which will
|
||||||
|
# use an appropriate regexp for the given warning:
|
||||||
|
#
|
||||||
|
# :arg_prefix :: Ignore warnings when using * or & as an argument prefix
|
||||||
|
# :ambiguous_slash :: Ignore warnings for things like <tt>method /regexp/</tt>
|
||||||
|
# :bignum :: Ignore warnings when referencing the ::Bignum constant.
|
||||||
|
# :fixnum :: Ignore warnings when referencing the ::Fixnum constant.
|
||||||
|
# :keyword_separation :: Ignore warnings related to keyword argument separation.
|
||||||
|
# :method_redefined :: Ignore warnings when defining a method in a class/module where a
|
||||||
|
# method of the same name was already defined in that class/module.
|
||||||
|
# :missing_gvar :: Ignore warnings for accesses to global variables
|
||||||
|
# that have not yet been initialized
|
||||||
|
# :missing_ivar :: Ignore warnings for accesses to instance variables
|
||||||
|
# that have not yet been initialized
|
||||||
|
# :not_reached :: Ignore statement not reached warnings.
|
||||||
|
# :safe :: Ignore warnings related to $SAFE and related C-API functions.
|
||||||
|
# :shadow :: Ignore warnings related to shadowing outer local variables.
|
||||||
|
# :taint :: Ignore warnings related to taint and related methods and C-API functions.
|
||||||
|
# :unused_var :: Ignore warnings for unused variables.
|
||||||
|
# :useless_operator :: Ignore warnings when using operators such as == and > when the
|
||||||
|
# result is not used.
|
||||||
|
# :void_context :: Ignore warnings for :: to reference constants when the result is not
|
||||||
|
# used (often used to trigger autoload).
|
||||||
|
#
|
||||||
|
# Examples:
|
||||||
|
#
|
||||||
|
# # Ignore all uninitialized instance variable warnings
|
||||||
|
# Warning.ignore(/instance variable @\w+ not initialized/)
|
||||||
|
#
|
||||||
|
# # Ignore all uninitialized instance variable warnings in current file
|
||||||
|
# Warning.ignore(/instance variable @\w+ not initialized/, __FILE__)
|
||||||
|
#
|
||||||
|
# # Ignore all uninitialized instance variable warnings in current file
|
||||||
|
# Warning.ignore(:missing_ivar, __FILE__)
|
||||||
|
#
|
||||||
|
# # Ignore all uninitialized instance variable and method redefined warnings in current file
|
||||||
|
# Warning.ignore([:missing_ivar, :method_redefined], __FILE__)
|
||||||
|
#
|
||||||
|
# source://warning//lib/warning.rb#128
|
||||||
def ignore(regexp, path = T.unsafe(nil)); end
|
def ignore(regexp, path = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# Handle all warnings starting with the given path, instead of
|
||||||
|
# the default behavior of printing them to $stderr. Examples:
|
||||||
|
#
|
||||||
|
# # Write warning to LOGGER at level warning
|
||||||
|
# Warning.process do |warning|
|
||||||
|
# LOGGER.warning(warning)
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# # Write warnings in the current file to LOGGER at level error level
|
||||||
|
# Warning.process(__FILE__) do |warning|
|
||||||
|
# LOGGER.error(warning)
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# The block can return one of the following symbols:
|
||||||
|
#
|
||||||
|
# :default :: Take the default action (call super, printing to $stderr).
|
||||||
|
# :backtrace :: Take the default action (call super, printing to $stderr),
|
||||||
|
# and also print the backtrace.
|
||||||
|
# :raise :: Raise a RuntimeError with the warning as the message.
|
||||||
|
#
|
||||||
|
# If the block returns anything else, it is assumed the block completely handled
|
||||||
|
# the warning and takes no other action.
|
||||||
|
#
|
||||||
|
# Instead of passing a block, you can pass a hash of actions to take for specific
|
||||||
|
# warnings, using regexp as keys and a callable objects as values:
|
||||||
|
#
|
||||||
|
# Warning.process(__FILE__,
|
||||||
|
# /instance variable @\w+ not initialized/ => proc do |warning|
|
||||||
|
# LOGGER.warning(warning)
|
||||||
|
# end,
|
||||||
|
# /global variable `\$\w+' not initialized/ => proc do |warning|
|
||||||
|
# LOGGER.error(warning)
|
||||||
|
# end
|
||||||
|
# )
|
||||||
|
#
|
||||||
|
# Instead of passing a regexp as a key, you can pass a symbol that is recognized
|
||||||
|
# by Warning.ignore. Instead of passing a callable object as a value, you can
|
||||||
|
# pass a symbol, which will be treated as a callable object that returns that symbol:
|
||||||
|
#
|
||||||
|
# Warning.process(__FILE__, :missing_ivar=>:backtrace, :keyword_separation=>:raise)
|
||||||
|
#
|
||||||
|
# source://warning//lib/warning.rb#179
|
||||||
def process(path = T.unsafe(nil), actions = T.unsafe(nil), &block); end
|
def process(path = T.unsafe(nil), actions = T.unsafe(nil), &block); end
|
||||||
def warn(str); end
|
|
||||||
|
# source://warning//lib/warning.rb#220
|
||||||
|
def warn(str, category: T.unsafe(nil)); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# Convert the given Regexp, Symbol, or Array of Symbols into a Regexp.
|
||||||
|
#
|
||||||
|
# source://warning//lib/warning.rb#272
|
||||||
def convert_regexp(regexp); end
|
def convert_regexp(regexp); end
|
||||||
|
|
||||||
|
# source://warning//lib/warning.rb#285
|
||||||
def synchronize(&block); end
|
def synchronize(&block); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Map of action symbols to procs that return the symbol
|
||||||
|
#
|
||||||
|
# source://warning//lib/warning.rb#26
|
||||||
Warning::Processor::ACTION_PROC_MAP = T.let(T.unsafe(nil), Hash)
|
Warning::Processor::ACTION_PROC_MAP = T.let(T.unsafe(nil), Hash)
|
||||||
|
|
||||||
|
# Map of symbols to regexps for warning messages to ignore.
|
||||||
|
#
|
||||||
|
# source://warning//lib/warning.rb#6
|
||||||
Warning::Processor::IGNORE_MAP = T.let(T.unsafe(nil), Hash)
|
Warning::Processor::IGNORE_MAP = T.let(T.unsafe(nil), Hash)
|
||||||
|
|||||||
235
Library/Homebrew/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi
generated
235
Library/Homebrew/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi
generated
@ -1,235 +0,0 @@
|
|||||||
# typed: true
|
|
||||||
|
|
||||||
# DO NOT EDIT MANUALLY
|
|
||||||
# This is an autogenerated file for types exported from the `yard-sorbet` gem.
|
|
||||||
# Please instead update this file by running `bin/tapioca gem yard-sorbet`.
|
|
||||||
|
|
||||||
module YARDSorbet; end
|
|
||||||
|
|
||||||
module YARDSorbet::Directives
|
|
||||||
class << self
|
|
||||||
sig { params(docstring: ::String, directives: T::Array[::String]).void }
|
|
||||||
def add_directives(docstring, directives); end
|
|
||||||
|
|
||||||
sig { params(docstring: T.nilable(::String)).returns([::YARD::Docstring, T::Array[::String]]) }
|
|
||||||
def extract_directives(docstring); end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
module YARDSorbet::Handlers; end
|
|
||||||
|
|
||||||
class YARDSorbet::Handlers::AbstractDSLHandler < ::YARD::Handlers::Ruby::Base
|
|
||||||
sig { void }
|
|
||||||
def process; end
|
|
||||||
end
|
|
||||||
|
|
||||||
YARDSorbet::Handlers::AbstractDSLHandler::CLASS_TAG_TEXT = T.let(T.unsafe(nil), String)
|
|
||||||
YARDSorbet::Handlers::AbstractDSLHandler::TAG_TEXT = T.let(T.unsafe(nil), String)
|
|
||||||
|
|
||||||
class YARDSorbet::Handlers::EnumsHandler < ::YARD::Handlers::Ruby::Base
|
|
||||||
sig { void }
|
|
||||||
def process; end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Boolean) }
|
|
||||||
def const_assign_node?(node); end
|
|
||||||
end
|
|
||||||
|
|
||||||
class YARDSorbet::Handlers::IncludeHandler < ::YARD::Handlers::Ruby::Base
|
|
||||||
sig { void }
|
|
||||||
def process; end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
sig { returns(::YARD::CodeObjects::NamespaceObject) }
|
|
||||||
def included_in; end
|
|
||||||
end
|
|
||||||
|
|
||||||
class YARDSorbet::Handlers::MixesInClassMethodsHandler < ::YARD::Handlers::Ruby::Base
|
|
||||||
sig { void }
|
|
||||||
def process; end
|
|
||||||
|
|
||||||
class << self
|
|
||||||
sig { params(code_obj: ::String).returns(T.nilable(::String)) }
|
|
||||||
def mixed_in_class_methods(code_obj); end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class YARDSorbet::Handlers::SigHandler < ::YARD::Handlers::Ruby::Base
|
|
||||||
sig { void }
|
|
||||||
def process; end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
sig do
|
|
||||||
params(
|
|
||||||
method_node: ::YARD::Parser::Ruby::AstNode,
|
|
||||||
node: ::YARD::Parser::Ruby::AstNode,
|
|
||||||
docstring: ::YARD::Docstring
|
|
||||||
).void
|
|
||||||
end
|
|
||||||
def parse_params(method_node, node, docstring); end
|
|
||||||
|
|
||||||
sig { params(node: ::YARD::Parser::Ruby::AstNode, docstring: ::YARD::Docstring).void }
|
|
||||||
def parse_return(node, docstring); end
|
|
||||||
|
|
||||||
sig { params(method_node: ::YARD::Parser::Ruby::AstNode, docstring: ::YARD::Docstring).void }
|
|
||||||
def parse_sig(method_node, docstring); end
|
|
||||||
end
|
|
||||||
|
|
||||||
YARDSorbet::Handlers::SigHandler::ATTR_NODE_TYPES = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
module YARDSorbet::Handlers::StructClassHandler
|
|
||||||
sig { void }
|
|
||||||
def process; end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
sig do
|
|
||||||
params(
|
|
||||||
object: ::YARD::CodeObjects::MethodObject,
|
|
||||||
props: T::Array[::YARDSorbet::TStructProp],
|
|
||||||
docstring: ::YARD::Docstring,
|
|
||||||
directives: T::Array[::String]
|
|
||||||
).void
|
|
||||||
end
|
|
||||||
def decorate_t_struct_init(object, props, docstring, directives); end
|
|
||||||
|
|
||||||
sig { params(props: T::Array[::YARDSorbet::TStructProp], class_ns: ::YARD::CodeObjects::ClassObject).void }
|
|
||||||
def process_t_struct_props(props, class_ns); end
|
|
||||||
|
|
||||||
sig { params(props: T::Array[::YARDSorbet::TStructProp]).returns(T::Array[[::String, T.nilable(::String)]]) }
|
|
||||||
def to_object_parameters(props); end
|
|
||||||
end
|
|
||||||
|
|
||||||
class YARDSorbet::Handlers::StructPropHandler < ::YARD::Handlers::Ruby::Base
|
|
||||||
sig { void }
|
|
||||||
def process; end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
sig { params(object: ::YARD::CodeObjects::MethodObject, prop: ::YARDSorbet::TStructProp).void }
|
|
||||||
def decorate_object(object, prop); end
|
|
||||||
|
|
||||||
sig { returns(T.nilable(::String)) }
|
|
||||||
def default_value; end
|
|
||||||
|
|
||||||
sig { params(name: ::String).returns(::YARDSorbet::TStructProp) }
|
|
||||||
def make_prop(name); end
|
|
||||||
|
|
||||||
sig { params(object: ::YARD::CodeObjects::MethodObject, name: ::String).void }
|
|
||||||
def register_attrs(object, name); end
|
|
||||||
|
|
||||||
sig { params(prop: ::YARDSorbet::TStructProp).void }
|
|
||||||
def update_state(prop); end
|
|
||||||
end
|
|
||||||
|
|
||||||
module YARDSorbet::NodeUtils
|
|
||||||
class << self
|
|
||||||
sig do
|
|
||||||
params(
|
|
||||||
node: ::YARD::Parser::Ruby::AstNode,
|
|
||||||
_blk: T.proc.params(n: ::YARD::Parser::Ruby::AstNode).void
|
|
||||||
).void
|
|
||||||
end
|
|
||||||
def bfs_traverse(node, &_blk); end
|
|
||||||
|
|
||||||
sig do
|
|
||||||
params(
|
|
||||||
node: ::YARD::Parser::Ruby::AstNode
|
|
||||||
).returns(T.any(::YARD::Parser::Ruby::MethodCallNode, ::YARD::Parser::Ruby::MethodDefinitionNode))
|
|
||||||
end
|
|
||||||
def get_method_node(node); end
|
|
||||||
|
|
||||||
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(::YARD::Parser::Ruby::AstNode) }
|
|
||||||
def sibling_node(node); end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
YARDSorbet::NodeUtils::ATTRIBUTE_METHODS = T.let(T.unsafe(nil), Array)
|
|
||||||
YARDSorbet::NodeUtils::SIGABLE_NODE = T.type_alias { T.any(::YARD::Parser::Ruby::MethodCallNode, ::YARD::Parser::Ruby::MethodDefinitionNode) }
|
|
||||||
YARDSorbet::NodeUtils::SKIP_METHOD_CONTENTS = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
module YARDSorbet::SigToYARD
|
|
||||||
class << self
|
|
||||||
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
|
||||||
def convert(node); end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(::String) }
|
|
||||||
def build_generic_type(node); end
|
|
||||||
|
|
||||||
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
|
||||||
def convert_aref(node); end
|
|
||||||
|
|
||||||
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
|
||||||
def convert_array(node); end
|
|
||||||
|
|
||||||
sig { params(node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Array[::String]) }
|
|
||||||
def convert_call(node); end
|
|
||||||
|
|
||||||
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
|
||||||
def convert_collection(node); end
|
|
||||||
|
|
||||||
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
|
||||||
def convert_hash(node); end
|
|
||||||
|
|
||||||
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
|
||||||
def convert_list(node); end
|
|
||||||
|
|
||||||
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
|
||||||
def convert_node(node); end
|
|
||||||
|
|
||||||
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
|
||||||
def convert_node_type(node); end
|
|
||||||
|
|
||||||
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
|
||||||
def convert_ref(node); end
|
|
||||||
|
|
||||||
sig { params(node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Array[::String]) }
|
|
||||||
def convert_t_method(node); end
|
|
||||||
|
|
||||||
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
|
||||||
def convert_unknown(node); end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class YARDSorbet::TStructProp < ::T::Struct
|
|
||||||
const :default, T.nilable(::String)
|
|
||||||
const :doc, ::String
|
|
||||||
const :prop_name, ::String
|
|
||||||
const :source, ::String
|
|
||||||
const :types, T::Array[::String]
|
|
||||||
|
|
||||||
class << self
|
|
||||||
def inherited(s); end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
module YARDSorbet::TagUtils
|
|
||||||
class << self
|
|
||||||
sig do
|
|
||||||
params(
|
|
||||||
docstring: ::YARD::Docstring,
|
|
||||||
tag_name: ::String,
|
|
||||||
name: T.nilable(::String)
|
|
||||||
).returns(T.nilable(::YARD::Tags::Tag))
|
|
||||||
end
|
|
||||||
def find_tag(docstring, tag_name, name); end
|
|
||||||
|
|
||||||
sig do
|
|
||||||
params(
|
|
||||||
docstring: ::YARD::Docstring,
|
|
||||||
tag_name: ::String,
|
|
||||||
types: T.nilable(T::Array[::String]),
|
|
||||||
name: T.nilable(::String),
|
|
||||||
text: ::String
|
|
||||||
).void
|
|
||||||
end
|
|
||||||
def upsert_tag(docstring, tag_name, types = T.unsafe(nil), name = T.unsafe(nil), text = T.unsafe(nil)); end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
YARDSorbet::VERSION = T.let(T.unsafe(nil), String)
|
|
||||||
428
Library/Homebrew/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi
generated
Normal file
428
Library/Homebrew/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi
generated
Normal file
@ -0,0 +1,428 @@
|
|||||||
|
# typed: true
|
||||||
|
|
||||||
|
# DO NOT EDIT MANUALLY
|
||||||
|
# This is an autogenerated file for types exported from the `yard-sorbet` gem.
|
||||||
|
# Please instead update this file by running `bin/tapioca gem yard-sorbet`.
|
||||||
|
|
||||||
|
class YARD::Handlers::Ruby::ClassHandler < ::YARD::Handlers::Ruby::Base
|
||||||
|
include ::YARDSorbet::Handlers::StructClassHandler
|
||||||
|
end
|
||||||
|
|
||||||
|
# Types are documentation
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/version.rb#5
|
||||||
|
module YARDSorbet; end
|
||||||
|
|
||||||
|
# Extract & re-add directives to a docstring
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/directives.rb#6
|
||||||
|
module YARDSorbet::Directives
|
||||||
|
class << self
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/directives.rb#21
|
||||||
|
sig { params(docstring: ::String, directives: T::Array[::String]).void }
|
||||||
|
def add_directives(docstring, directives); end
|
||||||
|
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/directives.rb#10
|
||||||
|
sig { params(docstring: T.nilable(::String)).returns([::YARD::Docstring, T::Array[::String]]) }
|
||||||
|
def extract_directives(docstring); end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Custom YARD Handlers
|
||||||
|
#
|
||||||
|
# @see https://rubydoc.info/gems/yard/YARD/Handlers/Base YARD Base Handler documentation
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers.rb#7
|
||||||
|
module YARDSorbet::Handlers; end
|
||||||
|
|
||||||
|
# Apllies an `@abstract` tag to `abstract!`/`interface!` modules (if not alerady present).
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/abstract_dsl_handler.rb#7
|
||||||
|
class YARDSorbet::Handlers::AbstractDSLHandler < ::YARD::Handlers::Ruby::Base
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/abstract_dsl_handler.rb#21
|
||||||
|
sig { void }
|
||||||
|
def process; end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Extra text for class namespaces
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/abstract_dsl_handler.rb#18
|
||||||
|
YARDSorbet::Handlers::AbstractDSLHandler::CLASS_TAG_TEXT = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# The text accompanying the `@abstract` tag.
|
||||||
|
#
|
||||||
|
# @see https://github.com/lsegal/yard/blob/main/templates/default/docstring/html/abstract.erb The `@abstract` tag template
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/abstract_dsl_handler.rb#16
|
||||||
|
YARDSorbet::Handlers::AbstractDSLHandler::TAG_TEXT = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
# Handle `enums` calls, registering enum values as constants
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/enums_handler.rb#7
|
||||||
|
class YARDSorbet::Handlers::EnumsHandler < ::YARD::Handlers::Ruby::Base
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/enums_handler.rb#14
|
||||||
|
sig { void }
|
||||||
|
def process; end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/enums_handler.rb#29
|
||||||
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Boolean) }
|
||||||
|
def const_assign_node?(node); end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Extends any modules included via `mixes_in_class_methods`
|
||||||
|
#
|
||||||
|
# @see https://sorbet.org/docs/abstract#interfaces-and-the-included-hook Sorbet `mixes_in_class_methods` documentation
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/include_handler.rb#9
|
||||||
|
class YARDSorbet::Handlers::IncludeHandler < ::YARD::Handlers::Ruby::Base
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/include_handler.rb#16
|
||||||
|
sig { void }
|
||||||
|
def process; end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/include_handler.rb#28
|
||||||
|
sig { returns(::YARD::CodeObjects::NamespaceObject) }
|
||||||
|
def included_in; end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Tracks modules that invoke `mixes_in_class_methods` for use in {IncludeHandler}
|
||||||
|
#
|
||||||
|
# @see https://sorbet.org/docs/abstract#interfaces-and-the-included-hook Sorbet `mixes_in_class_methods` documentation
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/mixes_in_class_methods_handler.rb#9
|
||||||
|
class YARDSorbet::Handlers::MixesInClassMethodsHandler < ::YARD::Handlers::Ruby::Base
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/mixes_in_class_methods_handler.rb#23
|
||||||
|
sig { void }
|
||||||
|
def process; end
|
||||||
|
|
||||||
|
class << self
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/mixes_in_class_methods_handler.rb#18
|
||||||
|
sig { params(code_obj: ::String).returns(T.nilable(T::Array[::String])) }
|
||||||
|
def mixed_in_class_methods(code_obj); end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A YARD Handler for Sorbet type declarations
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#7
|
||||||
|
class YARDSorbet::Handlers::SigHandler < ::YARD::Handlers::Ruby::Base
|
||||||
|
# Swap the method definition docstring and the sig docstring.
|
||||||
|
# Parse relevant parts of the `sig` and include them as well.
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#24
|
||||||
|
sig { void }
|
||||||
|
def process; end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#73
|
||||||
|
sig { params(method_objects: T::Array[::YARD::CodeObjects::MethodObject]).void }
|
||||||
|
def document_attr_methods(method_objects); end
|
||||||
|
|
||||||
|
# An attr* sig can be merged into a previous attr* docstring if it is the only parameter passed to the attr*
|
||||||
|
# declaration. This is to avoid needing to rewrite the source code to separate merged and unmerged attr*
|
||||||
|
# declarations.
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#60
|
||||||
|
sig { params(attr_node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Boolean) }
|
||||||
|
def merged_into_attr?(attr_node); end
|
||||||
|
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#78
|
||||||
|
sig do
|
||||||
|
params(
|
||||||
|
attach_to: T.any(::YARD::CodeObjects::MethodObject, ::YARD::Parser::Ruby::MethodCallNode, ::YARD::Parser::Ruby::MethodDefinitionNode),
|
||||||
|
docstring: T.nilable(::String),
|
||||||
|
include_params: T::Boolean
|
||||||
|
).void
|
||||||
|
end
|
||||||
|
def parse_node(attach_to, docstring, include_params: T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#99
|
||||||
|
sig { params(node: ::YARD::Parser::Ruby::AstNode, docstring: ::YARD::Docstring).void }
|
||||||
|
def parse_params(node, docstring); end
|
||||||
|
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#109
|
||||||
|
sig { params(node: ::YARD::Parser::Ruby::AstNode, docstring: ::YARD::Docstring).void }
|
||||||
|
def parse_return(node, docstring); end
|
||||||
|
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#87
|
||||||
|
sig { params(docstring: ::YARD::Docstring, include_params: T::Boolean).void }
|
||||||
|
def parse_sig(docstring, include_params: T.unsafe(nil)); end
|
||||||
|
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#50
|
||||||
|
sig { params(attr_node: ::YARD::Parser::Ruby::MethodCallNode).void }
|
||||||
|
def process_attr(attr_node); end
|
||||||
|
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#36
|
||||||
|
sig { params(def_node: ::YARD::Parser::Ruby::MethodDefinitionNode).void }
|
||||||
|
def process_def(def_node); end
|
||||||
|
end
|
||||||
|
|
||||||
|
# YARD types that can have docstrings attached to them
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#14
|
||||||
|
YARDSorbet::Handlers::SigHandler::Documentable = T.type_alias { T.any(::YARD::CodeObjects::MethodObject, ::YARD::Parser::Ruby::MethodCallNode, ::YARD::Parser::Ruby::MethodDefinitionNode) }
|
||||||
|
|
||||||
|
# Class-level handler that folds all `const` and `prop` declarations into the constructor documentation
|
||||||
|
# this needs to be injected as a module otherwise the default Class handler will overwrite documentation
|
||||||
|
#
|
||||||
|
# @note this module is included in `YARD::Handlers::Ruby::ClassHandler`
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_class_handler.rb#10
|
||||||
|
module YARDSorbet::Handlers::StructClassHandler
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_class_handler.rb#14
|
||||||
|
sig { void }
|
||||||
|
def process; end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_class_handler.rb#50
|
||||||
|
sig do
|
||||||
|
params(
|
||||||
|
object: ::YARD::CodeObjects::MethodObject,
|
||||||
|
props: T::Array[::YARDSorbet::TStructProp],
|
||||||
|
docstring: ::YARD::Docstring,
|
||||||
|
directives: T::Array[::String]
|
||||||
|
).void
|
||||||
|
end
|
||||||
|
def decorate_t_struct_init(object, props, docstring, directives); end
|
||||||
|
|
||||||
|
# Create a virtual `initialize` method with all the `prop`/`const` arguments
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_class_handler.rb#30
|
||||||
|
sig { params(props: T::Array[::YARDSorbet::TStructProp], class_ns: ::YARD::CodeObjects::ClassObject).void }
|
||||||
|
def process_t_struct_props(props, class_ns); end
|
||||||
|
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_class_handler.rb#60
|
||||||
|
sig { params(props: T::Array[::YARDSorbet::TStructProp]).returns(T::Array[[::String, T.nilable(::String)]]) }
|
||||||
|
def to_object_parameters(props); end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Handles all `const`/`prop` calls, creating accessor methods, and compiles them for later usage at the class level
|
||||||
|
# in creating a constructor
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#8
|
||||||
|
class YARDSorbet::Handlers::StructPropHandler < ::YARD::Handlers::Ruby::Base
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#15
|
||||||
|
sig { void }
|
||||||
|
def process; end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
# Add the source and docstring to the method object
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#28
|
||||||
|
sig { params(object: ::YARD::CodeObjects::MethodObject, prop: ::YARDSorbet::TStructProp).void }
|
||||||
|
def decorate_object(object, prop); end
|
||||||
|
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#38
|
||||||
|
sig { returns(T::Boolean) }
|
||||||
|
def immutable?; end
|
||||||
|
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#44
|
||||||
|
sig { params(kwd: ::String).returns(T.nilable(::String)) }
|
||||||
|
def kw_arg(kwd); end
|
||||||
|
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#49
|
||||||
|
sig { params(name: ::String).returns(::YARDSorbet::TStructProp) }
|
||||||
|
def make_prop(name); end
|
||||||
|
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#60
|
||||||
|
sig { returns(T::Array[::YARD::Parser::Ruby::AstNode]) }
|
||||||
|
def params; end
|
||||||
|
|
||||||
|
# Register the field explicitly as an attribute.
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#66
|
||||||
|
sig { params(object: ::YARD::CodeObjects::MethodObject, name: ::String).void }
|
||||||
|
def register_attrs(object, name); end
|
||||||
|
|
||||||
|
# Store the prop for use in the constructor definition
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#74
|
||||||
|
sig { params(prop: ::YARDSorbet::TStructProp).void }
|
||||||
|
def update_state(prop); end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Helper methods for working with `YARD` AST Nodes
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#6
|
||||||
|
module YARDSorbet::NodeUtils
|
||||||
|
class << self
|
||||||
|
# Traverse AST nodes in breadth-first order
|
||||||
|
#
|
||||||
|
# @note This will skip over some node types.
|
||||||
|
# @yield [YARD::Parser::Ruby::AstNode]
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#21
|
||||||
|
sig do
|
||||||
|
params(
|
||||||
|
node: ::YARD::Parser::Ruby::AstNode,
|
||||||
|
_blk: T.proc.params(n: ::YARD::Parser::Ruby::AstNode).void
|
||||||
|
).void
|
||||||
|
end
|
||||||
|
def bfs_traverse(node, &_blk); end
|
||||||
|
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#32
|
||||||
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).void }
|
||||||
|
def delete_node(node); end
|
||||||
|
|
||||||
|
# Gets the node that a sorbet `sig` can be attached do, bypassing visisbility modifiers and the like
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#38
|
||||||
|
sig do
|
||||||
|
params(
|
||||||
|
node: ::YARD::Parser::Ruby::AstNode
|
||||||
|
).returns(T.any(::YARD::Parser::Ruby::MethodCallNode, ::YARD::Parser::Ruby::MethodDefinitionNode))
|
||||||
|
end
|
||||||
|
def get_method_node(node); end
|
||||||
|
|
||||||
|
# Find and return the adjacent node (ascending)
|
||||||
|
#
|
||||||
|
# @raise [IndexError] if the node does not have an adjacent sibling (ascending)
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#45
|
||||||
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(::YARD::Parser::Ruby::AstNode) }
|
||||||
|
def sibling_node(node); end
|
||||||
|
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#52
|
||||||
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Boolean) }
|
||||||
|
def sigable_node?(node); end
|
||||||
|
|
||||||
|
# @see https://github.com/lsegal/yard/blob/main/lib/yard/handlers/ruby/attribute_handler.rb YARD::Handlers::Ruby::AttributeHandler.validated_attribute_names
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#63
|
||||||
|
sig { params(attr_node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Array[::String]) }
|
||||||
|
def validated_attribute_names(attr_node); end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Command node types that can have type signatures
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#10
|
||||||
|
YARDSorbet::NodeUtils::ATTRIBUTE_METHODS = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
# Skip these method contents during BFS node traversal, they can have their own nested types via `T.Proc`
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#12
|
||||||
|
YARDSorbet::NodeUtils::SKIP_METHOD_CONTENTS = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
# Node types that can have type signatures
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/node_utils.rb#14
|
||||||
|
YARDSorbet::NodeUtils::SigableNode = T.type_alias { T.any(::YARD::Parser::Ruby::MethodCallNode, ::YARD::Parser::Ruby::MethodDefinitionNode) }
|
||||||
|
|
||||||
|
# Translate `sig` type syntax to `YARD` type syntax.
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#6
|
||||||
|
module YARDSorbet::SigToYARD
|
||||||
|
class << self
|
||||||
|
# @see https://yardoc.org/types.html
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#23
|
||||||
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
||||||
|
def convert(node); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#61
|
||||||
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(::String) }
|
||||||
|
def build_generic_type(node); end
|
||||||
|
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#70
|
||||||
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
||||||
|
def convert_aref(node); end
|
||||||
|
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#82
|
||||||
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) }
|
||||||
|
def convert_array(node); end
|
||||||
|
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#90
|
||||||
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) }
|
||||||
|
def convert_collection(node); end
|
||||||
|
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#97
|
||||||
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) }
|
||||||
|
def convert_hash(node); end
|
||||||
|
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#105
|
||||||
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
||||||
|
def convert_list(node); end
|
||||||
|
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#31
|
||||||
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
||||||
|
def convert_node(node); end
|
||||||
|
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#43
|
||||||
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
||||||
|
def convert_node_type(node); end
|
||||||
|
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#110
|
||||||
|
sig { params(node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Array[::String]) }
|
||||||
|
def convert_t_method(node); end
|
||||||
|
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#121
|
||||||
|
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) }
|
||||||
|
def convert_unknown(node); end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Used to store the details of a `T::Struct` `prop` definition
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/t_struct_prop.rb#6
|
||||||
|
class YARDSorbet::TStructProp < ::T::Struct
|
||||||
|
const :default, T.nilable(::String)
|
||||||
|
const :doc, ::String
|
||||||
|
const :prop_name, ::String
|
||||||
|
const :source, ::String
|
||||||
|
const :types, T::Array[::String]
|
||||||
|
|
||||||
|
class << self
|
||||||
|
# source://sorbet-runtime/0.5.11150/lib/types/struct.rb#13
|
||||||
|
def inherited(s); end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Helper methods for working with `YARD` tags
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/tag_utils.rb#6
|
||||||
|
module YARDSorbet::TagUtils
|
||||||
|
class << self
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/tag_utils.rb#16
|
||||||
|
sig do
|
||||||
|
params(
|
||||||
|
docstring: ::YARD::Docstring,
|
||||||
|
tag_name: ::String,
|
||||||
|
name: T.nilable(::String)
|
||||||
|
).returns(T.nilable(::YARD::Tags::Tag))
|
||||||
|
end
|
||||||
|
def find_tag(docstring, tag_name, name); end
|
||||||
|
|
||||||
|
# Create or update a `YARD` tag with type information
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/tag_utils.rb#30
|
||||||
|
sig do
|
||||||
|
params(
|
||||||
|
docstring: ::YARD::Docstring,
|
||||||
|
tag_name: ::String,
|
||||||
|
types: T.nilable(T::Array[::String]),
|
||||||
|
name: T.nilable(::String),
|
||||||
|
text: ::String
|
||||||
|
).void
|
||||||
|
end
|
||||||
|
def upsert_tag(docstring, tag_name, types = T.unsafe(nil), name = T.unsafe(nil), text = T.unsafe(nil)); end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The `void` return type, as a constant to reduce array allocations
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/tag_utils.rb#10
|
||||||
|
YARDSorbet::TagUtils::VOID_RETURN_TYPE = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
# {https://rubygems.org/gems/yard-sorbet Version history}
|
||||||
|
#
|
||||||
|
# source://yard-sorbet//lib/yard-sorbet/version.rb#7
|
||||||
|
YARDSorbet::VERSION = T.let(T.unsafe(nil), String)
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user