Merge pull request #7238 from Homebrew/dependabot/bundler/Library/Homebrew/unf_ext-0.0.7.7

build: bump unf_ext from 0.0.7.6 to 0.0.7.7 in /Library/Homebrew
This commit is contained in:
Mike McQuaid 2020-03-29 19:36:51 +01:00
commit 8975dfb6ff
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
4 changed files with 6 additions and 6 deletions

View File

@ -111,7 +111,7 @@ GEM
thread_safe (~> 0.1)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.6)
unf_ext (0.0.7.7)
unicode-display_width (1.6.1)
webrobots (0.1.2)
zeitwerk (2.3.0)

View File

@ -154,6 +154,10 @@ module Homebrew
end
end
def build_stable?
!(HEAD? || devel?)
end
private
def downcased_unique_named

View File

@ -292,7 +292,7 @@ module Homebrew
unversioned_name = unversioned_formula.basename(".rb")
problem "#{formula} is versioned but no #{unversioned_name} formula exists"
end
elsif ARGV.build_stable? && formula.stable? &&
elsif Homebrew.args.build_stable? && formula.stable? &&
!(versioned_formulae = formula.versioned_formulae).empty?
versioned_aliases = formula.aliases.grep(/.@\d/)
_, last_alias_version = versioned_formulae.map(&:name).last.split("@")

View File

@ -43,10 +43,6 @@ module HomebrewArgvExtension
include?("--no-sandbox") || !ENV["HOMEBREW_NO_SANDBOX"].nil?
end
def build_stable?
!(include?("--HEAD") || include?("--devel"))
end
def build_bottle?
include?("--build-bottle")
end