Skip to content

Commit

Permalink
Remove fileutils autoload
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Jul 2, 2020
1 parent 8bff4a9 commit dca3454
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions lib/rubygems/remote_fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ def download(spec, source_uri, install_dir = Gem.dir)
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)
Expand Down
1 change: 0 additions & 1 deletion lib/rubygems/source.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# frozen_string_literal: true
autoload :FileUtils, 'fileutils'

require "rubygems/text"
##
Expand Down

0 comments on commit dca3454

Please sign in to comment.