diff options
| author | Jack Nagel | 2014-07-13 11:17:08 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-13 18:41:14 -0500 |
| commit | 0323226256e55aab1911d7e5e92bceda86c4069d (patch) | |
| tree | acbf3068ddfe6a503477819b0b20e0406b01c680 | |
| parent | 12fe7e27716acef68ab092635451df592c9138c0 (diff) | |
| download | brew-0323226256e55aab1911d7e5e92bceda86c4069d.tar.bz2 | |
Inline method that just wraps a constant
| -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 |
