Merge pull request #3143 from jsoref/spelling

Spelling
This commit is contained in:
Markus Reiter 2017-09-10 23:11:01 +02:00 committed by GitHub
commit 5bcce735dd
12 changed files with 14 additions and 14 deletions

View File

@ -34,7 +34,7 @@ module Hbc
altnames.concat(%Q("#{altname}"))
altnames = "(#{altnames})"
# Some packges are shipped as u=rx (e.g. Bitcoin Core)
# Some packages are shipped as u=rx (e.g. Bitcoin Core)
@command.run!("/bin/chmod", args: ["--", "u+rw", file, file.realpath])
@command.run!("/usr/bin/xattr",

View File

@ -7,7 +7,7 @@ module Hbc
end
def run
raise CaskError, "Dump incomplete." if dump_casks == :incomplet
raise CaskError, "Dump incomplete." if dump_casks == :incomplete
end
def dump_casks

View File

@ -16,7 +16,7 @@ end
# This formula serves as the base class for several very similar
# formulae for Amazon Web Services related tools.
class AmazonWebServicesFormula < Formula
# Use this method to peform a standard install for Java-based tools,
# Use this method to perform a standard install for Java-based tools,
# keeping the .jars out of HOMEBREW_PREFIX/lib
def install
odeprecated "AmazonWebServicesFormula#install", "Formula#install"

View File

@ -147,7 +147,7 @@ module HomebrewArgvExtension
flag_with_value.strip_prefix(arg_prefix) if flag_with_value
end
# Returns an array of values that were given as a comma-seperated list.
# Returns an array of values that were given as a comma-separated list.
# @see value
def values(name)
return unless val = value(name)

View File

@ -60,7 +60,7 @@ module StringInreplaceExtension
result
end
# Looks for Makefile style variable defintions and replaces the
# Looks for Makefile style variable definitions and replaces the
# value with "new_value", or removes the definition entirely.
def change_make_var!(flag, new_value)
return if gsub!(/^#{Regexp.escape(flag)}[ \t]*=[ \t]*(.*)$/, "#{flag}=#{new_value}", false)

View File

@ -129,8 +129,8 @@ module OS
paths << path if path.exist?
end
# Finally, some users make their MacPorts or Fink directorie
# read-only in order to try out Homebrew, but this doens't work as
# Finally, some users make their MacPorts or Fink directories
# read-only in order to try out Homebrew, but this doesn't work as
# some build scripts error out when trying to read from these now
# unreadable paths.
%w[/sw /opt/local].map { |p| Pathname.new(p) }.each do |path|

View File

@ -31,7 +31,7 @@ describe "Satisfy Dependencies and Requirements", :cask do
it { is_expected.not_to raise_error }
end
context "given a comparisson" do
context "given a comparison" do
let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/with-depends-on-macos-comparison.rb") }
it { is_expected.not_to raise_error }
end

View File

@ -68,7 +68,7 @@ describe Homebrew do
expect(cmds).to include("t1"), "Executable files should be included"
expect(cmds).to include("t2"), "Executable Ruby files should be included"
expect(cmds).not_to include("t3"), "Executable files with a non Ruby extension shoudn't be included"
expect(cmds).not_to include("t3"), "Executable files with a non Ruby extension shouldn't be included"
expect(cmds).not_to include("t4"), "Non-executable files shouldn't be included"
end
end

View File

@ -69,7 +69,7 @@ describe Dependency do
end
end
it "merges dependencies and perserves env_proc" do
it "merges dependencies and preserves env_proc" do
env_proc = double
dep = described_class.new("foo", [], env_proc)
allow(dep).to receive(:to_formula).and_return(double(deps: [], name: "foo"))

View File

@ -295,7 +295,7 @@ describe FileUtils do
let(:dst) { mktmpdir }
describe "#mkdir" do
it "creates indermediate directories" do
it "creates intermediate directories" do
described_class.mkdir dst/"foo/bar/baz" do
expect(dst/"foo/bar/baz").to exist, "foo/bar/baz was not created"
expect(dst/"foo/bar/baz").to be_a_directory, "foo/bar/baz was not a directory structure"

View File

@ -48,7 +48,7 @@ describe Requirement do
it { is_expected.to be_fatal }
end
context "#fatal is ommitted" do
context "#fatal is omitted" do
it { is_expected.not_to be_fatal }
end
end
@ -184,7 +184,7 @@ describe Requirement do
it { is_expected.to have_a_default_formula }
end
context "#default_formula ommitted" do
context "#default_formula omitted" do
it { is_expected.not_to have_a_default_formula }
end
end

View File

@ -2,7 +2,7 @@ require "utils/github"
describe GitHub do
describe "::search_code", :needs_network do
it "queries GitHub code with the passed paramaters" do
it "queries GitHub code with the passed parameters" do
results = subject.search_code(repo: "Homebrew/brew", path: "/",
filename: "readme", language: "markdown")