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:
parent
56f7f3610d
commit
93794a13ad
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue