From 5bf57b1504871230600103083d77ff3502255e2e Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Wed, 18 Jul 2018 18:33:31 +0200 Subject: [PATCH] Fix: return default path with nonexistent home dir --- operating_system.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/operating_system.rb b/operating_system.rb index 0d4b1f0..d95b303 100644 --- a/operating_system.rb +++ b/operating_system.rb @@ -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