[rubygems/rubygems] Call check_that_user_bin_dir_is_in_path ANY time Gem.paths.home == Gem.user_dir.
(As opposed to only if `--user-install` is passed.) https://github.com/rubygems/rubygems/commit/0b42d0e869
This commit is contained in:
parent
ee9cb86bb4
commit
e84b73398b
@ -193,6 +193,13 @@ class Gem::Installer
|
||||
@gem_home = Gem.user_dir
|
||||
@bin_dir = Gem.bindir gem_home unless options[:bin_dir]
|
||||
@plugins_dir = Gem.plugindir(gem_home)
|
||||
end
|
||||
|
||||
if @gem_home == Gem.user_dir
|
||||
# If we get here, then:
|
||||
# 1. `--user-install` was specified, or
|
||||
# 2. GEM_HOME was not writable, and `Gem::PathSupport` fell back to `Gem.user_dir`.
|
||||
|
||||
check_that_user_bin_dir_is_in_path
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user