Skip to content

Commit

Permalink
Merge pull request #17473 from Homebrew/dependabot/bundler/Library/Ho…
Browse files Browse the repository at this point in the history
…mebrew/sorbet-0.5.11428
  • Loading branch information
p-linnane committed Jun 11, 2024
2 parents b514158 + 99f3579 commit 41a7f2c
Show file tree
Hide file tree
Showing 89 changed files with 19 additions and 19 deletions.
18 changes: 9 additions & 9 deletions Library/Homebrew/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ GEM
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)
simpleidn (0.2.3)
sorbet (0.5.11422)
sorbet-static (= 0.5.11422)
sorbet-runtime (0.5.11422)
sorbet-static (0.5.11422-aarch64-linux)
sorbet-static (0.5.11422-universal-darwin)
sorbet-static (0.5.11422-x86_64-linux)
sorbet-static-and-runtime (0.5.11422)
sorbet (= 0.5.11422)
sorbet-runtime (= 0.5.11422)
sorbet (0.5.11428)
sorbet-static (= 0.5.11428)
sorbet-runtime (0.5.11428)
sorbet-static (0.5.11428-aarch64-linux)
sorbet-static (0.5.11428-universal-darwin)
sorbet-static (0.5.11428-x86_64-linux)
sorbet-static-and-runtime (0.5.11428)
sorbet (= 0.5.11428)
sorbet-runtime (= 0.5.11428)
spoom (1.3.2)
erubi (>= 1.10.0)
prism (>= 0.19.0)
Expand Down
8 changes: 4 additions & 4 deletions Library/Homebrew/vendor/bundle/bundler/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def self.extension_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.2.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.11422/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-runtime-0.5.11428/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")
Expand Down Expand Up @@ -108,9 +108,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.11422-universal-darwin/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-0.5.11422/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-and-runtime-0.5.11422/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-0.5.11428-universal-darwin/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-0.5.11428/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-and-runtime-0.5.11428/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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def reload_decorator!
#
# @return [void]
sig {params(name: Symbol, cls: T.untyped, rules: T.untyped).void}
def prop(name, cls, rules={})
def prop(name, cls, **rules)
cls = T::Utils.coerce(cls) if !cls.is_a?(Module)
decorator.prop_defined(name, cls, rules)
end
Expand All @@ -132,16 +132,16 @@ def plugin(mod)
end

# Shorthand helper to define a `prop` with `immutable => true`
sig {params(name: Symbol, cls_or_args: T.untyped, args: T::Hash[Symbol, T.untyped]).void}
def const(name, cls_or_args, args={})
sig {params(name: Symbol, cls_or_args: T.untyped, args: T.untyped).void}
def const(name, cls_or_args, **args)
if (cls_or_args.is_a?(Hash) && cls_or_args.key?(:immutable)) || args.key?(:immutable)
Kernel.raise ArgumentError.new("Cannot pass 'immutable' argument when using 'const' keyword to define a prop")
end

if cls_or_args.is_a?(Hash)
self.prop(name, cls_or_args.merge(immutable: true))
self.prop(name, **cls_or_args.merge(immutable: true))
else
self.prop(name, cls_or_args, args.merge(immutable: true))
self.prop(name, cls_or_args, **args.merge(immutable: true))
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def initialize(hash={})

# Matches the signature in Props, but raises since this is an immutable struct and only const is allowed
sig {params(name: Symbol, cls: T.untyped, rules: T.untyped).void}
def self.prop(name, cls, rules={})
def self.prop(name, cls, **rules)
return super if (cls.is_a?(Hash) && cls[:immutable]) || rules[:immutable]

raise "Cannot use `prop` in #{self.name} because it is an immutable struct. Use `const` instead"
Expand Down

0 comments on commit 41a7f2c

Please sign in to comment.