Handle dashed tags at github.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
arlolra 2010-10-26 23:32:33 -07:00 committed by Adam Vandenberg
parent a305360099
commit 14ebf705ae

View File

@ -113,6 +113,10 @@ class Pathname
%r[github.com/.*/tarball/v?((\d\.)+\d+)$].match to_s
return $1 if $1
# eg. github.com/isaacs/npm/tarball/v0.2.5-1
%r[github.com/.*/tarball/v?((\d\.)+\d+-(\d+))$].match to_s
return $1 if $1
# eg. boost_1_39_0
/((\d+_)+\d+)$/.match stem
return $1.gsub('_', '.') if $1