diff --git a/lib/rubygems/remote_fetcher.rb b/lib/rubygems/remote_fetcher.rb index fa5ed45622..20ddf471e1 100644 --- a/lib/rubygems/remote_fetcher.rb +++ b/lib/rubygems/remote_fetcher.rb @@ -126,6 +126,7 @@ class Gem::RemoteFetcher gem_file_name = File.basename spec.cache_file local_gem_path = File.join cache_dir, gem_file_name + require "fileutils" FileUtils.mkdir_p cache_dir rescue nil unless File.exist? cache_dir source_uri = parse_uri(source_uri) diff --git a/lib/rubygems/source.rb b/lib/rubygems/source.rb index ba5fb032b3..bed9c51346 100644 --- a/lib/rubygems/source.rb +++ b/lib/rubygems/source.rb @@ -1,5 +1,4 @@ # frozen_string_literal: true -autoload :FileUtils, 'fileutils' require "rubygems/text" ##