diff options
| author | Mike McQuaid | 2014-02-22 17:14:51 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-02-22 17:14:51 +0000 |
| commit | ac81d3b0d8a95ff7ea5738655d7dda79d98dcc4d (patch) | |
| tree | 43c2985acc237b96afb827da4e642a0e1a819b5a /Library/Homebrew | |
| parent | a35fb6a19221cd5a130ab72601fef107997305b8 (diff) | |
| download | brew-ac81d3b0d8a95ff7ea5738655d7dda79d98dcc4d.tar.bz2 | |
bottle_version: improve test filenames.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/bottle_version.rb | 6 | ||||
| -rw-r--r-- | Library/Homebrew/test/test_bottle_versions.rb | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/bottle_version.rb b/Library/Homebrew/bottle_version.rb index 0711dc349..38b51005e 100644 --- a/Library/Homebrew/bottle_version.rb +++ b/Library/Homebrew/bottle_version.rb @@ -3,12 +3,12 @@ class BottleVersion < Version spec = Pathname.new(spec) unless spec.is_a? Pathname stem = spec.stem - # e.g. perforce-2013.1.610569-x86_64 + # e.g. perforce-2013.1.610569-x86_64.mountain_lion.bottle.tar.gz m = /-([\d\.]+-x86(_64)?)/.match(stem) return m.captures.first unless m.nil? - # e.g. ssh-copy-id-6.2p2.bottle.tar.gz - # e.g. icu4c-52.1.bottle.tar.gz + # e.g. ssh-copy-id-6.2p2.mountain_lion.bottle.tar.gz + # e.g. icu4c-52.1.mountain_lion.bottle.tar.gz m = /(\d+\.(\d)+(p(\d)+)?)/.match(stem) return m.captures.first unless m.nil? diff --git a/Library/Homebrew/test/test_bottle_versions.rb b/Library/Homebrew/test/test_bottle_versions.rb index 7624f448a..26efb1261 100644 --- a/Library/Homebrew/test/test_bottle_versions.rb +++ b/Library/Homebrew/test/test_bottle_versions.rb @@ -18,6 +18,6 @@ class BottleVersionParsingTests < Test::Unit::TestCase def test_icu4c_style assert_version_detected '52.1', - '/usr/local/icu4c-52.1.bottle.tar.gz' + '/usr/local/icu4c-52.1.mavericks.bottle.tar.gz' end end |
