ruby-changes:61255
From: Nobuyoshi <ko1@a...>
Date: Thu, 14 May 2020 17:22:34 +0900 (JST)
Subject: [ruby-changes:61255] 336119dfc5 (master): extlibs.rb: fixed Downloader.cache_file call and return value
https://git.ruby-lang.org/ruby.git/commit/?id=336119dfc5 From 336119dfc5e6baae0a936d6feae780a61975479c Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 14 May 2020 17:19:39 +0900 Subject: 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`. diff --git a/tool/extlibs.rb b/tool/extlibs.rb index e2605f5..33462ce 100755 --- a/tool/extlibs.rb +++ b/tool/extlibs.rb @@ -27,7 +27,7 @@ class ExtLibs https://github.com/ruby/ruby/blob/trunk/tool/extlibs.rb#L27 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) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/