[rubygems/rubygems] Fix spelling, it's "cannot" rather than "can not"
https://github.com/rubygems/rubygems/commit/3434f094a2
This commit is contained in:
parent
dc61c7fc7d
commit
b203e667c9
@ -34,7 +34,7 @@ module Bundler
|
|||||||
end
|
end
|
||||||
|
|
||||||
def validate_options!
|
def validate_options!
|
||||||
raise InvalidOption, "You can not specify `--strict` and `--optimistic` at the same time." if options[:strict] && options[:optimistic]
|
raise InvalidOption, "You cannot specify `--strict` and `--optimistic` at the same time." if options[:strict] && options[:optimistic]
|
||||||
|
|
||||||
# raise error when no gems are specified
|
# raise error when no gems are specified
|
||||||
raise InvalidOption, "Please specify gems to add." if gems.empty?
|
raise InvalidOption, "Please specify gems to add." if gems.empty?
|
||||||
|
@ -307,7 +307,7 @@ duplicate dependency on #{dep}, (#{prev.requirement}) use:
|
|||||||
elsif !VALID_NAME_PATTERN.match?(name)
|
elsif !VALID_NAME_PATTERN.match?(name)
|
||||||
error "invalid value for attribute name: #{name.dump} can only include letters, numbers, dashes, and underscores"
|
error "invalid value for attribute name: #{name.dump} can only include letters, numbers, dashes, and underscores"
|
||||||
elsif SPECIAL_CHARACTERS.match?(name)
|
elsif SPECIAL_CHARACTERS.match?(name)
|
||||||
error "invalid value for attribute name: #{name.dump} can not begin with a period, dash, or underscore"
|
error "invalid value for attribute name: #{name.dump} cannot begin with a period, dash, or underscore"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -304,7 +304,7 @@ RSpec.describe "bundle add" do
|
|||||||
it "throws error" do
|
it "throws error" do
|
||||||
bundle "add 'foo' --strict --optimistic", raise_on_error: false
|
bundle "add 'foo' --strict --optimistic", raise_on_error: false
|
||||||
|
|
||||||
expect(err).to include("You can not specify `--strict` and `--optimistic` at the same time")
|
expect(err).to include("You cannot specify `--strict` and `--optimistic` at the same time")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user