Remove default value from bottle_url options parameter
To construct a URL, we need options to pass to bottle_filename, so this method should error out if none are given.
This commit is contained in:
parent
272cb4db26
commit
08891e77b6
@ -34,7 +34,7 @@ def bottle_native_regex
|
|||||||
/(\.#{bottle_tag}\.bottle\.(\d+\.)?tar\.gz)$/o
|
/(\.#{bottle_tag}\.bottle\.(\d+\.)?tar\.gz)$/o
|
||||||
end
|
end
|
||||||
|
|
||||||
def bottle_url(root_url, filename_options={})
|
def bottle_url(root_url, filename_options)
|
||||||
"#{root_url}/#{bottle_filename(filename_options)}"
|
"#{root_url}/#{bottle_filename(filename_options)}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user