Merge pull request #9002 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.6006

build(deps): bump sorbet from 0.5.5949 to 0.5.6006 in /Library/Homebrew
This commit is contained in:
Jonathan Chang 2020-10-29 21:11:28 +11:00 committed by GitHub
commit 447fbc1cfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 23 additions and 3 deletions

View File

@ -123,11 +123,11 @@ GEM
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov-html (0.12.3)
sorbet (0.5.5949)
sorbet-static (= 0.5.5949)
sorbet (0.5.6006)
sorbet-static (= 0.5.6006)
sorbet-runtime (0.5.5973)
sorbet-runtime-stub (0.2.0)
sorbet-static (0.5.5949-universal-darwin-14)
sorbet-static (0.5.6006-universal-darwin-14)
spoom (1.0.4)
colorize
sorbet (~> 0.5.5)

View File

@ -4,6 +4,8 @@
class Cleaner
private
extend T::Sig
sig { params(path: Pathname).returns(T.nilable(T::Boolean)) }
def executable_path?(path)
path.elf? || path.text_executable?
end

View File

@ -2,6 +2,8 @@
# frozen_string_literal: true
module FormulaCellarChecks
extend T::Sig
sig { params(filename: Pathname).returns(T::Boolean) }
def valid_library_extension?(filename)
generic_valid_library_extension?(filename) || filename.basename.to_s.include?(".so.")
end

View File

@ -2,6 +2,8 @@
# frozen_string_literal: true
class BottleSpecification
extend T::Sig
sig { returns(T::Boolean) }
def skip_relocation?
false
end

View File

@ -4,12 +4,15 @@
module Utils
module Analytics
class << self
extend T::Sig
sig { returns(String) }
def formula_path
return generic_formula_path if Homebrew::EnvConfig.force_homebrew_on_linux?
"formula-linux"
end
sig { returns(String) }
def analytics_path
return generic_analytics_path if Homebrew::EnvConfig.force_homebrew_on_linux?

View File

@ -2,6 +2,8 @@
# frozen_string_literal: true
class KegOnlyReason
extend T::Sig
sig { returns(T::Boolean) }
def applicable?
true
end

View File

@ -2,6 +2,8 @@
# frozen_string_literal: true
module Hardware
extend T::Sig
sig { params(version: T.nilable(Version)).returns(Symbol) }
def self.oldest_cpu(version = MacOS.version)
if CPU.arch == :arm64
:arm_vortex_tempest

View File

@ -8,7 +8,10 @@ require "cask/caskroom"
module Homebrew
module MissingFormula
extend T::Sig
class << self
extend T::Sig
sig { params(name: String).returns(T.nilable(String)) }
def disallowed_reason(name)
case name.downcase
when "xcode"
@ -33,12 +36,14 @@ module Homebrew
end
end
sig { params(name: String, silent: T::Boolean, show_info: T::Boolean).returns(T.nilable(String)) }
def cask_reason(name, silent: false, show_info: false)
return if silent
suggest_command(name, show_info ? "info" : "install")
end
sig { params(name: String, command: String).returns(T.nilable(String)) }
def suggest_command(name, command)
suggestion = <<~EOS
Found a cask named "#{name}" instead. Try

View File

@ -4,6 +4,8 @@
module Utils
module Analytics
class << self
extend T::Sig
sig { returns(String) }
def custom_prefix_label
"non-/usr/local"
end