1
0
Fork 0
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:
Nobuyoshi Nakada 2020-05-14 17:19:39 +09:00
parent 0a52015da7
commit 336119dfc5
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

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