From d2d3012f1742b1811cbec6674c13f8e65d350e22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Fri, 7 Oct 2022 13:02:18 +0200 Subject: [PATCH] Restore Rubygems warning for user-installed gems --- rbenv.d/exec/gem-rehash/rubygems_plugin.rb | 9 --------- 1 file changed, 9 deletions(-) diff --git a/rbenv.d/exec/gem-rehash/rubygems_plugin.rb b/rbenv.d/exec/gem-rehash/rubygems_plugin.rb index 423720f9..7ced31a9 100644 --- a/rbenv.d/exec/gem-rehash/rubygems_plugin.rb +++ b/rbenv.d/exec/gem-rehash/rubygems_plugin.rb @@ -37,15 +37,6 @@ else begin Gem.post_install(&hook) Gem.post_uninstall(&hook) - - # Silence the warning that would be printed for --user-install'ed gems: - # - # WARNING: You don't have ~/.gem/ruby//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 warn "rbenv: error installing gem-rehash hooks (#{$!.class.name}: #{$!.message})" end