mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
extlibs.rb: fixed Downloader.cache_file call and return value
`cache_dir` is an optinal argument but not a keyword argument, and the return value is a `Pathname`.
This commit is contained in:
parent
0a52015da7
commit
336119dfc5
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ class ExtLibs
|
|||
end
|
||||
|
||||
def cache_file(url, cache_dir)
|
||||
Downloader.cache_file(url, nil, :cache_dir => cache_dir)
|
||||
Downloader.cache_file(url, nil, cache_dir).to_path
|
||||
end
|
||||
|
||||
def do_download(url, cache_dir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue