for me the users gem path 'gem install' detects differs from the one we pick. No idea why. So let's tell it to use the path we mentioned before.
print "Do you want to continue installing to #{home_gem_path}? [y/N] "
input = STDIN.readline
if input =~ /[yY]/
- run "gem install #{options} --user-install '#{$gem_path}'"
+ run "gem install #{$gem_path} #{options} --install-dir '#{home_gem_path}' "
else
puts "bailing out."
end