Skip to content

Commit

Permalink
Stripped trailing spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
arsduo committed Nov 18, 2011
1 parent c53ac0f commit 897741e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/rubygems/requirement.rb
Expand Up @@ -46,9 +46,9 @@ class Gem::Requirement

quoted = OPS.keys.map { |k| Regexp.quote k }.join "|"
PATTERN = /\A\s*(#{quoted})?\s*(#{Gem::Version::VERSION_PATTERN})\s*\z/

class IllformedRequirementError < ArgumentError; end

##
# Factory method to create a Gem::Requirement object. Input may be
# a Version, a String, or nil. Intended to simplify client code.
Expand Down
2 changes: 1 addition & 1 deletion test/rubygems/test_gem_requirement.rb
Expand Up @@ -48,7 +48,7 @@ def test_parse_bad
end

assert_equal 'Illformed requirement [""]', e.message

assert_equal Gem::Requirement::IllformedRequirementError.superclass, ArgumentError
end

Expand Down

0 comments on commit 897741e

Please sign in to comment.