Greenify gem name.

This commit is contained in:
Rob Gleeson 2011-05-10 12:21:28 +01:00
parent 56f7f3610d
commit 93794a13ad
1 changed files with 1 additions and 3 deletions

View File

@ -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