From 79ed2c6e61859e20ea06d906f2ebb6df2fb7b8a4 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sat, 28 Dec 2024 15:52:04 -0500 Subject: [PATCH] chore: fix typos Signed-off-by: Rui Chen --- Library/Homebrew/rubocops/cask/no_overrides.rb | 4 ++-- Library/Homebrew/rubocops/caveats.rb | 2 +- Library/Homebrew/test/cask/cask_loader_spec.rb | 2 +- .../Homebrew/test/support/helper/cmd/brew-verify-undefined.rb | 2 +- Library/Homebrew/test/utils/ruby_check_version_script_spec.rb | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Library/Homebrew/rubocops/cask/no_overrides.rb b/Library/Homebrew/rubocops/cask/no_overrides.rb index 294091927e835..382de678781b1 100644 --- a/Library/Homebrew/rubocops/cask/no_overrides.rb +++ b/Library/Homebrew/rubocops/cask/no_overrides.rb @@ -9,7 +9,7 @@ class NoOverrides < Base # These stanzas can be overridden by `on_*` blocks, so take them into account. # TODO: Update this list if new stanzas are added to `Cask::DSL` that call `set_unique_stanza`. - OVERRIDEABLE_METHODS = [ + OVERRIDABLE_METHODS = [ :appcast, :arch, :auto_updates, :conflicts_with, :container, :desc, :homepage, :sha256, :url, :version ].freeze @@ -26,7 +26,7 @@ def on_cask(cask_block) cask_stanzas.each do |stanza| # Skip if the stanza is not allowed to be overridden. - next unless OVERRIDEABLE_METHODS.include?(stanza.stanza_name) + next unless OVERRIDABLE_METHODS.include?(stanza.stanza_name) # Skip if the stanza outside of a block is not also in an `on_*` block. next unless stanzas_in_blocks.include?(stanza.stanza_name) diff --git a/Library/Homebrew/rubocops/caveats.rb b/Library/Homebrew/rubocops/caveats.rb index b4045c604890e..99ae5b826b643 100644 --- a/Library/Homebrew/rubocops/caveats.rb +++ b/Library/Homebrew/rubocops/caveats.rb @@ -14,7 +14,7 @@ module FormulaAudit # # bad # def caveats # <<~EOS - # Use `setuid` to allow running the exeutable by non-root users. + # Use `setuid` to allow running the executable by non-root users. # EOS # end # diff --git a/Library/Homebrew/test/cask/cask_loader_spec.rb b/Library/Homebrew/test/cask/cask_loader_spec.rb index 8d86856f16535..4c18828c9e8a5 100644 --- a/Library/Homebrew/test/cask/cask_loader_spec.rb +++ b/Library/Homebrew/test/cask/cask_loader_spec.rb @@ -83,7 +83,7 @@ end context "to a cask in an other tap" do - # Can't use local-caffeine. It is a fixture in the :core_cask_tap and would take precendence over :new_tap. + # Can't use local-caffeine. It is a fixture in the :core_cask_tap and would take precedence over :new_tap. let(:token) { "some-cask" } let(:old_tap) { Tap.fetch("homebrew", "foo") } diff --git a/Library/Homebrew/test/support/helper/cmd/brew-verify-undefined.rb b/Library/Homebrew/test/support/helper/cmd/brew-verify-undefined.rb index 2939e93e02771..0596fd1f8af49 100755 --- a/Library/Homebrew/test/support/helper/cmd/brew-verify-undefined.rb +++ b/Library/Homebrew/test/support/helper/cmd/brew-verify-undefined.rb @@ -65,7 +65,7 @@ class VerifyUndefined < AbstractCommand Verifies that the following constants have not been defined at startup to make sure that startup times stay consistent. - Contants: + Constants: #{UNDEFINED_CONSTANTS.join("\n")} EOS end diff --git a/Library/Homebrew/test/utils/ruby_check_version_script_spec.rb b/Library/Homebrew/test/utils/ruby_check_version_script_spec.rb index 5f6786be09699..37c1f80ff0fe2 100644 --- a/Library/Homebrew/test/utils/ruby_check_version_script_spec.rb +++ b/Library/Homebrew/test/utils/ruby_check_version_script_spec.rb @@ -22,7 +22,7 @@ it { is_expected.to be true } end - describe "succeeds on newer mismatched major/minor required Ruby version and configurated environment" do + describe "succeeds on newer mismatched major/minor required Ruby version and configured environment" do let(:required_ruby_version) { "2.0.0" } before do