Helper methods for both Gem::Installer and Gem::Uninstaller
# File rubygems/installer_uninstaller_utils.rb, line 8 def regenerate_plugins_for(spec) spec.plugins.each do |plugin| plugin_script_path = File.join Gem.plugins_dir, "#{spec.name}_plugin#{File.extname(plugin)}" File.open plugin_script_path, 'wb' do |file| file.puts "require '#{plugin}'" end verbose plugin_script_path end end