From bd6fb103614d2b7e4f49bf6c6bdfb5e8e769c2c1 Mon Sep 17 00:00:00 2001 From: lukas Date: Fri, 27 Aug 2010 08:42:50 +0200 Subject: Fixed recognition of versions like 'foobar-4.50-beta' in Pathname#version Sphinx currently has a download name 'http://sphinxsearch.com/downloads/sphinx-1.10-beta.tar.gz', which homebrew currently can't correctly identify - with a small change to the regex for 'foobar-4.5.0-beta1' (make that trailing number optional) - it works like a charm. Signed-off-by: David Höppner <0xffea@gmail.com> --- Library/Homebrew/test/test_versions.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library/Homebrew/test') diff --git a/Library/Homebrew/test/test_versions.rb b/Library/Homebrew/test/test_versions.rb index c726d2596..8010cf1c5 100644 --- a/Library/Homebrew/test/test_versions.rb +++ b/Library/Homebrew/test/test_versions.rb @@ -65,6 +65,10 @@ class VersionTests < Test::Unit::TestCase check "http://camaya.net/download/gloox-1.0-beta7.tar.bz2", '1.0-beta7' end + def test_sphinx_beta_style + check 'http://sphinxsearch.com/downloads/sphinx-1.10-beta.tar.gz', '1.10-beta' + end + def test_astyle_verson_style check "http://kent.dl.sourceforge.net/sourceforge/astyle/astyle_1.23_macosx.tar.gz", '1.23' -- cgit v1.2.3