Fix: return default path with nonexistent home dir
This commit is contained in:
parent
4b263effe3
commit
2ed5fb81e8
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue