update tapioca, more type annotations
This commit is contained in:
6619
sorbet/rbi/gems/activemodel@7.2.2.1.rbi
generated
6619
sorbet/rbi/gems/activemodel@7.2.2.1.rbi
generated
File diff suppressed because it is too large
Load Diff
41743
sorbet/rbi/gems/activerecord@7.2.2.1.rbi
generated
41743
sorbet/rbi/gems/activerecord@7.2.2.1.rbi
generated
File diff suppressed because it is too large
Load Diff
19870
sorbet/rbi/gems/activesupport@7.2.2.1.rbi
generated
19870
sorbet/rbi/gems/activesupport@7.2.2.1.rbi
generated
File diff suppressed because it is too large
Load Diff
538
sorbet/rbi/gems/base64@0.3.0.rbi
generated
538
sorbet/rbi/gems/base64@0.3.0.rbi
generated
@@ -5,5 +5,539 @@
|
||||
# Please instead update this file by running `bin/tapioca gem base64`.
|
||||
|
||||
|
||||
# THIS IS AN EMPTY RBI FILE.
|
||||
# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
|
||||
# \Module \Base64 provides methods for:
|
||||
#
|
||||
# - \Encoding a binary string (containing non-ASCII characters)
|
||||
# as a string of printable ASCII characters.
|
||||
# - Decoding such an encoded string.
|
||||
#
|
||||
# \Base64 is commonly used in contexts where binary data
|
||||
# is not allowed or supported:
|
||||
#
|
||||
# - Images in HTML or CSS files, or in URLs.
|
||||
# - Email attachments.
|
||||
#
|
||||
# A \Base64-encoded string is about one-third larger that its source.
|
||||
# See the {Wikipedia article}[https://en.wikipedia.org/wiki/Base64]
|
||||
# for more information.
|
||||
#
|
||||
# This module provides three pairs of encode/decode methods.
|
||||
# Your choices among these methods should depend on:
|
||||
#
|
||||
# - Which character set is to be used for encoding and decoding.
|
||||
# - Whether "padding" is to be used.
|
||||
# - Whether encoded strings are to contain newlines.
|
||||
#
|
||||
# Note: Examples on this page assume that the including program has executed:
|
||||
#
|
||||
# require 'base64'
|
||||
#
|
||||
# == \Encoding Character Sets
|
||||
#
|
||||
# A \Base64-encoded string consists only of characters from a 64-character set:
|
||||
#
|
||||
# - <tt>('A'..'Z')</tt>.
|
||||
# - <tt>('a'..'z')</tt>.
|
||||
# - <tt>('0'..'9')</tt>.
|
||||
# - <tt>=</tt>, the 'padding' character.
|
||||
# - Either:
|
||||
# - <tt>%w[+ /]</tt>:
|
||||
# {RFC-2045-compliant}[https://datatracker.ietf.org/doc/html/rfc2045];
|
||||
# _not_ safe for URLs.
|
||||
# - <tt>%w[- _]</tt>:
|
||||
# {RFC-4648-compliant}[https://datatracker.ietf.org/doc/html/rfc4648];
|
||||
# safe for URLs.
|
||||
#
|
||||
# If you are working with \Base64-encoded strings that will come from
|
||||
# or be put into URLs, you should choose this encoder-decoder pair
|
||||
# of RFC-4648-compliant methods:
|
||||
#
|
||||
# - Base64.urlsafe_encode64 and Base64.urlsafe_decode64.
|
||||
#
|
||||
# Otherwise, you may choose any of the pairs in this module,
|
||||
# including the pair above, or the RFC-2045-compliant pairs:
|
||||
#
|
||||
# - Base64.encode64 and Base64.decode64.
|
||||
# - Base64.strict_encode64 and Base64.strict_decode64.
|
||||
#
|
||||
# == Padding
|
||||
#
|
||||
# \Base64-encoding changes a triplet of input bytes
|
||||
# into a quartet of output characters.
|
||||
#
|
||||
# <b>Padding in Encode Methods</b>
|
||||
#
|
||||
# Padding -- extending an encoded string with zero, one, or two trailing
|
||||
# <tt>=</tt> characters -- is performed by methods Base64.encode64,
|
||||
# Base64.strict_encode64, and, by default, Base64.urlsafe_encode64:
|
||||
#
|
||||
# Base64.encode64('s') # => "cw==\n"
|
||||
# Base64.strict_encode64('s') # => "cw=="
|
||||
# Base64.urlsafe_encode64('s') # => "cw=="
|
||||
# Base64.urlsafe_encode64('s', padding: false) # => "cw"
|
||||
#
|
||||
# When padding is performed, the encoded string is always of length <em>4n</em>,
|
||||
# where +n+ is a non-negative integer:
|
||||
#
|
||||
# - Input bytes of length <em>3n</em> generate unpadded output characters
|
||||
# of length <em>4n</em>:
|
||||
#
|
||||
# # n = 1: 3 bytes => 4 characters.
|
||||
# Base64.strict_encode64('123') # => "MDEy"
|
||||
# # n = 2: 6 bytes => 8 characters.
|
||||
# Base64.strict_encode64('123456') # => "MDEyMzQ1"
|
||||
#
|
||||
# - Input bytes of length <em>3n+1</em> generate padded output characters
|
||||
# of length <em>4(n+1)</em>, with two padding characters at the end:
|
||||
#
|
||||
# # n = 1: 4 bytes => 8 characters.
|
||||
# Base64.strict_encode64('1234') # => "MDEyMw=="
|
||||
# # n = 2: 7 bytes => 12 characters.
|
||||
# Base64.strict_encode64('1234567') # => "MDEyMzQ1Ng=="
|
||||
#
|
||||
# - Input bytes of length <em>3n+2</em> generate padded output characters
|
||||
# of length <em>4(n+1)</em>, with one padding character at the end:
|
||||
#
|
||||
# # n = 1: 5 bytes => 8 characters.
|
||||
# Base64.strict_encode64('12345') # => "MDEyMzQ="
|
||||
# # n = 2: 8 bytes => 12 characters.
|
||||
# Base64.strict_encode64('12345678') # => "MDEyMzQ1Njc="
|
||||
#
|
||||
# When padding is suppressed, for a positive integer <em>n</em>:
|
||||
#
|
||||
# - Input bytes of length <em>3n</em> generate unpadded output characters
|
||||
# of length <em>4n</em>:
|
||||
#
|
||||
# # n = 1: 3 bytes => 4 characters.
|
||||
# Base64.urlsafe_encode64('123', padding: false) # => "MDEy"
|
||||
# # n = 2: 6 bytes => 8 characters.
|
||||
# Base64.urlsafe_encode64('123456', padding: false) # => "MDEyMzQ1"
|
||||
#
|
||||
# - Input bytes of length <em>3n+1</em> generate unpadded output characters
|
||||
# of length <em>4n+2</em>, with two padding characters at the end:
|
||||
#
|
||||
# # n = 1: 4 bytes => 6 characters.
|
||||
# Base64.urlsafe_encode64('1234', padding: false) # => "MDEyMw"
|
||||
# # n = 2: 7 bytes => 10 characters.
|
||||
# Base64.urlsafe_encode64('1234567', padding: false) # => "MDEyMzQ1Ng"
|
||||
#
|
||||
# - Input bytes of length <em>3n+2</em> generate unpadded output characters
|
||||
# of length <em>4n+3</em>, with one padding character at the end:
|
||||
#
|
||||
# # n = 1: 5 bytes => 7 characters.
|
||||
# Base64.urlsafe_encode64('12345', padding: false) # => "MDEyMzQ"
|
||||
# # m = 2: 8 bytes => 11 characters.
|
||||
# Base64.urlsafe_encode64('12345678', padding: false) # => "MDEyMzQ1Njc"
|
||||
#
|
||||
# <b>Padding in Decode Methods</b>
|
||||
#
|
||||
# All of the \Base64 decode methods support (but do not require) padding.
|
||||
#
|
||||
# \Method Base64.decode64 does not check the size of the padding:
|
||||
#
|
||||
# Base64.decode64("MDEyMzQ1Njc") # => "01234567"
|
||||
# Base64.decode64("MDEyMzQ1Njc=") # => "01234567"
|
||||
# Base64.decode64("MDEyMzQ1Njc==") # => "01234567"
|
||||
#
|
||||
# \Method Base64.strict_decode64 strictly enforces padding size:
|
||||
#
|
||||
# Base64.strict_decode64("MDEyMzQ1Njc") # Raises ArgumentError
|
||||
# Base64.strict_decode64("MDEyMzQ1Njc=") # => "01234567"
|
||||
# Base64.strict_decode64("MDEyMzQ1Njc==") # Raises ArgumentError
|
||||
#
|
||||
# \Method Base64.urlsafe_decode64 allows padding in the encoded string,
|
||||
# which if present, must be correct:
|
||||
# see {Padding}[Base64.html#module-Base64-label-Padding], above:
|
||||
#
|
||||
# Base64.urlsafe_decode64("MDEyMzQ1Njc") # => "01234567"
|
||||
# Base64.urlsafe_decode64("MDEyMzQ1Njc=") # => "01234567"
|
||||
# Base64.urlsafe_decode64("MDEyMzQ1Njc==") # Raises ArgumentError.
|
||||
#
|
||||
# == Newlines
|
||||
#
|
||||
# An encoded string returned by Base64.encode64 or Base64.urlsafe_encode64
|
||||
# has an embedded newline character
|
||||
# after each 60-character sequence, and, if non-empty, at the end:
|
||||
#
|
||||
# # No newline if empty.
|
||||
# encoded = Base64.encode64("\x00" * 0)
|
||||
# encoded.index("\n") # => nil
|
||||
#
|
||||
# # Newline at end of short output.
|
||||
# encoded = Base64.encode64("\x00" * 1)
|
||||
# encoded.size # => 4
|
||||
# encoded.index("\n") # => 4
|
||||
#
|
||||
# # Newline at end of longer output.
|
||||
# encoded = Base64.encode64("\x00" * 45)
|
||||
# encoded.size # => 60
|
||||
# encoded.index("\n") # => 60
|
||||
#
|
||||
# # Newlines embedded and at end of still longer output.
|
||||
# encoded = Base64.encode64("\x00" * 46)
|
||||
# encoded.size # => 65
|
||||
# encoded.rindex("\n") # => 65
|
||||
# encoded.split("\n").map {|s| s.size } # => [60, 4]
|
||||
#
|
||||
# The string to be encoded may itself contain newlines,
|
||||
# which are encoded as \Base64:
|
||||
#
|
||||
# # Base64.encode64("\n\n\n") # => "CgoK\n"
|
||||
# s = "This is line 1\nThis is line 2\n"
|
||||
# Base64.encode64(s) # => "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK\n"
|
||||
module Base64
|
||||
private
|
||||
|
||||
# :call-seq:
|
||||
# Base64.decode(encoded_string) -> decoded_string
|
||||
#
|
||||
# Returns a string containing the decoding of an RFC-2045-compliant
|
||||
# \Base64-encoded string +encoded_string+:
|
||||
#
|
||||
# s = "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK\n"
|
||||
# Base64.decode64(s) # => "This is line 1\nThis is line 2\n"
|
||||
#
|
||||
# Non-\Base64 characters in +encoded_string+ are ignored;
|
||||
# see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above:
|
||||
# these include newline characters and characters <tt>-</tt> and <tt>/</tt>:
|
||||
#
|
||||
# Base64.decode64("\x00\n-_") # => ""
|
||||
#
|
||||
# Padding in +encoded_string+ (even if incorrect) is ignored:
|
||||
#
|
||||
# Base64.decode64("MDEyMzQ1Njc") # => "01234567"
|
||||
# Base64.decode64("MDEyMzQ1Njc=") # => "01234567"
|
||||
# Base64.decode64("MDEyMzQ1Njc==") # => "01234567"
|
||||
#
|
||||
# source://base64//lib/base64.rb#247
|
||||
def decode64(str); end
|
||||
|
||||
# :call-seq:
|
||||
# Base64.encode64(string) -> encoded_string
|
||||
#
|
||||
# Returns a string containing the RFC-2045-compliant \Base64-encoding of +string+.
|
||||
#
|
||||
# Per RFC 2045, the returned string may contain the URL-unsafe characters
|
||||
# <tt>+</tt> or <tt>/</tt>;
|
||||
# see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above:
|
||||
#
|
||||
# Base64.encode64("\xFB\xEF\xBE") # => "++++\n"
|
||||
# Base64.encode64("\xFF\xFF\xFF") # => "////\n"
|
||||
#
|
||||
# The returned string may include padding;
|
||||
# see {Padding}[Base64.html#module-Base64-label-Padding] above.
|
||||
#
|
||||
# Base64.encode64('*') # => "Kg==\n"
|
||||
#
|
||||
# The returned string ends with a newline character, and if sufficiently long
|
||||
# will have one or more embedded newline characters;
|
||||
# see {Newlines}[Base64.html#module-Base64-label-Newlines] above:
|
||||
#
|
||||
# Base64.encode64('*') # => "Kg==\n"
|
||||
# Base64.encode64('*' * 46)
|
||||
# # => "KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq\nKg==\n"
|
||||
#
|
||||
# The string to be encoded may itself contain newlines,
|
||||
# which will be encoded as ordinary \Base64:
|
||||
#
|
||||
# Base64.encode64("\n\n\n") # => "CgoK\n"
|
||||
# s = "This is line 1\nThis is line 2\n"
|
||||
# Base64.encode64(s) # => "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK\n"
|
||||
#
|
||||
# source://base64//lib/base64.rb#222
|
||||
def encode64(bin); end
|
||||
|
||||
# :call-seq:
|
||||
# Base64.strict_decode64(encoded_string) -> decoded_string
|
||||
#
|
||||
# Returns a string containing the decoding of an RFC-2045-compliant
|
||||
# \Base64-encoded string +encoded_string+:
|
||||
#
|
||||
# s = "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK"
|
||||
# Base64.strict_decode64(s) # => "This is line 1\nThis is line 2\n"
|
||||
#
|
||||
# Non-\Base64 characters in +encoded_string+ are not allowed;
|
||||
# see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above:
|
||||
# these include newline characters and characters <tt>-</tt> and <tt>/</tt>:
|
||||
#
|
||||
# Base64.strict_decode64("\n") # Raises ArgumentError
|
||||
# Base64.strict_decode64('-') # Raises ArgumentError
|
||||
# Base64.strict_decode64('_') # Raises ArgumentError
|
||||
#
|
||||
# Padding in +encoded_string+, if present, must be correct:
|
||||
#
|
||||
# Base64.strict_decode64("MDEyMzQ1Njc") # Raises ArgumentError
|
||||
# Base64.strict_decode64("MDEyMzQ1Njc=") # => "01234567"
|
||||
# Base64.strict_decode64("MDEyMzQ1Njc==") # Raises ArgumentError
|
||||
#
|
||||
# source://base64//lib/base64.rb#309
|
||||
def strict_decode64(str); end
|
||||
|
||||
# :call-seq:
|
||||
# Base64.strict_encode64(string) -> encoded_string
|
||||
#
|
||||
# Returns a string containing the RFC-2045-compliant \Base64-encoding of +string+.
|
||||
#
|
||||
# Per RFC 2045, the returned string may contain the URL-unsafe characters
|
||||
# <tt>+</tt> or <tt>/</tt>;
|
||||
# see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above:
|
||||
#
|
||||
# Base64.strict_encode64("\xFB\xEF\xBE") # => "++++\n"
|
||||
# Base64.strict_encode64("\xFF\xFF\xFF") # => "////\n"
|
||||
#
|
||||
# The returned string may include padding;
|
||||
# see {Padding}[Base64.html#module-Base64-label-Padding] above.
|
||||
#
|
||||
# Base64.strict_encode64('*') # => "Kg==\n"
|
||||
#
|
||||
# The returned string will have no newline characters, regardless of its length;
|
||||
# see {Newlines}[Base64.html#module-Base64-label-Newlines] above:
|
||||
#
|
||||
# Base64.strict_encode64('*') # => "Kg=="
|
||||
# Base64.strict_encode64('*' * 46)
|
||||
# # => "KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg=="
|
||||
#
|
||||
# The string to be encoded may itself contain newlines,
|
||||
# which will be encoded as ordinary \Base64:
|
||||
#
|
||||
# Base64.strict_encode64("\n\n\n") # => "CgoK"
|
||||
# s = "This is line 1\nThis is line 2\n"
|
||||
# Base64.strict_encode64(s) # => "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK"
|
||||
#
|
||||
# source://base64//lib/base64.rb#282
|
||||
def strict_encode64(bin); end
|
||||
|
||||
# :call-seq:
|
||||
# Base64.urlsafe_decode64(encoded_string) -> decoded_string
|
||||
#
|
||||
# Returns the decoding of an RFC-4648-compliant \Base64-encoded string +encoded_string+:
|
||||
#
|
||||
# +encoded_string+ may not contain non-Base64 characters;
|
||||
# see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above:
|
||||
#
|
||||
# Base64.urlsafe_decode64('+') # Raises ArgumentError.
|
||||
# Base64.urlsafe_decode64('/') # Raises ArgumentError.
|
||||
# Base64.urlsafe_decode64("\n") # Raises ArgumentError.
|
||||
#
|
||||
# Padding in +encoded_string+, if present, must be correct:
|
||||
# see {Padding}[Base64.html#module-Base64-label-Padding], above:
|
||||
#
|
||||
# Base64.urlsafe_decode64("MDEyMzQ1Njc") # => "01234567"
|
||||
# Base64.urlsafe_decode64("MDEyMzQ1Njc=") # => "01234567"
|
||||
# Base64.urlsafe_decode64("MDEyMzQ1Njc==") # Raises ArgumentError.
|
||||
#
|
||||
# source://base64//lib/base64.rb#369
|
||||
def urlsafe_decode64(str); end
|
||||
|
||||
# :call-seq:
|
||||
# Base64.urlsafe_encode64(string) -> encoded_string
|
||||
#
|
||||
# Returns the RFC-4648-compliant \Base64-encoding of +string+.
|
||||
#
|
||||
# Per RFC 4648, the returned string will not contain the URL-unsafe characters
|
||||
# <tt>+</tt> or <tt>/</tt>,
|
||||
# but instead may contain the URL-safe characters
|
||||
# <tt>-</tt> and <tt>_</tt>;
|
||||
# see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above:
|
||||
#
|
||||
# Base64.urlsafe_encode64("\xFB\xEF\xBE") # => "----"
|
||||
# Base64.urlsafe_encode64("\xFF\xFF\xFF") # => "____"
|
||||
#
|
||||
# By default, the returned string may have padding;
|
||||
# see {Padding}[Base64.html#module-Base64-label-Padding], above:
|
||||
#
|
||||
# Base64.urlsafe_encode64('*') # => "Kg=="
|
||||
#
|
||||
# Optionally, you can suppress padding:
|
||||
#
|
||||
# Base64.urlsafe_encode64('*', padding: false) # => "Kg"
|
||||
#
|
||||
# The returned string will have no newline characters, regardless of its length;
|
||||
# see {Newlines}[Base64.html#module-Base64-label-Newlines] above:
|
||||
#
|
||||
# Base64.urlsafe_encode64('*') # => "Kg=="
|
||||
# Base64.urlsafe_encode64('*' * 46)
|
||||
# # => "KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg=="
|
||||
#
|
||||
# source://base64//lib/base64.rb#343
|
||||
def urlsafe_encode64(bin, padding: T.unsafe(nil)); end
|
||||
|
||||
class << self
|
||||
# :call-seq:
|
||||
# Base64.decode(encoded_string) -> decoded_string
|
||||
#
|
||||
# Returns a string containing the decoding of an RFC-2045-compliant
|
||||
# \Base64-encoded string +encoded_string+:
|
||||
#
|
||||
# s = "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK\n"
|
||||
# Base64.decode64(s) # => "This is line 1\nThis is line 2\n"
|
||||
#
|
||||
# Non-\Base64 characters in +encoded_string+ are ignored;
|
||||
# see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above:
|
||||
# these include newline characters and characters <tt>-</tt> and <tt>/</tt>:
|
||||
#
|
||||
# Base64.decode64("\x00\n-_") # => ""
|
||||
#
|
||||
# Padding in +encoded_string+ (even if incorrect) is ignored:
|
||||
#
|
||||
# Base64.decode64("MDEyMzQ1Njc") # => "01234567"
|
||||
# Base64.decode64("MDEyMzQ1Njc=") # => "01234567"
|
||||
# Base64.decode64("MDEyMzQ1Njc==") # => "01234567"
|
||||
#
|
||||
# source://base64//lib/base64.rb#247
|
||||
def decode64(str); end
|
||||
|
||||
# :call-seq:
|
||||
# Base64.encode64(string) -> encoded_string
|
||||
#
|
||||
# Returns a string containing the RFC-2045-compliant \Base64-encoding of +string+.
|
||||
#
|
||||
# Per RFC 2045, the returned string may contain the URL-unsafe characters
|
||||
# <tt>+</tt> or <tt>/</tt>;
|
||||
# see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above:
|
||||
#
|
||||
# Base64.encode64("\xFB\xEF\xBE") # => "++++\n"
|
||||
# Base64.encode64("\xFF\xFF\xFF") # => "////\n"
|
||||
#
|
||||
# The returned string may include padding;
|
||||
# see {Padding}[Base64.html#module-Base64-label-Padding] above.
|
||||
#
|
||||
# Base64.encode64('*') # => "Kg==\n"
|
||||
#
|
||||
# The returned string ends with a newline character, and if sufficiently long
|
||||
# will have one or more embedded newline characters;
|
||||
# see {Newlines}[Base64.html#module-Base64-label-Newlines] above:
|
||||
#
|
||||
# Base64.encode64('*') # => "Kg==\n"
|
||||
# Base64.encode64('*' * 46)
|
||||
# # => "KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq\nKg==\n"
|
||||
#
|
||||
# The string to be encoded may itself contain newlines,
|
||||
# which will be encoded as ordinary \Base64:
|
||||
#
|
||||
# Base64.encode64("\n\n\n") # => "CgoK\n"
|
||||
# s = "This is line 1\nThis is line 2\n"
|
||||
# Base64.encode64(s) # => "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK\n"
|
||||
#
|
||||
# source://base64//lib/base64.rb#222
|
||||
def encode64(bin); end
|
||||
|
||||
# :call-seq:
|
||||
# Base64.strict_decode64(encoded_string) -> decoded_string
|
||||
#
|
||||
# Returns a string containing the decoding of an RFC-2045-compliant
|
||||
# \Base64-encoded string +encoded_string+:
|
||||
#
|
||||
# s = "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK"
|
||||
# Base64.strict_decode64(s) # => "This is line 1\nThis is line 2\n"
|
||||
#
|
||||
# Non-\Base64 characters in +encoded_string+ are not allowed;
|
||||
# see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above:
|
||||
# these include newline characters and characters <tt>-</tt> and <tt>/</tt>:
|
||||
#
|
||||
# Base64.strict_decode64("\n") # Raises ArgumentError
|
||||
# Base64.strict_decode64('-') # Raises ArgumentError
|
||||
# Base64.strict_decode64('_') # Raises ArgumentError
|
||||
#
|
||||
# Padding in +encoded_string+, if present, must be correct:
|
||||
#
|
||||
# Base64.strict_decode64("MDEyMzQ1Njc") # Raises ArgumentError
|
||||
# Base64.strict_decode64("MDEyMzQ1Njc=") # => "01234567"
|
||||
# Base64.strict_decode64("MDEyMzQ1Njc==") # Raises ArgumentError
|
||||
#
|
||||
# source://base64//lib/base64.rb#309
|
||||
def strict_decode64(str); end
|
||||
|
||||
# :call-seq:
|
||||
# Base64.strict_encode64(string) -> encoded_string
|
||||
#
|
||||
# Returns a string containing the RFC-2045-compliant \Base64-encoding of +string+.
|
||||
#
|
||||
# Per RFC 2045, the returned string may contain the URL-unsafe characters
|
||||
# <tt>+</tt> or <tt>/</tt>;
|
||||
# see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above:
|
||||
#
|
||||
# Base64.strict_encode64("\xFB\xEF\xBE") # => "++++\n"
|
||||
# Base64.strict_encode64("\xFF\xFF\xFF") # => "////\n"
|
||||
#
|
||||
# The returned string may include padding;
|
||||
# see {Padding}[Base64.html#module-Base64-label-Padding] above.
|
||||
#
|
||||
# Base64.strict_encode64('*') # => "Kg==\n"
|
||||
#
|
||||
# The returned string will have no newline characters, regardless of its length;
|
||||
# see {Newlines}[Base64.html#module-Base64-label-Newlines] above:
|
||||
#
|
||||
# Base64.strict_encode64('*') # => "Kg=="
|
||||
# Base64.strict_encode64('*' * 46)
|
||||
# # => "KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg=="
|
||||
#
|
||||
# The string to be encoded may itself contain newlines,
|
||||
# which will be encoded as ordinary \Base64:
|
||||
#
|
||||
# Base64.strict_encode64("\n\n\n") # => "CgoK"
|
||||
# s = "This is line 1\nThis is line 2\n"
|
||||
# Base64.strict_encode64(s) # => "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK"
|
||||
#
|
||||
# source://base64//lib/base64.rb#282
|
||||
def strict_encode64(bin); end
|
||||
|
||||
# :call-seq:
|
||||
# Base64.urlsafe_decode64(encoded_string) -> decoded_string
|
||||
#
|
||||
# Returns the decoding of an RFC-4648-compliant \Base64-encoded string +encoded_string+:
|
||||
#
|
||||
# +encoded_string+ may not contain non-Base64 characters;
|
||||
# see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above:
|
||||
#
|
||||
# Base64.urlsafe_decode64('+') # Raises ArgumentError.
|
||||
# Base64.urlsafe_decode64('/') # Raises ArgumentError.
|
||||
# Base64.urlsafe_decode64("\n") # Raises ArgumentError.
|
||||
#
|
||||
# Padding in +encoded_string+, if present, must be correct:
|
||||
# see {Padding}[Base64.html#module-Base64-label-Padding], above:
|
||||
#
|
||||
# Base64.urlsafe_decode64("MDEyMzQ1Njc") # => "01234567"
|
||||
# Base64.urlsafe_decode64("MDEyMzQ1Njc=") # => "01234567"
|
||||
# Base64.urlsafe_decode64("MDEyMzQ1Njc==") # Raises ArgumentError.
|
||||
#
|
||||
# source://base64//lib/base64.rb#369
|
||||
def urlsafe_decode64(str); end
|
||||
|
||||
# :call-seq:
|
||||
# Base64.urlsafe_encode64(string) -> encoded_string
|
||||
#
|
||||
# Returns the RFC-4648-compliant \Base64-encoding of +string+.
|
||||
#
|
||||
# Per RFC 4648, the returned string will not contain the URL-unsafe characters
|
||||
# <tt>+</tt> or <tt>/</tt>,
|
||||
# but instead may contain the URL-safe characters
|
||||
# <tt>-</tt> and <tt>_</tt>;
|
||||
# see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above:
|
||||
#
|
||||
# Base64.urlsafe_encode64("\xFB\xEF\xBE") # => "----"
|
||||
# Base64.urlsafe_encode64("\xFF\xFF\xFF") # => "____"
|
||||
#
|
||||
# By default, the returned string may have padding;
|
||||
# see {Padding}[Base64.html#module-Base64-label-Padding], above:
|
||||
#
|
||||
# Base64.urlsafe_encode64('*') # => "Kg=="
|
||||
#
|
||||
# Optionally, you can suppress padding:
|
||||
#
|
||||
# Base64.urlsafe_encode64('*', padding: false) # => "Kg"
|
||||
#
|
||||
# The returned string will have no newline characters, regardless of its length;
|
||||
# see {Newlines}[Base64.html#module-Base64-label-Newlines] above:
|
||||
#
|
||||
# Base64.urlsafe_encode64('*') # => "Kg=="
|
||||
# Base64.urlsafe_encode64('*' * 46)
|
||||
# # => "KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg=="
|
||||
#
|
||||
# source://base64//lib/base64.rb#343
|
||||
def urlsafe_encode64(bin, padding: T.unsafe(nil)); end
|
||||
end
|
||||
end
|
||||
|
||||
# source://base64//lib/base64.rb#186
|
||||
Base64::VERSION = T.let(T.unsafe(nil), String)
|
||||
|
||||
8
sorbet/rbi/gems/benchmark@0.4.1.rbi
generated
8
sorbet/rbi/gems/benchmark@0.4.1.rbi
generated
@@ -108,8 +108,6 @@
|
||||
# upto: 0.950000 0.000000 0.950000 ( 0.946787)
|
||||
# >total: 2.880000 0.000000 2.880000 ( 2.883764)
|
||||
# >avg: 0.960000 0.000000 0.960000 ( 0.961255)
|
||||
#
|
||||
# source://benchmark//lib/benchmark.rb#123
|
||||
module Benchmark
|
||||
private
|
||||
|
||||
@@ -388,8 +386,6 @@ end
|
||||
|
||||
# A Job is a sequence of labelled blocks to be processed by the
|
||||
# Benchmark.bmbm method. It is of little direct interest to the user.
|
||||
#
|
||||
# source://benchmark//lib/benchmark.rb#334
|
||||
class Benchmark::Job
|
||||
# Returns an initialized Job instance.
|
||||
# Usually, one doesn't call this method directly, as new
|
||||
@@ -429,8 +425,6 @@ end
|
||||
|
||||
# This class is used by the Benchmark.benchmark and Benchmark.bm methods.
|
||||
# It is of little direct interest to the user.
|
||||
#
|
||||
# source://benchmark//lib/benchmark.rb#372
|
||||
class Benchmark::Report
|
||||
# Returns an initialized Report instance.
|
||||
# Usually, one doesn't call this method directly, as new
|
||||
@@ -475,8 +469,6 @@ end
|
||||
|
||||
# A data object, representing the times associated with a benchmark
|
||||
# measurement.
|
||||
#
|
||||
# source://benchmark//lib/benchmark.rb#408
|
||||
class Benchmark::Tms
|
||||
# Returns an initialized Tms object which has
|
||||
# +utime+ as the user CPU time, +stime+ as the system CPU time,
|
||||
|
||||
75
sorbet/rbi/gems/bigdecimal@3.2.2.rbi
generated
75
sorbet/rbi/gems/bigdecimal@3.2.2.rbi
generated
@@ -5,5 +5,76 @@
|
||||
# Please instead update this file by running `bin/tapioca gem bigdecimal`.
|
||||
|
||||
|
||||
# THIS IS AN EMPTY RBI FILE.
|
||||
# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
|
||||
class BigDecimal < ::Numeric
|
||||
include ::ActiveSupport::BigDecimalWithDefaultFormat
|
||||
include ::ActiveSupport::NumericWithFormat
|
||||
|
||||
# call-seq:
|
||||
# a.to_d -> bigdecimal
|
||||
#
|
||||
# Returns self.
|
||||
#
|
||||
# require 'bigdecimal/util'
|
||||
#
|
||||
# d = BigDecimal("3.14")
|
||||
# d.to_d # => 0.314e1
|
||||
#
|
||||
# source://bigdecimal//lib/bigdecimal/util.rb#110
|
||||
def to_d; end
|
||||
|
||||
# call-seq:
|
||||
# a.to_digits -> string
|
||||
#
|
||||
# Converts a BigDecimal to a String of the form "nnnnnn.mmm".
|
||||
# This method is deprecated; use BigDecimal#to_s("F") instead.
|
||||
#
|
||||
# require 'bigdecimal/util'
|
||||
#
|
||||
# d = BigDecimal("3.14")
|
||||
# d.to_digits # => "3.14"
|
||||
#
|
||||
# source://bigdecimal//lib/bigdecimal/util.rb#90
|
||||
def to_digits; end
|
||||
end
|
||||
|
||||
BigDecimal::VERSION = T.let(T.unsafe(nil), String)
|
||||
|
||||
class Complex < ::Numeric
|
||||
# call-seq:
|
||||
# cmp.to_d -> bigdecimal
|
||||
# cmp.to_d(precision) -> bigdecimal
|
||||
#
|
||||
# Returns the value as a BigDecimal.
|
||||
#
|
||||
# The +precision+ parameter is required for a rational complex number.
|
||||
# This parameter is used to determine the number of significant digits
|
||||
# for the result.
|
||||
#
|
||||
# require 'bigdecimal'
|
||||
# require 'bigdecimal/util'
|
||||
#
|
||||
# Complex(0.1234567, 0).to_d(4) # => 0.1235e0
|
||||
# Complex(Rational(22, 7), 0).to_d(3) # => 0.314e1
|
||||
#
|
||||
# See also Kernel.BigDecimal.
|
||||
#
|
||||
# source://bigdecimal//lib/bigdecimal/util.rb#157
|
||||
def to_d(*args); end
|
||||
end
|
||||
|
||||
class NilClass
|
||||
include ::JSON::Ext::Generator::GeneratorMethods::NilClass
|
||||
|
||||
# call-seq:
|
||||
# nil.to_d -> bigdecimal
|
||||
#
|
||||
# Returns nil represented as a BigDecimal.
|
||||
#
|
||||
# require 'bigdecimal'
|
||||
# require 'bigdecimal/util'
|
||||
#
|
||||
# nil.to_d # => 0.0
|
||||
#
|
||||
# source://bigdecimal//lib/bigdecimal/util.rb#182
|
||||
def to_d; end
|
||||
end
|
||||
|
||||
3422
sorbet/rbi/gems/coderay@1.1.3.rbi
generated
3422
sorbet/rbi/gems/coderay@1.1.3.rbi
generated
File diff suppressed because it is too large
Load Diff
11372
sorbet/rbi/gems/concurrent-ruby@1.3.5.rbi
generated
11372
sorbet/rbi/gems/concurrent-ruby@1.3.5.rbi
generated
File diff suppressed because it is too large
Load Diff
4
sorbet/rbi/gems/date@3.4.1.rbi
generated
4
sorbet/rbi/gems/date@3.4.1.rbi
generated
@@ -5,9 +5,10 @@
|
||||
# Please instead update this file by running `bin/tapioca gem date`.
|
||||
|
||||
|
||||
# source://date//lib/date.rb#6
|
||||
class Date
|
||||
include ::Comparable
|
||||
include ::DateAndTime::Zones
|
||||
include ::DateAndTime::Calculations
|
||||
|
||||
# call-seq:
|
||||
# infinite? -> false
|
||||
@@ -20,7 +21,6 @@ class Date
|
||||
def infinite?; end
|
||||
end
|
||||
|
||||
# source://date//lib/date.rb#17
|
||||
class Date::Infinity < ::Numeric
|
||||
# @return [Infinity] a new instance of Infinity
|
||||
#
|
||||
|
||||
2249
sorbet/rbi/gems/i18n@1.14.7.rbi
generated
2249
sorbet/rbi/gems/i18n@1.14.7.rbi
generated
File diff suppressed because it is too large
Load Diff
9
sorbet/rbi/gems/logger@1.7.0.rbi
generated
9
sorbet/rbi/gems/logger@1.7.0.rbi
generated
@@ -351,8 +351,6 @@
|
||||
# +shift_period_suffix+;
|
||||
# see details and suggestions at
|
||||
# {Time#strftime}[https://docs.ruby-lang.org/en/master/Time.html#method-i-strftime].
|
||||
#
|
||||
# source://logger//lib/logger/version.rb#3
|
||||
class Logger
|
||||
include ::Logger::Severity
|
||||
|
||||
@@ -803,8 +801,6 @@ class Logger
|
||||
end
|
||||
|
||||
# Default formatter for log messages.
|
||||
#
|
||||
# source://logger//lib/logger/formatter.rb#5
|
||||
class Logger::Formatter
|
||||
# @return [Formatter] a new instance of Formatter
|
||||
#
|
||||
@@ -842,8 +838,6 @@ Logger::Formatter::DatetimeFormat = T.let(T.unsafe(nil), String)
|
||||
Logger::Formatter::Format = T.let(T.unsafe(nil), String)
|
||||
|
||||
# Device used for logging messages.
|
||||
#
|
||||
# source://logger//lib/logger/log_device.rb#7
|
||||
class Logger::LogDevice
|
||||
include ::Logger::Period
|
||||
include ::MonitorMixin
|
||||
@@ -922,7 +916,6 @@ Logger::LogDevice::MODE_TO_CREATE = T.let(T.unsafe(nil), Integer)
|
||||
# source://logger//lib/logger/log_device.rb#72
|
||||
Logger::LogDevice::MODE_TO_OPEN = T.let(T.unsafe(nil), Integer)
|
||||
|
||||
# source://logger//lib/logger/period.rb#4
|
||||
module Logger::Period
|
||||
private
|
||||
|
||||
@@ -950,8 +943,6 @@ Logger::Period::SiD = T.let(T.unsafe(nil), Integer)
|
||||
Logger::SEV_LABEL = T.let(T.unsafe(nil), Array)
|
||||
|
||||
# Logging severity.
|
||||
#
|
||||
# source://logger//lib/logger/severity.rb#5
|
||||
module Logger::Severity
|
||||
class << self
|
||||
# source://logger//lib/logger/severity.rb#29
|
||||
|
||||
299
sorbet/rbi/gems/method_source@1.1.0.rbi
generated
299
sorbet/rbi/gems/method_source@1.1.0.rbi
generated
@@ -5,5 +5,300 @@
|
||||
# Please instead update this file by running `bin/tapioca gem method_source`.
|
||||
|
||||
|
||||
# THIS IS AN EMPTY RBI FILE.
|
||||
# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
|
||||
# source://method_source//lib/method_source.rb#163
|
||||
class Method
|
||||
include ::MethodSource::SourceLocation::MethodExtensions
|
||||
include ::MethodSource::MethodExtensions
|
||||
end
|
||||
|
||||
# source://method_source//lib/method_source/version.rb#1
|
||||
module MethodSource
|
||||
extend ::MethodSource::CodeHelpers
|
||||
|
||||
class << self
|
||||
# Clear cache.
|
||||
#
|
||||
# source://method_source//lib/method_source.rb#59
|
||||
def clear_cache; end
|
||||
|
||||
# Helper method responsible for opening source file and buffering up
|
||||
# the comments for a specified method. Defined here to avoid polluting
|
||||
# `Method` class.
|
||||
#
|
||||
# @param source_location [Array] The array returned by Method#source_location
|
||||
# @param method_name [String]
|
||||
# @raise [SourceNotFoundError]
|
||||
# @return [String] The comments up to the point of the method.
|
||||
#
|
||||
# source://method_source//lib/method_source.rb#38
|
||||
def comment_helper(source_location, name = T.unsafe(nil)); end
|
||||
|
||||
# @deprecated — use MethodSource::CodeHelpers#expression_at
|
||||
#
|
||||
# source://method_source//lib/method_source.rb#71
|
||||
def extract_code(source_location); end
|
||||
|
||||
# Load a memoized copy of the lines in a file.
|
||||
#
|
||||
# @param file_name [String]
|
||||
# @param method_name [String]
|
||||
# @raise [SourceNotFoundError]
|
||||
# @return [Array<String>] the contents of the file
|
||||
#
|
||||
# source://method_source//lib/method_source.rb#51
|
||||
def lines_for(file_name, name = T.unsafe(nil)); end
|
||||
|
||||
# Helper method responsible for extracting method body.
|
||||
# Defined here to avoid polluting `Method` class.
|
||||
#
|
||||
# @param source_location [Array] The array returned by Method#source_location
|
||||
# @param method_name [String]
|
||||
# @return [String] The method body
|
||||
#
|
||||
# source://method_source//lib/method_source.rb#23
|
||||
def source_helper(source_location, name = T.unsafe(nil)); end
|
||||
|
||||
# @deprecated — use MethodSource::CodeHelpers#complete_expression?
|
||||
# @return [Boolean]
|
||||
#
|
||||
# source://method_source//lib/method_source.rb#64
|
||||
def valid_expression?(str); end
|
||||
end
|
||||
end
|
||||
|
||||
# source://method_source//lib/method_source/code_helpers.rb#3
|
||||
module MethodSource::CodeHelpers
|
||||
# Retrieve the comment describing the expression on the given line of the given file.
|
||||
#
|
||||
# This is useful to get module or method documentation.
|
||||
#
|
||||
# @param file [Array<String>, File, String] The file to parse, either as a File or as
|
||||
# a String or an Array of lines.
|
||||
# @param line_number [Integer] The line number at which to look.
|
||||
# NOTE: The first line in a file is line 1!
|
||||
# @return [String] The comment
|
||||
#
|
||||
# source://method_source//lib/method_source/code_helpers.rb#52
|
||||
def comment_describing(file, line_number); end
|
||||
|
||||
# Determine if a string of code is a complete Ruby expression.
|
||||
#
|
||||
# @example
|
||||
# complete_expression?("class Hello") #=> false
|
||||
# complete_expression?("class Hello; end") #=> true
|
||||
# complete_expression?("class 123") #=> SyntaxError: unexpected tINTEGER
|
||||
# @param code [String] The code to validate.
|
||||
# @raise [SyntaxError] Any SyntaxError that does not represent incompleteness.
|
||||
# @return [Boolean] Whether or not the code is a complete Ruby expression.
|
||||
#
|
||||
# source://method_source//lib/method_source/code_helpers.rb#66
|
||||
def complete_expression?(str); end
|
||||
|
||||
# Retrieve the first expression starting on the given line of the given file.
|
||||
#
|
||||
# This is useful to get module or method source code.
|
||||
#
|
||||
# line 1!
|
||||
#
|
||||
# @option options
|
||||
# @option options
|
||||
# @param file [Array<String>, File, String] The file to parse, either as a File or as
|
||||
# @param line_number [Integer] The line number at which to look.
|
||||
# NOTE: The first line in a file is
|
||||
# @param options [Hash] The optional configuration parameters.
|
||||
# @raise [SyntaxError] If the first complete expression can't be identified
|
||||
# @return [String] The first complete expression
|
||||
#
|
||||
# source://method_source//lib/method_source/code_helpers.rb#20
|
||||
def expression_at(file, line_number, options = T.unsafe(nil)); end
|
||||
|
||||
private
|
||||
|
||||
# Get the first expression from the input.
|
||||
#
|
||||
# @param lines [Array<String>]
|
||||
# @param consume [Integer] A number of lines to automatically
|
||||
# consume (add to the expression buffer) without checking for validity.
|
||||
# @raise [SyntaxError]
|
||||
# @return [String] a valid ruby expression
|
||||
# @yield a clean-up function to run before checking for complete_expression
|
||||
#
|
||||
# source://method_source//lib/method_source/code_helpers.rb#92
|
||||
def extract_first_expression(lines, consume = T.unsafe(nil), &block); end
|
||||
|
||||
# Get the last comment from the input.
|
||||
#
|
||||
# @param lines [Array<String>]
|
||||
# @return [String]
|
||||
#
|
||||
# source://method_source//lib/method_source/code_helpers.rb#106
|
||||
def extract_last_comment(lines); end
|
||||
end
|
||||
|
||||
# An exception matcher that matches only subsets of SyntaxErrors that can be
|
||||
# fixed by adding more input to the buffer.
|
||||
#
|
||||
# source://method_source//lib/method_source/code_helpers.rb#124
|
||||
module MethodSource::CodeHelpers::IncompleteExpression
|
||||
class << self
|
||||
# source://method_source//lib/method_source/code_helpers.rb#137
|
||||
def ===(ex); end
|
||||
|
||||
# @return [Boolean]
|
||||
#
|
||||
# source://method_source//lib/method_source/code_helpers.rb#149
|
||||
def rbx?; end
|
||||
end
|
||||
end
|
||||
|
||||
# source://method_source//lib/method_source/code_helpers.rb#125
|
||||
MethodSource::CodeHelpers::IncompleteExpression::GENERIC_REGEXPS = T.let(T.unsafe(nil), Array)
|
||||
|
||||
# source://method_source//lib/method_source/code_helpers.rb#133
|
||||
MethodSource::CodeHelpers::IncompleteExpression::RBX_ONLY_REGEXPS = T.let(T.unsafe(nil), Array)
|
||||
|
||||
# This module is to be included by `Method` and `UnboundMethod` and
|
||||
# provides the `#source` functionality
|
||||
#
|
||||
# source://method_source//lib/method_source.rb#77
|
||||
module MethodSource::MethodExtensions
|
||||
# Return the comments associated with the method class/module.
|
||||
#
|
||||
# @example
|
||||
# MethodSource::MethodExtensions.method(:included).module_comment
|
||||
# =>
|
||||
# # This module is to be included by `Method` and `UnboundMethod` and
|
||||
# # provides the `#source` functionality
|
||||
# @raise SourceNotFoundException
|
||||
# @return [String] The method's comments as a string
|
||||
#
|
||||
# source://method_source//lib/method_source.rb#139
|
||||
def class_comment; end
|
||||
|
||||
# Return the comments associated with the method as a string.
|
||||
#
|
||||
# @example
|
||||
# Set.instance_method(:clear).comment.display
|
||||
# =>
|
||||
# # Removes all elements and returns self.
|
||||
# @raise SourceNotFoundException
|
||||
# @return [String] The method's comments as a string
|
||||
#
|
||||
# source://method_source//lib/method_source.rb#126
|
||||
def comment; end
|
||||
|
||||
# Return the comments associated with the method class/module.
|
||||
#
|
||||
# @example
|
||||
# MethodSource::MethodExtensions.method(:included).module_comment
|
||||
# =>
|
||||
# # This module is to be included by `Method` and `UnboundMethod` and
|
||||
# # provides the `#source` functionality
|
||||
# @raise SourceNotFoundException
|
||||
# @return [String] The method's comments as a string
|
||||
#
|
||||
# source://method_source//lib/method_source.rb#139
|
||||
def module_comment; end
|
||||
|
||||
# Return the sourcecode for the method as a string
|
||||
#
|
||||
# @example
|
||||
# Set.instance_method(:clear).source.display
|
||||
# =>
|
||||
# def clear
|
||||
# @hash.clear
|
||||
# self
|
||||
# end
|
||||
# @raise SourceNotFoundException
|
||||
# @return [String] The method sourcecode as a string
|
||||
#
|
||||
# source://method_source//lib/method_source.rb#114
|
||||
def source; end
|
||||
|
||||
class << self
|
||||
# We use the included hook to patch Method#source on rubinius.
|
||||
# We need to use the included hook as Rubinius defines a `source`
|
||||
# on Method so including a module will have no effect (as it's
|
||||
# higher up the MRO).
|
||||
#
|
||||
# @param klass [Class] The class that includes the module.
|
||||
#
|
||||
# source://method_source//lib/method_source.rb#84
|
||||
def included(klass); end
|
||||
end
|
||||
end
|
||||
|
||||
# source://method_source//lib/method_source/source_location.rb#2
|
||||
module MethodSource::ReeSourceLocation
|
||||
# Ruby enterprise edition provides all the information that's
|
||||
# needed, in a slightly different way.
|
||||
#
|
||||
# source://method_source//lib/method_source/source_location.rb#5
|
||||
def source_location; end
|
||||
end
|
||||
|
||||
# source://method_source//lib/method_source/source_location.rb#10
|
||||
module MethodSource::SourceLocation; end
|
||||
|
||||
# source://method_source//lib/method_source/source_location.rb#11
|
||||
module MethodSource::SourceLocation::MethodExtensions
|
||||
# Return the source location of a method for Ruby 1.8.
|
||||
#
|
||||
# @return [Array] A two element array. First element is the
|
||||
# file, second element is the line in the file where the
|
||||
# method definition is found.
|
||||
#
|
||||
# source://method_source//lib/method_source/source_location.rb#40
|
||||
def source_location; end
|
||||
|
||||
private
|
||||
|
||||
# source://method_source//lib/method_source/source_location.rb#26
|
||||
def trace_func(event, file, line, id, binding, classname); end
|
||||
end
|
||||
|
||||
# source://method_source//lib/method_source/source_location.rb#54
|
||||
module MethodSource::SourceLocation::ProcExtensions
|
||||
# Return the source location for a Proc (in implementations
|
||||
# without Proc#source_location)
|
||||
#
|
||||
# @return [Array] A two element array. First element is the
|
||||
# file, second element is the line in the file where the
|
||||
# proc definition is found.
|
||||
#
|
||||
# source://method_source//lib/method_source/source_location.rb#74
|
||||
def source_location; end
|
||||
end
|
||||
|
||||
# source://method_source//lib/method_source/source_location.rb#81
|
||||
module MethodSource::SourceLocation::UnboundMethodExtensions
|
||||
# Return the source location of an instance method for Ruby 1.8.
|
||||
#
|
||||
# @return [Array] A two element array. First element is the
|
||||
# file, second element is the line in the file where the
|
||||
# method definition is found.
|
||||
#
|
||||
# source://method_source//lib/method_source/source_location.rb#101
|
||||
def source_location; end
|
||||
end
|
||||
|
||||
# An Exception to mark errors that were raised trying to find the source from
|
||||
# a given source_location.
|
||||
#
|
||||
# source://method_source//lib/method_source.rb#16
|
||||
class MethodSource::SourceNotFoundError < ::StandardError; end
|
||||
|
||||
# source://method_source//lib/method_source/version.rb#2
|
||||
MethodSource::VERSION = T.let(T.unsafe(nil), String)
|
||||
|
||||
# source://method_source//lib/method_source.rb#173
|
||||
class Proc
|
||||
include ::MethodSource::SourceLocation::ProcExtensions
|
||||
include ::MethodSource::MethodExtensions
|
||||
end
|
||||
|
||||
# source://method_source//lib/method_source.rb#168
|
||||
class UnboundMethod
|
||||
include ::MethodSource::SourceLocation::UnboundMethodExtensions
|
||||
include ::MethodSource::MethodExtensions
|
||||
end
|
||||
|
||||
8
sorbet/rbi/gems/pp@0.6.2.rbi
generated
8
sorbet/rbi/gems/pp@0.6.2.rbi
generated
@@ -7,6 +7,7 @@
|
||||
|
||||
class Array
|
||||
include ::Enumerable
|
||||
include ::JSON::Ext::Generator::GeneratorMethods::Array
|
||||
|
||||
# source://pp//lib/pp.rb#402
|
||||
def pretty_print(q); end
|
||||
@@ -32,6 +33,8 @@ end
|
||||
|
||||
class Hash
|
||||
include ::Enumerable
|
||||
include ::ActiveSupport::DeepMergeable
|
||||
include ::JSON::Ext::Generator::GeneratorMethods::Hash
|
||||
|
||||
# source://pp//lib/pp.rb#416
|
||||
def pretty_print(q); end
|
||||
@@ -336,6 +339,9 @@ end
|
||||
PP::VERSION = T.let(T.unsafe(nil), String)
|
||||
|
||||
class Range
|
||||
include ::ActiveSupport::RangeWithFormat
|
||||
include ::ActiveSupport::CompareWithRange
|
||||
include ::ActiveSupport::EachTimeWithZone
|
||||
include ::Enumerable
|
||||
|
||||
# source://pp//lib/pp.rb#490
|
||||
@@ -352,6 +358,8 @@ end
|
||||
|
||||
class String
|
||||
include ::Comparable
|
||||
include ::JSON::Ext::Generator::GeneratorMethods::String
|
||||
extend ::JSON::Ext::Generator::GeneratorMethods::String::Extend
|
||||
|
||||
# source://pp//lib/pp.rb#502
|
||||
def pretty_print(q); end
|
||||
|
||||
10264
sorbet/rbi/gems/pry@0.15.2.rbi
generated
10264
sorbet/rbi/gems/pry@0.15.2.rbi
generated
File diff suppressed because it is too large
Load Diff
64
sorbet/rbi/gems/psych@5.2.6.rbi
generated
64
sorbet/rbi/gems/psych@5.2.6.rbi
generated
@@ -5,10 +5,13 @@
|
||||
# Please instead update this file by running `bin/tapioca gem psych`.
|
||||
|
||||
|
||||
# source://psych//lib/psych/core_ext.rb#2
|
||||
class Object < ::BasicObject
|
||||
include ::ActiveSupport::Dependencies::RequireDependency
|
||||
include ::Kernel
|
||||
include ::PP::ObjectMixin
|
||||
include ::ActiveSupport::Tryable
|
||||
include ::JSON::Ext::Generator::GeneratorMethods::Object
|
||||
include ::ActiveSupport::ToJsonWithActiveSupportEncoder
|
||||
|
||||
# call-seq: to_yaml(options = {})
|
||||
#
|
||||
@@ -225,8 +228,6 @@ end
|
||||
# # You can instantiate an Emitter manually
|
||||
# Psych::Visitors::ToRuby.new.accept(parser.handler.root.first)
|
||||
# # => "a"
|
||||
#
|
||||
# source://psych//lib/psych/versions.rb#3
|
||||
module Psych
|
||||
class << self
|
||||
# source://psych//lib/psych.rb#728
|
||||
@@ -647,8 +648,6 @@ module Psych
|
||||
end
|
||||
|
||||
# Subclasses `BadAlias` for backwards compatibility
|
||||
#
|
||||
# source://psych//lib/psych/exception.rb#10
|
||||
class Psych::AliasesNotEnabled < ::Psych::BadAlias
|
||||
# @return [AliasesNotEnabled] a new instance of AliasesNotEnabled
|
||||
#
|
||||
@@ -657,8 +656,6 @@ class Psych::AliasesNotEnabled < ::Psych::BadAlias
|
||||
end
|
||||
|
||||
# Subclasses `BadAlias` for backwards compatibility
|
||||
#
|
||||
# source://psych//lib/psych/exception.rb#17
|
||||
class Psych::AnchorNotDefined < ::Psych::BadAlias
|
||||
# @return [AnchorNotDefined] a new instance of AnchorNotDefined
|
||||
#
|
||||
@@ -666,7 +663,6 @@ class Psych::AnchorNotDefined < ::Psych::BadAlias
|
||||
def initialize(anchor_name); end
|
||||
end
|
||||
|
||||
# source://psych//lib/psych/class_loader.rb#6
|
||||
class Psych::ClassLoader
|
||||
# @return [ClassLoader] a new instance of ClassLoader
|
||||
#
|
||||
@@ -733,7 +729,6 @@ end
|
||||
# source://psych//lib/psych/class_loader.rb#9
|
||||
Psych::ClassLoader::DATA = T.let(T.unsafe(nil), String)
|
||||
|
||||
# source://psych//lib/psych/class_loader.rb#77
|
||||
class Psych::ClassLoader::Restricted < ::Psych::ClassLoader
|
||||
# @return [Restricted] a new instance of Restricted
|
||||
#
|
||||
@@ -754,8 +749,6 @@ end
|
||||
# automatically assumes a Psych::Nodes::Mapping is being emitted. Other
|
||||
# objects like Sequence and Scalar may be emitted if +seq=+ or +scalar=+ are
|
||||
# called, respectively.
|
||||
#
|
||||
# source://psych//lib/psych/coder.rb#9
|
||||
class Psych::Coder
|
||||
# @return [Coder] a new instance of Coder
|
||||
#
|
||||
@@ -876,7 +869,6 @@ class Psych::Coder
|
||||
def type; end
|
||||
end
|
||||
|
||||
# source://psych//lib/psych/exception.rb#23
|
||||
class Psych::DisallowedClass < ::Psych::Exception
|
||||
# @return [DisallowedClass] a new instance of DisallowedClass
|
||||
#
|
||||
@@ -893,8 +885,6 @@ end
|
||||
# event handlers.
|
||||
#
|
||||
# See Psych::Parser for more details
|
||||
#
|
||||
# source://psych//lib/psych/handler.rb#13
|
||||
class Psych::Handler
|
||||
# Called when an alias is found to +anchor+. +anchor+ will be the name
|
||||
# of the anchor found.
|
||||
@@ -1109,8 +1099,6 @@ class Psych::Handler
|
||||
end
|
||||
|
||||
# Configuration options for dumping YAML.
|
||||
#
|
||||
# source://psych//lib/psych/handler.rb#16
|
||||
class Psych::Handler::DumperOptions
|
||||
# @return [DumperOptions] a new instance of DumperOptions
|
||||
#
|
||||
@@ -1154,7 +1142,6 @@ class Psych::Handler::DumperOptions
|
||||
def line_width=(_arg0); end
|
||||
end
|
||||
|
||||
# source://psych//lib/psych/handlers/document_stream.rb#6
|
||||
class Psych::Handlers::DocumentStream < ::Psych::TreeBuilder
|
||||
# @return [DocumentStream] a new instance of DocumentStream
|
||||
#
|
||||
@@ -1168,7 +1155,6 @@ class Psych::Handlers::DocumentStream < ::Psych::TreeBuilder
|
||||
def start_document(version, tag_directives, implicit); end
|
||||
end
|
||||
|
||||
# source://psych//lib/psych/json/ruby_events.rb#4
|
||||
module Psych::JSON::RubyEvents
|
||||
# source://psych//lib/psych/json/ruby_events.rb#10
|
||||
def visit_DateTime(o); end
|
||||
@@ -1183,26 +1169,21 @@ module Psych::JSON::RubyEvents
|
||||
def visit_Time(o); end
|
||||
end
|
||||
|
||||
# source://psych//lib/psych/json/stream.rb#7
|
||||
class Psych::JSON::Stream < ::Psych::Visitors::JSONTree
|
||||
include ::Psych::Streaming
|
||||
extend ::Psych::Streaming::ClassMethods
|
||||
end
|
||||
|
||||
# source://psych//lib/psych/json/stream.rb#12
|
||||
class Psych::JSON::Stream::Emitter < ::Psych::Stream::Emitter
|
||||
include ::Psych::JSON::YAMLEvents
|
||||
end
|
||||
|
||||
# Psych::JSON::TreeBuilder is an event based AST builder. Events are sent
|
||||
# to an instance of Psych::JSON::TreeBuilder and a JSON AST is constructed.
|
||||
#
|
||||
# source://psych//lib/psych/json/tree_builder.rb#9
|
||||
class Psych::JSON::TreeBuilder < ::Psych::TreeBuilder
|
||||
include ::Psych::JSON::YAMLEvents
|
||||
end
|
||||
|
||||
# source://psych//lib/psych/json/yaml_events.rb#4
|
||||
module Psych::JSON::YAMLEvents
|
||||
# source://psych//lib/psych/json/yaml_events.rb#9
|
||||
def end_document(implicit_end = T.unsafe(nil)); end
|
||||
@@ -1224,8 +1205,6 @@ end
|
||||
# It points to an +anchor+.
|
||||
#
|
||||
# A Psych::Nodes::Alias is a terminal node and may have no children.
|
||||
#
|
||||
# source://psych//lib/psych/nodes/alias.rb#9
|
||||
class Psych::Nodes::Alias < ::Psych::Nodes::Node
|
||||
# Create a new Alias that points to an +anchor+
|
||||
#
|
||||
@@ -1257,8 +1236,6 @@ end
|
||||
# * Psych::Nodes::Sequence
|
||||
# * Psych::Nodes::Mapping
|
||||
# * Psych::Nodes::Scalar
|
||||
#
|
||||
# source://psych//lib/psych/nodes/document.rb#12
|
||||
class Psych::Nodes::Document < ::Psych::Nodes::Node
|
||||
# Create a new Psych::Nodes::Document object.
|
||||
#
|
||||
@@ -1347,8 +1324,6 @@ end
|
||||
# * Psych::Nodes::Mapping
|
||||
# * Psych::Nodes::Scalar
|
||||
# * Psych::Nodes::Alias
|
||||
#
|
||||
# source://psych//lib/psych/nodes/mapping.rb#15
|
||||
class Psych::Nodes::Mapping < ::Psych::Nodes::Node
|
||||
# Create a new Psych::Nodes::Mapping object.
|
||||
#
|
||||
@@ -1414,8 +1389,6 @@ end
|
||||
|
||||
# The base class for any Node in a YAML parse tree. This class should
|
||||
# never be instantiated.
|
||||
#
|
||||
# source://psych//lib/psych/nodes/node.rb#10
|
||||
class Psych::Nodes::Node
|
||||
include ::Enumerable
|
||||
|
||||
@@ -1544,8 +1517,6 @@ end
|
||||
# This class represents a {YAML Scalar}[http://yaml.org/spec/1.1/#id858081].
|
||||
#
|
||||
# This node type is a terminal node and should not have any children.
|
||||
#
|
||||
# source://psych//lib/psych/nodes/scalar.rb#8
|
||||
class Psych::Nodes::Scalar < ::Psych::Nodes::Node
|
||||
# Create a new Psych::Nodes::Scalar object.
|
||||
#
|
||||
@@ -1667,8 +1638,6 @@ end
|
||||
# * Psych::Nodes::Mapping
|
||||
# * Psych::Nodes::Scalar
|
||||
# * Psych::Nodes::Alias
|
||||
#
|
||||
# source://psych//lib/psych/nodes/sequence.rb#41
|
||||
class Psych::Nodes::Sequence < ::Psych::Nodes::Node
|
||||
# Create a new object representing a YAML sequence.
|
||||
#
|
||||
@@ -1734,8 +1703,6 @@ end
|
||||
# Represents a YAML stream. This is the root node for any YAML parse
|
||||
# tree. This node must have one or more child nodes. The only valid
|
||||
# child node for a Psych::Nodes::Stream node is Psych::Nodes::Document.
|
||||
#
|
||||
# source://psych//lib/psych/nodes/stream.rb#8
|
||||
class Psych::Nodes::Stream < ::Psych::Nodes::Node
|
||||
# Create a new Psych::Nodes::Stream node with an +encoding+ that
|
||||
# defaults to Psych::Nodes::Stream::UTF8.
|
||||
@@ -1791,8 +1758,6 @@ end
|
||||
#
|
||||
# Psych uses Psych::Parser in combination with Psych::TreeBuilder to
|
||||
# construct an AST of the parsed YAML document.
|
||||
#
|
||||
# source://psych//lib/psych/parser.rb#33
|
||||
class Psych::Parser
|
||||
# Creates a new Psych::Parser instance with +handler+. YAML events will
|
||||
# be called on +handler+. See Psych::Parser for more details.
|
||||
@@ -1830,8 +1795,6 @@ class Psych::Parser
|
||||
end
|
||||
|
||||
# Scan scalars for built in types
|
||||
#
|
||||
# source://psych//lib/psych/scalar_scanner.rb#6
|
||||
class Psych::ScalarScanner
|
||||
# Create a new scanner
|
||||
#
|
||||
@@ -1891,14 +1854,11 @@ Psych::ScalarScanner::INTEGER_STRICT = T.let(T.unsafe(nil), Regexp)
|
||||
# stream.start do |em|
|
||||
# em.push(:foo => 'bar')
|
||||
# end
|
||||
#
|
||||
# source://psych//lib/psych/stream.rb#24
|
||||
class Psych::Stream < ::Psych::Visitors::YAMLTree
|
||||
include ::Psych::Streaming
|
||||
extend ::Psych::Streaming::ClassMethods
|
||||
end
|
||||
|
||||
# source://psych//lib/psych/stream.rb#25
|
||||
class Psych::Stream::Emitter < ::Psych::Emitter
|
||||
# source://psych//lib/psych/stream.rb#26
|
||||
def end_document(implicit_end = T.unsafe(nil)); end
|
||||
@@ -1909,7 +1869,6 @@ class Psych::Stream::Emitter < ::Psych::Emitter
|
||||
def streaming?; end
|
||||
end
|
||||
|
||||
# source://psych//lib/psych/streaming.rb#3
|
||||
module Psych::Streaming
|
||||
# Start streaming using +encoding+
|
||||
#
|
||||
@@ -1922,7 +1881,6 @@ module Psych::Streaming
|
||||
def register(target, obj); end
|
||||
end
|
||||
|
||||
# source://psych//lib/psych/streaming.rb#4
|
||||
module Psych::Streaming::ClassMethods
|
||||
# Create a new streaming emitter. Emitter will print to +io+. See
|
||||
# Psych::Stream for an example.
|
||||
@@ -1931,7 +1889,6 @@ module Psych::Streaming::ClassMethods
|
||||
def new(io); end
|
||||
end
|
||||
|
||||
# source://psych//lib/psych/syntax_error.rb#5
|
||||
class Psych::SyntaxError < ::Psych::Exception
|
||||
# @return [SyntaxError] a new instance of SyntaxError
|
||||
#
|
||||
@@ -1980,8 +1937,6 @@ end
|
||||
#
|
||||
# See Psych::Handler for documentation on the event methods used in this
|
||||
# class.
|
||||
#
|
||||
# source://psych//lib/psych/tree_builder.rb#17
|
||||
class Psych::TreeBuilder < ::Psych::Handler
|
||||
# Create a new TreeBuilder instance
|
||||
#
|
||||
@@ -2061,7 +2016,6 @@ end
|
||||
# source://psych//lib/psych/versions.rb#5
|
||||
Psych::VERSION = T.let(T.unsafe(nil), String)
|
||||
|
||||
# source://psych//lib/psych/visitors/depth_first.rb#4
|
||||
class Psych::Visitors::DepthFirst < ::Psych::Visitors::Visitor
|
||||
# @return [DepthFirst] a new instance of DepthFirst
|
||||
#
|
||||
@@ -2095,7 +2049,6 @@ class Psych::Visitors::DepthFirst < ::Psych::Visitors::Visitor
|
||||
def visit_Psych_Nodes_Stream(o); end
|
||||
end
|
||||
|
||||
# source://psych//lib/psych/visitors/emitter.rb#4
|
||||
class Psych::Visitors::Emitter < ::Psych::Visitors::Visitor
|
||||
# @return [Emitter] a new instance of Emitter
|
||||
#
|
||||
@@ -2121,7 +2074,6 @@ class Psych::Visitors::Emitter < ::Psych::Visitors::Visitor
|
||||
def visit_Psych_Nodes_Stream(o); end
|
||||
end
|
||||
|
||||
# source://psych//lib/psych/visitors/json_tree.rb#6
|
||||
class Psych::Visitors::JSONTree < ::Psych::Visitors::YAMLTree
|
||||
include ::Psych::JSON::RubyEvents
|
||||
|
||||
@@ -2134,7 +2086,6 @@ class Psych::Visitors::JSONTree < ::Psych::Visitors::YAMLTree
|
||||
end
|
||||
end
|
||||
|
||||
# source://psych//lib/psych/visitors/to_ruby.rb#469
|
||||
class Psych::Visitors::NoAliasRuby < ::Psych::Visitors::ToRuby
|
||||
# @raise [AliasesNotEnabled]
|
||||
#
|
||||
@@ -2142,7 +2093,6 @@ class Psych::Visitors::NoAliasRuby < ::Psych::Visitors::ToRuby
|
||||
def visit_Psych_Nodes_Alias(o); end
|
||||
end
|
||||
|
||||
# source://psych//lib/psych/visitors/yaml_tree.rb#580
|
||||
class Psych::Visitors::RestrictedYAMLTree < ::Psych::Visitors::YAMLTree
|
||||
# @return [RestrictedYAMLTree] a new instance of RestrictedYAMLTree
|
||||
#
|
||||
@@ -2160,8 +2110,6 @@ end
|
||||
Psych::Visitors::RestrictedYAMLTree::DEFAULT_PERMITTED_CLASSES = T.let(T.unsafe(nil), Hash)
|
||||
|
||||
# This class walks a YAML AST, converting each node to Ruby
|
||||
#
|
||||
# source://psych//lib/psych/visitors/to_ruby.rb#14
|
||||
class Psych::Visitors::ToRuby < ::Psych::Visitors::Visitor
|
||||
# @return [ToRuby] a new instance of ToRuby
|
||||
#
|
||||
@@ -2237,7 +2185,6 @@ class Psych::Visitors::ToRuby < ::Psych::Visitors::Visitor
|
||||
end
|
||||
end
|
||||
|
||||
# source://psych//lib/psych/visitors/visitor.rb#4
|
||||
class Psych::Visitors::Visitor
|
||||
# source://psych//lib/psych/visitors/visitor.rb#5
|
||||
def accept(target); end
|
||||
@@ -2263,8 +2210,6 @@ end
|
||||
# builder = Psych::Visitors::YAMLTree.new
|
||||
# builder << { :foo => 'bar' }
|
||||
# builder.tree # => #<Psych::Nodes::Stream .. }
|
||||
#
|
||||
# source://psych//lib/psych/visitors/yaml_tree.rb#15
|
||||
class Psych::Visitors::YAMLTree < ::Psych::Visitors::Visitor
|
||||
# @return [YAMLTree] a new instance of YAMLTree
|
||||
#
|
||||
@@ -2446,7 +2391,6 @@ class Psych::Visitors::YAMLTree < ::Psych::Visitors::Visitor
|
||||
end
|
||||
end
|
||||
|
||||
# source://psych//lib/psych/visitors/yaml_tree.rb#16
|
||||
class Psych::Visitors::YAMLTree::Registrar
|
||||
# @return [Registrar] a new instance of Registrar
|
||||
#
|
||||
|
||||
106
sorbet/rbi/gems/rake@13.3.0.rbi
generated
106
sorbet/rbi/gems/rake@13.3.0.rbi
generated
@@ -93,6 +93,8 @@ FileUtils::RUBY = T.let(T.unsafe(nil), String)
|
||||
|
||||
# source://rake//lib/rake/ext/core.rb#2
|
||||
class Module
|
||||
include ::Module::Concerning
|
||||
|
||||
# Check for an existing method in the current class before extending. If
|
||||
# the method already exists, then a warning is printed and the extension is
|
||||
# not added. Otherwise the block is yielded and any definitions in the
|
||||
@@ -1015,6 +1017,12 @@ class Rake::FileList
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def compact!(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def compact_blank(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def compact_blank!(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def concat(*args, &block); end
|
||||
|
||||
@@ -1110,6 +1118,9 @@ class Rake::FileList
|
||||
# source://rake//lib/rake/file_list.rb#150
|
||||
def exclude(*patterns, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def exclude?(*args, &block); end
|
||||
|
||||
# Should the given file name be excluded from the list?
|
||||
#
|
||||
# NOTE: This method was formerly named "exclude?", but Rails
|
||||
@@ -1123,6 +1134,9 @@ class Rake::FileList
|
||||
# source://rake//lib/rake/file_list.rb#364
|
||||
def excluded_from_list?(fn); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def excluding(*args, &block); end
|
||||
|
||||
# Return a new file list that only contains file names from the current
|
||||
# file list that exist on the file system.
|
||||
#
|
||||
@@ -1147,12 +1161,21 @@ class Rake::FileList
|
||||
# source://rake//lib/rake/file_list.rb#284
|
||||
def ext(newext = T.unsafe(nil)); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def extract!(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def extract_options!(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def fetch(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def fetch_values(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def fifth(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def fill(*args, &block); end
|
||||
|
||||
@@ -1186,6 +1209,15 @@ class Rake::FileList
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def flatten!(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def forty_two(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def fourth(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def from(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#68
|
||||
def grep(*args, &block); end
|
||||
|
||||
@@ -1213,6 +1245,15 @@ class Rake::FileList
|
||||
# source://rake//lib/rake/file_list.rb#391
|
||||
def import(array); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def in_groups(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def in_groups_of(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def in_order_of(*args, &block); end
|
||||
|
||||
# Add file names defined by glob patterns to the file list. If an array
|
||||
# is given, add each element of the array.
|
||||
#
|
||||
@@ -1226,12 +1267,24 @@ class Rake::FileList
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def include?(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def including(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def index(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def index_by(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def index_with(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def inject(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def inquiry(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def insert(*args, &block); end
|
||||
|
||||
@@ -1273,6 +1326,9 @@ class Rake::FileList
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def length(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def many?(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#68
|
||||
def map(*args, &block); end
|
||||
|
||||
@@ -1285,6 +1341,9 @@ class Rake::FileList
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def max_by(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def maximum(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def member?(*args, &block); end
|
||||
|
||||
@@ -1294,6 +1353,9 @@ class Rake::FileList
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def min_by(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def minimum(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def minmax(*args, &block); end
|
||||
|
||||
@@ -1325,9 +1387,15 @@ class Rake::FileList
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def permutation(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def pick(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def place(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def pluck(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def pop(*args, &block); end
|
||||
|
||||
@@ -1387,6 +1455,12 @@ class Rake::FileList
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def sample(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def second(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def second_to_last(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#68
|
||||
def select(*args, &block); end
|
||||
|
||||
@@ -1423,6 +1497,9 @@ class Rake::FileList
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def slice_when(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def sole(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#68
|
||||
def sort(*args, &block); end
|
||||
|
||||
@@ -1435,6 +1512,9 @@ class Rake::FileList
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def sort_by!(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def split(*args, &block); end
|
||||
|
||||
# Return a new FileList with the results of running +sub+ against each
|
||||
# element of the original list.
|
||||
#
|
||||
@@ -1461,6 +1541,15 @@ class Rake::FileList
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def tally(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def third(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def third_to_last(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def to(*args, &block); end
|
||||
|
||||
# Return the internal array object.
|
||||
#
|
||||
# source://rake//lib/rake/file_list.rb#176
|
||||
@@ -1471,6 +1560,12 @@ class Rake::FileList
|
||||
# source://rake//lib/rake/file_list.rb#182
|
||||
def to_ary; end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def to_formatted_s(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def to_fs(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def to_h(*args, &block); end
|
||||
|
||||
@@ -1479,9 +1574,15 @@ class Rake::FileList
|
||||
# source://rake//lib/rake/file_list.rb#344
|
||||
def to_s; end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def to_sentence(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def to_set(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def to_xml(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def transpose(*args, &block); end
|
||||
|
||||
@@ -1500,6 +1601,9 @@ class Rake::FileList
|
||||
# source://rake//lib/rake/file_list.rb#68
|
||||
def values_at(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def without(*args, &block); end
|
||||
|
||||
# source://rake//lib/rake/file_list.rb#77
|
||||
def zip(*args, &block); end
|
||||
|
||||
@@ -3016,6 +3120,8 @@ RakeFileUtils = Rake::FileUtilsExt
|
||||
# source://rake//lib/rake/ext/string.rb#4
|
||||
class String
|
||||
include ::Comparable
|
||||
include ::JSON::Ext::Generator::GeneratorMethods::String
|
||||
extend ::JSON::Ext::Generator::GeneratorMethods::String::Extend
|
||||
|
||||
# source://rake//lib/rake/ext/string.rb#14
|
||||
def ext(newext = T.unsafe(nil)); end
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
2426
sorbet/rbi/gems/reline@0.6.1.rbi
generated
2426
sorbet/rbi/gems/reline@0.6.1.rbi
generated
File diff suppressed because it is too large
Load Diff
110
sorbet/rbi/gems/require-hooks@0.2.2.rbi
generated
Normal file
110
sorbet/rbi/gems/require-hooks@0.2.2.rbi
generated
Normal file
@@ -0,0 +1,110 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for types exported from the `require-hooks` gem.
|
||||
# Please instead update this file by running `bin/tapioca gem require-hooks`.
|
||||
|
||||
|
||||
# source://require-hooks//lib/require-hooks/api.rb#3
|
||||
module RequireHooks
|
||||
class << self
|
||||
# Define a block to wrap the code loading.
|
||||
# The return value MUST be a result of calling the passed block.
|
||||
# For example, you can use such hooks for instrumentation, debugging purposes.
|
||||
#
|
||||
# RequireHooks.around_load do |path, &block|
|
||||
# puts "Loading #{path}"
|
||||
# block.call.tap { puts "Loaded #{path}" }
|
||||
# end
|
||||
#
|
||||
# source://require-hooks//lib/require-hooks/api.rb#71
|
||||
def around_load(patterns: T.unsafe(nil), exclude_patterns: T.unsafe(nil), &block); end
|
||||
|
||||
# source://require-hooks//lib/require-hooks/api.rb#107
|
||||
def context_for(path); end
|
||||
|
||||
# This hook should be used to manually compile byte code to be loaded by the VM.
|
||||
# The arguments are (path, source = nil), where source is only defined if transformations took place.
|
||||
# Otherwise, you MUST read the source code from the file yourself.
|
||||
#
|
||||
# The return value MUST be either nil (continue to the next hook or default behavior) or a platform-specific bytecode object (e.g., RubyVM::InstructionSequence).
|
||||
#
|
||||
# RequireHooks.hijack_load do |path, source|
|
||||
# source ||= File.read(path)
|
||||
# if defined?(RubyVM::InstructionSequence)
|
||||
# RubyVM::InstructionSequence.compile(source)
|
||||
# elsif defined?(JRUBY_VERSION)
|
||||
# JRuby.compile(source)
|
||||
# end
|
||||
# end
|
||||
#
|
||||
# source://require-hooks//lib/require-hooks/api.rb#103
|
||||
def hijack_load(patterns: T.unsafe(nil), exclude_patterns: T.unsafe(nil), &block); end
|
||||
|
||||
# Returns the value of attribute print_warnings.
|
||||
#
|
||||
# source://require-hooks//lib/require-hooks/api.rb#61
|
||||
def print_warnings; end
|
||||
|
||||
# Sets the attribute print_warnings
|
||||
#
|
||||
# @param value the value to set the attribute print_warnings to.
|
||||
#
|
||||
# source://require-hooks//lib/require-hooks/api.rb#61
|
||||
def print_warnings=(_arg0); end
|
||||
|
||||
# Define hooks to perform source-to-source transformations.
|
||||
# The return value MUST be either String (new source code) or nil (indicating that no transformations were performed).
|
||||
#
|
||||
# NOTE: The second argument (`source`) MAY be nil, indicating that no transformer tried to transform the source code.
|
||||
#
|
||||
#
|
||||
# RequireHooks.source_transform do |path, source|
|
||||
# end
|
||||
#
|
||||
# source://require-hooks//lib/require-hooks/api.rb#85
|
||||
def source_transform(patterns: T.unsafe(nil), exclude_patterns: T.unsafe(nil), &block); end
|
||||
end
|
||||
end
|
||||
|
||||
# source://require-hooks//lib/require-hooks/api.rb#8
|
||||
class RequireHooks::Context
|
||||
# @return [Context] a new instance of Context
|
||||
#
|
||||
# source://require-hooks//lib/require-hooks/api.rb#9
|
||||
def initialize(around_load, source_transform, hijack_load); end
|
||||
|
||||
# @return [Boolean]
|
||||
#
|
||||
# source://require-hooks//lib/require-hooks/api.rb#15
|
||||
def empty?; end
|
||||
|
||||
# @return [Boolean]
|
||||
#
|
||||
# source://require-hooks//lib/require-hooks/api.rb#23
|
||||
def hijack?; end
|
||||
|
||||
# source://require-hooks//lib/require-hooks/api.rb#37
|
||||
def perform_source_transform(path); end
|
||||
|
||||
# source://require-hooks//lib/require-hooks/api.rb#27
|
||||
def run_around_load_callbacks(path); end
|
||||
|
||||
# @return [Boolean]
|
||||
#
|
||||
# source://require-hooks//lib/require-hooks/api.rb#19
|
||||
def source_transform?; end
|
||||
|
||||
# source://require-hooks//lib/require-hooks/api.rb#49
|
||||
def try_hijack_load(path, source); end
|
||||
end
|
||||
|
||||
# source://require-hooks//lib/require-hooks/mode/load_iseq.rb#4
|
||||
module RequireHooks::LoadIseq
|
||||
# source://require-hooks//lib/require-hooks/mode/load_iseq.rb#5
|
||||
def load_iseq(path); end
|
||||
end
|
||||
|
||||
class RubyVM::InstructionSequence
|
||||
extend ::RequireHooks::LoadIseq
|
||||
end
|
||||
233
sorbet/rbi/gems/rspec-core@3.13.5.rbi
generated
233
sorbet/rbi/gems/rspec-core@3.13.5.rbi
generated
@@ -6496,6 +6496,9 @@ module RSpec::Core::HashImitatable
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def any?(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def assert_valid_keys(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def assoc(*args, &block); end
|
||||
|
||||
@@ -6523,6 +6526,12 @@ module RSpec::Core::HashImitatable
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def compact!(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def compact_blank(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def compact_blank!(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def compare_by_identity(*args, &block); end
|
||||
|
||||
@@ -6538,6 +6547,33 @@ module RSpec::Core::HashImitatable
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def deconstruct_keys(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def deep_merge(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def deep_merge!(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def deep_merge?(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def deep_stringify_keys(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def deep_stringify_keys!(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def deep_symbolize_keys(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def deep_symbolize_keys!(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def deep_transform_keys(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def deep_transform_keys!(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def default(*args, &block); end
|
||||
|
||||
@@ -6604,6 +6640,21 @@ module RSpec::Core::HashImitatable
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def except(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def except!(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def exclude?(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def excluding(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def extract!(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def extractable_options?(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def fetch(*args, &block); end
|
||||
|
||||
@@ -6652,9 +6703,21 @@ module RSpec::Core::HashImitatable
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def has_value?(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def in_order_of(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def include?(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def including(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def index_by(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def index_with(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def inject(*args, &block); end
|
||||
|
||||
@@ -6679,6 +6742,9 @@ module RSpec::Core::HashImitatable
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def length(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def many?(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def map(*args, &block); end
|
||||
|
||||
@@ -6688,6 +6754,9 @@ module RSpec::Core::HashImitatable
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def max_by(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def maximum(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def member?(*args, &block); end
|
||||
|
||||
@@ -6703,12 +6772,18 @@ module RSpec::Core::HashImitatable
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def min_by(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def minimum(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def minmax(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def minmax_by(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def nested_under_indifferent_access(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def none?(*args, &block); end
|
||||
|
||||
@@ -6718,6 +6793,12 @@ module RSpec::Core::HashImitatable
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def partition(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def pick(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def pluck(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def rassoc(*args, &block); end
|
||||
|
||||
@@ -6739,6 +6820,15 @@ module RSpec::Core::HashImitatable
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def reverse_each(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def reverse_merge(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def reverse_merge!(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def reverse_update(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def select(*args, &block); end
|
||||
|
||||
@@ -6754,6 +6844,9 @@ module RSpec::Core::HashImitatable
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def slice(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def slice!(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def slice_after(*args, &block); end
|
||||
|
||||
@@ -6763,6 +6856,9 @@ module RSpec::Core::HashImitatable
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def slice_when(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def sole(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def sort(*args, &block); end
|
||||
|
||||
@@ -6772,9 +6868,21 @@ module RSpec::Core::HashImitatable
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def store(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def stringify_keys(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def stringify_keys!(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def sum(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def symbolize_keys(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def symbolize_keys!(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def take(*args, &block); end
|
||||
|
||||
@@ -6793,6 +6901,12 @@ module RSpec::Core::HashImitatable
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def to_hash(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def to_options(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def to_options!(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def to_proc(*args, &block); end
|
||||
|
||||
@@ -6826,6 +6940,18 @@ module RSpec::Core::HashImitatable
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def values_at(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def with_defaults(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def with_defaults!(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def with_indifferent_access(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def without(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/metadata.rb#367
|
||||
def zip(*args, &block); end
|
||||
|
||||
@@ -9445,27 +9571,21 @@ class RSpec::Core::OutputWrapper
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def advise(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def as_json(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def autoclose=(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def autoclose?(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def beep(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def binmode(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def binmode?(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def check_winsize_changed(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def clear_screen(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def close(*args, &block); end
|
||||
|
||||
@@ -9484,36 +9604,6 @@ class RSpec::Core::OutputWrapper
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def closed?(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def console_mode(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def console_mode=(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def cooked(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def cooked!(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def cursor(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def cursor=(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def cursor_down(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def cursor_left(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def cursor_right(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def cursor_up(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def each(*args, &block); end
|
||||
|
||||
@@ -9529,24 +9619,12 @@ class RSpec::Core::OutputWrapper
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def each_line(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def echo=(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def echo?(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def eof(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def eof?(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def erase_line(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def erase_screen(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def external_encoding(*args, &block); end
|
||||
|
||||
@@ -9571,24 +9649,9 @@ class RSpec::Core::OutputWrapper
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def getc(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def getch(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def getpass(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def gets(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def goto(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def goto_column(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def iflush(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def inspect(*args, &block); end
|
||||
|
||||
@@ -9598,9 +9661,6 @@ class RSpec::Core::OutputWrapper
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def ioctl(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def ioflush(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def isatty(*args, &block); end
|
||||
|
||||
@@ -9614,14 +9674,17 @@ class RSpec::Core::OutputWrapper
|
||||
def method_missing(name, *args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def noecho(*args, &block); end
|
||||
def nonblock(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def nonblock=(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def nonblock?(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def nread(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def oflush(*args, &block); end
|
||||
|
||||
# @private
|
||||
#
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#6
|
||||
@@ -9650,9 +9713,6 @@ class RSpec::Core::OutputWrapper
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def pread(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def pressed?(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def print(*args, &block); end
|
||||
|
||||
@@ -9668,12 +9728,6 @@ class RSpec::Core::OutputWrapper
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def pwrite(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def raw(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def raw!(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def read(*args, &block); end
|
||||
|
||||
@@ -9709,12 +9763,6 @@ class RSpec::Core::OutputWrapper
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def rewind(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def scroll_backward(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def scroll_forward(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def seek(*args, &block); end
|
||||
|
||||
@@ -9763,9 +9811,6 @@ class RSpec::Core::OutputWrapper
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def tty?(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def ttyname(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def ungetbyte(*args, &block); end
|
||||
|
||||
@@ -9784,12 +9829,6 @@ class RSpec::Core::OutputWrapper
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def wait_writable(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def winsize(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def winsize=(*args, &block); end
|
||||
|
||||
# source://rspec-core//lib/rspec/core/output_wrapper.rb#23
|
||||
def write(*args, &block); end
|
||||
|
||||
|
||||
2
sorbet/rbi/gems/securerandom@0.4.1.rbi
generated
2
sorbet/rbi/gems/securerandom@0.4.1.rbi
generated
@@ -39,8 +39,6 @@
|
||||
#
|
||||
# If a secure random number generator is not available,
|
||||
# +NotImplementedError+ is raised.
|
||||
#
|
||||
# source://securerandom//lib/securerandom.rb#41
|
||||
module SecureRandom
|
||||
extend ::Random::Formatter
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
1689
sorbet/rbi/gems/sqlite3@1.7.3.rbi
generated
1689
sorbet/rbi/gems/sqlite3@1.7.3.rbi
generated
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
6
sorbet/rbi/gems/timeout@0.4.3.rbi
generated
6
sorbet/rbi/gems/timeout@0.4.3.rbi
generated
@@ -5,7 +5,6 @@
|
||||
# Please instead update this file by running `bin/tapioca gem timeout`.
|
||||
|
||||
|
||||
# source://timeout//lib/timeout.rb#21
|
||||
module Timeout
|
||||
private
|
||||
|
||||
@@ -90,8 +89,6 @@ end
|
||||
Timeout::CONDVAR = T.let(T.unsafe(nil), Thread::ConditionVariable)
|
||||
|
||||
# Raised by Timeout.timeout when the block times out.
|
||||
#
|
||||
# source://timeout//lib/timeout.rb#33
|
||||
class Timeout::Error < ::RuntimeError
|
||||
class << self
|
||||
# source://timeout//lib/timeout.rb#34
|
||||
@@ -100,8 +97,6 @@ class Timeout::Error < ::RuntimeError
|
||||
end
|
||||
|
||||
# Internal error raised to when a timeout is triggered.
|
||||
#
|
||||
# source://timeout//lib/timeout.rb#26
|
||||
class Timeout::ExitException < ::Exception
|
||||
# source://timeout//lib/timeout.rb#27
|
||||
def exception(*_arg0); end
|
||||
@@ -119,7 +114,6 @@ Timeout::QUEUE = T.let(T.unsafe(nil), Thread::Queue)
|
||||
# source://timeout//lib/timeout.rb#49
|
||||
Timeout::QUEUE_MUTEX = T.let(T.unsafe(nil), Thread::Mutex)
|
||||
|
||||
# source://timeout//lib/timeout.rb#54
|
||||
class Timeout::Request
|
||||
# @return [Request] a new instance of Request
|
||||
#
|
||||
|
||||
5765
sorbet/rbi/gems/tzinfo@2.0.6.rbi
generated
5765
sorbet/rbi/gems/tzinfo@2.0.6.rbi
generated
File diff suppressed because it is too large
Load Diff
9
sorbet/rbi/gems/yard@0.9.37.rbi
generated
9
sorbet/rbi/gems/yard@0.9.37.rbi
generated
@@ -14,6 +14,7 @@
|
||||
# source://yard//lib/yard/core_ext/array.rb#2
|
||||
class Array
|
||||
include ::Enumerable
|
||||
include ::JSON::Ext::Generator::GeneratorMethods::Array
|
||||
|
||||
# Places values before or after another object (by value) in
|
||||
# an array. This is used in tandem with the before and after
|
||||
@@ -454,6 +455,8 @@ end
|
||||
|
||||
# source://yard//lib/yard/core_ext/module.rb#2
|
||||
class Module
|
||||
include ::Module::Concerning
|
||||
|
||||
# Returns the class name of a full module namespace path
|
||||
#
|
||||
# @example
|
||||
@@ -465,8 +468,12 @@ class Module
|
||||
end
|
||||
|
||||
class Object < ::BasicObject
|
||||
include ::ActiveSupport::Dependencies::RequireDependency
|
||||
include ::Kernel
|
||||
include ::PP::ObjectMixin
|
||||
include ::ActiveSupport::Tryable
|
||||
include ::JSON::Ext::Generator::GeneratorMethods::Object
|
||||
include ::ActiveSupport::ToJsonWithActiveSupportEncoder
|
||||
|
||||
private
|
||||
|
||||
@@ -490,6 +497,8 @@ RUBY19 = T.let(T.unsafe(nil), TrueClass)
|
||||
# source://yard//lib/yard/core_ext/string.rb#2
|
||||
class String
|
||||
include ::Comparable
|
||||
include ::JSON::Ext::Generator::GeneratorMethods::String
|
||||
extend ::JSON::Ext::Generator::GeneratorMethods::String::Extend
|
||||
|
||||
# Splits text into tokens the way a shell would, handling quoted
|
||||
# text as a single token. Use '\"' and "\'" to escape quotes and
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
# typed: strict
|
||||
# frozen_string_literal: true
|
||||
|
||||
# Shim for ActiveSupport::Concern to help Sorbet understand its DSL methods
|
||||
|
||||
module ActiveSupport
|
||||
module Concern
|
||||
extend T::Sig
|
||||
|
||||
# Define the included method that takes a block (not the standard Module#included)
|
||||
sig { params(block: T.proc.void).void }
|
||||
def included(&block)
|
||||
end
|
||||
|
||||
# Define the class_methods method that takes a block
|
||||
sig { params(block: T.proc.void).void }
|
||||
def class_methods(&block)
|
||||
end
|
||||
end
|
||||
end
|
||||
5
sorbet/rbi/shims/minitest.rbi
Normal file
5
sorbet/rbi/shims/minitest.rbi
Normal file
@@ -0,0 +1,5 @@
|
||||
# typed: strict
|
||||
# frozen_string_literal: true
|
||||
|
||||
class Minitest::Test
|
||||
end
|
||||
@@ -4,17 +4,5 @@
|
||||
|
||||
# typed: false
|
||||
|
||||
module ::DateAndTime::Calculations; end
|
||||
module ::DateAndTime::Zones; end
|
||||
module ActiveModel::Error; end
|
||||
module ActiveRecord::ConnectionAdapters::DatabaseStatements; end
|
||||
module ActiveRecord::ConnectionAdapters::SchemaStatements; end
|
||||
module ActiveRecord::Rollback; end
|
||||
module ActiveRecord::StatementInvalid; end
|
||||
module ActiveSupport::ArrayInquirer; end
|
||||
module ActiveSupport::Multibyte::Chars; end
|
||||
module ActiveSupport::Notifications; end
|
||||
module ActiveSupport::SafeBuffer; end
|
||||
module ActiveSupport::StringInquirer; end
|
||||
module ActiveSupport::TimeZone; end
|
||||
module HasAuxTable::AuxTableConfig::Arel::Nodes::Node; end
|
||||
module Minitest::Assertion; end
|
||||
module Singleton::SingletonClassProperties; end
|
||||
|
||||
@@ -1,6 +1,14 @@
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
# Add your extra requires here (`bin/tapioca require` can be used to bootstrap this list)
|
||||
require "active_model/attribute_set"
|
||||
require "active_record"
|
||||
require "active_record/associations"
|
||||
require "active_record/base"
|
||||
require "active_record/errors"
|
||||
require "active_record/model_schema"
|
||||
require "active_support"
|
||||
require "active_support/concern"
|
||||
require "bundler/setup"
|
||||
require "pry"
|
||||
require "sorbet-runtime"
|
||||
|
||||
Reference in New Issue
Block a user