brew tc --update-all

This commit is contained in:
Douglas Eichelberger 2024-02-16 15:06:47 -08:00
parent c452aaf7f5
commit c7142b51c0
39 changed files with 29 additions and 60405 deletions

View File

@ -1,36 +0,0 @@
# typed: true
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `byebug` gem.
# 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
class << self
# Starts byebug, and stops at the first line of user's code.
#
# source://byebug//lib/byebug/attacher.rb#10
def attach; end
# source://byebug//lib/byebug/attacher.rb#21
def spawn(host = T.unsafe(nil), port = T.unsafe(nil)); 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
# source://byebug//lib/byebug/attacher.rb#35
def byebug; end
# source://byebug//lib/byebug/attacher.rb#35
def debugger; end
# source://byebug//lib/byebug/attacher.rb#41
def remote_byebug(host = T.unsafe(nil), port = T.unsafe(nil)); end
end

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,376 +0,0 @@
# typed: true
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `docile` gem.
# 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
extend ::Docile::Execution
private
# Execute a block in the context of an object whose methods represent the
# commands in a DSL.
#
# 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
# Execute a block in the context of an object whose methods represent the
# commands in a DSL.
#
# 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
# 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
# @api private
#
# source://docile//lib/docile/backtrace_filter.rb#14
def backtrace; end
# @api private
#
# source://docile//lib/docile/backtrace_filter.rb#19
def backtrace_locations; end
end
# @api private
#
# source://docile//lib/docile/backtrace_filter.rb#12
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
# 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
# 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
private
# 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
# 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
# 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
# @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
# @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
# 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
# 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)
# 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)
# 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)
# The current version of this library
#
# source://docile//lib/docile/version.rb#5
Docile::VERSION = T.let(T.unsafe(nil), String)

View File

@ -1,157 +0,0 @@
# typed: true
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `hana` gem.
# Please instead update this file by running `bin/tapioca gem hana`.
# source://hana//lib/hana.rb#3
module Hana; end
# source://hana//lib/hana.rb#56
class Hana::Patch
# @return [Patch] a new instance of Patch
#
# source://hana//lib/hana.rb#88
def initialize(is); end
# source://hana//lib/hana.rb#94
def apply(doc); end
private
# @raise [MissingTargetException]
#
# source://hana//lib/hana.rb#107
def add(ins, doc); end
# source://hana//lib/hana.rb#223
def add_op(dest, key, obj); end
# @raise [ObjectOperationOnArrayException]
#
# source://hana//lib/hana.rb#214
def check_index(obj, key); end
# @raise [MissingTargetException]
#
# source://hana//lib/hana.rb#144
def copy(ins, doc); end
# source://hana//lib/hana.rb#202
def get_path(ins); end
# @raise [MissingTargetException]
#
# source://hana//lib/hana.rb#128
def move(ins, doc); end
# source://hana//lib/hana.rb#193
def remove(ins, doc); end
# source://hana//lib/hana.rb#180
def replace(ins, doc); end
# source://hana//lib/hana.rb#232
def rm_op(obj, key); end
# source://hana//lib/hana.rb#170
def test(ins, doc); end
end
# source://hana//lib/hana.rb#57
class Hana::Patch::Exception < ::StandardError; end
# source://hana//lib/hana.rb#104
Hana::Patch::FROM = T.let(T.unsafe(nil), String)
# source://hana//lib/hana.rb#60
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
# Returns the value of attribute path.
#
# source://hana//lib/hana.rb#61
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
# Returns the value of attribute value.
#
# source://hana//lib/hana.rb#61
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
end
# source://hana//lib/hana.rb#79
class Hana::Patch::IndexError < ::Hana::Patch::Exception; end
# source://hana//lib/hana.rb#76
class Hana::Patch::InvalidObjectOperationException < ::Hana::Patch::Exception; end
# source://hana//lib/hana.rb#85
class Hana::Patch::InvalidPath < ::Hana::Patch::Exception; end
# source://hana//lib/hana.rb#82
class Hana::Patch::MissingTargetException < ::Hana::Patch::Exception; end
# source://hana//lib/hana.rb#73
class Hana::Patch::ObjectOperationOnArrayException < ::Hana::Patch::Exception; end
# source://hana//lib/hana.rb#70
class Hana::Patch::OutOfBoundsException < ::Hana::Patch::Exception; end
# source://hana//lib/hana.rb#92
Hana::Patch::VALID = T.let(T.unsafe(nil), Hash)
# source://hana//lib/hana.rb#105
Hana::Patch::VALUE = T.let(T.unsafe(nil), String)
# source://hana//lib/hana.rb#6
class Hana::Pointer
include ::Enumerable
# @return [Pointer] a new instance of Pointer
#
# source://hana//lib/hana.rb#15
def initialize(path); end
# source://hana//lib/hana.rb#19
def each(&block); end
# source://hana//lib/hana.rb#21
def eval(object); end
class << self
# source://hana//lib/hana.rb#27
def eval(list, object); end
# source://hana//lib/hana.rb#39
def parse(path); end
end
end
# source://hana//lib/hana.rb#25
Hana::Pointer::ESC = T.let(T.unsafe(nil), Hash)
# source://hana//lib/hana.rb#9
class Hana::Pointer::Exception < ::StandardError; end
# source://hana//lib/hana.rb#12
class Hana::Pointer::FormatError < ::Hana::Pointer::Exception; end
# source://hana//lib/hana.rb#4
Hana::VERSION = T.let(T.unsafe(nil), String)

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,997 +0,0 @@
# typed: true
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `mustache` gem.
# 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
# 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
# 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
# source://mustache//lib/mustache.rb#154
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
# 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
# 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
# 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
# source://mustache//lib/mustache/settings.rb#5
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
# source://mustache//lib/mustache/settings.rb#48
def path; end
# source://mustache//lib/mustache/settings.rb#213
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
# 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
# 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
# The template can be set at the instance level.
#
# source://mustache//lib/mustache/settings.rb#173
def template; end
# source://mustache//lib/mustache/settings.rb#184
def template=(template); end
# source://mustache//lib/mustache/settings.rb#84
def template_extension; end
# source://mustache//lib/mustache/settings.rb#88
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
# source://mustache//lib/mustache/settings.rb#149
def template_file=(template_file); end
# source://mustache//lib/mustache/settings.rb#117
def template_name; end
# source://mustache//lib/mustache/settings.rb#121
def template_name=(template_name); end
# source://mustache//lib/mustache/settings.rb#48
def template_path; end
# source://mustache//lib/mustache/settings.rb#53
def template_path=(path); end
private
# source://mustache//lib/mustache.rb#309
def templateify(obj); end
class << self
# template_partial => TemplatePartial
# template/partial => Template::Partial
#
# source://mustache//lib/mustache.rb#290
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
# source://mustache//lib/mustache.rb#271
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
# @private
#
# source://mustache//lib/mustache/settings.rb#25
def inherited(subclass); end
# source://mustache//lib/mustache/settings.rb#14
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
# Alias for `template_path`
#
# source://mustache//lib/mustache/settings.rb#59
def path; end
# Alias for `template_path`
#
# source://mustache//lib/mustache/settings.rb#64
def path=(path); end
# source://mustache//lib/mustache/settings.rb#204
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
# 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
# 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
# source://mustache//lib/mustache.rb#265
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
# source://mustache//lib/mustache/settings.rb#168
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
# source://mustache//lib/mustache/settings.rb#79
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
# source://mustache//lib/mustache/settings.rb#138
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
# source://mustache//lib/mustache/settings.rb#112
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
# source://mustache//lib/mustache/settings.rb#43
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
# 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
# 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
# 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
# source://mustache//lib/mustache/settings.rb#230
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
# source://mustache//lib/mustache/settings.rb#246
def view_path=(path); 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
# 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
# Alias for `fetch`.
#
# source://mustache//lib/mustache/context.rb#93
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
# source://mustache//lib/mustache/context.rb#151
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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# source://mustache//lib/mustache/context.rb#37
def template_for_partial(partial); end
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
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
# source://mustache//lib/mustache/enumerable.rb#2
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
# 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
# Given an array of tokens, returns an interpolatable Ruby string.
#
# source://mustache//lib/mustache/generator.rb#37
def compile(exp); end
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
# An interpolation-friendly version of a string, for use within a
# Ruby string.
#
# source://mustache//lib/mustache/generator.rb#208
def ev(s); end
# An escaped tag.
#
# source://mustache//lib/mustache/generator.rb#179
def on_etag(name, offset); end
# source://mustache//lib/mustache/generator.rb#189
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
# 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
# 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
# An unescaped tag.
#
# source://mustache//lib/mustache/generator.rb#168
def on_utag(name, offset); end
# source://mustache//lib/mustache/generator.rb#212
def str(s); 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
# 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
# Given a string template, returns an array of tokens.
#
# source://mustache//lib/mustache/parser.rb#119
def compile(template); end
# Returns the value of attribute ctag.
#
# source://mustache//lib/mustache/parser.rb#87
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
# Returns the value of attribute otag.
#
# source://mustache//lib/mustache/parser.rb#87
def otag; end
# The opening tag delimiter. This may be changed at runtime.
#
# source://mustache//lib/mustache/parser.rb#105
def otag=(value); end
private
# source://mustache//lib/mustache/parser.rb#150
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
# 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
# source://mustache//lib/mustache/parser.rb#163
def find_closing_tag(scanner, current_ctag_regex); end
# source://mustache//lib/mustache/parser.rb#259
def offset; end
# Returns [lineno, column, line]
#
# source://mustache//lib/mustache/parser.rb#264
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
# 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
# source://mustache//lib/mustache/parser.rb#340
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
# source://mustache//lib/mustache/parser.rb#306
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
# source://mustache//lib/mustache/parser.rb#340
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
# source://mustache//lib/mustache/parser.rb#315
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
# source://mustache//lib/mustache/parser.rb#364
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
# Try to find static text, e.g. raw HTML with no {{mustaches}}.
#
# source://mustache//lib/mustache/parser.rb#233
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
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
# source://mustache//lib/mustache/parser.rb#50
def valid_types; 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)
# 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)
# 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)
# 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
# @return [SyntaxError] a new instance of SyntaxError
#
# source://mustache//lib/mustache/parser.rb#30
def initialize(message, position); end
# source://mustache//lib/mustache/parser.rb#37
def to_s; 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)
# 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
# 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
# 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
# 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
# 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
# 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
# Returns the value of attribute source.
#
# source://mustache//lib/mustache/template.rb#18
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
# 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
# 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
class << self
# Simple recursive iterator for tokens
#
# source://mustache//lib/mustache/template.rb#115
def recursor(toks, section, &block); end
end
end
# source://mustache//lib/mustache/utils.rb#2
module Mustache::Utils; end
# source://mustache//lib/mustache/utils.rb#3
class Mustache::Utils::String
# @return [String] a new instance of String
#
# source://mustache//lib/mustache/utils.rb#4
def initialize(string); end
# source://mustache//lib/mustache/utils.rb#8
def classify; end
# source://mustache//lib/mustache/utils.rb#17
def underscore(view_namespace); end
end

View File

@ -1,158 +0,0 @@
# 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)

View File

@ -1,280 +0,0 @@
# typed: true
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `parallel` gem.
# Please instead update this file by running `bin/tapioca gem parallel`.
# source://parallel//lib/parallel/version.rb#2
module Parallel
class << self
# @return [Boolean]
#
# source://parallel//lib/parallel.rb#243
def all?(*args, &block); end
# @return [Boolean]
#
# source://parallel//lib/parallel.rb#238
def any?(*args, &block); end
# source://parallel//lib/parallel.rb#234
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
# source://parallel//lib/parallel.rb#307
def filter_map(*args, &block); end
# source://parallel//lib/parallel.rb#303
def flat_map(*args, &block); end
# source://parallel//lib/parallel.rb#228
def in_processes(options = T.unsafe(nil), &block); end
# source://parallel//lib/parallel.rb#212
def in_threads(options = T.unsafe(nil)); end
# source://parallel//lib/parallel.rb#252
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
# Number of physical processor cores on the current system.
#
# source://parallel//lib/parallel.rb#312
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
# source://parallel//lib/parallel.rb#350
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
private
# source://parallel//lib/parallel.rb#361
def add_progress_bar!(job_factory, options); end
# source://parallel//lib/parallel.rb#624
def call_with_index(item, index, options, &block); end
# source://parallel//lib/parallel.rb#556
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
# source://parallel//lib/parallel.rb#642
def instrument_finish(item, index, result, options); end
# yield results in the order of the input items
# needs to use `options` to store state between executions
# needs to use `done` index since a nil result would also be valid
#
# source://parallel//lib/parallel.rb#651
def instrument_finish_in_order(item, index, result, options); end
# source://parallel//lib/parallel.rb#671
def instrument_start(item, index, options); end
# source://parallel//lib/parallel.rb#590
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
# source://parallel//lib/parallel.rb#635
def with_instrumentation(item, index, options); end
# source://parallel//lib/parallel.rb#386
def work_direct(job_factory, options, &block); end
# source://parallel//lib/parallel.rb#496
def work_in_processes(job_factory, options, &blk); end
# source://parallel//lib/parallel.rb#430
def work_in_ractors(job_factory, options); end
# source://parallel//lib/parallel.rb#405
def work_in_threads(job_factory, options, &block); end
# source://parallel//lib/parallel.rb#564
def worker(job_factory, options, &block); end
end
end
# source://parallel//lib/parallel.rb#11
class Parallel::Break < ::StandardError
# @return [Break] a new instance of Break
#
# source://parallel//lib/parallel.rb#14
def initialize(value = T.unsafe(nil)); end
# Returns the value of attribute value.
#
# source://parallel//lib/parallel.rb#12
def value; end
end
# source://parallel//lib/parallel.rb#8
class Parallel::DeadWorker < ::StandardError; end
# source://parallel//lib/parallel.rb#32
class Parallel::ExceptionWrapper
# @return [ExceptionWrapper] a new instance of ExceptionWrapper
#
# source://parallel//lib/parallel.rb#35
def initialize(exception); end
# Returns the value of attribute exception.
#
# source://parallel//lib/parallel.rb#33
def exception; end
end
# source://parallel//lib/parallel.rb#98
class Parallel::JobFactory
# @return [JobFactory] a new instance of JobFactory
#
# source://parallel//lib/parallel.rb#99
def initialize(source, mutex); end
# source://parallel//lib/parallel.rb#107
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
# source://parallel//lib/parallel.rb#126
def size; end
# unpack item that is sent to workers
#
# source://parallel//lib/parallel.rb#141
def unpack(data); end
private
# @return [Boolean]
#
# source://parallel//lib/parallel.rb#147
def producer?; end
# source://parallel//lib/parallel.rb#151
def queue_wrapper(array); end
end
# source://parallel//lib/parallel.rb#20
class Parallel::Kill < ::Parallel::Break; end
# source://parallel//lib/parallel.rb#6
Parallel::Stop = T.let(T.unsafe(nil), Object)
# source://parallel//lib/parallel.rb#23
class Parallel::UndumpableException < ::StandardError
# @return [UndumpableException] a new instance of UndumpableException
#
# source://parallel//lib/parallel.rb#26
def initialize(original); end
# Returns the value of attribute backtrace.
#
# source://parallel//lib/parallel.rb#24
def backtrace; end
end
# source://parallel//lib/parallel.rb#156
class Parallel::UserInterruptHandler
class << self
# source://parallel//lib/parallel.rb#181
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
private
# source://parallel//lib/parallel.rb#205
def restore_interrupt(old, signal); end
# source://parallel//lib/parallel.rb#190
def trap_interrupt(signal); end
end
end
# source://parallel//lib/parallel.rb#157
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)
# source://parallel//lib/parallel/version.rb#3
Parallel::Version = T.let(T.unsafe(nil), String)
# source://parallel//lib/parallel.rb#51
class Parallel::Worker
# @return [Worker] a new instance of Worker
#
# source://parallel//lib/parallel.rb#55
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
# Returns the value of attribute pid.
#
# source://parallel//lib/parallel.rb#52
def pid; end
# Returns the value of attribute read.
#
# source://parallel//lib/parallel.rb#52
def read; end
# source://parallel//lib/parallel.rb#61
def stop; end
# Returns the value of attribute thread.
#
# source://parallel//lib/parallel.rb#53
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
# source://parallel//lib/parallel.rb#73
def work(data); end
# Returns the value of attribute write.
#
# source://parallel//lib/parallel.rb#52
def write; end
private
# source://parallel//lib/parallel.rb#91
def wait; end
end

View File

@ -913,7 +913,7 @@ class Parlour::RbiGenerator::Namespace < ::Parlour::RbiGenerator::RbiObject
# @param block [T.proc.params(x: Attribute).void, nil]
# @return [Attribute]
#
# source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252
# source://sorbet-runtime/0.5.11258/lib/types/private/methods/_methods.rb#257
def create_attr(*args, **_arg1, &blk); end
# source://parlour//lib/parlour/rbi_generator/namespace.rb#472
@ -1121,7 +1121,7 @@ class Parlour::RbiGenerator::Namespace < ::Parlour::RbiGenerator::RbiObject
# @return [Array<RbiGenerator::TypeAlias>]
#
# source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252
# source://sorbet-runtime/0.5.11258/lib/types/private/methods/_methods.rb#257
def type_aliases(*args, **_arg1, &blk); end
private
@ -1885,7 +1885,7 @@ class Parlour::RbsGenerator::Namespace < ::Parlour::RbsGenerator::RbsObject
# @param block [T.proc.params(x: Attribute).void, nil]
# @return [Attribute]
#
# source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252
# source://sorbet-runtime/0.5.11258/lib/types/private/methods/_methods.rb#257
def create_attr(*args, **_arg1, &blk); end
# source://parlour//lib/parlour/rbs_generator/namespace.rb#347
@ -2052,7 +2052,7 @@ class Parlour::RbsGenerator::Namespace < ::Parlour::RbsGenerator::RbsObject
# @return [Array<RbsGenerator::TypeAlias>]
#
# source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252
# source://sorbet-runtime/0.5.11258/lib/types/private/methods/_methods.rb#257
def type_aliases(*args, **_arg1, &blk); end
private
@ -2395,7 +2395,7 @@ class Parlour::TypeParser::IntermediateSig < ::T::Struct
prop :params, T.nilable(T::Array[::Parser::AST::Node])
class << self
# source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13
# source://sorbet-runtime/0.5.11258/lib/types/struct.rb#13
def inherited(s); end
end
end
@ -2450,7 +2450,7 @@ class Parlour::TypedObject
# @param comment [String, Array<String>]
# @return [void]
#
# source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252
# source://sorbet-runtime/0.5.11258/lib/types/private/methods/_methods.rb#257
def add_comments(*args, **_arg1, &blk); end
# source://parlour//lib/parlour/typed_object.rb#32
@ -2471,7 +2471,7 @@ class Parlour::TypedObject
# @return [String]
#
# source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252
# source://sorbet-runtime/0.5.11258/lib/types/private/methods/_methods.rb#257
def inspect(*args, **_arg1, &blk); end
# source://parlour//lib/parlour/typed_object.rb#26
@ -2480,7 +2480,7 @@ class Parlour::TypedObject
# @return [String]
#
# source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252
# source://sorbet-runtime/0.5.11258/lib/types/private/methods/_methods.rb#257
def to_s(*args, **_arg1, &blk); end
protected

View File

@ -1,935 +0,0 @@
# typed: true
# DO NOT EDIT MANUALLY
# 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`.
# 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
class << self
# private
#
# source://public_suffix//lib/public_suffix.rb#149
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
# Pretend we know how to deal with user input.
#
# source://public_suffix//lib/public_suffix.rb#164
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
# 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
end
end
# source://public_suffix//lib/public_suffix.rb#26
PublicSuffix::BANG = T.let(T.unsafe(nil), String)
# source://public_suffix//lib/public_suffix.rb#25
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
# 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
# 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
# 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
# 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
# Returns the value of attribute sld.
#
# source://public_suffix//lib/public_suffix/domain.rb#33
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
# 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
# Returns the value of attribute tld.
#
# source://public_suffix//lib/public_suffix/domain.rb#33
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
# Returns a string representation of this object.
#
# @return [String]
#
# source://public_suffix//lib/public_suffix/domain.rb#73
def to_s; end
# Returns the value of attribute trd.
#
# source://public_suffix//lib/public_suffix/domain.rb#33
def trd; end
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
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
# 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
# source://public_suffix//lib/public_suffix/errors.rb#11
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
# 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
# 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
# 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
# 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
# Removes all rules.
#
# @return [self]
#
# source://public_suffix//lib/public_suffix/list.rb#164
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
# Iterates each rule in the list.
#
# source://public_suffix//lib/public_suffix/list.rb#128
def each(&block); end
# Checks whether the list is empty.
#
# @return [Boolean]
#
# source://public_suffix//lib/public_suffix/list.rb#157
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
# 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
# Gets the number of rules in the list.
#
# @return [Integer]
#
# source://public_suffix//lib/public_suffix/list.rb#150
def size; end
protected
# Returns the value of attribute rules.
#
# source://public_suffix//lib/public_suffix/list.rb#233
def rules; end
private
# source://public_suffix//lib/public_suffix/list.rb#238
def entry_to_rule(entry, value); end
# source://public_suffix//lib/public_suffix/list.rb#242
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
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
# 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
# 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
end
end
# source://public_suffix//lib/public_suffix/list.rb#42
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
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
# 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
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
# 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
# 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
# @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
# 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
# @return [String] the length of the rule
#
# source://public_suffix//lib/public_suffix/rule.rb#108
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
# @abstract
# @raise [NotImplementedError]
#
# source://public_suffix//lib/public_suffix/rule.rb#173
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
# @return [String] the rule definition
#
# source://public_suffix//lib/public_suffix/rule.rb#105
def value; end
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
end
end
# @api internal
#
# source://public_suffix//lib/public_suffix/rule.rb#25
class PublicSuffix::Rule::Entry < ::Struct
# Returns the value of attribute length
#
# @return [Object] the current value of length
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
# Returns the value of attribute private
#
# @return [Object] the current value of private
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
# Returns the value of attribute type
#
# @return [Object] the current value of type
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
class << self
def [](*_arg0); end
def inspect; end
def keyword_init?; end
def members; end
def new(*_arg0); 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
# 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
# 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
# Gets the original rule definition.
#
# @return [String] The rule definition.
#
# source://public_suffix//lib/public_suffix/rule.rb#278
def rule; end
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
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
# 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
# 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
# Gets the original rule definition.
#
# @return [String] The rule definition.
#
# source://public_suffix//lib/public_suffix/rule.rb#192
def rule; 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
# 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
# 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
# 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
# Gets the original rule definition.
#
# @return [String] The rule definition.
#
# source://public_suffix//lib/public_suffix/rule.rb#240
def rule; end
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
end
end
# source://public_suffix//lib/public_suffix.rb#27
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)

File diff suppressed because it is too large Load Diff

View File

@ -1,257 +0,0 @@
# typed: true
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `rdiscount` gem.
# Please instead update this file by running `bin/tapioca gem rdiscount`.
# source://rdiscount//lib/rdiscount.rb#117
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
# 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
# Convert URL in links, even if they aren't encased in <tt><></tt>
#
# source://rdiscount//lib/rdiscount.rb#64
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
# Don't merge adjacent list into a single list.
#
# source://rdiscount//lib/rdiscount.rb#82
def explicitlist; end
# Don't merge adjacent list into a single list.
#
# source://rdiscount//lib/rdiscount.rb#82
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
# Do not output any raw HTML included in the source text.
#
# source://rdiscount//lib/rdiscount.rb#39
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
# Do not output <tt><style></tt> tags included in the source text.
#
# source://rdiscount//lib/rdiscount.rb#36
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
# RedCloth compatible line folding -- not used for Markdown but
# included for compatibility.
#
# source://rdiscount//lib/rdiscount.rb#43
def fold_lines=(_arg0); end
# Enable php markdown extra-style footnotes
#
# source://rdiscount//lib/rdiscount.rb#46
def footnotes; end
# Enable php markdown extra-style footnotes
#
# source://rdiscount//lib/rdiscount.rb#46
def footnotes=(_arg0); end
# Enable Table Of Contents generation
#
# source://rdiscount//lib/rdiscount.rb#49
def generate_toc; end
# Enable Table Of Contents generation
#
# source://rdiscount//lib/rdiscount.rb#49
def generate_toc=(_arg0); end
# Keep LaTeX inside $$ intact.
#
# source://rdiscount//lib/rdiscount.rb#79
def latex; end
# Keep LaTeX inside $$ intact.
#
# source://rdiscount//lib/rdiscount.rb#79
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
# Not documented: run in markdown 1 compat mode (only used for MarkdownTest1.0)
#
# source://rdiscount//lib/rdiscount.rb#85
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
# 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
# Do not process <tt>[]</tt> and remove <tt><a></tt> tags from the output.
#
# source://rdiscount//lib/rdiscount.rb#55
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
# Do not process pseudo-protocols like <tt>[](id:name)</tt>
#
# source://rdiscount//lib/rdiscount.rb#70
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
# Disable strikethrough processing.
#
# source://rdiscount//lib/rdiscount.rb#76
def no_strikethrough; end
# Disable strikethrough processing.
#
# source://rdiscount//lib/rdiscount.rb#76
def no_strikethrough=(_arg0); end
# Disable superscript processing.
#
# source://rdiscount//lib/rdiscount.rb#73
def no_superscript; end
# Disable superscript processing.
#
# source://rdiscount//lib/rdiscount.rb#73
def no_superscript=(_arg0); end
# Do not process tables
#
# source://rdiscount//lib/rdiscount.rb#58
def no_tables; end
# Do not process tables
#
# source://rdiscount//lib/rdiscount.rb#58
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
# Don't make hyperlinks from <tt>[][]</tt> links that have unknown URL types.
#
# source://rdiscount//lib/rdiscount.rb#67
def safelink=(_arg0); end
# Set true to have smarty-like quote translation performed.
#
# source://rdiscount//lib/rdiscount.rb#33
def smart; end
# Set true to have smarty-like quote translation performed.
#
# source://rdiscount//lib/rdiscount.rb#33
def smart=(_arg0); end
# Disable superscript and relaxed emphasis processing.
#
# source://rdiscount//lib/rdiscount.rb#61
def strict; end
# Disable superscript and relaxed emphasis processing.
#
# source://rdiscount//lib/rdiscount.rb#61
def strict=(_arg0); end
# Original Markdown formatted text.
#
# source://rdiscount//lib/rdiscount.rb#30
def text; end
def to_html(*_arg0); end
def toc_content(*_arg0); end
end
# source://rdiscount//lib/rdiscount.rb#27
RDiscount::VERSION = T.let(T.unsafe(nil), String)

File diff suppressed because it is too large Load Diff

View File

@ -1,759 +0,0 @@
# typed: true
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `ronn` gem.
# 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
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
# truthy when this a release (\d.\d.\d) version.
#
# @return [Boolean]
#
# source://ronn//lib/ronn.rb#19
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
# 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
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
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
# 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
# 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
# The raw input data, read from path or stream and unmodified.
#
# source://ronn//lib/ronn/document.rb#26
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
# The date the document was published; center displayed in
# the document footer.
#
# source://ronn//lib/ronn/document.rb#55
def date=(_arg0); end
# A Hpricot::Document for the manual content fragment.
#
# source://ronn//lib/ronn/document.rb#214
def html; end
# The index used to resolve man and file references.
#
# source://ronn//lib/ronn/document.rb#29
def index; end
# The index used to resolve man and file references.
#
# source://ronn//lib/ronn/document.rb#29
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
# The manual this document belongs to; center displayed in
# the header.
#
# source://ronn//lib/ronn/document.rb#47
def manual=(_arg0); end
# Preprocessed markdown input text.
#
# source://ronn//lib/ronn/document.rb#209
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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# The name used to reference this manual.
#
# source://ronn//lib/ronn/document.rb#146
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
# 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
# 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
# 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
# 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
# Array of style modules to apply to the document.
#
# source://ronn//lib/ronn/document.rb#58
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
# 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
# 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
# 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
# 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
# source://ronn//lib/ronn/document.rb#263
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
# 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
# source://ronn//lib/ronn/document.rb#273
def to_json; end
# source://ronn//lib/ronn/document.rb#259
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
# source://ronn//lib/ronn/document.rb#268
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
protected
# Perform angle quote (<THESE>) post filtering.
#
# source://ronn//lib/ronn/document.rb#355
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
# Convert special format unordered lists to definition lists.
#
# source://ronn//lib/ronn/document.rb#369
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
# source://ronn//lib/ronn/document.rb#395
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
# source://ronn//lib/ronn/document.rb#289
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
# 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
# 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
# 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
# source://ronn//lib/ronn/document.rb#304
def process_html!; end
# source://ronn//lib/ronn/document.rb#298
def process_markdown!; end
# source://ronn//lib/ronn/document.rb#293
def strip_heading(html); end
end
# Maintains a list of links / references to manuals and other resources.
#
# source://ronn//lib/ronn/index.rb#6
class Ronn::Index
include ::Enumerable
# @return [Index] a new instance of Index
#
# source://ronn//lib/ronn/index.rb#30
def initialize(path, &bk); end
# @raise [ArgumentError]
#
# source://ronn//lib/ronn/index.rb#89
def <<(path); end
# source://ronn//lib/ronn/index.rb#81
def [](name); end
# source://ronn//lib/ronn/index.rb#102
def add_manual(manual); end
# Enumerable and friends
#
# source://ronn//lib/ronn/index.rb#61
def each(&bk); end
# @return [Boolean]
#
# source://ronn//lib/ronn/index.rb#77
def empty?; end
# Determine whether the index file exists.
#
# @return [Boolean]
#
# source://ronn//lib/ronn/index.rb#43
def exist?; end
# source://ronn//lib/ronn/index.rb#69
def first; end
# source://ronn//lib/ronn/index.rb#73
def last; end
# source://ronn//lib/ronn/index.rb#107
def manual(path); end
# source://ronn//lib/ronn/index.rb#111
def manuals; end
# Returns the value of attribute path.
#
# source://ronn//lib/ronn/index.rb#9
def path; end
# Load index data from a string.
#
# source://ronn//lib/ronn/index.rb#48
def read!(data); end
# source://ronn//lib/ronn/index.rb#85
def reference(name, path); end
# Returns the value of attribute references.
#
# source://ronn//lib/ronn/index.rb#10
def references; end
# source://ronn//lib/ronn/index.rb#131
def relative_to_index(path); end
# source://ronn//lib/ronn/index.rb#65
def size; end
# source://ronn//lib/ronn/index.rb#123
def to_a; end
# source://ronn//lib/ronn/index.rb#127
def to_h; end
# Converting
#
# source://ronn//lib/ronn/index.rb#119
def to_text; end
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
# source://ronn//lib/ronn/index.rb#20
def index_path_for_file(file); end
end
end
# value generated by: rake rev
#
# source://ronn//lib/ronn.rb#48
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
# @return [Reference] a new instance of Reference
#
# source://ronn//lib/ronn/index.rb#149
def initialize(index, name, location); end
# Returns the value of attribute location.
#
# source://ronn//lib/ronn/index.rb#147
def location; end
# @return [Boolean]
#
# source://ronn//lib/ronn/index.rb#155
def manual?; end
# Returns the value of attribute name.
#
# source://ronn//lib/ronn/index.rb#146
def name; end
# source://ronn//lib/ronn/index.rb#179
def path; end
# @return [Boolean]
#
# source://ronn//lib/ronn/index.rb#167
def relative?; end
# @return [Boolean]
#
# source://ronn//lib/ronn/index.rb#163
def remote?; end
# @return [Boolean]
#
# source://ronn//lib/ronn/index.rb#159
def ronn?; end
# source://ronn//lib/ronn/index.rb#171
def url; end
end
# source://ronn//lib/ronn/roff.rb#5
class Ronn::RoffFilter
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
# source://ronn//lib/ronn/roff.rb#19
def to_s; end
protected
# source://ronn//lib/ronn/roff.rb#80
def block_filter(node); end
# source://ronn//lib/ronn/roff.rb#276
def comment(text); end
# source://ronn//lib/ronn/roff.rb#241
def escape(text); end
# source://ronn//lib/ronn/roff.rb#162
def inline_filter(node); end
# source://ronn//lib/ronn/roff.rb#221
def macro(name, value = T.unsafe(nil)); end
# source://ronn//lib/ronn/roff.rb#47
def normalize_whitespace!(node); end
# source://ronn//lib/ronn/roff.rb#24
def previous(node); end
# source://ronn//lib/ronn/roff.rb#254
def quote(text); end
# source://ronn//lib/ronn/roff.rb#39
def remove_extraneous_elements!(doc); end
# source://ronn//lib/ronn/roff.rb#32
def title_heading(name, section, tagline, manual, version, date); end
# source://ronn//lib/ronn/roff.rb#280
def warn(text, *args); end
# write text to output buffer
#
# source://ronn//lib/ronn/roff.rb#259
def write(text); end
# write text to output buffer on a new line.
#
# source://ronn//lib/ronn/roff.rb#270
def writeln(text); end
end
# source://ronn//lib/ronn/roff.rb#225
Ronn::RoffFilter::HTML_ROFF_ENTITIES = T.let(T.unsafe(nil), Hash)
# source://ronn//lib/ronn/template.rb#4
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
# @return [Boolean]
#
# source://ronn//lib/ronn/template.rb#45
def custom_title?; end
# source://ronn//lib/ronn/template.rb#69
def date; end
# source://ronn//lib/ronn/template.rb#57
def generator; end
# TEMPLATE CSS LOADING
#
# source://ronn//lib/ronn/template.rb#144
def inline_stylesheet(path, media = T.unsafe(nil)); end
# source://ronn//lib/ronn/template.rb#61
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
# Basic document attributes
#
# source://ronn//lib/ronn/template.rb#20
def name; end
# @return [Boolean]
#
# source://ronn//lib/ronn/template.rb#33
def name_and_section?; end
# source://ronn//lib/ronn/template.rb#65
def organization; end
# source://ronn//lib/ronn/template.rb#49
def page_name; end
# source://ronn//lib/ronn/template.rb#162
def remote_stylesheet(name, media = T.unsafe(nil)); end
# source://ronn//lib/ronn/template.rb#13
def render(template = T.unsafe(nil)); end
# source://ronn//lib/ronn/template.rb#24
def section; end
# Section TOCs
#
# source://ronn//lib/ronn/template.rb#80
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
# Returns the value of attribute style_path.
#
# source://ronn//lib/ronn/template.rb#118
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
# Array of style module names as given on the command line.
#
# source://ronn//lib/ronn/template.rb#93
def styles; end
# source://ronn//lib/ronn/template.rb#167
def stylesheet(path, media = T.unsafe(nil)); end
# All embedded stylesheets.
#
# source://ronn//lib/ronn/template.rb#112
def stylesheet_tags; end
# Array of stylesheet info hashes.
#
# source://ronn//lib/ronn/template.rb#98
def stylesheets; end
# source://ronn//lib/ronn/template.rb#28
def tagline; end
# source://ronn//lib/ronn/template.rb#28
def tagline?; end
# source://ronn//lib/ronn/template.rb#37
def title; end
# source://ronn//lib/ronn/template.rb#73
def wrap_class_name; end
end
# source://ronn//lib/ronn/utils.rb#5
module Ronn::Utils
# @return [Boolean]
#
# source://ronn//lib/ronn/utils.rb#31
def block_element?(name); end
# @return [Boolean]
#
# source://ronn//lib/ronn/utils.rb#47
def child_of?(node, tag); end
# @return [Boolean]
#
# source://ronn//lib/ronn/utils.rb#39
def empty_element?(name); end
# @return [Boolean]
#
# source://ronn//lib/ronn/utils.rb#43
def html_element?(name); end
# @return [Boolean]
#
# source://ronn//lib/ronn/utils.rb#35
def inline_element?(name); 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)
# Block elements.
#
# source://ronn//lib/ronn/utils.rb#18
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)
# Inline elements
#
# source://ronn//lib/ronn/utils.rb#26
Ronn::Utils::HTML_INLINE = T.let(T.unsafe(nil), Set)
# source://ronn//lib/ronn.rb#49
Ronn::VERSION = T.let(T.unsafe(nil), String)

View File

@ -1,130 +0,0 @@
# typed: true
# DO NOT EDIT MANUALLY
# 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`.
# source://rspec-github//lib/rspec/github/version.rb#3
module RSpec
class << self
# source://rspec-core/3.13.0/lib/rspec/core.rb#70
def clear_examples; end
# source://rspec-core/3.13.0/lib/rspec/core.rb#85
def configuration; end
# source://rspec-core/3.13.0/lib/rspec/core.rb#49
def configuration=(_arg0); end
# source://rspec-core/3.13.0/lib/rspec/core.rb#97
def configure; end
# source://rspec-core/3.13.0/lib/rspec/core.rb#194
def const_missing(name); end
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
def context(*args, &example_group_block); end
# source://rspec-core/3.13.0/lib/rspec/core.rb#122
def current_example; end
# source://rspec-core/3.13.0/lib/rspec/core.rb#128
def current_example=(example); end
# source://rspec-core/3.13.0/lib/rspec/core.rb#154
def current_scope; end
# source://rspec-core/3.13.0/lib/rspec/core.rb#134
def current_scope=(scope); end
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
def describe(*args, &example_group_block); end
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
def example_group(*args, &example_group_block); end
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
def fcontext(*args, &example_group_block); end
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
def fdescribe(*args, &example_group_block); end
# source://rspec-core/3.13.0/lib/rspec/core.rb#58
def reset; end
# source://rspec-core/3.13.0/lib/rspec/core/shared_example_group.rb#110
def shared_context(name, *args, &block); end
# source://rspec-core/3.13.0/lib/rspec/core/shared_example_group.rb#110
def shared_examples(name, *args, &block); end
# source://rspec-core/3.13.0/lib/rspec/core/shared_example_group.rb#110
def shared_examples_for(name, *args, &block); end
# source://rspec-core/3.13.0/lib/rspec/core.rb#160
def world; end
# source://rspec-core/3.13.0/lib/rspec/core.rb#49
def world=(_arg0); end
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
def xcontext(*args, &example_group_block); end
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
def xdescribe(*args, &example_group_block); end
end
end
# source://rspec-github//lib/rspec/github/version.rb#4
module RSpec::Github; end
# source://rspec-github//lib/rspec/github/formatter.rb#9
class RSpec::Github::Formatter < ::RSpec::Core::Formatters::BaseFormatter
# source://rspec-github//lib/rspec/github/formatter.rb#12
def example_failed(failure); end
# source://rspec-github//lib/rspec/github/formatter.rb#18
def example_pending(pending); end
# source://rspec-github//lib/rspec/github/formatter.rb#24
def seed(notification); end
end
# source://rspec-github//lib/rspec/github/notification_decorator.rb#5
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
# source://rspec-github//lib/rspec/github/notification_decorator.rb#21
def annotation; end
# source://rspec-github//lib/rspec/github/notification_decorator.rb#17
def line; end
# source://rspec-github//lib/rspec/github/notification_decorator.rb#26
def path; end
private
# source://rspec-github//lib/rspec/github/notification_decorator.rb#33
def example; end
# source://rspec-github//lib/rspec/github/notification_decorator.rb#37
def message; end
# source://rspec-github//lib/rspec/github/notification_decorator.rb#45
def raw_path; end
# source://rspec-github//lib/rspec/github/notification_decorator.rb#49
def workspace; 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)
# source://rspec-github//lib/rspec/github/version.rb#5
RSpec::Github::VERSION = T.let(T.unsafe(nil), String)

File diff suppressed because it is too large Load Diff

View File

@ -1,706 +0,0 @@
# typed: true
# DO NOT EDIT MANUALLY
# 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`.
# source://rspec-retry//lib/rspec/retry/version.rb#1
module RSpec
class << self
# source://rspec-core/3.13.0/lib/rspec/core.rb#70
def clear_examples; end
# source://rspec-core/3.13.0/lib/rspec/core.rb#85
def configuration; end
# source://rspec-core/3.13.0/lib/rspec/core.rb#49
def configuration=(_arg0); end
# source://rspec-core/3.13.0/lib/rspec/core.rb#97
def configure; end
# source://rspec-core/3.13.0/lib/rspec/core.rb#194
def const_missing(name); end
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
def context(*args, &example_group_block); end
# source://rspec-core/3.13.0/lib/rspec/core.rb#122
def current_example; end
# source://rspec-core/3.13.0/lib/rspec/core.rb#128
def current_example=(example); end
# source://rspec-core/3.13.0/lib/rspec/core.rb#154
def current_scope; end
# source://rspec-core/3.13.0/lib/rspec/core.rb#134
def current_scope=(scope); end
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
def describe(*args, &example_group_block); end
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
def example_group(*args, &example_group_block); end
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
def fcontext(*args, &example_group_block); end
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
def fdescribe(*args, &example_group_block); end
# source://rspec-core/3.13.0/lib/rspec/core.rb#58
def reset; end
# source://rspec-core/3.13.0/lib/rspec/core/shared_example_group.rb#110
def shared_context(name, *args, &block); end
# source://rspec-core/3.13.0/lib/rspec/core/shared_example_group.rb#110
def shared_examples(name, *args, &block); end
# source://rspec-core/3.13.0/lib/rspec/core/shared_example_group.rb#110
def shared_examples_for(name, *args, &block); end
# source://rspec-core/3.13.0/lib/rspec/core.rb#160
def world; end
# source://rspec-core/3.13.0/lib/rspec/core.rb#49
def world=(_arg0); end
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
def xcontext(*args, &example_group_block); end
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
def xdescribe(*args, &example_group_block); end
end
end
# source://rspec-retry//lib/rspec_ext/rspec_ext.rb#2
module RSpec::Core
class << self
# source://rspec-core/3.13.0/lib/rspec/core.rb#181
def path_to_executable; end
end
end
# source://rspec-retry//lib/rspec_ext/rspec_ext.rb#3
class RSpec::Core::Example
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#186
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
# 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
# source://rspec-retry//lib/rspec_ext/rspec_ext.rb#6
def clear_exception; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#174
def clock; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#174
def clock=(_arg0); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#76
def description; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#388
def display_exception; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#396
def display_exception=(ex); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#132
def duplicate_with(metadata_overrides = T.unsafe(nil)); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#230
def example_group; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#170
def example_group_instance; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#158
def exception; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#49
def execution_result; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#439
def fail_with_exception(reporter, exception); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#49
def file_path; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#49
def full_description; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#117
def id; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#220
def inspect; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#87
def inspect_output; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#456
def instance_exec(*args, &block); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#49
def location; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#96
def location_rerun_argument; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#163
def metadata; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#49
def pending; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#234
def pending?; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#226
def reporter; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#111
def rerun_argument; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#246
def run(example_group_instance, reporter); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#425
def set_aggregate_failures_exception(exception); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#412
def set_exception(exception); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#49
def skip; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#449
def skip_with_exception(reporter, exception); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#238
def skipped?; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#220
def to_s; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#148
def update_inherited_metadata(updates); end
private
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#534
def assign_generated_description; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#478
def finish(reporter); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#543
def generate_description; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#462
def hooks; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#550
def location_description; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#530
def mocks_need_verification?; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#498
def record_finished(status, reporter); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#516
def run_after_example; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#503
def run_before_example; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#473
def start(reporter); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#524
def verify_mocks; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#508
def with_around_and_singleton_context_hooks; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#466
def with_around_example_hooks; end
class << self
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#48
def delegate_to_metadata(key); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#122
def parse_id(id); end
end
end
# source://rspec-retry//lib/rspec_ext/rspec_ext.rb#10
class RSpec::Core::Example::Procsy
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#362
def initialize(example, &block); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#346
def <<(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#346
def ==(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#346
def ===(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#346
def >>(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#346
def [](*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#346
def arity(*a, &b); end
# source://rspec-retry//lib/rspec_ext/rspec_ext.rb#15
def attempts; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#346
def binding(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#350
def call(*args, &block); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#339
def clock(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#339
def clock=(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#346
def clone(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#346
def curry(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#339
def description(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#346
def dup(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#339
def duplicate_with(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#346
def eql?(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#333
def example; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#339
def example_group(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#339
def example_group_instance(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#339
def exception(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#374
def executed?; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#339
def execution_result(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#339
def file_path(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#339
def full_description(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#346
def hash(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#339
def id(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#379
def inspect; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#339
def inspect_output(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#346
def lambda?(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#339
def location(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#339
def location_rerun_argument(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#339
def metadata(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#346
def parameters(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#339
def pending(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#339
def pending?(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#339
def reporter(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#339
def rerun_argument(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#346
def ruby2_keywords(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#350
def run(*args, &block); end
# source://rspec-retry//lib/rspec_ext/rspec_ext.rb#11
def run_with_retry(opts = T.unsafe(nil)); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#339
def skip(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#339
def skipped?(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#346
def source_location(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#358
def to_proc; end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#339
def update_inherited_metadata(*a, &b); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#369
def wrap(&block); end
# source://rspec-core/3.13.0/lib/rspec/core/example.rb#346
def yield(*a, &b); end
end
# source://rspec-retry//lib/rspec_ext/rspec_ext.rb#25
class RSpec::Core::ExampleGroup
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#707
def initialize(inspect_output = T.unsafe(nil)); end
# source://rspec-retry//lib/rspec_ext/rspec_ext.rb#34
def clear_lets; end
# source://rspec-retry//lib/rspec_ext/rspec_ext.rb#26
def clear_memoized; end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#99
def described_class; end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#713
def inspect; end
private
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#758
def method_missing(name, *args, **_arg2); end
class << self
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#367
def add_example(example); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#529
def before_context_ivars; end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#466
def children; end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#247
def context(*args, &example_group_block); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#542
def currently_executing_a_context_hook?; end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#667
def declaration_locations; end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#246
def define_example_group_method(name, metadata = T.unsafe(nil)); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#145
def define_example_method(name, extra_options = T.unsafe(nil)); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#317
def define_nested_shared_group_method(new_name, report_label = T.unsafe(nil)); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#76
def delegate_to_metadata(*names); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#460
def descendant_filtered_examples; end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#503
def descendants; end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#247
def describe(*args, &example_group_block); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#78
def described_class; end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#85
def description; end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#700
def each_instance_variable_for_example(group); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#518
def ensure_example_groups_are_configured; end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#146
def example(*all_args, &block); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#247
def example_group(*args, &example_group_block); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#450
def examples; end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#247
def fcontext(*args, &example_group_block); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#247
def fdescribe(*args, &example_group_block); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#146
def fexample(*all_args, &block); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#78
def file_path; end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#455
def filtered_examples; end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#379
def find_and_eval_shared(label, name, inclusion_location, *args, &customization_block); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#146
def fit(*all_args, &block); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#146
def focus(*all_args, &block); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#655
def for_filtered_examples(reporter, &block); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#146
def fspecify(*all_args, &block); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#675
def id; end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#40
def idempotently_define_singleton_method(name, &definition); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#343
def include_context(name, *args, &block); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#353
def include_examples(name, *args, &block); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#146
def it(*all_args, &block); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#318
def it_behaves_like(name, *args, &customization_block); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#318
def it_should_behave_like(name, *args, &customization_block); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#78
def location; end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#51
def metadata; end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#485
def next_runnable_index_for(file); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#625
def ordering_strategy; end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#508
def parent_groups; end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#146
def pending(*all_args, &block); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#373
def remove_example(example); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#359
def reset_memoized; end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#599
def run(reporter = T.unsafe(nil)); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#585
def run_after_context_hooks(example_group_instance); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#547
def run_before_context_hooks(example_group_instance); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#641
def run_examples(reporter); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#410
def set_it_up(description, args, registration_collection, &example_group_block); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#685
def set_ivars(instance, ivars); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#146
def skip(*all_args, &block); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#146
def specify(*all_args, &block); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#534
def store_before_context_ivars(example_group_instance); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#395
def subclass(parent, description, args, registration_collection, &example_group_block); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#562
def superclass_before_context_ivars; end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#71
def superclass_metadata; end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#513
def top_level?; end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#680
def top_level_description; end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#476
def traverse_tree_until(&block); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#727
def update_inherited_metadata(updates); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#61
def with_replaced_metadata(meta); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#247
def xcontext(*args, &example_group_block); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#247
def xdescribe(*args, &example_group_block); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#146
def xexample(*all_args, &block); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#146
def xit(*all_args, &block); end
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#146
def xspecify(*all_args, &block); end
private
# source://rspec-core/3.13.0/lib/rspec/core/example_group.rb#742
def method_missing(name, *args); end
end
end
# source://rspec-retry//lib/rspec/retry/version.rb#2
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
# source://rspec-retry//lib/rspec/retry.rb#66
def attempts; end
# source://rspec-retry//lib/rspec/retry.rb#70
def attempts=(val); end
# source://rspec-retry//lib/rspec/retry.rb#74
def clear_lets; end
# Returns the value of attribute context.
#
# source://rspec-retry//lib/rspec/retry.rb#42
def context; end
# source://rspec-retry//lib/rspec/retry.rb#50
def current_example; end
# @return [Boolean]
#
# source://rspec-retry//lib/rspec/retry.rb#103
def display_try_failure_messages?; end
# Returns the value of attribute ex.
#
# source://rspec-retry//lib/rspec/retry.rb#42
def ex; end
# source://rspec-retry//lib/rspec/retry.rb#89
def exceptions_to_hard_fail; end
# source://rspec-retry//lib/rspec/retry.rb#94
def exceptions_to_retry; end
# source://rspec-retry//lib/rspec/retry.rb#54
def retry_count; end
# source://rspec-retry//lib/rspec/retry.rb#107
def run; end
# source://rspec-retry//lib/rspec/retry.rb#80
def sleep_interval; end
# @return [Boolean]
#
# source://rspec-retry//lib/rspec/retry.rb#99
def verbose_retry?; end
private
# @return [Boolean]
#
# source://rspec-retry//lib/rspec/retry.rb#183
def exception_exists_in?(list, exception); end
# borrowed from ActiveSupport::Inflector
#
# source://rspec-retry//lib/rspec/retry.rb#170
def ordinalize(number); end
class << self
# source://rspec-retry//lib/rspec/retry.rb#7
def setup; end
end
end
# source://rspec-retry//lib/rspec/retry/version.rb#3
RSpec::Retry::VERSION = T.let(T.unsafe(nil), String)

View File

@ -90,7 +90,7 @@ module RSpec::Sorbet::Doubles
# @return [void]
#
# source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252
# source://sorbet-runtime/0.5.11258/lib/types/private/methods/_methods.rb#257
def allow_instance_doubles!(*args, **_arg1, &blk); end
# source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#36

View File

@ -1,82 +0,0 @@
# typed: true
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `rspec` gem.
# Please instead update this file by running `bin/tapioca gem rspec`.
# source://rspec//lib/rspec/version.rb#1
module RSpec
class << self
# source://rspec-core/3.13.0/lib/rspec/core.rb#70
def clear_examples; end
# source://rspec-core/3.13.0/lib/rspec/core.rb#85
def configuration; end
# source://rspec-core/3.13.0/lib/rspec/core.rb#49
def configuration=(_arg0); end
# source://rspec-core/3.13.0/lib/rspec/core.rb#97
def configure; end
# source://rspec-core/3.13.0/lib/rspec/core.rb#194
def const_missing(name); end
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
def context(*args, &example_group_block); end
# source://rspec-core/3.13.0/lib/rspec/core.rb#122
def current_example; end
# source://rspec-core/3.13.0/lib/rspec/core.rb#128
def current_example=(example); end
# source://rspec-core/3.13.0/lib/rspec/core.rb#154
def current_scope; end
# source://rspec-core/3.13.0/lib/rspec/core.rb#134
def current_scope=(scope); end
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
def describe(*args, &example_group_block); end
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
def example_group(*args, &example_group_block); end
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
def fcontext(*args, &example_group_block); end
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
def fdescribe(*args, &example_group_block); end
# source://rspec-core/3.13.0/lib/rspec/core.rb#58
def reset; end
# source://rspec-core/3.13.0/lib/rspec/core/shared_example_group.rb#110
def shared_context(name, *args, &block); end
# source://rspec-core/3.13.0/lib/rspec/core/shared_example_group.rb#110
def shared_examples(name, *args, &block); end
# source://rspec-core/3.13.0/lib/rspec/core/shared_example_group.rb#110
def shared_examples_for(name, *args, &block); end
# source://rspec-core/3.13.0/lib/rspec/core.rb#160
def world; end
# source://rspec-core/3.13.0/lib/rspec/core.rb#49
def world=(_arg0); end
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
def xcontext(*args, &example_group_block); end
# source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
def xdescribe(*args, &example_group_block); end
end
end
# source://rspec//lib/rspec/version.rb#2
module RSpec::Version; end
# source://rspec//lib/rspec/version.rb#3
RSpec::Version::STRING = T.let(T.unsafe(nil), String)

View File

@ -1,143 +0,0 @@
# typed: true
# DO NOT EDIT MANUALLY
# 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`.
# 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
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#19
def dump_summary(notification); end
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#9
def start(notification); end
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#15
def stop(notification); end
private
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#69
def classname_for(notification); end
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#78
def description_for(notification); end
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#40
def duration; end
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#74
def duration_for(notification); end
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#48
def error_count; end
# source://rspec_junit_formatter//lib/rspec_junit_formatter.rb#167
def escape(text); end
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#28
def example_count; end
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#61
def example_group_file_path_for(notification); end
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#44
def examples; end
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#94
def exception_for(notification); end
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#36
def failure_count; end
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#90
def failure_for(notification); end
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#86
def failure_message_for(example); end
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#82
def failure_type_for(example); end
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#32
def pending_count; end
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#57
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
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#141
def stderr_for(example_notification); end
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#137
def stdout_for(example_notification); end
# source://rspec_junit_formatter//lib/rspec_junit_formatter.rb#175
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
# source://rspec_junit_formatter//lib/rspec_junit_formatter/rspec3.rb#123
def without_color(&block); end
# source://rspec_junit_formatter//lib/rspec_junit_formatter.rb#16
def xml_dump; end
# source://rspec_junit_formatter//lib/rspec_junit_formatter.rb#68
def xml_dump_example(example); end
# source://rspec_junit_formatter//lib/rspec_junit_formatter.rb#38
def xml_dump_examples; end
# source://rspec_junit_formatter//lib/rspec_junit_formatter.rb#57
def xml_dump_failed(example); end
# source://rspec_junit_formatter//lib/rspec_junit_formatter.rb#82
def xml_dump_output(example); end
# source://rspec_junit_formatter//lib/rspec_junit_formatter.rb#51
def xml_dump_pending(example); 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)
# 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)
# 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)
# 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)
# source://rspec_junit_formatter//lib/rspec_junit_formatter.rb#172
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)
# source://rspec_junit_formatter//lib/rspec_junit_formatter.rb#189
RspecJunitFormatter = RSpecJUnitFormatter

File diff suppressed because it is too large Load Diff

View File

@ -1,927 +0,0 @@
# 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#79
def omit_hash_value?(param0 = T.unsafe(nil)); end
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#93
def on_send(node); end
private
# @return [Boolean]
#
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#130
def ambiguous_without_parentheses?(node); end
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#101
def register_offense(node); end
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#108
def register_offense_with_parentheses(node); end
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#119
def register_offense_without_parentheses(node); end
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#134
def remove_parentheses(corrector, node); end
class << self
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#89
def autocorrect_incompatible_with; end
end
end
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#128
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
# Check for excessive model creation in a list.
#
# @example MaxAmount: 10 (default)
# # We do not allow more than 10 items to be created
#
# # bad
# create_list(:merge_request, 1000, state: :opened)
#
# # good
# create_list(:merge_request, 10, state: :opened)
# @example MaxAmount: 20
# # We do not allow more than 20 items to be created
#
# # bad
# create_list(:merge_request, 1000, state: :opened)
#
# # good
# create_list(:merge_request, 15, state: :opened)
#
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/excessive_create_list.rb#26
class RuboCop::Cop::FactoryBot::ExcessiveCreateList < ::RuboCop::Cop::Base
include ::RuboCop::FactoryBot::Language
include ::RuboCop::Cop::FactoryBot::ConfigurableExplicitOnly
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/excessive_create_list.rb#33
def create_list?(param0 = T.unsafe(nil)); end
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/excessive_create_list.rb#39
def on_send(node); end
end
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/excessive_create_list.rb#29
RuboCop::Cop::FactoryBot::ExcessiveCreateList::MESSAGE = T.let(T.unsafe(nil), String)
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/excessive_create_list.rb#37
RuboCop::Cop::FactoryBot::ExcessiveCreateList::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
# 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"
#
# # good - namespaced models
# create('users/internal')
# @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#51
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#62
def factory_call(param0 = T.unsafe(nil)); end
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#69
def on_send(node); end
private
# @return [Boolean]
#
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#89
def namespaced?(name); end
# @return [Boolean]
#
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#85
def offense_for_string_style?(name); end
# @return [Boolean]
#
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#81
def offense_for_symbol_style?(name); end
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#93
def register_offense(name, prefer); end
end
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#58
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#57
RuboCop::Cop::FactoryBot::FactoryNameStyle::MSG = T.let(T.unsafe(nil), String)
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#59
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
include ::RuboCop::FactoryBot::Language
extend ::RuboCop::Cop::AutoCorrector
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/id_sequence.rb#27
def on_send(node); end
end
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/id_sequence.rb#24
RuboCop::Cop::FactoryBot::IdSequence::MSG = T.let(T.unsafe(nil), String)
# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/id_sequence.rb#25
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)

View File

@ -1,517 +0,0 @@
# typed: true
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `rubocop-md` gem.
# Please instead update this file by running `bin/tapioca gem rubocop-md`.
# source://rubocop-md//lib/rubocop/markdown/version.rb#3
module RuboCop; end
module RuboCop::AST; end
class RuboCop::AST::ProcessedSource
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#26
def initialize(source, ruby_version, path = T.unsafe(nil)); end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#63
def [](*args); end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#18
def ast; end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#41
def ast_with_comments; end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#102
def blank?; end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#18
def buffer; end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#74
def checksum; end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#107
def comment_at_line(line); end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#129
def commented?(source_range); end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#18
def comments; end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#137
def comments_before_line(line); end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#129
def contains_comment?(source_range); end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#151
def current_line(token); end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#18
def diagnostics; end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#79
def each_comment(&block); end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#117
def each_comment_in_lines(line_range); end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#89
def each_token(&block); end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#98
def file_path; end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#84
def find_comment(&block); end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#94
def find_token(&block); end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#172
def first_token_of(range_or_node); end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#155
def following_line(token); end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#176
def last_token_of(range_or_node); end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#159
def line_indentation(line_number); end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#112
def line_with_comment?(line); end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#49
def lines; end
# source://rubocop-md//lib/rubocop/markdown/rubocop_ext.rb#95
def parse(src, *args); end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#18
def parser_error; end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#18
def path; end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#147
def preceding_line(token); end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#18
def raw_source; end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#18
def ruby_version; end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#183
def sorted_tokens; end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#141
def start_with?(string); end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#18
def tokens; end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#166
def tokens_within(range_or_node); end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#67
def valid_syntax?; end
private
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#190
def comment_index; end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#278
def create_parser(ruby_version); end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#294
def first_token_index(range_or_node); end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#299
def last_token_index(range_or_node); end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#230
def parser_class(ruby_version); end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#304
def source_range(range_or_node); end
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#213
def tokenize(parser); end
class << self
# source://rubocop-ast/1.30.0/lib/rubocop/ast/processed_source.rb#21
def from_file(path, ruby_version); end
end
end
# Plugin to run Rubocop against Markdown files
#
# source://rubocop-md//lib/rubocop/markdown/version.rb#4
module RuboCop::Markdown
class << self
# Returns the value of attribute config_store.
#
# source://rubocop-md//lib/rubocop/markdown/rubocop_ext.rb#24
def config_store; end
# Sets the attribute config_store
#
# @param value the value to set the attribute config_store to.
#
# source://rubocop-md//lib/rubocop/markdown/rubocop_ext.rb#24
def config_store=(_arg0); end
# Merge markdown config into default configuration
# See https://github.com/backus/rubocop-rspec/blob/master/lib/rubocop/rspec/inject.rb
#
# source://rubocop-md//lib/rubocop/markdown/rubocop_ext.rb#28
def inject!; end
# @return [Boolean]
#
# source://rubocop-md//lib/rubocop/markdown/rubocop_ext.rb#37
def markdown_file?(file); end
end
end
# source://rubocop-md//lib/rubocop/markdown.rb#10
RuboCop::Markdown::CONFIG_DEFAULT = T.let(T.unsafe(nil), Pathname)
# According to Linguist.
# See https://github.com/github/linguist/blob/96ca71ab99c2f9928d5d69f4c08fd2a51440d045/lib/linguist/languages.yml#L3065-L3083
#
# source://rubocop-md//lib/rubocop/markdown/rubocop_ext.rb#7
RuboCop::Markdown::MARKDOWN_EXTENSIONS = T.let(T.unsafe(nil), Array)
# A list of cops that could produce offenses in commented lines
#
# source://rubocop-md//lib/rubocop/markdown/rubocop_ext.rb#21
RuboCop::Markdown::MARKDOWN_OFFENSE_COPS = T.let(T.unsafe(nil), Array)
# source://rubocop-md//lib/rubocop/markdown.rb#9
RuboCop::Markdown::PROJECT_ROOT = T.let(T.unsafe(nil), Pathname)
# Transform source Markdown file into valid Ruby file
# by commenting out all non-code lines
#
# source://rubocop-md//lib/rubocop/markdown/preprocess.rb#9
class RuboCop::Markdown::Preprocess
# @return [Preprocess] a new instance of Preprocess
#
# source://rubocop-md//lib/rubocop/markdown/preprocess.rb#51
def initialize(file); end
# source://rubocop-md//lib/rubocop/markdown/preprocess.rb#56
def call(src); end
# Returns the value of attribute config.
#
# source://rubocop-md//lib/rubocop/markdown/preprocess.rb#49
def config; end
private
# Whether to try to detect Ruby by parsing codeblock.
# If it's set to false we lint only implicitly specified Ruby blocks.
#
# @return [Boolean]
#
# source://rubocop-md//lib/rubocop/markdown/preprocess.rb#112
def autodetect?; end
# source://rubocop-md//lib/rubocop/markdown/preprocess.rb#116
def comment_lines(src); end
# Check codeblock attribute to prevent from parsing
# non-Ruby snippets and avoid false positives
#
# @return [Boolean]
#
# source://rubocop-md//lib/rubocop/markdown/preprocess.rb#87
def maybe_ruby?(syntax); end
# Check codeblack attribute if it's defined and of Ruby type
#
# @return [Boolean]
#
# source://rubocop-md//lib/rubocop/markdown/preprocess.rb#92
def ruby?(syntax); end
# @return [Boolean]
#
# source://rubocop-md//lib/rubocop/markdown/preprocess.rb#81
def ruby_codeblock?(syntax, src); end
# Try to parse with Ripper
# Invalid Ruby code (or non-Ruby) returns `nil`.
# Return true if it's explicit Ruby and warn_invalid?
#
# @return [Boolean]
#
# source://rubocop-md//lib/rubocop/markdown/preprocess.rb#99
def valid_syntax?(syntax, src); end
# Whether to show warning when snippet is not a valid Ruby
#
# @return [Boolean]
#
# source://rubocop-md//lib/rubocop/markdown/preprocess.rb#106
def warn_invalid?; end
class << self
# Revert preprocess changes.
#
# When autocorrect is applied, RuboCop re-writes the file
# using preproccessed source buffer.
#
# We have to restore it.
#
# source://rubocop-md//lib/rubocop/markdown/preprocess.rb#42
def restore!(file); end
end
end
# source://rubocop-md//lib/rubocop/markdown/preprocess.rb#23
RuboCop::Markdown::Preprocess::MARKER = T.let(T.unsafe(nil), String)
# This is a regexp to parse code blocks from .md files.
#
# Only recognizes backticks-style code blocks.
#
# Try it: https://rubular.com/r/YMqSWiBuh2TKIJ
#
# source://rubocop-md//lib/rubocop/markdown/preprocess.rb#15
RuboCop::Markdown::Preprocess::MD_REGEXP = T.let(T.unsafe(nil), Regexp)
# See https://github.com/github/linguist/blob/v5.3.3/lib/linguist/languages.yml#L3925
#
# source://rubocop-md//lib/rubocop/markdown/preprocess.rb#26
RuboCop::Markdown::Preprocess::RUBY_TYPES = T.let(T.unsafe(nil), Array)
# source://rubocop-md//lib/rubocop/markdown/version.rb#5
RuboCop::Markdown::VERSION = T.let(T.unsafe(nil), String)
class RuboCop::Runner
# source://rubocop/1.60.2/lib/rubocop/runner.rb#59
def initialize(options, config_store); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#57
def aborting=(_arg0); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#83
def aborting?; end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#56
def errors; end
# source://rubocop-md//lib/rubocop/markdown/rubocop_ext.rb#74
def file_finished(file, offenses); end
# source://rubocop-md//lib/rubocop/markdown/rubocop_ext.rb#56
def file_offense_cache(file); end
# source://rubocop-md//lib/rubocop/markdown/rubocop_ext.rb#48
def get_processed_source(*args); end
# source://rubocop-md//lib/rubocop/markdown/rubocop_ext.rb#62
def inspect_file(*args); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#67
def run(paths); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#56
def warnings; end
private
# source://rubocop/1.60.2/lib/rubocop/runner.rb#196
def add_redundant_disables(file, offenses, source); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#170
def cached_result(file, team); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#250
def cached_run?; end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#328
def check_for_infinite_loop(processed_source, offenses_by_iteration); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#222
def check_for_redundant_disables?(source); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#423
def considered_failure?(offense); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#456
def default_config(cop_name); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#272
def do_inspection_loop(file); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#133
def each_inspected_file(files); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#236
def except_redundant_cop_disable_directive?; end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#357
def extract_ruby_sources(processed_source); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#162
def file_offenses(file); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#240
def file_started(file); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#403
def filter_cop_classes(cop_classes, config); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#104
def find_target_files(paths); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#414
def formatter_set; end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#115
def inspect_files(files); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#303
def iterate_until_no_changes(source, offenses_by_iteration); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#148
def list_files(paths); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#452
def mark_as_safe_by_config?(config); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#460
def minimum_severity_to_fail; end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#364
def mobilize_team(processed_source); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#369
def mobilized_cop_classes(config); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#432
def offenses_to_report(offenses); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#152
def process_file(file); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#393
def qualify_option_cop_names; end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#228
def redundant_cop_disable_directive(file); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#262
def save_in_cache(cache, offenses); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#492
def standby_team(config); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#410
def style_guide_cops_only?(config); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#444
def supports_safe_autocorrect?(offense); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#211
def team_for_redundant_disables(file, offenses, source); end
# source://rubocop/1.60.2/lib/rubocop/runner.rb#91
def warm_cache(target_files); end
class << self
# source://rubocop/1.60.2/lib/rubocop/runner.rb#29
def ruby_extractors; end
private
# source://rubocop/1.60.2/lib/rubocop/runner.rb#36
def default_ruby_extractor; end
end
end
class RuboCop::TargetFinder
# source://rubocop/1.60.2/lib/rubocop/target_finder.rb#10
def initialize(config_store, options = T.unsafe(nil)); end
# source://rubocop/1.60.2/lib/rubocop/target_finder.rb#149
def all_cops_include; end
# source://rubocop/1.60.2/lib/rubocop/target_finder.rb#120
def combined_exclude_glob_patterns(base_dir); end
# source://rubocop/1.60.2/lib/rubocop/target_finder.rb#176
def configured_include?(file); end
# source://rubocop/1.60.2/lib/rubocop/target_finder.rb#19
def debug?; end
# source://rubocop/1.60.2/lib/rubocop/target_finder.rb#23
def fail_fast?; end
# source://rubocop/1.60.2/lib/rubocop/target_finder.rb#31
def find(args, mode); end
# source://rubocop/1.60.2/lib/rubocop/target_finder.rb#83
def find_files(base_dir, flags); end
# source://rubocop/1.60.2/lib/rubocop/target_finder.rb#15
def force_exclusion?; end
# source://rubocop/1.60.2/lib/rubocop/target_finder.rb#180
def included_file?(file); end
# source://rubocop/1.60.2/lib/rubocop/target_finder.rb#184
def process_explicit_path(path, mode); end
# source://rubocop/1.60.2/lib/rubocop/target_finder.rb#153
def ruby_executable?(file); end
# source://rubocop/1.60.2/lib/rubocop/target_finder.rb#127
def ruby_extension?(file); end
# source://rubocop/1.60.2/lib/rubocop/target_finder.rb#131
def ruby_extensions; end
# source://rubocop-md//lib/rubocop/markdown/rubocop_ext.rb#88
def ruby_file?(file); end
# source://rubocop/1.60.2/lib/rubocop/target_finder.rb#138
def ruby_filename?(file); end
# source://rubocop/1.60.2/lib/rubocop/target_finder.rb#142
def ruby_filenames; end
# source://rubocop/1.60.2/lib/rubocop/target_finder.rb#164
def ruby_interpreters(file); end
# source://rubocop/1.60.2/lib/rubocop/target_finder.rb#168
def stdin?; end
# source://rubocop/1.60.2/lib/rubocop/target_finder.rb#112
def symlink_excluded_or_infinite_loop?(base_dir, current_dir, exclude_pattern, flags); end
# source://rubocop/1.60.2/lib/rubocop/target_finder.rb#56
def target_files_in_dir(base_dir = T.unsafe(nil)); end
# source://rubocop/1.60.2/lib/rubocop/target_finder.rb#69
def to_inspect?(file, hidden_files, base_dir_config); end
# source://rubocop/1.60.2/lib/rubocop/target_finder.rb#96
def wanted_dir_patterns(base_dir, exclude_pattern, flags); end
private
# source://rubocop/1.60.2/lib/rubocop/target_finder.rb#201
def order; end
end

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,233 +0,0 @@
# typed: true
# DO NOT EDIT MANUALLY
# 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`.
# source://simplecov_json_formatter//lib/simplecov_json_formatter.rb#7
module SimpleCov
class << self
# source://simplecov/0.22.0/lib/simplecov.rb#174
def at_exit_behavior; end
# source://simplecov/0.22.0/lib/simplecov.rb#170
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
# source://simplecov/0.22.0/lib/simplecov.rb#223
def exit_and_report_previous_error(exit_status); end
# source://simplecov/0.22.0/lib/simplecov.rb#200
def exit_status_from_exception; end
# source://simplecov/0.22.0/lib/simplecov.rb#28
def external_at_exit; end
# source://simplecov/0.22.0/lib/simplecov.rb#28
def external_at_exit=(_arg0); end
# source://simplecov/0.22.0/lib/simplecov.rb#28
def external_at_exit?; end
# source://simplecov/0.22.0/lib/simplecov.rb#131
def filtered(files); end
# source://simplecov/0.22.0/lib/simplecov.rb#268
def final_result_process?; end
# source://simplecov/0.22.0/lib/simplecov.rb#142
def grouped(files); end
# source://simplecov/0.22.0/lib/simplecov.rb#162
def load_adapter(name); end
# source://simplecov/0.22.0/lib/simplecov.rb#158
def load_profile(name); end
# source://simplecov/0.22.0/lib/simplecov.rb#24
def pid; end
# source://simplecov/0.22.0/lib/simplecov.rb#24
def pid=(_arg0); end
# source://simplecov/0.22.0/lib/simplecov.rb#213
def previous_error?(error_exit_status); end
# source://simplecov/0.22.0/lib/simplecov.rb#248
def process_result(result); end
# source://simplecov/0.22.0/lib/simplecov.rb#233
def process_results_and_report_error; end
# source://simplecov/0.22.0/lib/simplecov.rb#229
def ready_to_process_results?; end
# source://simplecov/0.22.0/lib/simplecov.rb#101
def result; end
# source://simplecov/0.22.0/lib/simplecov.rb#124
def result?; end
# source://simplecov/0.22.0/lib/simplecov.rb#256
def result_exit_status(result); end
# source://simplecov/0.22.0/lib/simplecov.rb#296
def round_coverage(coverage); end
# source://simplecov/0.22.0/lib/simplecov.rb#186
def run_exit_tasks!; end
# source://simplecov/0.22.0/lib/simplecov.rb#24
def running; end
# source://simplecov/0.22.0/lib/simplecov.rb#24
def running=(_arg0); end
# source://simplecov/0.22.0/lib/simplecov.rb#48
def start(profile = T.unsafe(nil), &block); end
# source://simplecov/0.22.0/lib/simplecov.rb#276
def wait_for_other_processes; end
# source://simplecov/0.22.0/lib/simplecov.rb#285
def write_last_run(result); end
private
# source://simplecov/0.22.0/lib/simplecov.rb#399
def adapt_coverage_result; end
# source://simplecov/0.22.0/lib/simplecov.rb#371
def add_not_loaded_files(result); end
# source://simplecov/0.22.0/lib/simplecov.rb#302
def initial_setup(profile, &block); end
# source://simplecov/0.22.0/lib/simplecov.rb#363
def lookup_corresponding_ruby_coverage_name(criterion); end
# source://simplecov/0.22.0/lib/simplecov.rb#425
def make_parallel_tests_available; end
# source://simplecov/0.22.0/lib/simplecov.rb#434
def probably_running_parallel_tests?; end
# source://simplecov/0.22.0/lib/simplecov.rb#388
def process_coverage_result; end
# source://simplecov/0.22.0/lib/simplecov.rb#410
def remove_useless_results; end
# source://simplecov/0.22.0/lib/simplecov.rb#420
def result_with_not_loaded_files; end
# source://simplecov/0.22.0/lib/simplecov.rb#314
def start_coverage_measurement; end
# source://simplecov/0.22.0/lib/simplecov.rb#349
def start_coverage_with_criteria; end
end
end
# source://simplecov_json_formatter//lib/simplecov_json_formatter.rb#8
module SimpleCov::Formatter; end
# source://simplecov_json_formatter//lib/simplecov_json_formatter.rb#9
class SimpleCov::Formatter::JSONFormatter
# source://simplecov_json_formatter//lib/simplecov_json_formatter.rb#10
def format(result); end
private
# source://simplecov_json_formatter//lib/simplecov_json_formatter.rb#25
def export_formatted_result(result_hash); end
# source://simplecov_json_formatter//lib/simplecov_json_formatter.rb#20
def format_result(result); end
# source://simplecov_json_formatter//lib/simplecov_json_formatter.rb#30
def output_message(result); end
end
# source://simplecov_json_formatter//lib/simplecov_json_formatter/source_file_formatter.rb#3
module SimpleCovJSONFormatter; end
# source://simplecov_json_formatter//lib/simplecov_json_formatter/result_exporter.rb#4
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
# source://simplecov_json_formatter//lib/simplecov_json_formatter/result_exporter.rb#11
def export; end
private
# source://simplecov_json_formatter//lib/simplecov_json_formatter/result_exporter.rb#23
def export_path; end
# source://simplecov_json_formatter//lib/simplecov_json_formatter/result_exporter.rb#19
def json_result; end
end
# source://simplecov_json_formatter//lib/simplecov_json_formatter/result_exporter.rb#5
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
# @return [ResultHashFormatter] a new instance of ResultHashFormatter
#
# source://simplecov_json_formatter//lib/simplecov_json_formatter/result_hash_formatter.rb#7
def initialize(result); end
# source://simplecov_json_formatter//lib/simplecov_json_formatter/result_hash_formatter.rb#11
def format; end
private
# source://simplecov_json_formatter//lib/simplecov_json_formatter/result_hash_formatter.rb#20
def format_files; end
# source://simplecov_json_formatter//lib/simplecov_json_formatter/result_hash_formatter.rb#27
def format_groups; end
# source://simplecov_json_formatter//lib/simplecov_json_formatter/result_hash_formatter.rb#47
def format_source_file(source_file); end
# source://simplecov_json_formatter//lib/simplecov_json_formatter/result_hash_formatter.rb#37
def formatted_result; end
end
# source://simplecov_json_formatter//lib/simplecov_json_formatter/source_file_formatter.rb#4
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
# source://simplecov_json_formatter//lib/simplecov_json_formatter/source_file_formatter.rb#10
def format; end
private
# source://simplecov_json_formatter//lib/simplecov_json_formatter/source_file_formatter.rb#26
def branch_coverage; end
# source://simplecov_json_formatter//lib/simplecov_json_formatter/source_file_formatter.rb#41
def branches; end
# source://simplecov_json_formatter//lib/simplecov_json_formatter/source_file_formatter.rb#20
def line_coverage; end
# source://simplecov_json_formatter//lib/simplecov_json_formatter/source_file_formatter.rb#32
def lines; end
# source://simplecov_json_formatter//lib/simplecov_json_formatter/source_file_formatter.rb#56
def parse_branch(branch); end
# source://simplecov_json_formatter//lib/simplecov_json_formatter/source_file_formatter.rb#50
def parse_line(line); end
end

View File

@ -1,196 +0,0 @@
# typed: true
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `simpleidn` gem.
# 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
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
# 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
# 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
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
# 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
# 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
end
end
# source://simpleidn//lib/simpleidn.rb#199
SimpleIDN::ACE_PREFIX = T.let(T.unsafe(nil), String)
# source://simpleidn//lib/simpleidn.rb#200
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
# source://simpleidn//lib/simpleidn.rb#201
SimpleIDN::DOT = T.let(T.unsafe(nil), String)
# source://simpleidn//lib/simpleidn.rb#202
SimpleIDN::EMPTY = T.let(T.unsafe(nil), String)
# source://simpleidn//lib/simpleidn.rb#203
SimpleIDN::LABEL_SEPERATOR_RE = T.let(T.unsafe(nil), Regexp)
# source://simpleidn//lib/simpleidn.rb#11
module SimpleIDN::Punycode
private
# Bias adaptation function
#
# source://simpleidn//lib/simpleidn.rb#44
def adapt(delta, numpoints, firsttime); end
# Main decode
#
# source://simpleidn//lib/simpleidn.rb#57
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
# Main encode function
#
# source://simpleidn//lib/simpleidn.rb#129
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
class << self
# Bias adaptation function
#
# source://simpleidn//lib/simpleidn.rb#44
def adapt(delta, numpoints, firsttime); end
# Main decode
#
# source://simpleidn//lib/simpleidn.rb#57
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
# Main encode function
#
# source://simpleidn//lib/simpleidn.rb#129
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
end
end
# source://simpleidn//lib/simpleidn.rb#21
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)
# source://simpleidn//lib/simpleidn.rb#16
SimpleIDN::Punycode::DAMP = T.let(T.unsafe(nil), Integer)
# source://simpleidn//lib/simpleidn.rb#14
SimpleIDN::Punycode::DELIMITER = T.let(T.unsafe(nil), Integer)
# source://simpleidn//lib/simpleidn.rb#23
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)
# source://simpleidn//lib/simpleidn.rb#12
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)
# source://simpleidn//lib/simpleidn.rb#19
SimpleIDN::Punycode::SKEW = T.let(T.unsafe(nil), Integer)
# source://simpleidn//lib/simpleidn.rb#18
SimpleIDN::Punycode::TMAX = T.let(T.unsafe(nil), Integer)
# source://simpleidn//lib/simpleidn.rb#17
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)
# source://simpleidn//lib/simpleidn/uts46mapping.rb#14
SimpleIDN::UTS64MAPPING = T.let(T.unsafe(nil), Hash)
# source://simpleidn//lib/simpleidn/version.rb#2
SimpleIDN::VERSION = T.let(T.unsafe(nil), String)

View File

@ -958,7 +958,7 @@ class Spoom::Coverage::D3::ColorPalette < ::T::Struct
prop :strong, ::String
class << self
# source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13
# source://sorbet-runtime/0.5.11258/lib/types/struct.rb#13
def inherited(s); end
end
end
@ -1298,7 +1298,7 @@ class Spoom::Coverage::Snapshot < ::T::Struct
sig { params(obj: T::Hash[::String, T.untyped]).returns(::Spoom::Coverage::Snapshot) }
def from_obj(obj); end
# source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13
# source://sorbet-runtime/0.5.11258/lib/types/struct.rb#13
def inherited(s); end
end
end
@ -1450,7 +1450,7 @@ class Spoom::Deadcode::Definition < ::T::Struct
def module?; end
class << self
# source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13
# source://sorbet-runtime/0.5.11258/lib/types/struct.rb#13
def inherited(s); end
end
end
@ -2343,7 +2343,7 @@ class Spoom::Deadcode::Reference < ::T::Struct
def method?; end
class << self
# source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13
# source://sorbet-runtime/0.5.11258/lib/types/struct.rb#13
def inherited(s); end
end
end
@ -2593,7 +2593,7 @@ class Spoom::Deadcode::Send < ::T::Struct
def each_arg_assoc(&block); end
class << self
# source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13
# source://sorbet-runtime/0.5.11258/lib/types/struct.rb#13
def inherited(s); end
end
end
@ -2613,7 +2613,7 @@ class Spoom::ExecResult < ::T::Struct
def to_s; end
class << self
# source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13
# source://sorbet-runtime/0.5.11258/lib/types/struct.rb#13
def inherited(s); end
end
end
@ -2821,7 +2821,7 @@ class Spoom::FileTree::Node < ::T::Struct
def path; end
class << self
# source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13
# source://sorbet-runtime/0.5.11258/lib/types/struct.rb#13
def inherited(s); end
end
end
@ -2887,7 +2887,7 @@ class Spoom::Git::Commit < ::T::Struct
def timestamp; end
class << self
# source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13
# source://sorbet-runtime/0.5.11258/lib/types/struct.rb#13
def inherited(s); end
# Parse a line formated as `%h %at` into a `Commit`
@ -2999,7 +2999,7 @@ class Spoom::LSP::Diagnostic < ::T::Struct
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Diagnostic) }
def from_json(json); end
# source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13
# source://sorbet-runtime/0.5.11258/lib/types/struct.rb#13
def inherited(s); end
end
end
@ -3032,7 +3032,7 @@ class Spoom::LSP::DocumentSymbol < ::T::Struct
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::DocumentSymbol) }
def from_json(json); end
# source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13
# source://sorbet-runtime/0.5.11258/lib/types/struct.rb#13
def inherited(s); end
end
end
@ -3090,7 +3090,7 @@ class Spoom::LSP::Hover < ::T::Struct
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Hover) }
def from_json(json); end
# source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13
# source://sorbet-runtime/0.5.11258/lib/types/struct.rb#13
def inherited(s); end
end
end
@ -3115,7 +3115,7 @@ class Spoom::LSP::Location < ::T::Struct
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Location) }
def from_json(json); end
# source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13
# source://sorbet-runtime/0.5.11258/lib/types/struct.rb#13
def inherited(s); end
end
end
@ -3178,7 +3178,7 @@ class Spoom::LSP::Position < ::T::Struct
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Position) }
def from_json(json); end
# source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13
# source://sorbet-runtime/0.5.11258/lib/types/struct.rb#13
def inherited(s); end
end
end
@ -3216,7 +3216,7 @@ class Spoom::LSP::Range < ::T::Struct
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Range) }
def from_json(json); end
# source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13
# source://sorbet-runtime/0.5.11258/lib/types/struct.rb#13
def inherited(s); end
end
end
@ -3282,7 +3282,7 @@ class Spoom::LSP::SignatureHelp < ::T::Struct
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::SignatureHelp) }
def from_json(json); end
# source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13
# source://sorbet-runtime/0.5.11258/lib/types/struct.rb#13
def inherited(s); end
end
end

View File

@ -204,7 +204,7 @@ class RBI::TypedParam < ::T::Struct
const :type, ::String
class << self
# source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13
# source://sorbet-runtime/0.5.11258/lib/types/struct.rb#13
def inherited(s); end
end
end
@ -1121,7 +1121,7 @@ class Tapioca::ConfigHelper::ConfigError < ::T::Struct
const :message_parts, T::Array[::Tapioca::ConfigHelper::ConfigErrorMessagePart]
class << self
# source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13
# source://sorbet-runtime/0.5.11258/lib/types/struct.rb#13
def inherited(s); end
end
end
@ -1132,7 +1132,7 @@ class Tapioca::ConfigHelper::ConfigErrorMessagePart < ::T::Struct
const :colors, T::Array[::Symbol]
class << self
# source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13
# source://sorbet-runtime/0.5.11258/lib/types/struct.rb#13
def inherited(s); end
end
end
@ -2432,7 +2432,7 @@ class Tapioca::Loaders::Loader
# @param engine [T.class_of(Rails::Engine)]
# @return [Array<String>]
#
# source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252
# source://sorbet-runtime/0.5.11258/lib/types/private/methods/_methods.rb#257
def eager_load_paths(*args, **_arg1, &blk); end
# source://tapioca//lib/tapioca/loaders/loader.rb#198
@ -3340,7 +3340,7 @@ module Tapioca::Static::SymbolLoader
# @return [Array<T.class_of(Rails::Engine)>]
#
# source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252
# source://sorbet-runtime/0.5.11258/lib/types/private/methods/_methods.rb#257
def engines(*args, **_arg1, &blk); end
# source://tapioca//lib/tapioca/static/symbol_loader.rb#82

View File

@ -1,38 +0,0 @@
# typed: true
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `unf` gem.
# Please instead update this file by running `bin/tapioca gem unf`.
# source://unf//lib/unf/version.rb#1
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
include ::Singleton
extend ::Singleton::SingletonClassMethods
# @return [Normalizer] a new instance of Normalizer
def initialize; end
def normalize(_arg0, _arg1); end
class << self
def new(*_arg0); end
# A shortcut for instance.normalize(string, form).
#
# source://unf//lib/unf/normalizer.rb#24
def normalize(string, form); end
private
def allocate; end
end
end
# source://unf//lib/unf/version.rb#2
UNF::VERSION = T.let(T.unsafe(nil), String)

View File

@ -1,8 +0,0 @@
# typed: true
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `unf_ext` gem.
# Please instead update this file by running `bin/tapioca gem unf_ext`.
# THIS IS AN EMPTY RBI FILE.
# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem

View File

@ -1,65 +0,0 @@
# typed: true
# DO NOT EDIT MANUALLY
# 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`.
# source://unicode-display_width//lib/unicode/display_width/constants.rb#3
module Unicode; end
# source://unicode-display_width//lib/unicode/display_width/constants.rb#4
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
# source://unicode-display_width//lib/unicode/display_width.rb#110
def get_config(**kwargs); end
# source://unicode-display_width//lib/unicode/display_width.rb#118
def of(string, **kwargs); end
class << self
# source://unicode-display_width//lib/unicode/display_width/index.rb#14
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
# 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
# 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
# source://unicode-display_width//lib/unicode/display_width.rb#30
def width_no_overwrite(string, ambiguous, options = T.unsafe(nil)); 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)
# source://unicode-display_width//lib/unicode/display_width/constants.rb#7
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)
# source://unicode-display_width//lib/unicode/display_width/index.rb#11
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)
# source://unicode-display_width//lib/unicode/display_width.rb#8
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)
# source://unicode-display_width//lib/unicode/display_width/constants.rb#5
Unicode::DisplayWidth::VERSION = T.let(T.unsafe(nil), String)

View File

@ -1,428 +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`.
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.11247/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)