aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorarlolra2010-10-26 23:32:33 -0700
committerAdam Vandenberg2010-10-28 21:19:42 -0700
commit314c54ff3efd708a2d454fa3d5dc9f849235d21c (patch)
tree6db8b30e6880bd21f7b73085512759f26cd5ad7c /Library
parent6beef1da5db6c01feb1e9568aca7d7cb403addff (diff)
downloadhomebrew-314c54ff3efd708a2d454fa3d5dc9f849235d21c.tar.bz2
Handle dashed tags at github.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/pathname.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index 8d81861ec..0982a6f33 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -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