diff options
| author | Max Howell | 2012-01-14 03:46:25 +0000 |
|---|---|---|
| committer | Max Howell | 2012-01-14 03:48:03 +0000 |
| commit | 14d7d03425a80fd226cb7e7584e840fbf18bd499 (patch) | |
| tree | 03b5a76a633115b7c6aa90b79b4b02c774a54d35 /Library | |
| parent | 9056c49f9dfc1fb343a0afd718c7957095bea400 (diff) | |
| download | homebrew-14d7d03425a80fd226cb7e7584e840fbf18bd499.tar.bz2 | |
Fix libinet version detection
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/libnet.rb | 1 | ||||
| -rw-r--r-- | Library/Homebrew/extend/pathname.rb | 4 | ||||
| -rw-r--r-- | Library/Homebrew/test/test_versions.rb | 4 |
3 files changed, 8 insertions, 1 deletions
diff --git a/Library/Formula/libnet.rb b/Library/Formula/libnet.rb index 8f95b2f16..3ac4928f8 100644 --- a/Library/Formula/libnet.rb +++ b/Library/Formula/libnet.rb @@ -5,7 +5,6 @@ class Libnet < Formula md5 "0cb6c04063c1db37c91af08c76d25134" head 'https://github.com/sam-github/libnet.git' homepage 'https://github.com/sam-github/libnet' - version '1.1.4' def install cd 'libnet' diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index a83ef31af..f7a45ebac 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -117,6 +117,10 @@ class Pathname %r[github.com/.*/(zip|tar)ball/v?((\d\.)+\d+)$].match to_s return $2 if $2 + # eg. https://github.com/sam-github/libnet/tarball/libnet-1.1.4 + %r[github.com/.*/(zip|tar)ball/.*-((\d\.)+\d+)$].match to_s + return $2 if $2 + # dashed version # eg. github.com/isaacs/npm/tarball/v0.2.5-1 %r[github.com/.*/(zip|tar)ball/v?((\d\.)+\d+-(\d+))$].match to_s diff --git a/Library/Homebrew/test/test_versions.rb b/Library/Homebrew/test/test_versions.rb index 5714c4b66..a86fb46fa 100644 --- a/Library/Homebrew/test/test_versions.rb +++ b/Library/Homebrew/test/test_versions.rb @@ -61,6 +61,10 @@ class VersionTests < Test::Unit::TestCase '9.04' end + def test_new_github_style + check "https://github.com/sam-github/libnet/tarball/libnet-1.1.4", "1.1.4" + end + def test_gloox_beta_style check "http://camaya.net/download/gloox-1.0-beta7.tar.bz2", '1.0-beta7' end |
