diff --git a/Library/Homebrew/sorbet/rbi/gems/parlour@8.1.0.rbi b/Library/Homebrew/sorbet/rbi/gems/parlour@8.1.0.rbi index fcf1ca6a196ce..a5a1976383d1c 100644 --- a/Library/Homebrew/sorbet/rbi/gems/parlour@8.1.0.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/parlour@8.1.0.rbi @@ -913,7 +913,7 @@ class Parlour::RbiGenerator::Namespace < ::Parlour::RbiGenerator::RbiObject # @param block [T.proc.params(x: Attribute).void, nil] # @return [Attribute] # - # source://sorbet-runtime/0.5.11219/lib/types/private/methods/_methods.rb#252 + # source://sorbet-runtime/0.5.11222/lib/types/private/methods/_methods.rb#252 def create_attr(*args, **_arg1, &blk); end # source://parlour//lib/parlour/rbi_generator/namespace.rb#472 @@ -1121,7 +1121,7 @@ class Parlour::RbiGenerator::Namespace < ::Parlour::RbiGenerator::RbiObject # @return [Array] # - # source://sorbet-runtime/0.5.11219/lib/types/private/methods/_methods.rb#252 + # source://sorbet-runtime/0.5.11222/lib/types/private/methods/_methods.rb#252 def type_aliases(*args, **_arg1, &blk); end private @@ -1885,7 +1885,7 @@ class Parlour::RbsGenerator::Namespace < ::Parlour::RbsGenerator::RbsObject # @param block [T.proc.params(x: Attribute).void, nil] # @return [Attribute] # - # source://sorbet-runtime/0.5.11219/lib/types/private/methods/_methods.rb#252 + # source://sorbet-runtime/0.5.11222/lib/types/private/methods/_methods.rb#252 def create_attr(*args, **_arg1, &blk); end # source://parlour//lib/parlour/rbs_generator/namespace.rb#347 @@ -2052,7 +2052,7 @@ class Parlour::RbsGenerator::Namespace < ::Parlour::RbsGenerator::RbsObject # @return [Array] # - # source://sorbet-runtime/0.5.11219/lib/types/private/methods/_methods.rb#252 + # source://sorbet-runtime/0.5.11222/lib/types/private/methods/_methods.rb#252 def type_aliases(*args, **_arg1, &blk); end private @@ -2395,7 +2395,7 @@ class Parlour::TypeParser::IntermediateSig < ::T::Struct prop :params, T.nilable(T::Array[::Parser::AST::Node]) class << self - # source://sorbet-runtime/0.5.11219/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11222/lib/types/struct.rb#13 def inherited(s); end end end @@ -2450,7 +2450,7 @@ class Parlour::TypedObject # @param comment [String, Array] # @return [void] # - # source://sorbet-runtime/0.5.11219/lib/types/private/methods/_methods.rb#252 + # source://sorbet-runtime/0.5.11222/lib/types/private/methods/_methods.rb#252 def add_comments(*args, **_arg1, &blk); end # source://parlour//lib/parlour/typed_object.rb#32 @@ -2471,7 +2471,7 @@ class Parlour::TypedObject # @return [String] # - # source://sorbet-runtime/0.5.11219/lib/types/private/methods/_methods.rb#252 + # source://sorbet-runtime/0.5.11222/lib/types/private/methods/_methods.rb#252 def inspect(*args, **_arg1, &blk); end # source://parlour//lib/parlour/typed_object.rb#26 @@ -2480,7 +2480,7 @@ class Parlour::TypedObject # @return [String] # - # source://sorbet-runtime/0.5.11219/lib/types/private/methods/_methods.rb#252 + # source://sorbet-runtime/0.5.11222/lib/types/private/methods/_methods.rb#252 def to_s(*args, **_arg1, &blk); end protected diff --git a/Library/Homebrew/sorbet/rbi/gems/rbi@0.1.6.rbi b/Library/Homebrew/sorbet/rbi/gems/rbi@0.1.6.rbi index ec3c48ec8cb21..3058e6992dde0 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rbi@0.1.6.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rbi@0.1.6.rbi @@ -1820,7 +1820,7 @@ class RBI::Rewriters::Merge::Conflict < ::T::Struct def to_s; end class << self - # source://sorbet-runtime/0.5.11219/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11222/lib/types/struct.rb#13 def inherited(s); end end end @@ -2037,7 +2037,7 @@ class RBI::Rewriters::RemoveKnownDefinitions::Operation < ::T::Struct def to_s; end class << self - # source://sorbet-runtime/0.5.11219/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11222/lib/types/struct.rb#13 def inherited(s); end end end diff --git a/Library/Homebrew/sorbet/rbi/gems/rspec-sorbet@1.9.2.rbi b/Library/Homebrew/sorbet/rbi/gems/rspec-sorbet@1.9.2.rbi index ffde20ab47801..a5ed7d683ca07 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rspec-sorbet@1.9.2.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rspec-sorbet@1.9.2.rbi @@ -90,7 +90,7 @@ module RSpec::Sorbet::Doubles # @return [void] # - # source://sorbet-runtime/0.5.11219/lib/types/private/methods/_methods.rb#252 + # source://sorbet-runtime/0.5.11222/lib/types/private/methods/_methods.rb#252 def allow_instance_doubles!(*args, **_arg1, &blk); end # source://rspec-sorbet//lib/rspec/sorbet/doubles.rb#36 diff --git a/Library/Homebrew/sorbet/rbi/gems/rubocop@1.60.2.rbi b/Library/Homebrew/sorbet/rbi/gems/rubocop@1.60.2.rbi index e69a7a3d9c94a..f971cee1d06ab 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rubocop@1.60.2.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rubocop@1.60.2.rbi @@ -4,6 +4,46 @@ # This is an autogenerated file for types exported from the `rubocop` gem. # Please instead update this file by running `bin/tapioca gem rubocop`. +# This module provides methods that make it easier to test Cops. +# +# source://rubocop//lib/rubocop/rspec/cop_helper.rb#6 +module CopHelper + extend ::RSpec::Its + extend ::RSpec::Core::SharedContext + + # source://rubocop//lib/rubocop/rspec/cop_helper.rb#71 + def _investigate(cop, processed_source); end + + # source://rubocop//lib/rubocop/rspec/cop_helper.rb#61 + def autocorrect_source(source, file = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/rspec/cop_helper.rb#57 + def autocorrect_source_file(source); end + + # source://rubocop//lib/rubocop/rspec/cop_helper.rb#37 + def configuration; end + + # source://rubocop//lib/rubocop/rspec/cop_helper.rb#12 + def inspect_source(source, file = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/rspec/cop_helper.rb#24 + def parse_source(source, file = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/rspec/cop_helper.rb#45 + def registry; end +end + +# RuboCop can be run in contexts where unexpected other libraries are included, +# which may interfere with its normal behavior. In order to test those +# situations, it may be necessary to require another library for the duration +# of one spec +# +# source://rubocop//lib/rubocop/rspec/host_environment_simulation_helper.rb#7 +module HostEnvironmentSimulatorHelper + # source://rubocop//lib/rubocop/rspec/host_environment_simulation_helper.rb#8 + def in_its_own_process_with(*files); end +end + class Parser::Source::Comment include ::RuboCop::Ext::Comment end @@ -4834,6 +4874,12 @@ class RuboCop::Cop::Cop < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/cop.rb#70 def find_location(node, loc); end + # source://rubocop//lib/rubocop/rspec/cop_helper.rb#88 + def highlights; end + + # source://rubocop//lib/rubocop/rspec/cop_helper.rb#84 + def messages; end + # Returns the value of attribute offenses. # # source://rubocop//lib/rubocop/cop/cop.rb#12 @@ -56293,6 +56339,303 @@ end # source://rubocop//lib/rubocop/ast_aliases.rb#6 RuboCop::ProcessedSource = RuboCop::AST::ProcessedSource +# source://rubocop//lib/rubocop/rspec/expect_offense.rb#4 +module RuboCop::RSpec; end + +# Mixin for `expect_offense` and `expect_no_offenses` +# +# This mixin makes it easier to specify strict offense expectations +# in a declarative and visual fashion. Just type out the code that +# should generate an offense, annotate code by writing '^'s +# underneath each character that should be highlighted, and follow +# the carets with a string (separated by a space) that is the +# message of the offense. You can include multiple offenses in +# one code snippet. +# +# Autocorrection can be tested using `expect_correction` after +# `expect_offense`. +# +# If you do not want to specify an offense then use the +# companion method `expect_no_offenses`. This method is a much +# simpler assertion since it just inspects the source and checks +# that there were no offenses. The `expect_offense` method has +# to do more work by parsing out lines that contain carets. +# +# If the code produces an offense that could not be autocorrected, you can +# use `expect_no_corrections` after `expect_offense`. +# +# If your code has variables of different lengths, you can use `%{foo}`, +# `^{foo}`, and `_{foo}` to format your template; you can also abbreviate +# offense messages with `[...]`: +# +# %w[raise fail].each do |keyword| +# expect_offense(<<~RUBY, keyword: keyword) +# %{keyword}(RuntimeError, msg) +# ^{keyword}^^^^^^^^^^^^^^^^^^^ Redundant `RuntimeError` argument [...] +# RUBY +# +# %w[has_one has_many].each do |type| +# expect_offense(<<~RUBY, type: type) +# class Book +# %{type} :chapter, foreign_key: 'book_id' +# _{type} ^^^^^^^^^^^^^^^^^^^^^^ Specifying the default [...] +# end +# RUBY +# end +# +# If you need to specify an offense on a blank line, use the empty `^{}` marker: +# +# @example Usage +# +# expect_offense(<<~RUBY) +# a do +# b +# end.c +# ^^^^^ Avoid chaining a method call on a do...end block. +# RUBY +# @example Equivalent assertion without `expect_offense` +# +# inspect_source(<<~RUBY) +# a do +# b +# end.c +# RUBY +# +# expect(cop.offenses.size).to be(1) +# +# offense = cop.offenses.first +# expect(offense.line).to be(3) +# expect(offense.column_range).to be(0...5) +# expect(offense.message).to eql( +# 'Avoid chaining a method call on a do...end block.' +# ) +# @example `expect_offense` and `expect_correction` +# +# expect_offense(<<~RUBY) +# x % 2 == 0 +# ^^^^^^^^^^ Replace with `Integer#even?`. +# RUBY +# +# expect_correction(<<~RUBY) +# x.even? +# RUBY +# @example `expect_offense` and `expect_no_corrections` +# +# expect_offense(<<~RUBY) +# a do +# b +# end.c +# ^^^^^ Avoid chaining a method call on a do...end block. +# RUBY +# +# expect_no_corrections +# @example `^{}` empty line offense +# +# expect_offense(<<~RUBY) +# +# ^{} Missing frozen string literal comment. +# puts 1 +# RUBY +# +# source://rubocop//lib/rubocop/rspec/expect_offense.rb#103 +module RuboCop::RSpec::ExpectOffense + # source://rubocop//lib/rubocop/rspec/expect_offense.rb#130 + def expect_correction(correction, loop: T.unsafe(nil), source: T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/rspec/expect_offense.rb#168 + def expect_no_corrections; end + + # source://rubocop//lib/rubocop/rspec/expect_offense.rb#181 + def expect_no_offenses(source, file = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/rspec/expect_offense.rb#114 + def expect_offense(source, file = T.unsafe(nil), severity: T.unsafe(nil), chomp: T.unsafe(nil), **replacements); end + + # source://rubocop//lib/rubocop/rspec/expect_offense.rb#104 + def format_offense(source, **replacements); end + + # source://rubocop//lib/rubocop/rspec/expect_offense.rb#189 + def parse_annotations(source, raise_error: T.unsafe(nil), **replacements); end + + # source://rubocop//lib/rubocop/rspec/expect_offense.rb#199 + def parse_processed_source(source, file = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/rspec/expect_offense.rb#207 + def set_formatter_options; end +end + +# Parsed representation of code annotated with the `^^^ Message` style +# +# source://rubocop//lib/rubocop/rspec/expect_offense.rb#214 +class RuboCop::RSpec::ExpectOffense::AnnotatedSource + # @note annotations are sorted so that reconstructing the annotation + # text via {#to_s} is deterministic + # @param lines [Array] + # @param annotations [Array<(Integer, String)>] each entry is the annotated line number and the annotation text + # @return [AnnotatedSource] a new instance of AnnotatedSource + # + # source://rubocop//lib/rubocop/rspec/expect_offense.rb#246 + def initialize(lines, annotations); end + + # source://rubocop//lib/rubocop/rspec/expect_offense.rb#251 + def ==(other); end + + # Construct annotated source string (like what we parse) + # + # Reconstruct a deterministic annotated source string. This is + # useful for eliminating semantically irrelevant annotation + # ordering differences. + # + # @example standardization + # source1 = AnnotatedSource.parse(<<-RUBY) + # line1 + # ^ Annotation 1 + # ^^ Annotation 2 + # RUBY + # + # source2 = AnnotatedSource.parse(<<-RUBY) + # line1 + # ^^ Annotation 2 + # ^ Annotation 1 + # RUBY + # + # source1.to_s == source2.to_s # => true + # @return [String] + # + # source://rubocop//lib/rubocop/rspec/expect_offense.rb#293 + def inspect; end + + # Dirty hack: expectations with [...] are rewritten when they match + # This way the diff is clean. + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/rspec/expect_offense.rb#257 + def match_annotations?(other); end + + # Return the plain source code without annotations + # + # @return [String] + # + # source://rubocop//lib/rubocop/rspec/expect_offense.rb#307 + def plain_source; end + + # Construct annotated source string (like what we parse) + # + # Reconstruct a deterministic annotated source string. This is + # useful for eliminating semantically irrelevant annotation + # ordering differences. + # + # @example standardization + # + # source1 = AnnotatedSource.parse(<<-RUBY) + # line1 + # ^ Annotation 1 + # ^^ Annotation 2 + # RUBY + # + # source2 = AnnotatedSource.parse(<<-RUBY) + # line1 + # ^^ Annotation 2 + # ^ Annotation 1 + # RUBY + # + # source1.to_s == source2.to_s # => true + # @return [String] + # + # source://rubocop//lib/rubocop/rspec/expect_offense.rb#293 + def to_s; end + + # Annotate the source code with the RuboCop offenses provided + # + # @param offenses [Array] + # @return [self] + # + # source://rubocop//lib/rubocop/rspec/expect_offense.rb#316 + def with_offense_annotations(offenses); end + + protected + + # Returns the value of attribute annotations. + # + # source://rubocop//lib/rubocop/rspec/expect_offense.rb#331 + def annotations; end + + # Returns the value of attribute lines. + # + # source://rubocop//lib/rubocop/rspec/expect_offense.rb#331 + def lines; end + + class << self + # Separates annotation lines from source lines. Tracks the real + # source line number that each annotation corresponds to. + # + # @param annotated_source [String] string passed to the matchers + # @return [AnnotatedSource] + # + # source://rubocop//lib/rubocop/rspec/expect_offense.rb#224 + def parse(annotated_source); end + end +end + +# source://rubocop//lib/rubocop/rspec/expect_offense.rb#216 +RuboCop::RSpec::ExpectOffense::AnnotatedSource::ABBREV = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/rspec/expect_offense.rb#215 +RuboCop::RSpec::ExpectOffense::AnnotatedSource::ANNOTATION_PATTERN = T.let(T.unsafe(nil), Regexp) + +# RSpec formatter for use with running `rake spec` in parallel. This formatter +# removes much of the noise from RSpec so that only the important information +# will be surfaced by test-queue. +# It also adds metadata to the output in order to more easily find the text +# needed for outputting after the parallel run completes. +# +# source://rubocop//lib/rubocop/rspec/parallel_formatter.rb#13 +class RuboCop::RSpec::ParallelFormatter < ::RSpec::Core::Formatters::BaseTextFormatter + # The BEGIN/END comments are used by `spec_runner.rake` to determine what + # output goes where in the final parallelized output, and should not be + # removed! + # + # source://rubocop//lib/rubocop/rspec/parallel_formatter.rb#22 + def dump_failures(notification); end + + # Don't show pending tests + # + # source://rubocop//lib/rubocop/rspec/parallel_formatter.rb#17 + def dump_pending(*_arg0); end + + # source://rubocop//lib/rubocop/rspec/parallel_formatter.rb#33 + def dump_summary(summary); end + + private + + # source://rubocop//lib/rubocop/rspec/parallel_formatter.rb#53 + def colorize_summary(summary); end + + # source://rubocop//lib/rubocop/rspec/parallel_formatter.rb#40 + def colorizer; end + + # The BEGIN/END comments are used by `spec_runner.rake` to determine what + # output goes where in the final parallelized output, and should not be + # removed! + # + # source://rubocop//lib/rubocop/rspec/parallel_formatter.rb#66 + def output_rerun_commands(summary); end + + # The BEGIN/END comments are used by `spec_runner.rake` to determine what + # output goes where in the final parallelized output, and should not be + # removed! + # + # source://rubocop//lib/rubocop/rspec/parallel_formatter.rb#47 + def output_summary(summary); end + + # source://rubocop//lib/rubocop/rspec/parallel_formatter.rb#85 + def pluralize(*args); end + + # source://rubocop//lib/rubocop/rspec/parallel_formatter.rb#72 + def totals(summary); end +end + # Common methods and behaviors for dealing with remote config files. # # @api private diff --git a/Library/Homebrew/sorbet/rbi/gems/spoom@1.2.4.rbi b/Library/Homebrew/sorbet/rbi/gems/spoom@1.2.4.rbi index 4c8cc4963b1f9..b9e3328903da1 100644 --- a/Library/Homebrew/sorbet/rbi/gems/spoom@1.2.4.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/spoom@1.2.4.rbi @@ -958,7 +958,7 @@ class Spoom::Coverage::D3::ColorPalette < ::T::Struct prop :strong, ::String class << self - # source://sorbet-runtime/0.5.11219/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11222/lib/types/struct.rb#13 def inherited(s); end end end @@ -1298,7 +1298,7 @@ class Spoom::Coverage::Snapshot < ::T::Struct sig { params(obj: T::Hash[::String, T.untyped]).returns(::Spoom::Coverage::Snapshot) } def from_obj(obj); end - # source://sorbet-runtime/0.5.11219/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11222/lib/types/struct.rb#13 def inherited(s); end end end @@ -1450,7 +1450,7 @@ class Spoom::Deadcode::Definition < ::T::Struct def module?; end class << self - # source://sorbet-runtime/0.5.11219/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11222/lib/types/struct.rb#13 def inherited(s); end end end @@ -2343,7 +2343,7 @@ class Spoom::Deadcode::Reference < ::T::Struct def method?; end class << self - # source://sorbet-runtime/0.5.11219/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11222/lib/types/struct.rb#13 def inherited(s); end end end @@ -2593,7 +2593,7 @@ class Spoom::Deadcode::Send < ::T::Struct def each_arg_assoc(&block); end class << self - # source://sorbet-runtime/0.5.11219/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11222/lib/types/struct.rb#13 def inherited(s); end end end @@ -2613,7 +2613,7 @@ class Spoom::ExecResult < ::T::Struct def to_s; end class << self - # source://sorbet-runtime/0.5.11219/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11222/lib/types/struct.rb#13 def inherited(s); end end end @@ -2821,7 +2821,7 @@ class Spoom::FileTree::Node < ::T::Struct def path; end class << self - # source://sorbet-runtime/0.5.11219/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11222/lib/types/struct.rb#13 def inherited(s); end end end @@ -2887,7 +2887,7 @@ class Spoom::Git::Commit < ::T::Struct def timestamp; end class << self - # source://sorbet-runtime/0.5.11219/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11222/lib/types/struct.rb#13 def inherited(s); end # Parse a line formated as `%h %at` into a `Commit` @@ -2999,7 +2999,7 @@ class Spoom::LSP::Diagnostic < ::T::Struct sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Diagnostic) } def from_json(json); end - # source://sorbet-runtime/0.5.11219/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11222/lib/types/struct.rb#13 def inherited(s); end end end @@ -3032,7 +3032,7 @@ class Spoom::LSP::DocumentSymbol < ::T::Struct sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::DocumentSymbol) } def from_json(json); end - # source://sorbet-runtime/0.5.11219/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11222/lib/types/struct.rb#13 def inherited(s); end end end @@ -3090,7 +3090,7 @@ class Spoom::LSP::Hover < ::T::Struct sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Hover) } def from_json(json); end - # source://sorbet-runtime/0.5.11219/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11222/lib/types/struct.rb#13 def inherited(s); end end end @@ -3115,7 +3115,7 @@ class Spoom::LSP::Location < ::T::Struct sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Location) } def from_json(json); end - # source://sorbet-runtime/0.5.11219/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11222/lib/types/struct.rb#13 def inherited(s); end end end @@ -3178,7 +3178,7 @@ class Spoom::LSP::Position < ::T::Struct sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Position) } def from_json(json); end - # source://sorbet-runtime/0.5.11219/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11222/lib/types/struct.rb#13 def inherited(s); end end end @@ -3216,7 +3216,7 @@ class Spoom::LSP::Range < ::T::Struct sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Range) } def from_json(json); end - # source://sorbet-runtime/0.5.11219/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11222/lib/types/struct.rb#13 def inherited(s); end end end @@ -3282,7 +3282,7 @@ class Spoom::LSP::SignatureHelp < ::T::Struct sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::SignatureHelp) } def from_json(json); end - # source://sorbet-runtime/0.5.11219/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11222/lib/types/struct.rb#13 def inherited(s); end end end diff --git a/Library/Homebrew/sorbet/rbi/gems/tapioca@0.12.0.rbi b/Library/Homebrew/sorbet/rbi/gems/tapioca@0.12.0.rbi index 63280ceda9464..4fe9bdd2f4381 100644 --- a/Library/Homebrew/sorbet/rbi/gems/tapioca@0.12.0.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/tapioca@0.12.0.rbi @@ -204,7 +204,7 @@ class RBI::TypedParam < ::T::Struct const :type, ::String class << self - # source://sorbet-runtime/0.5.11219/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11222/lib/types/struct.rb#13 def inherited(s); end end end @@ -1121,7 +1121,7 @@ class Tapioca::ConfigHelper::ConfigError < ::T::Struct const :message_parts, T::Array[::Tapioca::ConfigHelper::ConfigErrorMessagePart] class << self - # source://sorbet-runtime/0.5.11219/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11222/lib/types/struct.rb#13 def inherited(s); end end end @@ -1132,7 +1132,7 @@ class Tapioca::ConfigHelper::ConfigErrorMessagePart < ::T::Struct const :colors, T::Array[::Symbol] class << self - # source://sorbet-runtime/0.5.11219/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11222/lib/types/struct.rb#13 def inherited(s); end end end @@ -2432,7 +2432,7 @@ class Tapioca::Loaders::Loader # @param engine [T.class_of(Rails::Engine)] # @return [Array] # - # source://sorbet-runtime/0.5.11219/lib/types/private/methods/_methods.rb#252 + # source://sorbet-runtime/0.5.11222/lib/types/private/methods/_methods.rb#252 def eager_load_paths(*args, **_arg1, &blk); end # source://tapioca//lib/tapioca/loaders/loader.rb#198 @@ -3340,7 +3340,7 @@ module Tapioca::Static::SymbolLoader # @return [Array] # - # source://sorbet-runtime/0.5.11219/lib/types/private/methods/_methods.rb#252 + # source://sorbet-runtime/0.5.11222/lib/types/private/methods/_methods.rb#252 def engines(*args, **_arg1, &blk); end # source://tapioca//lib/tapioca/static/symbol_loader.rb#82 diff --git a/Library/Homebrew/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi b/Library/Homebrew/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi index f511d4ccea465..1d44a3b556253 100644 --- a/Library/Homebrew/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi @@ -381,7 +381,7 @@ class YARDSorbet::TStructProp < ::T::Struct const :types, T::Array[::String] class << self - # source://sorbet-runtime/0.5.11219/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11222/lib/types/struct.rb#13 def inherited(s); end end end diff --git a/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi b/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi index 575a21888de33..bd13e336c305a 100644 --- a/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi +++ b/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi @@ -3294,27 +3294,6 @@ class Class def json_creatable?(); end end -module CopHelper - def _investigate(cop, processed_source); end - - def autocorrect_source(source, file=T.unsafe(nil)); end - - def autocorrect_source_file(source); end - - def configuration(); end - - def inspect_source(source, file=T.unsafe(nil)); end - - def parse_source(source, file=T.unsafe(nil)); end - - def registry(); end -end - -module CopHelper - extend ::RSpec::Core::SharedContext - extend ::RSpec::Its -end - class Date def infinite?(); end VERSION = ::T.let(nil, ::T.untyped) @@ -3990,6 +3969,7 @@ module Fiddle TYPE_INT32_T = ::T.let(nil, ::T.untyped) TYPE_INT64_T = ::T.let(nil, ::T.untyped) TYPE_INT8_T = ::T.let(nil, ::T.untyped) + TYPE_VARIADIC = ::T.let(nil, ::T.untyped) VERSION = ::T.let(nil, ::T.untyped) WINDOWS = ::T.let(nil, ::T.untyped) end @@ -5069,13 +5049,6 @@ module Homebrew extend ::T::Private::Methods::SingletonMethodHooks end -module HostEnvironmentSimulatorHelper - def in_its_own_process_with(*files); end -end - -module HostEnvironmentSimulatorHelper -end - class IO def beep(); end @@ -5894,8 +5867,6 @@ class Net::HTTP VERSION = ::T.let(nil, ::T.untyped) end -Net::HTTP::ProxyMod = Net::HTTP::ProxyDelta - class Net::HTTPAlreadyReported HAS_BODY = ::T.let(nil, ::T.untyped) end @@ -5903,8 +5874,6 @@ end class Net::HTTPAlreadyReported end -Net::HTTPClientError::EXCEPTION_TYPE = Net::HTTPClientException - Net::HTTPClientErrorCode = Net::HTTPClientError class Net::HTTPEarlyHints @@ -5990,8 +5959,6 @@ Net::HTTPResponseReceiver = Net::HTTPResponse Net::HTTPRetriableCode = Net::HTTPRedirection -Net::HTTPServerError::EXCEPTION_TYPE = Net::HTTPFatalError - Net::HTTPServerErrorCode = Net::HTTPServerError Net::HTTPSession = Net::HTTP @@ -7740,6 +7707,12 @@ module Reline VERSION = ::T.let(nil, ::T.untyped) end +class Reline::ANSI + CAPNAME_KEY_BINDINGS = ::T.let(nil, ::T.untyped) + END_BRACKETED_PASTE = ::T.let(nil, ::T.untyped) + START_BRACKETED_PASTE = ::T.let(nil, ::T.untyped) +end + class Reline::Config KEYSEQ_PATTERN = ::T.let(nil, ::T.untyped) VARIABLE_NAMES = ::T.let(nil, ::T.untyped) @@ -7750,7 +7723,7 @@ class Reline::Core ATTR_READER_NAMES = ::T.let(nil, ::T.untyped) end -Reline::IOGate = Reline::GeneralIO +Reline::IOGate = Reline::ANSI Reline::Key = Struct::Key @@ -8684,12 +8657,6 @@ class RuboCop::Cop::Cask::Variables def variable_assignment(param0); end end -class RuboCop::Cop::Cop - def highlights(); end - - def messages(); end -end - class RuboCop::Cop::FormulaAudit::ComponentsOrder def depends_on_node?(param0=T.unsafe(nil)); end end @@ -8841,56 +8808,6 @@ module RuboCop::Cop::OnSystemConditionalsHelper def on_system_method_call(param0=T.unsafe(nil)); end end -module RuboCop::RSpec::ExpectOffense - def expect_correction(correction, loop: T.unsafe(nil), source: T.unsafe(nil)); end - - def expect_no_corrections(); end - - def expect_no_offenses(source, file=T.unsafe(nil)); end - - def expect_offense(source, file=T.unsafe(nil), severity: T.unsafe(nil), chomp: T.unsafe(nil), **replacements); end - - def format_offense(source, **replacements); end - - def parse_annotations(source, raise_error: T.unsafe(nil), **replacements); end - - def parse_processed_source(source, file=T.unsafe(nil)); end - - def set_formatter_options(); end -end - -class RuboCop::RSpec::ExpectOffense::AnnotatedSource - def ==(other); end - - def annotations(); end - - def initialize(lines, annotations); end - - def lines(); end - - def match_annotations?(other); end - - def plain_source(); end - - def with_offense_annotations(offenses); end - ABBREV = ::T.let(nil, ::T.untyped) - ANNOTATION_PATTERN = ::T.let(nil, ::T.untyped) -end - -class RuboCop::RSpec::ExpectOffense::AnnotatedSource - def self.parse(annotated_source); end -end - -module RuboCop::RSpec::ExpectOffense -end - -class RuboCop::RSpec::ParallelFormatter - def dump_pending(*arg); end -end - -class RuboCop::RSpec::ParallelFormatter -end - class RubyLex def check_code_block(code, tokens=T.unsafe(nil)); end @@ -8972,21 +8889,6 @@ module RubyVM::MJIT def self.resume(); end end -module RubyVM::YJIT -end - -module RubyVM::YJIT - def self.enabled?(); end - - def self.reset_stats!(); end - - def self.runtime_stats(); end - - def self.simulate_oom!(); end - - def self.stats_enabled?(); end -end - class RubyVM def self.keep_script_lines(); end @@ -9068,6 +8970,7 @@ class Socket AF_PUP = ::T.let(nil, ::T.untyped) AF_SIP = ::T.let(nil, ::T.untyped) AF_SYSTEM = ::T.let(nil, ::T.untyped) + AF_VSOCK = ::T.let(nil, ::T.untyped) AI_DEFAULT = ::T.let(nil, ::T.untyped) AI_MASK = ::T.let(nil, ::T.untyped) AI_V4MAPPED_CFG = ::T.let(nil, ::T.untyped) @@ -9090,6 +8993,7 @@ class Socket IPV6_PATHMTU = ::T.let(nil, ::T.untyped) IPV6_RECVPATHMTU = ::T.let(nil, ::T.untyped) IPV6_USE_MIN_MTU = ::T.let(nil, ::T.untyped) + IP_DONTFRAG = ::T.let(nil, ::T.untyped) IP_PORTRANGE = ::T.let(nil, ::T.untyped) IP_RECVDSTADDR = ::T.let(nil, ::T.untyped) IP_RECVIF = ::T.let(nil, ::T.untyped) @@ -9124,6 +9028,7 @@ class Socket PF_RTIP = ::T.let(nil, ::T.untyped) PF_SIP = ::T.let(nil, ::T.untyped) PF_SYSTEM = ::T.let(nil, ::T.untyped) + PF_VSOCK = ::T.let(nil, ::T.untyped) PF_XTP = ::T.let(nil, ::T.untyped) SCM_CREDS = ::T.let(nil, ::T.untyped) SO_DONTTRUNC = ::T.let(nil, ::T.untyped) @@ -9161,6 +9066,7 @@ module Socket::Constants AF_PUP = ::T.let(nil, ::T.untyped) AF_SIP = ::T.let(nil, ::T.untyped) AF_SYSTEM = ::T.let(nil, ::T.untyped) + AF_VSOCK = ::T.let(nil, ::T.untyped) AI_DEFAULT = ::T.let(nil, ::T.untyped) AI_MASK = ::T.let(nil, ::T.untyped) AI_V4MAPPED_CFG = ::T.let(nil, ::T.untyped) @@ -9183,6 +9089,7 @@ module Socket::Constants IPV6_PATHMTU = ::T.let(nil, ::T.untyped) IPV6_RECVPATHMTU = ::T.let(nil, ::T.untyped) IPV6_USE_MIN_MTU = ::T.let(nil, ::T.untyped) + IP_DONTFRAG = ::T.let(nil, ::T.untyped) IP_PORTRANGE = ::T.let(nil, ::T.untyped) IP_RECVDSTADDR = ::T.let(nil, ::T.untyped) IP_RECVIF = ::T.let(nil, ::T.untyped) @@ -9217,6 +9124,7 @@ module Socket::Constants PF_RTIP = ::T.let(nil, ::T.untyped) PF_SIP = ::T.let(nil, ::T.untyped) PF_SYSTEM = ::T.let(nil, ::T.untyped) + PF_VSOCK = ::T.let(nil, ::T.untyped) PF_XTP = ::T.let(nil, ::T.untyped) SCM_CREDS = ::T.let(nil, ::T.untyped) SO_DONTTRUNC = ::T.let(nil, ::T.untyped) diff --git a/Library/Homebrew/sorbet/tapioca/require.rb b/Library/Homebrew/sorbet/tapioca/require.rb index 27fd9ce600f5f..9662f1a998ad2 100644 --- a/Library/Homebrew/sorbet/tapioca/require.rb +++ b/Library/Homebrew/sorbet/tapioca/require.rb @@ -1,11 +1,15 @@ # typed: strict # frozen_string_literal: true -# This should not be made a constant or Tapioca will think it is part of a gem. +# These should not be made constants or Tapioca will think they are part of a gem. dependency_require_map = { "ruby-macho" => "macho", }.freeze +additional_requires_map = { + "rubocop" => ["rubocop/rspec/support"], +}.freeze + # Freeze lockfile Bundler.settings.set_command_option(:frozen, "1") @@ -19,8 +23,8 @@ next if name == "sorbet-static-and-runtime" name = dependency_require_map[name] if dependency_require_map.key?(name) - require name + additional_requires_map[name]&.each { require(_1) } rescue LoadError raise unless name.include?("-")