lib/maven/tools/coordinate.rb in maven-tools-1.0.0.rc2 vs lib/maven/tools/coordinate.rb in maven-tools-1.0.0.rc3
- old
+ new
@@ -147,10 +147,15 @@
elsif arg =~ /</
val = arg.sub(/<\s*/, '')
[(nil || low), "#{snapshot_version(val)})"]
elsif arg =~ /\=/
val = arg.sub(/=\s*/, '')
- ["[#{snapshot_version(val)}", val + '.0.0.0.0.1)']
+ # for prereleased version pick the maven version (no version range)
+ if val.match /[a-z]|[A-Z]/
+ [ val, val ]
+ else
+ ["[#{val}", "#{val}.0.0.0.0.1)"]
+ end
else
# no conversion here, i.e. assume maven version
[arg, arg]
end
end