diff options
| author | Jack Nagel | 2014-07-13 11:17:08 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-13 18:41:14 -0500 |
| commit | ad05dbb8a865bda851a475de92d361a4647b5b49 (patch) | |
| tree | f21524547307868f74813a0aa0fc423494ec591d /Library/Homebrew/bottles.rb | |
| parent | 7372e2285673ae9140ff71c4e71040a8fdb705a0 (diff) | |
| download | homebrew-ad05dbb8a865bda851a475de92d361a4647b5b49.tar.bz2 | |
Inline method that just wraps a constant
Diffstat (limited to 'Library/Homebrew/bottles.rb')
| -rw-r--r-- | Library/Homebrew/bottles.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Library/Homebrew/bottles.rb b/Library/Homebrew/bottles.rb index 5be1615f4..278dc656e 100644 --- a/Library/Homebrew/bottles.rb +++ b/Library/Homebrew/bottles.rb @@ -16,7 +16,7 @@ end def bottle_file_outdated? f, file filename = file.basename.to_s - return unless f.bottle && filename.match(bottle_regex) + return unless f.bottle && filename.match(Pathname::BOTTLE_EXTNAME_RX) bottle_ext = filename[bottle_native_regex, 1] bottle_url_ext = f.bottle.url[bottle_native_regex, 1] @@ -38,10 +38,6 @@ def bottle_native_regex /(\.#{bottle_tag}\.bottle\.(\d+\.)?tar\.gz)$/o end -def bottle_regex - Pathname::BOTTLE_EXTNAME_RX -end - def bottle_url(root_url, filename_options={}) "#{root_url}/#{bottle_filename(filename_options)}" end |
