1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Greenify gem name.

This commit is contained in:
Rob Gleeson 2011-05-10 12:21:28 +01:00
parent 56f7f3610d
commit 93794a13ad

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