From f0f391dcb82b35c195c74e77c45bbe0a0cb5271e Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sat, 8 Aug 2009 14:24:26 +0100 Subject: Support github tagged download versions eg. http://github.com/lloyd/yajl/tarball/1.0.5 --- Library/Homebrew/pathname+yeast.rb | 5 +++++ Library/Homebrew/unittest.rb | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'Library') diff --git a/Library/Homebrew/pathname+yeast.rb b/Library/Homebrew/pathname+yeast.rb index 43c07c5ab..9d515fb81 100644 --- a/Library/Homebrew/pathname+yeast.rb +++ b/Library/Homebrew/pathname+yeast.rb @@ -87,6 +87,11 @@ class Pathname end def version + # github tarballs are special + # we only support numbered tagged downloads + %r[github.com/.*/tarball/((\d\.)+\d)$].match to_s + return $1 if $1 + # eg. boost_1_39_0 /((\d+_)+\d+)$/.match stem return $1.gsub('_', '.') if $1 diff --git a/Library/Homebrew/unittest.rb b/Library/Homebrew/unittest.rb index d4339ebad..bdf383533 100755 --- a/Library/Homebrew/unittest.rb +++ b/Library/Homebrew/unittest.rb @@ -151,6 +151,11 @@ class BeerTasting