1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add missing fileutils require

On my system, the error was being hidden by the presence of a YARD
rubygems plugin that was providing the require and making things work.
This commit is contained in:
David Rodríguez 2020-08-28 10:16:21 +02:00 committed by Hiroshi SHIBATA
parent 49bfd88976
commit 29c54b5e03
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -179,7 +179,10 @@ class Gem::Source
local_file = File.join(cache_dir, file_name)
retried = false
FileUtils.mkdir_p cache_dir if update_cache?
if update_cache?
require "fileutils"
FileUtils.mkdir_p cache_dir
end
spec_dump = fetcher.cache_update_path spec_path, local_file, update_cache?