Update RBI files for spoom.
This commit is contained in:
parent
79e51531b1
commit
12a9ec9fd7
@ -1,39 +0,0 @@
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for types exported from the `colorize` gem.
|
||||
# Please instead update this file by running `bin/tapioca gem colorize`.
|
||||
|
||||
# typed: true
|
||||
|
||||
module Colorize; end
|
||||
|
||||
module Colorize::ClassMethods
|
||||
def color_codes; end
|
||||
def color_matrix(_ = T.unsafe(nil)); end
|
||||
def color_methods; end
|
||||
def color_samples; end
|
||||
def colors; end
|
||||
def disable_colorization(value = T.unsafe(nil)); end
|
||||
def disable_colorization=(value); end
|
||||
def mode_codes; end
|
||||
def modes; end
|
||||
def modes_methods; end
|
||||
end
|
||||
|
||||
module Colorize::InstanceMethods
|
||||
def colorize(params); end
|
||||
def colorized?; end
|
||||
def uncolorize; end
|
||||
|
||||
private
|
||||
|
||||
def background_color(color); end
|
||||
def color(color); end
|
||||
def color_from_symbol(match, symbol); end
|
||||
def colors_from_hash(match, hash); end
|
||||
def colors_from_params(match, params); end
|
||||
def defaults_colors(match); end
|
||||
def mode(mode); end
|
||||
def require_windows_libs; end
|
||||
def scan_for_colors; end
|
||||
def split_colors(match); end
|
||||
end
|
||||
@ -14,6 +14,7 @@ end
|
||||
module Spoom::Cli; end
|
||||
|
||||
class Spoom::Cli::Bump < ::Thor
|
||||
include ::Spoom::Colorize
|
||||
include ::Spoom::Cli::Helper
|
||||
|
||||
sig { params(directory: String).void }
|
||||
@ -26,6 +27,7 @@ class Spoom::Cli::Bump < ::Thor
|
||||
end
|
||||
|
||||
class Spoom::Cli::Config < ::Thor
|
||||
include ::Spoom::Colorize
|
||||
include ::Spoom::Cli::Helper
|
||||
|
||||
def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end
|
||||
@ -33,6 +35,7 @@ class Spoom::Cli::Config < ::Thor
|
||||
end
|
||||
|
||||
class Spoom::Cli::Coverage < ::Thor
|
||||
include ::Spoom::Colorize
|
||||
include ::Spoom::Cli::Helper
|
||||
|
||||
def bundle_install(path, sha); end
|
||||
@ -48,7 +51,7 @@ end
|
||||
Spoom::Cli::Coverage::DATA_DIR = T.let(T.unsafe(nil), String)
|
||||
|
||||
module Spoom::Cli::Helper
|
||||
include ::Thor::Shell
|
||||
include ::Spoom::Colorize
|
||||
|
||||
sig { params(string: String).returns(String) }
|
||||
def blue(string); end
|
||||
@ -56,8 +59,8 @@ module Spoom::Cli::Helper
|
||||
sig { returns(T::Boolean) }
|
||||
def color?; end
|
||||
|
||||
sig { params(string: String, color: Symbol).returns(String) }
|
||||
def colorize(string, color); end
|
||||
sig { params(string: String, color: Spoom::Color).returns(String) }
|
||||
def colorize(string, *color); end
|
||||
|
||||
sig { returns(String) }
|
||||
def exec_path; end
|
||||
@ -96,9 +99,8 @@ module Spoom::Cli::Helper
|
||||
def yellow(string); end
|
||||
end
|
||||
|
||||
Spoom::Cli::Helper::HIGHLIGHT_COLOR = T.let(T.unsafe(nil), Symbol)
|
||||
|
||||
class Spoom::Cli::LSP < ::Thor
|
||||
include ::Spoom::Colorize
|
||||
include ::Spoom::Cli::Helper
|
||||
|
||||
def defs(file, line, col); end
|
||||
@ -118,6 +120,7 @@ class Spoom::Cli::LSP < ::Thor
|
||||
end
|
||||
|
||||
class Spoom::Cli::Main < ::Thor
|
||||
include ::Spoom::Colorize
|
||||
include ::Spoom::Cli::Helper
|
||||
|
||||
def __print_version; end
|
||||
@ -134,6 +137,7 @@ class Spoom::Cli::Main < ::Thor
|
||||
end
|
||||
|
||||
class Spoom::Cli::Run < ::Thor
|
||||
include ::Spoom::Colorize
|
||||
include ::Spoom::Cli::Helper
|
||||
|
||||
def colorize_message(message); end
|
||||
@ -147,6 +151,37 @@ Spoom::Cli::Run::SORT_CODE = T.let(T.unsafe(nil), String)
|
||||
Spoom::Cli::Run::SORT_ENUM = T.let(T.unsafe(nil), Array)
|
||||
Spoom::Cli::Run::SORT_LOC = T.let(T.unsafe(nil), String)
|
||||
|
||||
class Spoom::Color < ::T::Enum
|
||||
enums do
|
||||
CLEAR = new
|
||||
BOLD = new
|
||||
BLACK = new
|
||||
RED = new
|
||||
GREEN = new
|
||||
YELLOW = new
|
||||
BLUE = new
|
||||
MAGENTA = new
|
||||
CYAN = new
|
||||
WHITE = new
|
||||
LIGHT_BLACK = new
|
||||
LIGHT_RED = new
|
||||
LIGHT_GREEN = new
|
||||
LIGHT_YELLOW = new
|
||||
LIGHT_BLUE = new
|
||||
LIGHT_MAGENTA = new
|
||||
LIGHT_CYAN = new
|
||||
LIGHT_WHITE = new
|
||||
end
|
||||
|
||||
sig { returns(String) }
|
||||
def ansi_code; end
|
||||
end
|
||||
|
||||
module Spoom::Colorize
|
||||
sig { params(string: String, color: Spoom::Color).returns(String) }
|
||||
def set_color(string, *color); end
|
||||
end
|
||||
|
||||
module Spoom::Coverage
|
||||
class << self
|
||||
sig { params(snapshots: T::Array[Spoom::Coverage::Snapshot], palette: Spoom::Coverage::D3::ColorPalette, path: String).returns(Spoom::Coverage::Report) }
|
||||
@ -693,7 +728,7 @@ class Spoom::FileTree::TreePrinter < ::Spoom::Printer
|
||||
sig { params(node: Spoom::FileTree::Node).returns(T.nilable(String)) }
|
||||
def node_strictness(node); end
|
||||
|
||||
sig { params(strictness: T.nilable(String)).returns(Symbol) }
|
||||
sig { params(strictness: T.nilable(String)).returns(Spoom::Color) }
|
||||
def strictness_color(strictness); end
|
||||
end
|
||||
|
||||
@ -973,13 +1008,15 @@ class Spoom::LSP::SymbolPrinter < ::Spoom::Printer
|
||||
end
|
||||
|
||||
class Spoom::Printer
|
||||
include ::Spoom::Colorize
|
||||
|
||||
abstract!
|
||||
|
||||
sig { params(out: T.any(IO, StringIO), colors: T::Boolean, indent_level: Integer).void }
|
||||
def initialize(out: T.unsafe(nil), colors: T.unsafe(nil), indent_level: T.unsafe(nil)); end
|
||||
|
||||
sig { params(string: String, color: Symbol).returns(String) }
|
||||
def colorize(string, color); end
|
||||
sig { params(string: String, color: Spoom::Color).returns(String) }
|
||||
def colorize(string, *color); end
|
||||
|
||||
sig { void }
|
||||
def dedent; end
|
||||
@ -995,8 +1032,8 @@ class Spoom::Printer
|
||||
sig { params(string: T.nilable(String)).void }
|
||||
def print(string); end
|
||||
|
||||
sig { params(string: T.nilable(String), color: Symbol, colors: Symbol).void }
|
||||
def print_colored(string, color, *colors); end
|
||||
sig { params(string: T.nilable(String), color: Spoom::Color).void }
|
||||
def print_colored(string, *color); end
|
||||
|
||||
sig { params(string: T.nilable(String)).void }
|
||||
def printl(string); end
|
||||
@ -9027,6 +9027,10 @@ class Spoom::Cli::Bump
|
||||
extend ::T::Private::Methods::SingletonMethodHooks
|
||||
end
|
||||
|
||||
module Spoom::Cli::Helper
|
||||
HIGHLIGHT_COLOR = ::T.let(nil, ::T.untyped)
|
||||
end
|
||||
|
||||
module Spoom::Cli::Helper
|
||||
extend ::T::Sig
|
||||
extend ::T::Helpers
|
||||
@ -9038,6 +9042,12 @@ class Spoom::Cli::Main
|
||||
extend ::T::Sig
|
||||
end
|
||||
|
||||
module Spoom::Colorize
|
||||
extend ::T::Sig
|
||||
extend ::T::Private::Methods::MethodHooks
|
||||
extend ::T::Private::Methods::SingletonMethodHooks
|
||||
end
|
||||
|
||||
class Spoom::Coverage::D3::Base
|
||||
extend ::T::Sig
|
||||
extend ::T::Helpers
|
||||
@ -9205,88 +9215,18 @@ module Spoom
|
||||
end
|
||||
|
||||
class String
|
||||
def black(); end
|
||||
|
||||
def blink(); end
|
||||
|
||||
def blue(); end
|
||||
|
||||
def bold(); end
|
||||
|
||||
def cyan(); end
|
||||
|
||||
def exclude?(string); end
|
||||
|
||||
def fast_xs(); end
|
||||
|
||||
def green(); end
|
||||
|
||||
def hide(); end
|
||||
|
||||
def indent(amount, indent_string=T.unsafe(nil), indent_empty_lines=T.unsafe(nil)); end
|
||||
|
||||
def indent!(amount, indent_string=T.unsafe(nil), indent_empty_lines=T.unsafe(nil)); end
|
||||
|
||||
def italic(); end
|
||||
|
||||
def light_black(); end
|
||||
|
||||
def light_blue(); end
|
||||
|
||||
def light_cyan(); end
|
||||
|
||||
def light_green(); end
|
||||
|
||||
def light_magenta(); end
|
||||
|
||||
def light_red(); end
|
||||
|
||||
def light_white(); end
|
||||
|
||||
def light_yellow(); end
|
||||
|
||||
def magenta(); end
|
||||
|
||||
def on_black(); end
|
||||
|
||||
def on_blue(); end
|
||||
|
||||
def on_cyan(); end
|
||||
|
||||
def on_green(); end
|
||||
|
||||
def on_light_black(); end
|
||||
|
||||
def on_light_blue(); end
|
||||
|
||||
def on_light_cyan(); end
|
||||
|
||||
def on_light_green(); end
|
||||
|
||||
def on_light_magenta(); end
|
||||
|
||||
def on_light_red(); end
|
||||
|
||||
def on_light_white(); end
|
||||
|
||||
def on_light_yellow(); end
|
||||
|
||||
def on_magenta(); end
|
||||
|
||||
def on_red(); end
|
||||
|
||||
def on_white(); end
|
||||
|
||||
def on_yellow(); end
|
||||
|
||||
def red(); end
|
||||
|
||||
def shellescape(); end
|
||||
|
||||
def shellsplit(); end
|
||||
|
||||
def swap(); end
|
||||
|
||||
def to_nfc(); end
|
||||
|
||||
def to_nfd(); end
|
||||
@ -9294,12 +9234,6 @@ class String
|
||||
def to_nfkc(); end
|
||||
|
||||
def to_nfkd(); end
|
||||
|
||||
def underline(); end
|
||||
|
||||
def white(); end
|
||||
|
||||
def yellow(); end
|
||||
end
|
||||
|
||||
class String
|
||||
|
||||
@ -2,6 +2,8 @@
|
||||
# srb rbi todo
|
||||
|
||||
# typed: strong
|
||||
module ::Colorize::ClassMethods; end
|
||||
module ::Colorize::InstanceMethods; end
|
||||
module ::StackProf; end
|
||||
module T::InterfaceWrapper::Helpers; end
|
||||
module T::Private::Abstract::Hooks; end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user