ruby-changes:62470
From: David <ko1@a...>
Date: Fri, 31 Jul 2020 21:08:43 +0900 (JST)
Subject: [ruby-changes:62470] fe53e5a9f3 (master): [rubygems/rubygems] Remove fileutils autoload
https://git.ruby-lang.org/ruby.git/commit/?id=fe53e5a9f3 From fe53e5a9f3ff3b0574ec7033571d58f4976baf8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Thu, 2 Jul 2020 15:11:18 +0200 Subject: [rubygems/rubygems] Remove fileutils autoload https://github.com/rubygems/rubygems/commit/dca345441f diff --git a/lib/rubygems/remote_fetcher.rb b/lib/rubygems/remote_fetcher.rb index fa5ed45..20ddf47 100644 --- a/lib/rubygems/remote_fetcher.rb +++ b/lib/rubygems/remote_fetcher.rb @@ -126,6 +126,7 @@ class Gem::RemoteFetcher https://github.com/ruby/ruby/blob/trunk/lib/rubygems/remote_fetcher.rb#L126 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 ba5fb03..bed9c51 100644 --- a/lib/rubygems/source.rb +++ b/lib/rubygems/source.rb @@ -1,5 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/lib/rubygems/source.rb#L1 # frozen_string_literal: true -autoload :FileUtils, 'fileutils' require "rubygems/text" ## -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/