Update Homebrew/homebrew references in comments
Replace `homebrew` with `brew`, `homebrew-core`, or `legacy-homebrew` depending on context.
This commit is contained in:
parent
b449a51ff7
commit
8600b9edf1
@ -169,7 +169,7 @@ class Caveats
|
|||||||
# we readlink because this path probably doesn't exist since caveats
|
# we readlink because this path probably doesn't exist since caveats
|
||||||
# occurs before the link step of installation
|
# occurs before the link step of installation
|
||||||
# Yosemite security measures mildly tighter rules:
|
# Yosemite security measures mildly tighter rules:
|
||||||
# https://github.com/Homebrew/homebrew/issues/33815
|
# https://github.com/Homebrew/legacy-homebrew/issues/33815
|
||||||
if !plist_path.file? || !plist_path.symlink?
|
if !plist_path.file? || !plist_path.symlink?
|
||||||
if f.plist_startup
|
if f.plist_startup
|
||||||
s << "To have launchd start #{f.full_name} now and restart at startup:"
|
s << "To have launchd start #{f.full_name} now and restart at startup:"
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
# --resolve: When a patch fails to apply, leave in progress and allow user to
|
# --resolve: When a patch fails to apply, leave in progress and allow user to
|
||||||
# resolve, instead of aborting
|
# resolve, instead of aborting
|
||||||
# --branch-okay: Do not warn if pulling to a branch besides master (useful for testing)
|
# --branch-okay: Do not warn if pulling to a branch besides master (useful for testing)
|
||||||
# --legacy: Pull legacy formula PR from Homebrew/homebrew
|
# --legacy: Pull legacy formula PR from Homebrew/legacy-homebrew
|
||||||
# (TODO remove it when it's not longer necessary)
|
# (TODO remove it when it's not longer necessary)
|
||||||
|
|
||||||
require "utils"
|
require "utils"
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
# --junit: Generate a JUnit XML test results file.
|
# --junit: Generate a JUnit XML test results file.
|
||||||
# --no-bottle: Run brew install without --build-bottle.
|
# --no-bottle: Run brew install without --build-bottle.
|
||||||
# --keep-old: Run brew bottle --keep-old to build new bottles for a single platform.
|
# --keep-old: Run brew bottle --keep-old to build new bottles for a single platform.
|
||||||
# --legacy Build formula from legacy Homebrew/homebrew repo.
|
# --legacy Build formula from legacy Homebrew/legacy-homebrew repo.
|
||||||
# (TODO remove it when it's not longer necessary)
|
# (TODO remove it when it's not longer necessary)
|
||||||
# --HEAD: Run brew install with --HEAD.
|
# --HEAD: Run brew install with --HEAD.
|
||||||
# --local: Ask Homebrew to write verbose logs under ./logs/ and set HOME to ./home/.
|
# --local: Ask Homebrew to write verbose logs under ./logs/ and set HOME to ./home/.
|
||||||
@ -336,7 +336,7 @@ module Homebrew
|
|||||||
@name = @hash
|
@name = @hash
|
||||||
# Handle a URL being passed on the command-line or through Jenkins/Travis
|
# Handle a URL being passed on the command-line or through Jenkins/Travis
|
||||||
# environment variables e.g.
|
# environment variables e.g.
|
||||||
# `brew test-bot https://github.com/Homebrew/homebrew/pull/44293`.
|
# `brew test-bot https://github.com/Homebrew/homebrew-core/pull/678`.
|
||||||
elsif @url
|
elsif @url
|
||||||
# TODO: in future Travis CI may need to also use `brew pull` to e.g. push
|
# TODO: in future Travis CI may need to also use `brew pull` to e.g. push
|
||||||
# the right commit to BrewTestBot.
|
# the right commit to BrewTestBot.
|
||||||
|
|||||||
@ -85,7 +85,7 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
############# END HELPERS
|
############# END HELPERS
|
||||||
|
|
||||||
# See https://github.com/Homebrew/homebrew/pull/9986
|
# See https://github.com/Homebrew/legacy-homebrew/pull/9986
|
||||||
def check_path_for_trailing_slashes
|
def check_path_for_trailing_slashes
|
||||||
all_paths = ENV["PATH"].split(File::PATH_SEPARATOR)
|
all_paths = ENV["PATH"].split(File::PATH_SEPARATOR)
|
||||||
bad_paths = all_paths.select { |p| p[-1..-1] == "/" }
|
bad_paths = all_paths.select { |p| p[-1..-1] == "/" }
|
||||||
|
|||||||
@ -25,7 +25,7 @@ require "migrator"
|
|||||||
# @see SharedEnvExtension
|
# @see SharedEnvExtension
|
||||||
# @see FileUtils
|
# @see FileUtils
|
||||||
# @see Pathname
|
# @see Pathname
|
||||||
# @see http://www.rubydoc.info/github/Homebrew/homebrew/file/share/doc/homebrew/Formula-Cookbook.md Formula Cookbook
|
# @see http://www.rubydoc.info/github/Homebrew/brew/file/share/doc/homebrew/Formula-Cookbook.md Formula Cookbook
|
||||||
# @see https://github.com/styleguide/ruby Ruby Style Guide
|
# @see https://github.com/styleguide/ruby Ruby Style Guide
|
||||||
#
|
#
|
||||||
# <pre>class Wget < Formula
|
# <pre>class Wget < Formula
|
||||||
|
|||||||
@ -46,7 +46,7 @@ module Language
|
|||||||
|
|
||||||
def cabal_install(*args)
|
def cabal_install(*args)
|
||||||
# cabal hardcodes 64 as the maximum number of parallel jobs
|
# cabal hardcodes 64 as the maximum number of parallel jobs
|
||||||
# https://github.com/Homebrew/homebrew/issues/49509
|
# https://github.com/Homebrew/legacy-homebrew/issues/49509
|
||||||
make_jobs = ENV.make_jobs > 64 ? 64 : ENV.make_jobs
|
make_jobs = ENV.make_jobs > 64 ? 64 : ENV.make_jobs
|
||||||
|
|
||||||
# cabal-install's dependency-resolution backtracking strategy can easily
|
# cabal-install's dependency-resolution backtracking strategy can easily
|
||||||
|
|||||||
@ -97,7 +97,7 @@ module OS
|
|||||||
# named after a newer OS version than the running OS. The
|
# named after a newer OS version than the running OS. The
|
||||||
# MACOSX_DEPLOYMENT_TARGET must be set to the OS for which you're
|
# MACOSX_DEPLOYMENT_TARGET must be set to the OS for which you're
|
||||||
# actually building (usually the running OS version).
|
# actually building (usually the running OS version).
|
||||||
# https://github.com/Homebrew/homebrew/pull/50355
|
# https://github.com/Homebrew/legacy-homebrew/pull/50355
|
||||||
# https://developer.apple.com/library/ios/documentation/DeveloperTools/Conceptual/WhatsNewXcode/Articles/Introduction.html#//apple_ref/doc/uid/TP40004626
|
# https://developer.apple.com/library/ios/documentation/DeveloperTools/Conceptual/WhatsNewXcode/Articles/Introduction.html#//apple_ref/doc/uid/TP40004626
|
||||||
# Section "About SDKs and Simulator"
|
# Section "About SDKs and Simulator"
|
||||||
# b) For Xcode < 7, proceed as if the SDK for the running OS version had
|
# b) For Xcode < 7, proceed as if the SDK for the running OS version had
|
||||||
@ -205,9 +205,9 @@ module OS
|
|||||||
end
|
end
|
||||||
|
|
||||||
# See these issues for some history:
|
# See these issues for some history:
|
||||||
# https://github.com/Homebrew/homebrew/issues/13
|
# https://github.com/Homebrew/legacy-homebrew/issues/13
|
||||||
# https://github.com/Homebrew/homebrew/issues/41
|
# https://github.com/Homebrew/legacy-homebrew/issues/41
|
||||||
# https://github.com/Homebrew/homebrew/issues/48
|
# https://github.com/Homebrew/legacy-homebrew/issues/48
|
||||||
def macports_or_fink
|
def macports_or_fink
|
||||||
paths = []
|
paths = []
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@ gem "rake", "~> 10.3"
|
|||||||
# This is a patched version of the v0.11.2. Switch back to the stable version
|
# This is a patched version of the v0.11.2. Switch back to the stable version
|
||||||
# when #436 has been merged upstream.
|
# when #436 has been merged upstream.
|
||||||
# https://github.com/colszowka/simplecov/pull/436
|
# https://github.com/colszowka/simplecov/pull/436
|
||||||
# See also https://github.com/Homebrew/homebrew/pull/48250#issuecomment-173171990
|
# See also https://github.com/Homebrew/legacy-homebrew/pull/48250#issuecomment-173171990
|
||||||
gem "simplecov", "0.11.2",
|
gem "simplecov", "0.11.2",
|
||||||
:git => "https://github.com/Homebrew/simplecov.git",
|
:git => "https://github.com/Homebrew/simplecov.git",
|
||||||
:branch => "tracked-files-root-fix",
|
:branch => "tracked-files-root-fix",
|
||||||
|
|||||||
@ -318,7 +318,7 @@ class FormulaAuditorTests < Homebrew::TestCase
|
|||||||
assert_equal [], fa.problems
|
assert_equal [], fa.problems
|
||||||
end
|
end
|
||||||
|
|
||||||
# Regression test for https://github.com/Homebrew/homebrew/pull/48744
|
# Regression test for https://github.com/Homebrew/legacy-homebrew/pull/48744
|
||||||
# Formulae with "++" in their name would break various audit regexps:
|
# Formulae with "++" in their name would break various audit regexps:
|
||||||
# Error: nested *?+ in regexp: /^libxml++3\s/
|
# Error: nested *?+ in regexp: /^libxml++3\s/
|
||||||
def test_audit_plus_plus_name
|
def test_audit_plus_plus_name
|
||||||
|
|||||||
@ -170,7 +170,7 @@ class IntegrationCommandTests < Homebrew::TestCase
|
|||||||
end
|
end
|
||||||
EOS
|
EOS
|
||||||
# `brew bottle` should not fail with dead symlink
|
# `brew bottle` should not fail with dead symlink
|
||||||
# https://github.com/Homebrew/homebrew/issues/49007
|
# https://github.com/Homebrew/legacy-homebrew/issues/49007
|
||||||
(HOMEBREW_CELLAR/"testball/0.1").cd do
|
(HOMEBREW_CELLAR/"testball/0.1").cd do
|
||||||
FileUtils.ln_s "not-exist", "symlink"
|
FileUtils.ln_s "not-exist", "symlink"
|
||||||
end
|
end
|
||||||
|
|||||||
@ -103,7 +103,7 @@ class UtilTests < Homebrew::TestCase
|
|||||||
|
|
||||||
def test_which_skip_malformed_path
|
def test_which_skip_malformed_path
|
||||||
# 'which' should not fail if a path is malformed
|
# 'which' should not fail if a path is malformed
|
||||||
# see https://github.com/Homebrew/homebrew/issues/32789 for an example
|
# see https://github.com/Homebrew/legacy-homebrew/issues/32789 for an example
|
||||||
cmd = @dir/"foo"
|
cmd = @dir/"foo"
|
||||||
FileUtils.touch cmd
|
FileUtils.touch cmd
|
||||||
cmd.chmod 0744
|
cmd.chmod 0744
|
||||||
|
|||||||
@ -399,7 +399,7 @@ def which(cmd, path = ENV["PATH"])
|
|||||||
pcmd = File.expand_path(cmd, p)
|
pcmd = File.expand_path(cmd, p)
|
||||||
rescue ArgumentError
|
rescue ArgumentError
|
||||||
# File.expand_path will raise an ArgumentError if the path is malformed.
|
# File.expand_path will raise an ArgumentError if the path is malformed.
|
||||||
# See https://github.com/Homebrew/homebrew/issues/32789
|
# See https://github.com/Homebrew/legacy-homebrew/issues/32789
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
return Pathname.new(pcmd) if File.file?(pcmd) && File.executable?(pcmd)
|
return Pathname.new(pcmd) if File.file?(pcmd) && File.executable?(pcmd)
|
||||||
@ -413,7 +413,7 @@ def which_all(cmd, path = ENV["PATH"])
|
|||||||
pcmd = File.expand_path(cmd, p)
|
pcmd = File.expand_path(cmd, p)
|
||||||
rescue ArgumentError
|
rescue ArgumentError
|
||||||
# File.expand_path will raise an ArgumentError if the path is malformed.
|
# File.expand_path will raise an ArgumentError if the path is malformed.
|
||||||
# See https://github.com/Homebrew/homebrew/issues/32789
|
# See https://github.com/Homebrew/legacy-homebrew/issues/32789
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
Pathname.new(pcmd) if File.file?(pcmd) && File.executable?(pcmd)
|
Pathname.new(pcmd) if File.file?(pcmd) && File.executable?(pcmd)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user