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

[rubygems/rubygems] Remove fileutils autoload

https://github.com/rubygems/rubygems/commit/dca345441f
This commit is contained in:
David Rodríguez 2020-07-02 15:11:18 +02:00 committed by Hiroshi SHIBATA
parent fedaa61b3f
commit fe53e5a9f3
Notes: git 2020-07-31 21:08:10 +09:00
2 changed files with 1 additions and 1 deletions

View file

@ -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)

View file

@ -1,5 +1,4 @@
# frozen_string_literal: true
autoload :FileUtils, 'fileutils'
require "rubygems/text"
##