Merge pull request #16756 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-runtime-and-sorbet-static-and-runtime-0.5.11274

build(deps): bump sorbet-runtime and sorbet-static-and-runtime in /Library/Homebrew
This commit is contained in:
Ruoyu Zhong 2024-02-28 03:10:17 +08:00 committed by GitHub
commit b290c7ab42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
90 changed files with 31 additions and 30 deletions

View File

@ -128,15 +128,15 @@ GEM
simplecov_json_formatter (0.1.4)
simpleidn (0.2.1)
unf (~> 0.1.4)
sorbet (0.5.11268)
sorbet-static (= 0.5.11268)
sorbet-runtime (0.5.11268)
sorbet-static (0.5.11268-aarch64-linux)
sorbet-static (0.5.11268-universal-darwin)
sorbet-static (0.5.11268-x86_64-linux)
sorbet-static-and-runtime (0.5.11268)
sorbet (= 0.5.11268)
sorbet-runtime (= 0.5.11268)
sorbet (0.5.11274)
sorbet-static (= 0.5.11274)
sorbet-runtime (0.5.11274)
sorbet-static (0.5.11274-aarch64-linux)
sorbet-static (0.5.11274-universal-darwin)
sorbet-static (0.5.11274-x86_64-linux)
sorbet-static-and-runtime (0.5.11274)
sorbet (= 0.5.11274)
sorbet-runtime (= 0.5.11274)
spoom (1.2.4)
erubi (>= 1.10.0)
sorbet-static-and-runtime (>= 0.5.10187)

View File

@ -66,7 +66,7 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/racc-1.7.3/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/parser-3.3.0.5/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rainbow-3.1.1/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-runtime-0.5.11268/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-runtime-0.5.11274/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/parlour-8.1.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/patchelf-1.5.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/plist-3.7.1/lib")
@ -106,9 +106,9 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/simplecov_json_formatter-0.1.4/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/simplecov-0.22.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/simplecov-cobertura-2.1.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-0.5.11268-universal-darwin/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-0.5.11268/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-and-runtime-0.5.11268/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-0.5.11274-universal-darwin/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-0.5.11274/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-and-runtime-0.5.11274/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/syntax_tree-6.2.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/thor-1.3.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/spoom-1.2.4/lib")

View File

@ -4,7 +4,13 @@
module T::Private::CallerUtils
if Thread.respond_to?(:each_caller_location) # RUBY_VERSION >= "3.2"
def self.find_caller
skiped_first = false
Thread.each_caller_location do |loc|
unless skiped_first
skiped_first = true
next
end
next if loc.path&.start_with?("<internal:")
return loc if yield(loc)

View File

@ -65,7 +65,7 @@ module T::Private::ClassUtils
elsif mod.private_method_defined?(name)
:private
else
raise NameError.new("undefined method `#{name}` for `#{mod}`")
mod.method(name) # Raises
end
end

View File

@ -318,7 +318,7 @@ module T::Private::Methods::CallValidation
elsif mod.private_method_defined?(name)
:private
else
raise NameError.new("undefined method `#{name}` for `#{mod}`")
mod.method(name) # Raises
end
end
end

View File

@ -5,8 +5,8 @@ module T::Private::Sealed
module NoInherit
def inherited(child)
super
caller_loc = T::Private::CallerUtils.find_caller {|loc| !loc.to_s.match(/in `inherited'$/)}
T::Private::Sealed.validate_inheritance(caller_loc&.to_s, self, child, 'inherited')
caller_loc = T::Private::CallerUtils.find_caller {|loc| loc.base_label != 'inherited'}
T::Private::Sealed.validate_inheritance(caller_loc, self, child, 'inherited')
@sorbet_sealed_module_all_subclasses << child
end
@ -23,14 +23,14 @@ module T::Private::Sealed
def included(child)
super
caller_loc = T::Private::CallerUtils.find_caller {|loc| !loc.to_s.match(/in `included'$/)}
T::Private::Sealed.validate_inheritance(caller_loc&.to_s, self, child, 'included')
T::Private::Sealed.validate_inheritance(caller_loc, self, child, 'included')
@sorbet_sealed_module_all_subclasses << child
end
def extended(child)
super
caller_loc = T::Private::CallerUtils.find_caller {|loc| !loc.to_s.match(/in `extended'$/)}
T::Private::Sealed.validate_inheritance(caller_loc&.to_s, self, child, 'extended')
T::Private::Sealed.validate_inheritance(caller_loc, self, child, 'extended')
@sorbet_sealed_module_all_subclasses << child
end
@ -68,8 +68,8 @@ module T::Private::Sealed
mod.instance_variable_defined?(:@sorbet_sealed_module_decl_file)
end
def self.validate_inheritance(this_line, parent, child, verb)
this_file = this_line&.split(':')&.first
def self.validate_inheritance(caller_loc, parent, child, verb)
this_file = caller_loc&.path
decl_file = parent.instance_variable_get(:@sorbet_sealed_module_decl_file) if sealed_module?(parent)
if !this_file

View File

@ -261,16 +261,11 @@ module T::Props::Serializable::DecoratorMethods
end
def message_with_generated_source_context(error, generated_method, generate_source_method)
line_label = error.backtrace.find {|l| l.end_with?("in `#{generated_method}'")}
return unless line_label
generated_method = generated_method.to_s
line_loc = error.backtrace_locations.find {|l| l.base_label == generated_method}
return unless line_loc
line_num = if line_label.start_with?("(eval)")
# (eval):13:in `__t_props_generated_serialize'
line_label.split(':')[1]&.to_i
else
# (eval at /Users/jez/stripe/sorbet/gems/sorbet-runtime/lib/types/props/has_lazily_specialized_methods.rb:65):13:in `__t_props_generated_serialize'
line_label.split(':')[2]&.to_i
end
line_num = line_loc.lineno
return unless line_num
source_lines = self.send(generate_source_method).split("\n")