Exclude msgpack from RBI generation
This commit is contained in:
parent
07fad780de
commit
1dd0f6bbb2
@ -46,8 +46,10 @@ module Homebrew
|
|||||||
HOMEBREW_LIBRARY_PATH.cd do
|
HOMEBREW_LIBRARY_PATH.cd do
|
||||||
if update
|
if update
|
||||||
safe_system "bundle", "exec", "tapioca", "dsl"
|
safe_system "bundle", "exec", "tapioca", "dsl"
|
||||||
|
# RBI files already provided by Sorbet:
|
||||||
excluded_gems = [
|
excluded_gems = [
|
||||||
"json", # RBI file is already provided by Sorbet
|
"json",
|
||||||
|
"msgpack",
|
||||||
]
|
]
|
||||||
tapioca_args = ["--exclude", *excluded_gems, "--pre", "sorbet/tapioca/prerequire.rb"]
|
tapioca_args = ["--exclude", *excluded_gems, "--pre", "sorbet/tapioca/prerequire.rb"]
|
||||||
tapioca_args << "--all" if args.update_all?
|
tapioca_args << "--all" if args.update_all?
|
||||||
|
|||||||
319
Library/Homebrew/sorbet/rbi/gems/msgpack@1.7.2.rbi
generated
319
Library/Homebrew/sorbet/rbi/gems/msgpack@1.7.2.rbi
generated
@ -1,319 +0,0 @@
|
|||||||
# typed: false
|
|
||||||
|
|
||||||
# DO NOT EDIT MANUALLY
|
|
||||||
# This is an autogenerated file for types exported from the `msgpack` gem.
|
|
||||||
# Please instead update this file by running `bin/tapioca gem msgpack`.
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/core_ext.rb#67
|
|
||||||
class Array
|
|
||||||
include ::Enumerable
|
|
||||||
include ::MessagePack::CoreExt
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/core_ext.rb#71
|
|
||||||
def to_msgpack_with_packer(packer); end
|
|
||||||
end
|
|
||||||
|
|
||||||
Bignum = Integer
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/core_ext.rb#37
|
|
||||||
class FalseClass
|
|
||||||
include ::MessagePack::CoreExt
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/core_ext.rb#41
|
|
||||||
def to_msgpack_with_packer(packer); end
|
|
||||||
end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/core_ext.rb#47
|
|
||||||
class Float < ::Numeric
|
|
||||||
include ::MessagePack::CoreExt
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/core_ext.rb#51
|
|
||||||
def to_msgpack_with_packer(packer); end
|
|
||||||
end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/core_ext.rb#77
|
|
||||||
class Hash
|
|
||||||
include ::Enumerable
|
|
||||||
include ::MessagePack::CoreExt
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/core_ext.rb#81
|
|
||||||
def to_msgpack_with_packer(packer); end
|
|
||||||
end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/core_ext.rb#98
|
|
||||||
class Integer < ::Numeric
|
|
||||||
include ::MessagePack::CoreExt
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/core_ext.rb#102
|
|
||||||
def to_msgpack_with_packer(packer); end
|
|
||||||
end
|
|
||||||
|
|
||||||
# MessagePack extention packer and unpacker for built-in Time class
|
|
||||||
#
|
|
||||||
# source://msgpack//lib/msgpack/version.rb#1
|
|
||||||
module MessagePack
|
|
||||||
private
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack.rb#39
|
|
||||||
def dump(v, io = T.unsafe(nil), options = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack.rb#22
|
|
||||||
def load(src, param = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack.rb#39
|
|
||||||
def pack(v, io = T.unsafe(nil), options = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack.rb#22
|
|
||||||
def unpack(src, param = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
class << self
|
|
||||||
# source://msgpack//lib/msgpack.rb#39
|
|
||||||
def dump(v, io = T.unsafe(nil), options = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack.rb#22
|
|
||||||
def load(src, param = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack.rb#39
|
|
||||||
def pack(v, io = T.unsafe(nil), options = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack.rb#22
|
|
||||||
def unpack(src, param = T.unsafe(nil)); end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/core_ext.rb#2
|
|
||||||
module MessagePack::CoreExt
|
|
||||||
# source://msgpack//lib/msgpack/core_ext.rb#3
|
|
||||||
def to_msgpack(packer_or_io = T.unsafe(nil)); end
|
|
||||||
end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/core_ext.rb#130
|
|
||||||
class MessagePack::ExtensionValue < ::Struct
|
|
||||||
include ::MessagePack::CoreExt
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/core_ext.rb#134
|
|
||||||
def to_msgpack_with_packer(packer); end
|
|
||||||
end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/factory.rb#2
|
|
||||||
class MessagePack::Factory
|
|
||||||
# source://msgpack//lib/msgpack/factory.rb#113
|
|
||||||
def dump(v, *rest); end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/factory.rb#99
|
|
||||||
def load(src, param = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/factory.rb#113
|
|
||||||
def pack(v, *rest); end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/factory.rb#120
|
|
||||||
def pool(size = T.unsafe(nil), **options); end
|
|
||||||
|
|
||||||
# see ext for other methods
|
|
||||||
#
|
|
||||||
# @raise [FrozenError]
|
|
||||||
#
|
|
||||||
# source://msgpack//lib/msgpack/factory.rb#5
|
|
||||||
def register_type(type, klass, options = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
# [ {type: id, class: Class(or nil), packer: arg, unpacker: arg}, ... ]
|
|
||||||
#
|
|
||||||
# source://msgpack//lib/msgpack/factory.rb#41
|
|
||||||
def registered_types(selector = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
# @return [Boolean]
|
|
||||||
#
|
|
||||||
# source://msgpack//lib/msgpack/factory.rb#86
|
|
||||||
def type_registered?(klass_or_type, selector = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/factory.rb#99
|
|
||||||
def unpack(src, param = T.unsafe(nil)); end
|
|
||||||
end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/factory.rb#128
|
|
||||||
class MessagePack::Factory::Pool
|
|
||||||
# @return [Pool] a new instance of Pool
|
|
||||||
#
|
|
||||||
# source://msgpack//lib/msgpack/factory.rb#181
|
|
||||||
def initialize(factory, size, options = T.unsafe(nil)); end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/factory.rb#195
|
|
||||||
def dump(object); end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/factory.rb#188
|
|
||||||
def load(data); end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/factory.rb#206
|
|
||||||
def packer(&block); end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/factory.rb#202
|
|
||||||
def unpacker(&block); end
|
|
||||||
end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/factory.rb#130
|
|
||||||
class MessagePack::Factory::Pool::MemberPool
|
|
||||||
# @return [MemberPool] a new instance of MemberPool
|
|
||||||
#
|
|
||||||
# source://msgpack//lib/msgpack/factory.rb#131
|
|
||||||
def initialize(size, &block); end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/factory.rb#137
|
|
||||||
def with; end
|
|
||||||
end
|
|
||||||
|
|
||||||
class MessagePack::HeldBuffer < ::BasicObject; end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/packer.rb#2
|
|
||||||
class MessagePack::Packer
|
|
||||||
# @raise [ArgumentError]
|
|
||||||
#
|
|
||||||
# source://msgpack//lib/msgpack/packer.rb#9
|
|
||||||
def register_type(type, klass, method_name = T.unsafe(nil), &block); end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/packer.rb#14
|
|
||||||
def registered_types; end
|
|
||||||
|
|
||||||
# @return [Boolean]
|
|
||||||
#
|
|
||||||
# source://msgpack//lib/msgpack/packer.rb#24
|
|
||||||
def type_registered?(klass_or_type); end
|
|
||||||
end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/time.rb#5
|
|
||||||
module MessagePack::Time; end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/time.rb#25
|
|
||||||
MessagePack::Time::Packer = T.let(T.unsafe(nil), Proc)
|
|
||||||
|
|
||||||
# 3-arg Time.at is available Ruby >= 2.5
|
|
||||||
#
|
|
||||||
# source://msgpack//lib/msgpack/time.rb#7
|
|
||||||
MessagePack::Time::TIME_AT_3_AVAILABLE = T.let(T.unsafe(nil), TrueClass)
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/time.rb#13
|
|
||||||
MessagePack::Time::Unpacker = T.let(T.unsafe(nil), Proc)
|
|
||||||
|
|
||||||
# a.k.a. "TimeSpec"
|
|
||||||
#
|
|
||||||
# source://msgpack//lib/msgpack/timestamp.rb#4
|
|
||||||
class MessagePack::Timestamp
|
|
||||||
# @param sec [Integer]
|
|
||||||
# @param nsec [Integer]
|
|
||||||
# @return [Timestamp] a new instance of Timestamp
|
|
||||||
#
|
|
||||||
# source://msgpack//lib/msgpack/timestamp.rb#24
|
|
||||||
def initialize(sec, nsec); end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/timestamp.rb#72
|
|
||||||
def ==(other); end
|
|
||||||
|
|
||||||
# @return [Integer]
|
|
||||||
#
|
|
||||||
# source://msgpack//lib/msgpack/timestamp.rb#20
|
|
||||||
def nsec; end
|
|
||||||
|
|
||||||
# @return [Integer]
|
|
||||||
#
|
|
||||||
# source://msgpack//lib/msgpack/timestamp.rb#17
|
|
||||||
def sec; end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/timestamp.rb#68
|
|
||||||
def to_msgpack_ext; end
|
|
||||||
|
|
||||||
class << self
|
|
||||||
# source://msgpack//lib/msgpack/timestamp.rb#29
|
|
||||||
def from_msgpack_ext(data); end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/timestamp.rb#50
|
|
||||||
def to_msgpack_ext(sec, nsec); end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/timestamp.rb#13
|
|
||||||
MessagePack::Timestamp::TIMESTAMP32_MAX_SEC = T.let(T.unsafe(nil), Integer)
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/timestamp.rb#14
|
|
||||||
MessagePack::Timestamp::TIMESTAMP64_MAX_SEC = T.let(T.unsafe(nil), Integer)
|
|
||||||
|
|
||||||
# The timestamp extension type defined in the MessagePack spec.
|
|
||||||
# See https://github.com/msgpack/msgpack/blob/master/spec.md#timestamp-extension-type for details.
|
|
||||||
#
|
|
||||||
# source://msgpack//lib/msgpack/timestamp.rb#11
|
|
||||||
MessagePack::Timestamp::TYPE = T.let(T.unsafe(nil), Integer)
|
|
||||||
|
|
||||||
class MessagePack::UnexpectedTypeError < ::MessagePack::UnpackError
|
|
||||||
include ::MessagePack::TypeError
|
|
||||||
end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/unpacker.rb#2
|
|
||||||
class MessagePack::Unpacker
|
|
||||||
# source://msgpack//lib/msgpack/unpacker.rb#9
|
|
||||||
def register_type(type, klass = T.unsafe(nil), method_name = T.unsafe(nil), &block); end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/unpacker.rb#18
|
|
||||||
def registered_types; end
|
|
||||||
|
|
||||||
# @return [Boolean]
|
|
||||||
#
|
|
||||||
# source://msgpack//lib/msgpack/unpacker.rb#28
|
|
||||||
def type_registered?(klass_or_type); end
|
|
||||||
end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/core_ext.rb#17
|
|
||||||
class NilClass
|
|
||||||
include ::MessagePack::CoreExt
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/core_ext.rb#21
|
|
||||||
def to_msgpack_with_packer(packer); end
|
|
||||||
end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/core_ext.rb#57
|
|
||||||
class String
|
|
||||||
include ::Comparable
|
|
||||||
include ::MessagePack::CoreExt
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/core_ext.rb#61
|
|
||||||
def to_msgpack_with_packer(packer); end
|
|
||||||
end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/symbol.rb#1
|
|
||||||
class Symbol
|
|
||||||
include ::Comparable
|
|
||||||
include ::MessagePack::CoreExt
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/core_ext.rb#91
|
|
||||||
def to_msgpack_with_packer(packer); end
|
|
||||||
|
|
||||||
class << self
|
|
||||||
# source://msgpack//lib/msgpack/symbol.rb#12
|
|
||||||
def from_msgpack_ext(data); end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/core_ext.rb#27
|
|
||||||
class TrueClass
|
|
||||||
include ::MessagePack::CoreExt
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
# source://msgpack//lib/msgpack/core_ext.rb#31
|
|
||||||
def to_msgpack_with_packer(packer); end
|
|
||||||
end
|
|
||||||
Loading…
x
Reference in New Issue
Block a user