Skip to content

Commit

Permalink
Merge pull request #3911 from rubygems/missing_fileutils_require
Browse files Browse the repository at this point in the history
Add missing fileutils require
  • Loading branch information
bronzdoc authored and hsbt committed Oct 6, 2020
1 parent 5f851b9 commit 14fa5ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/install.yml
Expand Up @@ -29,8 +29,11 @@ jobs:
- name: Simulate no openssl
run: ruby util/remove_openssl.rb
if: matrix.openssl == false
- name: Run installed rubygems
- name: Run a local rubygems command
run: gem list bundler
- name: Run a remote rubygems command
run: gem outdated
if: matrix.openssl == true
- name: Run bundler installed as a default gem
run: bundle --version
- name: Check bundler man pages were installed and are properly picked up
Expand Down
5 changes: 4 additions & 1 deletion lib/rubygems/source.rb
Expand Up @@ -179,7 +179,10 @@ def load_specs(type)
local_file = File.join(cache_dir, file_name)
retried = false

FileUtils.mkdir_p cache_dir if update_cache?
if update_cache?
require "fileutils"
FileUtils.mkdir_p cache_dir
end

spec_dump = fetcher.cache_update_path spec_path, local_file, update_cache?

Expand Down

0 comments on commit 14fa5ac

Please sign in to comment.