Inline method that just wraps a constant

This commit is contained in:
Jack Nagel 2014-07-13 11:17:08 -05:00
parent 12fe7e2771
commit 0323226256

View File

@ -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