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:
parent
49bfd88976
commit
29c54b5e03
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue