Skip to content

Commit

Permalink
vale
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Apr 30, 2024
1 parent 7681821 commit 86579c9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Library/Homebrew/dev-cmd/tests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Tests < AbstractCommand
description: "Include tests that use the GitHub API and tests that use any of the taps for " \
"official external commands."
switch "--debug",
description: "Enable debugging using ruby/debug, or surface the standard `odebug` output."
description: "Enable debugging using `ruby/debug`, or surface the standard `odebug` output."
switch "--changed",
description: "Only runs tests on files that were changed from the master branch."
switch "--fail-fast",
Expand Down
6 changes: 3 additions & 3 deletions Library/Homebrew/software_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -621,11 +621,11 @@ def tag_specification_for(tag, no_older_versions: false)
def checksums
tags = collector.tags.sort_by do |tag|
version = tag.to_macos_version
# Give arm64 bottles a higher priority so they are first
priority = (tag.arch == :arm64) ? "2" : "1"
# Give `arm64` bottles a higher priority so they are first.
priority = (tag.arch == :arm64) ? 2 : 1
"#{priority}.#{version}_#{tag}"
rescue MacOSVersion::Error
# Sort non-MacOS tags below MacOS tags.
# Sort non-macOS tags below macOS tags.
"0.#{tag}"
end
tags.reverse.map do |tag|
Expand Down
2 changes: 1 addition & 1 deletion docs/Manpage.md
Original file line number Diff line number Diff line change
Expand Up @@ -2680,7 +2680,7 @@ Run Homebrew's unit and integration tests.

`--debug`

: Enable debugging using ruby/debug, or surface the standard `odebug` output.
: Enable debugging using `ruby/debug`, or surface the standard `odebug` output.

`--changed`

Expand Down
2 changes: 1 addition & 1 deletion docs/vale-styles/Homebrew/Terms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ swap:
'(?<!How to Open a Homebrew )Pull Request': pull request
Rubocop: RuboCop
'(?<!^\{.*)MacOS': macOS # FIXME: https://github.com/errata-ai/vale/issues/818
'(?<!^\{.*|^#!)ruby': Ruby # FIXME: https://github.com/errata-ai/vale/issues/818
'(?<!^\{.*|^!/)ruby': Ruby # FIXME: https://github.com/errata-ai/vale/issues/818

0 comments on commit 86579c9

Please sign in to comment.