Fix various typos
This commit is contained in:
parent
9812693be3
commit
7ddc185b35
@ -197,7 +197,7 @@ rescue Exception => e # rubocop:disable Lint/RescueException
|
|||||||
|
|
||||||
# Special case: need to recreate BuildErrors in full
|
# Special case: need to recreate BuildErrors in full
|
||||||
# for proper analytics reporting and error messages.
|
# for proper analytics reporting and error messages.
|
||||||
# BuildErrors are specific to build processses and not other
|
# BuildErrors are specific to build processes and not other
|
||||||
# children, which is why we create the necessary state here
|
# children, which is why we create the necessary state here
|
||||||
# and not in Utils.safe_fork.
|
# and not in Utils.safe_fork.
|
||||||
if error_hash["json_class"] == "BuildError"
|
if error_hash["json_class"] == "BuildError"
|
||||||
|
|||||||
@ -11,7 +11,7 @@ module Homebrew
|
|||||||
def missing_args
|
def missing_args
|
||||||
Homebrew::CLI::Parser.new do
|
Homebrew::CLI::Parser.new do
|
||||||
usage_banner <<~EOS
|
usage_banner <<~EOS
|
||||||
`missing` [<options>] [<formule>]
|
`missing` [<options>] [<formulae>]
|
||||||
|
|
||||||
Check the given <formula> for missing dependencies. If no <formula> are
|
Check the given <formula> for missing dependencies. If no <formula> are
|
||||||
given, check all installed brews.
|
given, check all installed brews.
|
||||||
|
|||||||
@ -71,7 +71,7 @@ module Formulary
|
|||||||
# instead have found the new formula.)
|
# instead have found the new formula.)
|
||||||
#
|
#
|
||||||
# Because of this, the user is referring to this specific formula,
|
# Because of this, the user is referring to this specific formula,
|
||||||
# not any formula targetted by the same alias, so in this context
|
# not any formula targeted by the same alias, so in this context
|
||||||
# the formula shouldn't be considered outdated if the alias used to
|
# the formula shouldn't be considered outdated if the alias used to
|
||||||
# install it has changed.
|
# install it has changed.
|
||||||
f.follow_installed_alias = false
|
f.follow_installed_alias = false
|
||||||
|
|||||||
@ -42,7 +42,7 @@ module OS
|
|||||||
to_sym.to_s.split("_").map(&:capitalize).join(" ")
|
to_sym.to_s.split("_").map(&:capitalize).join(" ")
|
||||||
end
|
end
|
||||||
|
|
||||||
# For OS::Mac::Version compatability
|
# For OS::Mac::Version compatibility
|
||||||
def requires_nehalem_cpu?
|
def requires_nehalem_cpu?
|
||||||
Hardware.oldest_cpu(self) == :nehalem
|
Hardware.oldest_cpu(self) == :nehalem
|
||||||
end
|
end
|
||||||
|
|||||||
@ -381,7 +381,7 @@ class Cmd
|
|||||||
paths.map! { |path| prefix + path }
|
paths.map! { |path| prefix + path }
|
||||||
end
|
end
|
||||||
|
|
||||||
# Unlike path_flags, do not prune non-existant directories.
|
# Unlike path_flags, do not prune non-existent directories.
|
||||||
# formula.lib for example does not yet exist, but should not be pruned.
|
# formula.lib for example does not yet exist, but should not be pruned.
|
||||||
def rpath_flags(prefix, paths)
|
def rpath_flags(prefix, paths)
|
||||||
paths.uniq.map { |path| prefix + path }
|
paths.uniq.map { |path| prefix + path }
|
||||||
|
|||||||
@ -67,7 +67,7 @@ shared_examples EnvActivation do
|
|||||||
expect(subject["foo"]).to eq("1")
|
expect(subject["foo"]).to eq("1")
|
||||||
end
|
end
|
||||||
|
|
||||||
it "appends to a non-existant key" do
|
it "appends to a non-existent key" do
|
||||||
subject.append "foo", "1"
|
subject.append "foo", "1"
|
||||||
expect(subject["foo"]).to eq("1")
|
expect(subject["foo"]).to eq("1")
|
||||||
end
|
end
|
||||||
@ -93,7 +93,7 @@ shared_examples EnvActivation do
|
|||||||
expect(subject["foo"]).to eq("1")
|
expect(subject["foo"]).to eq("1")
|
||||||
end
|
end
|
||||||
|
|
||||||
it "prepends to a non-existant key" do
|
it "prepends to a non-existent key" do
|
||||||
subject.prepend "foo", "1"
|
subject.prepend "foo", "1"
|
||||||
expect(subject["foo"]).to eq("1")
|
expect(subject["foo"]).to eq("1")
|
||||||
end
|
end
|
||||||
|
|||||||
@ -185,7 +185,7 @@ describe Cask::Cask, :cask do
|
|||||||
end
|
end
|
||||||
|
|
||||||
context "when it is from no known tap" do
|
context "when it is from no known tap" do
|
||||||
it "retuns the cask token" do
|
it "returns the cask token" do
|
||||||
file = Tempfile.new(%w[tapless-cask .rb])
|
file = Tempfile.new(%w[tapless-cask .rb])
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
|||||||
@ -23,7 +23,7 @@ describe Cask::Cmd::Edit, :cask do
|
|||||||
}.to raise_error(/Only one Cask can be edited at a time\./)
|
}.to raise_error(/Only one Cask can be edited at a time\./)
|
||||||
end
|
end
|
||||||
|
|
||||||
it "raises an exception when the Cask doesnt exist" do
|
it "raises an exception when the Cask doesn't exist" do
|
||||||
expect {
|
expect {
|
||||||
described_class.run("notacask")
|
described_class.run("notacask")
|
||||||
}.to raise_error(Cask::CaskUnavailableError)
|
}.to raise_error(Cask::CaskUnavailableError)
|
||||||
|
|||||||
@ -21,7 +21,7 @@ describe Cask::Cmd::Outdated, :cask do
|
|||||||
|
|
||||||
it_behaves_like "a command that handles invalid options"
|
it_behaves_like "a command that handles invalid options"
|
||||||
|
|
||||||
describe 'without --greedy it ignores the Casks with "vesion latest" or "auto_updates true"' do
|
describe 'without --greedy it ignores the Casks with "version latest" or "auto_updates true"' do
|
||||||
it "checks all the installed Casks when no token is provided" do
|
it "checks all the installed Casks when no token is provided" do
|
||||||
expect {
|
expect {
|
||||||
described_class.run
|
described_class.run
|
||||||
|
|||||||
@ -21,7 +21,7 @@ describe Formula do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
it "cant override the `brew` method" do
|
it "can't override the `brew` method" do
|
||||||
expect {
|
expect {
|
||||||
formula do
|
formula do
|
||||||
def brew; end
|
def brew; end
|
||||||
|
|||||||
@ -199,7 +199,7 @@ describe StringInreplaceExtension do
|
|||||||
describe "#sub!" do
|
describe "#sub!" do
|
||||||
let(:string) { "foo" }
|
let(:string) { "foo" }
|
||||||
|
|
||||||
it "replaces the first occurence" do
|
it "replaces the first occurrence" do
|
||||||
subject.sub!("o", "e")
|
subject.sub!("o", "e")
|
||||||
expect(subject).to eq("feo")
|
expect(subject).to eq("feo")
|
||||||
end
|
end
|
||||||
@ -208,7 +208,7 @@ describe StringInreplaceExtension do
|
|||||||
describe "#gsub!" do
|
describe "#gsub!" do
|
||||||
let(:string) { "foo" }
|
let(:string) { "foo" }
|
||||||
|
|
||||||
it "replaces the all occurences" do
|
it "replaces all occurrences" do
|
||||||
subject.gsub!("o", "e") # rubocop:disable Performance/StringReplacement
|
subject.gsub!("o", "e") # rubocop:disable Performance/StringReplacement
|
||||||
expect(subject).to eq("fee")
|
expect(subject).to eq("fee")
|
||||||
end
|
end
|
||||||
|
|||||||
@ -38,7 +38,7 @@ describe Resource do
|
|||||||
expect(subject.download_strategy).to eq(GitDownloadStrategy)
|
expect(subject.download_strategy).to eq(GitDownloadStrategy)
|
||||||
end
|
end
|
||||||
|
|
||||||
it "raises an error if the download strategy class is unkown" do
|
it "raises an error if the download strategy class is unknown" do
|
||||||
expect { subject.url("foo", using: Class.new) }.to raise_error(TypeError)
|
expect { subject.url("foo", using: Class.new) }.to raise_error(TypeError)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -307,7 +307,7 @@ describe Tab do
|
|||||||
expect(subject.tabfile).to eq(f_tab_path)
|
expect(subject.tabfile).to eq(f_tab_path)
|
||||||
end
|
end
|
||||||
|
|
||||||
it "can create a Tab for a non-existant Keg" do
|
it "can create a Tab for a non-existent Keg" do
|
||||||
f.prefix.mkpath
|
f.prefix.mkpath
|
||||||
|
|
||||||
expect(subject.tabfile).to eq(f_tab_path)
|
expect(subject.tabfile).to eq(f_tab_path)
|
||||||
@ -336,7 +336,7 @@ describe Tab do
|
|||||||
expect(tab.tabfile).to eq(f_tab_path)
|
expect(tab.tabfile).to eq(f_tab_path)
|
||||||
end
|
end
|
||||||
|
|
||||||
it "can create a Tab for a non-existant Formula" do
|
it "can create a Tab for a non-existent Formula" do
|
||||||
f.prefix.mkpath
|
f.prefix.mkpath
|
||||||
|
|
||||||
tab = described_class.for_formula(f)
|
tab = described_class.for_formula(f)
|
||||||
|
|||||||
@ -28,7 +28,7 @@ class Version
|
|||||||
true
|
true
|
||||||
end
|
end
|
||||||
|
|
||||||
# For OS::Mac::Version compatability
|
# For OS::Mac::Version compatibility
|
||||||
def requires_nehalem_cpu?
|
def requires_nehalem_cpu?
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
|||||||
@ -25,7 +25,7 @@ function __fish_brew_opts -d "Only arguments starting with a dash (options)"
|
|||||||
string match --all -- '-*' (__fish_brew_args)
|
string match --all -- '-*' (__fish_brew_args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# This can be used either to get the first argument or to match it against a given list of commmands
|
# This can be used either to get the first argument or to match it against a given list of commands
|
||||||
#
|
#
|
||||||
# Usage examples (for `completion -n '...'`):
|
# Usage examples (for `completion -n '...'`):
|
||||||
# * `__fish_brew_command` returns the command (first arg of brew) or exits with 1
|
# * `__fish_brew_command` returns the command (first arg of brew) or exits with 1
|
||||||
@ -59,7 +59,7 @@ function __fish_brew_subcommand -a cmd -d "Helps matching the second argument of
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# This can be used to match any given options agains the given list of arguments:
|
# This can be used to match any given option against the given list of arguments:
|
||||||
# * to add condition on interdependent options
|
# * to add condition on interdependent options
|
||||||
# * to ddd condition on mutually exclusive options
|
# * to ddd condition on mutually exclusive options
|
||||||
#
|
#
|
||||||
@ -390,7 +390,7 @@ __fish_brew_complete_arg 'install upgrade' -l keep-tmp -d "Keep temp fi
|
|||||||
__fish_brew_complete_arg 'install upgrade' -l build-bottle -d "Prepare the formula for eventual bottling during installation"
|
__fish_brew_complete_arg 'install upgrade' -l build-bottle -d "Prepare the formula for eventual bottling during installation"
|
||||||
__fish_brew_complete_arg 'install upgrade' -s i -l interactive -d "Download and patch formula, then open a shell"
|
__fish_brew_complete_arg 'install upgrade' -s i -l interactive -d "Download and patch formula, then open a shell"
|
||||||
__fish_brew_complete_arg 'install upgrade; and __fish_brew_opt -i --interactive' -s g -l git -d "Create a Git repository for working on patches"
|
__fish_brew_complete_arg 'install upgrade; and __fish_brew_opt -i --interactive' -s g -l git -d "Create a Git repository for working on patches"
|
||||||
# fomrula installtion options are listed after the formula name:
|
# formula installation options are listed after the formula name:
|
||||||
__fish_brew_complete_arg 'install;
|
__fish_brew_complete_arg 'install;
|
||||||
and [ (count (__fish_brew_args)) -ge 2 ];
|
and [ (count (__fish_brew_args)) -ge 2 ];
|
||||||
and not string match --quiet -- "-*" (__fish_brew_args)[-1]
|
and not string match --quiet -- "-*" (__fish_brew_args)[-1]
|
||||||
|
|||||||
@ -219,7 +219,7 @@ _brew_audit() {
|
|||||||
_arguments \
|
_arguments \
|
||||||
'(--new-formula)--strict[run additional checks including RuboCop style checks]' \
|
'(--new-formula)--strict[run additional checks including RuboCop style checks]' \
|
||||||
'(--new-formula)--online[run slower checks that require a network connection]' \
|
'(--new-formula)--online[run slower checks that require a network connection]' \
|
||||||
'(--online --strict)--new-formula[check if a new formula is eligable for Homebrew. Implies --strict and --online]' \
|
'(--online --strict)--new-formula[check if a new formula is eligible for Homebrew. Implies --strict and --online]' \
|
||||||
'--display-cop-names[include RuboCop cop name for each violation in the output]' \
|
'--display-cop-names[include RuboCop cop name for each violation in the output]' \
|
||||||
'--display-filename[prefix every line of output with the name of the file or formula being audited]' \
|
'--display-filename[prefix every line of output with the name of the file or formula being audited]' \
|
||||||
'*:formula:__brew_formulae'
|
'*:formula:__brew_formulae'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user