mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-26 19:09:48 -05:00
Fix libinet version detection
This commit is contained in:
1 parent
9056c49f9d
commit
14d7d03425
3 files changed
+8
-1
No files matched your search
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user