brew vendor-gems: commit updates.
This commit is contained in:
parent
04fb3f41b1
commit
85618beb16
@ -148,6 +148,7 @@ GEM
|
||||
|
||||
PLATFORMS
|
||||
aarch64-linux
|
||||
arm-linux
|
||||
arm64-darwin
|
||||
x86_64-darwin
|
||||
x86_64-linux
|
||||
|
||||
@ -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,16 +261,31 @@ 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}'")}
|
||||
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 = line_loc.lineno
|
||||
else
|
||||
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 `__t_props_generated_serialize'
|
||||
# (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 `__t_props_generated_serialize'
|
||||
# (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
|
||||
|
||||
source_lines = self.send(generate_source_method).split("\n")
|
||||
Loading…
x
Reference in New Issue
Block a user