From 93794a13adb40c47504441dffb8d65f0018659e8 Mon Sep 17 00:00:00 2001 From: Rob Gleeson Date: Tue, 10 May 2011 12:21:28 +0100 Subject: [PATCH] Greenify gem name. --- lib/pry/default_commands/gems.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/pry/default_commands/gems.rb b/lib/pry/default_commands/gems.rb index 6294edca..bda02709 100644 --- a/lib/pry/default_commands/gems.rb +++ b/lib/pry/default_commands/gems.rb @@ -5,8 +5,6 @@ class Pry command "gem-install", "Install a gem and refresh the gem cache." do |gem| if gem - output.puts "Attempting to install gem: '#{text.green gem}'" - if File.writable? Gem.dir installer = Gem::DependencyInstaller.new :install_dir => Gem.dir installer.install gem @@ -16,7 +14,7 @@ class Pry installer.install gem output.puts "Gem '#{text.green gem}' installed to your user directory" else - output.puts "Insufficient permissions to install `#{gem}`" + output.puts "Insufficient permissions to install `#{text.green gem}`" end Gem.refresh