aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarlolra2010-10-26 23:32:33 -0700
committerAdam Vandenberg2010-10-28 21:19:42 -0700
commit14ebf705aeb224934326b06cf95f1269f0ceca3c (patch)
tree832b987bb876d150f2f971fbaa25beda5369d275
parenta305360099d5aa973640556653ec0b5be266a792 (diff)
downloadbrew-14ebf705aeb224934326b06cf95f1269f0ceca3c.tar.bz2
Handle dashed tags at github.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-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