Also find versions in zipballs
This commit is contained in:
parent
04b90610a3
commit
f7c7fae0ed
@ -114,18 +114,18 @@ class Pathname
|
|||||||
end
|
end
|
||||||
|
|
||||||
# github tarballs, like v1.2.3
|
# github tarballs, like v1.2.3
|
||||||
%r[github.com/.*/tarball/v?((\d\.)+\d+)$].match to_s
|
%r[github.com/.*/(zip|tar)ball/v?((\d\.)+\d+)$].match to_s
|
||||||
return $1 if $1
|
return $2 if $2
|
||||||
|
|
||||||
# dashed version
|
# dashed version
|
||||||
# eg. github.com/isaacs/npm/tarball/v0.2.5-1
|
# eg. github.com/isaacs/npm/tarball/v0.2.5-1
|
||||||
%r[github.com/.*/tarball/v?((\d\.)+\d+-(\d+))$].match to_s
|
%r[github.com/.*/(zip|tar)ball/v?((\d\.)+\d+-(\d+))$].match to_s
|
||||||
return $1 if $1
|
return $2 if $2
|
||||||
|
|
||||||
# underscore version
|
# underscore version
|
||||||
# eg. github.com/petdance/ack/tarball/1.93_02
|
# eg. github.com/petdance/ack/tarball/1.93_02
|
||||||
%r[github.com/.*/tarball/v?((\d\.)+\d+_(\d+))$].match to_s
|
%r[github.com/.*/(zip|tar)ball/v?((\d\.)+\d+_(\d+))$].match to_s
|
||||||
return $1 if $1
|
return $2 if $2
|
||||||
|
|
||||||
# eg. boost_1_39_0
|
# eg. boost_1_39_0
|
||||||
/((\d+_)+\d+)$/.match stem
|
/((\d+_)+\d+)$/.match stem
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user