[rubygems/rubygems] Fix spelling, it's "cannot" rather than "can not"

https://github.com/rubygems/rubygems/commit/3434f094a2
This commit is contained in:
David Rodríguez 2024-09-17 19:00:54 +02:00 committed by git
parent dc61c7fc7d
commit b203e667c9
3 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ module Bundler
end
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 InvalidOption, "Please specify gems to add." if gems.empty?

View File

@ -307,7 +307,7 @@ duplicate dependency on #{dep}, (#{prev.requirement}) use:
elsif !VALID_NAME_PATTERN.match?(name)
error "invalid value for attribute name: #{name.dump} can only include letters, numbers, dashes, and underscores"
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

View File

@ -304,7 +304,7 @@ RSpec.describe "bundle add" do
it "throws error" do
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