also appeared in Ruby Parley - moved to
https://github.com/rubygems/rubygems/pull/596$GEM_HOME is a way of controlling rubygems gems install location:
* benefits: thanks to GEM_HOME you can install ruby as "root" and gems as users, or reinstall ruby without removing gems, it allows you to separate the ruby directory from gems direcotry, you can also maintain multiple sets of gems by manipulating GEM_HOME to different directories - this is how rvm gemsets work
* problems: the need to use different gem paths per ruby/version exist because some gems might require specific ruby version, compiled c-extensions or might include implementation specific code/libraries, they can not be mixed all together, but that's just few percent of gems - rest of them can be mixed in one directory and it is what I have implemented in the pull request mentioned above
Cheers,
Michal