Fix: return default path with nonexistent home dir

This commit is contained in:
Pavel Valena 2018-07-18 18:33:31 +02:00 committed by Jun Aruga
parent 4b263effe3
commit 2ed5fb81e8

View File

@ -119,6 +119,7 @@ module Gem
def default_path
path = default_dirs.collect {|location, paths| paths[:gem_dir]}
path.unshift Gem.user_dir if File.exist? Gem.user_home
path
end
def default_ext_dir_for base_dir