summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-07-02 15:11:18 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-07-31 21:07:19 +0900
commitfe53e5a9f3ff3b0574ec7033571d58f4976baf8c (patch)
tree25d575cf7467c965ef6fc4a38b45decec0bf0294 /lib
parentfedaa61b3fbcdc6f9ab2199dbbda97eeebfadc58 (diff)
[rubygems/rubygems] Remove fileutils autoload
https://github.com/rubygems/rubygems/commit/dca345441f
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3379
Diffstat (limited to 'lib')
-rw-r--r--lib/rubygems/remote_fetcher.rb1
-rw-r--r--lib/rubygems/source.rb1
2 files changed, 1 insertions, 1 deletions
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"
##