From d508822f9af75b72164e1fa375d8ad9b2ffb72dc Mon Sep 17 00:00:00 2001 From: Roman Sandler Date: Tue, 27 Oct 2015 09:24:04 +1100 Subject: [PATCH] Make sure the alias statement only executes if there is not already an alias in place --- rbenv.d/exec/gem-rehash/rubygems_plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rbenv.d/exec/gem-rehash/rubygems_plugin.rb b/rbenv.d/exec/gem-rehash/rubygems_plugin.rb index 0f718b1..7ced31a 100644 --- a/rbenv.d/exec/gem-rehash/rubygems_plugin.rb +++ b/rbenv.d/exec/gem-rehash/rubygems_plugin.rb @@ -10,7 +10,7 @@ hook = lambda do |installer| end end -if defined?(Bundler::Installer) && Bundler::Installer.respond_to?(:install) +if defined?(Bundler::Installer) && Bundler::Installer.respond_to?(:install) && !Bundler::Installer.respond_to?(:install_without_rbenv_rehash) Bundler::Installer.class_eval do class << self alias install_without_rbenv_rehash install