summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-14 17:19:39 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-14 17:19:39 +0900
commit336119dfc5e6baae0a936d6feae780a61975479c (patch)
tree1bda64aebbab9a4e20de981f3d7ba04590c5e4fe
parent0a52015da7c4895363e239387e749e4b1f63b198 (diff)
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`.
-rwxr-xr-xtool/extlibs.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/extlibs.rb b/tool/extlibs.rb
index e2605f5a1b..33462ceb1d 100755
--- a/tool/extlibs.rb
+++ b/tool/extlibs.rb
@@ -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)