Merge pull request #17673 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.11478
This commit is contained in:
commit
edc827f981
@ -112,15 +112,15 @@ GEM
|
||||
simplecov-html (0.12.3)
|
||||
simplecov_json_formatter (0.1.4)
|
||||
simpleidn (0.2.3)
|
||||
sorbet (0.5.11475)
|
||||
sorbet-static (= 0.5.11475)
|
||||
sorbet-runtime (0.5.11475)
|
||||
sorbet-static (0.5.11475-aarch64-linux)
|
||||
sorbet-static (0.5.11475-universal-darwin)
|
||||
sorbet-static (0.5.11475-x86_64-linux)
|
||||
sorbet-static-and-runtime (0.5.11475)
|
||||
sorbet (= 0.5.11475)
|
||||
sorbet-runtime (= 0.5.11475)
|
||||
sorbet (0.5.11478)
|
||||
sorbet-static (= 0.5.11478)
|
||||
sorbet-runtime (0.5.11478)
|
||||
sorbet-static (0.5.11478-aarch64-linux)
|
||||
sorbet-static (0.5.11478-universal-darwin)
|
||||
sorbet-static (0.5.11478-x86_64-linux)
|
||||
sorbet-static-and-runtime (0.5.11478)
|
||||
sorbet (= 0.5.11478)
|
||||
sorbet-runtime (= 0.5.11478)
|
||||
spoom (1.3.2)
|
||||
erubi (>= 1.10.0)
|
||||
prism (>= 0.19.0)
|
||||
|
||||
@ -67,7 +67,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.8.0/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/parser-3.3.3.0/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.11475/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-runtime-0.5.11478/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/parlour-9.0.0/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/patchelf-1.5.1/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/plist-3.7.1/lib")
|
||||
@ -101,9 +101,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.11475-universal-darwin/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-0.5.11475/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-and-runtime-0.5.11475/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-0.5.11478-universal-darwin/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-0.5.11478/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-and-runtime-0.5.11478/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/thor-1.3.1/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/spoom-1.3.2/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/arm64-darwin-20/#{Gem.extension_api_version}/stackprof-0.2.26")
|
||||
|
||||
@ -273,8 +273,11 @@ class T::Enum
|
||||
|
||||
### Private implementation ###
|
||||
|
||||
UNSET = T.let(Module.new.freeze, Module)
|
||||
private_constant :UNSET
|
||||
|
||||
sig {params(serialized_val: SerializedVal).void}
|
||||
def initialize(serialized_val=nil)
|
||||
def initialize(serialized_val=UNSET)
|
||||
raise 'T::Enum is abstract' if self.class == T::Enum
|
||||
if !self.class.started_initializing?
|
||||
raise "Must instantiate all enum values of #{self.class} inside 'enums do'."
|
||||
@ -300,7 +303,7 @@ class T::Enum
|
||||
sig {params(const_name: Symbol).void}
|
||||
def _bind_name(const_name)
|
||||
@const_name = const_name
|
||||
@serialized_val = const_to_serialized_val(const_name) if @serialized_val.nil?
|
||||
@serialized_val = const_to_serialized_val(const_name) if @serialized_val.equal?(UNSET)
|
||||
freeze
|
||||
end
|
||||
|
||||
@ -261,15 +261,30 @@ 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
|
||||
if error.backtrace_locations
|
||||
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
|
||||
line_num = line_loc.lineno
|
||||
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
|
||||
label = if RUBY_VERSION >= "3.4"
|
||||
# in 'ClassName#__t_props_generated_serialize'"
|
||||
"##{generated_method}'"
|
||||
else
|
||||
# in `__t_props_generated_serialize'"
|
||||
"in `#{generated_method}'"
|
||||
end
|
||||
line_label = error.backtrace.find {|l| l.end_with?(label)}
|
||||
return unless line_label
|
||||
|
||||
line_num = if line_label.start_with?("(eval)")
|
||||
# (eval):13:in ...
|
||||
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 ...
|
||||
line_label.split(':')[2]&.to_i
|
||||
end
|
||||
end
|
||||
return unless line_num
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user