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:
parent
49bfd88976
commit
29c54b5e03
@ -179,7 +179,10 @@ class Gem::Source
|
|||||||
local_file = File.join(cache_dir, file_name)
|
local_file = File.join(cache_dir, file_name)
|
||||||
retried = false
|
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?
|
spec_dump = fetcher.cache_update_path spec_path, local_file, update_cache?
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user