diff options
| author | Max Howell | 2009-08-30 15:49:38 +0100 |
|---|---|---|
| committer | Max Howell | 2009-08-30 15:49:38 +0100 |
| commit | 11c67fe0b45c1f239d61e5d4ea40f22aeaea4a3f (patch) | |
| tree | ecf3579465cbed3ec6cef8819f669a93aae824fb /Library | |
| parent | a1d31fabad086a4d8ebf07038dc7d54f2d304458 (diff) | |
| download | brew-11c67fe0b45c1f239d61e5d4ea40f22aeaea4a3f.tar.bz2 | |
Ruby 1.9 version style
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/pathname+yeast.rb | 3 | ||||
| -rwxr-xr-x | Library/Homebrew/unittest.rb | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/Library/Homebrew/pathname+yeast.rb b/Library/Homebrew/pathname+yeast.rb index 1c7b9794d..793f8d26f 100644 --- a/Library/Homebrew/pathname+yeast.rb +++ b/Library/Homebrew/pathname+yeast.rb @@ -104,7 +104,8 @@ class Pathname return $1.gsub('_', '.') if $1 # eg. foobar-4.5.1-1 - /-((\d+\.)*\d+-\d+)$/.match stem + # eg. ruby-1.9.1-p243 + /-((\d+\.)*\d\.\d+-p?\d+)$/.match stem return $1 if $1 # eg. foobar-4.5.1 diff --git a/Library/Homebrew/unittest.rb b/Library/Homebrew/unittest.rb index c4d2a118d..f26b0a18d 100755 --- a/Library/Homebrew/unittest.rb +++ b/Library/Homebrew/unittest.rb @@ -318,4 +318,9 @@ class BeerTasting <Test::Unit::TestCase d.mkpath assert_equal '0.1.9', d.version end + + def test_ruby_version_style + f=MockFormula.new 'ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p243.tar.gz' + assert_equal '1.9.1-p243', f.version + end end |
