Skip to content

Commit

Permalink
Merge pull request Homebrew#17069 from Homebrew/dependabot/bundler/Li…
Browse files Browse the repository at this point in the history
…brary/Homebrew/multi-9fd3e7b46a

build(deps): bump sorbet-runtime and sorbet-static-and-runtime in /Library/Homebrew
  • Loading branch information
ZhongRuoyu committed Apr 11, 2024
2 parents cb8271f + bd4026b commit 8083e2d
Show file tree
Hide file tree
Showing 90 changed files with 26 additions and 18 deletions.
18 changes: 9 additions & 9 deletions Library/Homebrew/Gemfile.lock
Expand Up @@ -122,15 +122,15 @@ GEM
simplecov_json_formatter (0.1.4)
simpleidn (0.2.1)
unf (~> 0.1.4)
sorbet (0.5.11338)
sorbet-static (= 0.5.11338)
sorbet-runtime (0.5.11338)
sorbet-static (0.5.11338-aarch64-linux)
sorbet-static (0.5.11338-universal-darwin)
sorbet-static (0.5.11338-x86_64-linux)
sorbet-static-and-runtime (0.5.11338)
sorbet (= 0.5.11338)
sorbet-runtime (= 0.5.11338)
sorbet (0.5.11340)
sorbet-static (= 0.5.11340)
sorbet-runtime (0.5.11340)
sorbet-static (0.5.11340-aarch64-linux)
sorbet-static (0.5.11340-universal-darwin)
sorbet-static (0.5.11340-x86_64-linux)
sorbet-static-and-runtime (0.5.11340)
sorbet (= 0.5.11340)
sorbet-runtime (= 0.5.11340)
spoom (1.3.0)
erubi (>= 1.10.0)
prism (>= 0.19.0)
Expand Down
8 changes: 4 additions & 4 deletions Library/Homebrew/vendor/bundle/bundler/setup.rb
Expand Up @@ -65,7 +65,7 @@ def self.extension_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.11338/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-runtime-0.5.11340/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")
Expand Down Expand Up @@ -100,9 +100,9 @@ def self.extension_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.11338-universal-darwin/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-0.5.11338/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-and-runtime-0.5.11338/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-0.5.11340-universal-darwin/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-0.5.11340/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-and-runtime-0.5.11340/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.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/arm64-darwin-20/#{Gem.extension_api_version}/stackprof-0.2.26")
Expand Down
Expand Up @@ -192,21 +192,25 @@ def <=>(other)
# responds to the `to_str` method. It does not actually call `to_str` however.
#
# See https://ruby-doc.org/core-2.4.0/String.html#method-i-3D-3D
sig {returns(String)}
T::Sig::WithoutRuntime.sig {returns(String)}
def to_str
msg = 'Implicit conversion of Enum instances to strings is not allowed. Call #serialize instead.'
if T::Configuration.legacy_t_enum_migration_mode?
T::Configuration.soft_assert_handler(
msg,
storytime: {class: self.class.name},
storytime: {
class: self.class.name,
caller_location: caller_locations(1..1)&.[](0)&.then {"#{_1.path}:#{_1.lineno}"},
},
)
serialize.to_s
else
raise NoMethodError.new(msg)
end
end

sig {params(other: BasicObject).returns(T::Boolean).checked(:never)}
# WithoutRuntime so that comparison_assertion_failed can assume a constant stack depth
T::Sig::WithoutRuntime.sig {params(other: BasicObject).returns(T::Boolean)}
def ==(other)
case other
when String
Expand All @@ -221,7 +225,8 @@ def ==(other)
end
end

sig {params(other: BasicObject).returns(T::Boolean).checked(:never)}
# WithoutRuntime so that comparison_assertion_failed can assume a constant stack depth
T::Sig::WithoutRuntime.sig {params(other: BasicObject).returns(T::Boolean)}
def ===(other)
case other
when String
Expand All @@ -236,7 +241,9 @@ def ===(other)
end
end

sig {params(method: Symbol, other: T.untyped).void}
# WithoutRuntime so that caller_locations can assume a constant stack depth
# (Otherwise, the first call would be the method with the wrapping, which would have a different stack depth.)
T::Sig::WithoutRuntime.sig {params(method: Symbol, other: T.untyped).void}
private def comparison_assertion_failed(method, other)
T::Configuration.soft_assert_handler(
'Enum to string comparison not allowed. Compare to the Enum instance directly instead. See go/enum-migration',
Expand All @@ -246,6 +253,7 @@ def ===(other)
other: other,
other_class: other.class.name,
method: method,
caller_location: caller_locations(2..2)&.[](0)&.then {"#{_1.path}:#{_1.lineno}"},
}
)
end
Expand Down

0 comments on commit 8083e2d

Please sign in to comment.