Merge pull request #1445 from rbenv/allow-userinstall-warning
Restore Rubygems warning for user-installed gems
This commit is contained in:
commit
6b1cc34610
@ -37,15 +37,6 @@ else
|
|||||||
begin
|
begin
|
||||||
Gem.post_install(&hook)
|
Gem.post_install(&hook)
|
||||||
Gem.post_uninstall(&hook)
|
Gem.post_uninstall(&hook)
|
||||||
|
|
||||||
# Silence the warning that would be printed for --user-install'ed gems:
|
|
||||||
#
|
|
||||||
# WARNING: You don't have ~/.gem/ruby/<version>/bin in your PATH,
|
|
||||||
# gem executables will not run.
|
|
||||||
#
|
|
||||||
# This warning isn't accurate in the context of rbenv because the executables
|
|
||||||
# at this location will automatically be available for running through rbenv.
|
|
||||||
Gem::Installer.path_warning = true if Gem::Installer.respond_to?(:path_warning=)
|
|
||||||
rescue
|
rescue
|
||||||
warn "rbenv: error installing gem-rehash hooks (#{$!.class.name}: #{$!.message})"
|
warn "rbenv: error installing gem-rehash hooks (#{$!.class.name}: #{$!.message})"
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user