lib/maven/tools/coordinate.rb in maven-tools-1.1.0 vs lib/maven/tools/coordinate.rb in maven-tools-1.1.1

- old
+ new

@@ -148,10 +148,14 @@ val = arg.sub(/>=\s*/, '') ["[#{snapshot_version(val)}", (nil || high)] elsif arg =~ /<=/ val = arg.sub(/<=\s*/, '') [(nil || low), "#{snapshot_version(val)}]"] - # treat '!' the same way as '>' since maven can not describe such range + elsif arg =~ /!=/ + val = arg.sub(/!=\s*/, '') + ["(#{snapshot_version(val)}", (nil || high)] + # treat '!' the same way as '>' since maven can not describe such range + # TODO ensure !1 is a legal rubygems constraint elsif arg =~ /[!>]/ val = arg.sub(/[!>]\s*/, '') ["(#{snapshot_version(val)}", (nil || high)] elsif arg =~ /</ val = arg.sub(/<\s*/, '')