Skip to content

Commit

Permalink
Merge pull request Homebrew#16473 from p-linnane/fix-various-typos
Browse files Browse the repository at this point in the history
various: fix miscellaneous typos
  • Loading branch information
MikeMcQuaid authored Jan 12, 2024
2 parents a9d0078 + 3fdba53 commit 302e83e
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion Library/Homebrew/cmd/deps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def self.deps_args
If any version of each formula argument is installed and no other options
are passed, this command displays their actual runtime dependencies (similar
to `brew linkage`), which may differ from the current versons' stated
to `brew linkage`), which may differ from the current versions' stated
dependencies if the installed versions are outdated.
*Note:* `--missing` and `--skip-recommended` have precedence over `--include-*`.
Expand Down
4 changes: 2 additions & 2 deletions Library/Homebrew/rubocops/cask/discontinued.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Discontinued < Base
def on_cask_stanza_block(stanza_block)
stanza_block.stanzas.select(&:caveats?).each do |stanza|
find_discontinued_method_call(stanza.stanza_node) do |node|
if caveats_constains_only_discontinued?(node.parent)
if caveats_contains_only_discontinued?(node.parent)
add_offense(node.parent, message: MESSAGE) do |corrector|
corrector.replace(node.parent.source_range,
"deprecate! date: \"#{Date.today}\", because: :discontinued")
Expand All @@ -26,7 +26,7 @@ def on_cask_stanza_block(stanza_block)
end
end

def_node_matcher :caveats_constains_only_discontinued?, <<~EOS
def_node_matcher :caveats_contains_only_discontinued?, <<~EOS
(block
(send nil? :caveats)
(args)
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/rubocops/cask/discontinued.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module RuboCop
block: T.nilable(T.proc.params(node: RuboCop::AST::SendNode).void),
).returns(T::Boolean)
}
def caveats_constains_only_discontinued?(base_node, &block); end
def caveats_contains_only_discontinued?(base_node, &block); end

sig {
params(
Expand Down
4 changes: 2 additions & 2 deletions Library/Homebrew/tap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ def self.formula_files_by_name(tap)
sig { returns(T::Hash[String, Pathname]) }
def formula_files_by_name
formula_files.each_with_object({}) do |file, hash|
# If there's more than one file with the same basename: use the longer one to prioritise more specifc results.
# If there's more than one file with the same basename: use the longer one to prioritise more specific results.
basename = file.basename(".rb").to_s
existing_file = hash[basename]
hash[basename] = file if existing_file.nil? || existing_file.to_s.length < file.to_s.length
Expand Down Expand Up @@ -600,7 +600,7 @@ def self.cask_files_by_name(tap)
sig { returns(T::Hash[String, Pathname]) }
def cask_files_by_name
cask_files.each_with_object({}) do |file, hash|
# If there's more than one file with the same basename: use the longer one to prioritise more specifc results.
# If there's more than one file with the same basename: use the longer one to prioritise more specific results.
basename = file.basename(".rb").to_s
existing_file = hash[basename]
hash[basename] = file if existing_file.nil? || existing_file.to_s.length < file.to_s.length
Expand Down
2 changes: 1 addition & 1 deletion docs/Manpage.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ shows all required and recommended dependencies.

If any version of each formula argument is installed and no other options
are passed, this command displays their actual runtime dependencies (similar
to `brew linkage`), which may differ from the current versons' stated
to `brew linkage`), which may differ from the current versions' stated
dependencies if the installed versions are outdated.

*Note:* `--missing` and `--skip-recommended` have precedence over `--include-*`.
Expand Down
2 changes: 1 addition & 1 deletion manpages/brew.1
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ Show Homebrew and system configuration info useful for debugging\. If you file a
Show dependencies for \fIformula\fR\. When given multiple formula arguments, show the intersection of dependencies for each formula\. By default, \fBdeps\fR shows all required and recommended dependencies\.
.
.P
If any version of each formula argument is installed and no other options are passed, this command displays their actual runtime dependencies (similar to \fBbrew linkage\fR), which may differ from the current versons\' stated dependencies if the installed versions are outdated\.
If any version of each formula argument is installed and no other options are passed, this command displays their actual runtime dependencies (similar to \fBbrew linkage\fR), which may differ from the current versions\' stated dependencies if the installed versions are outdated\.
.
.P
\fINote:\fR \fB\-\-missing\fR and \fB\-\-skip\-recommended\fR have precedence over \fB\-\-include\-*\fR\.
Expand Down

0 comments on commit 302e83e

Please sign in to comment.