Don't mingle GEM_HOME

Breaks Gems for all users who user neither Rbenv nor RVM, but have a different default Ruby version nonetheless, e.g. by `brew install ruby`.
This commit is contained in:
Sebastian Wiesner 2013-08-21 13:31:38 +02:00
parent 959887013d
commit d48e54e504

View file

@ -26,8 +26,7 @@ elif (( $+commands[rbenv] )); then
# Install local gems according to operating system conventions. # Install local gems according to operating system conventions.
else else
if [[ "$OSTYPE" == darwin* ]]; then if [[ "$OSTYPE" == darwin* ]]; then
export GEM_HOME="$HOME/Library/Ruby/Gems/1.8" path=("$HOME/Library/Ruby/Gems/1.8/bin" $path)
path=("$GEM_HOME/bin" $path)
else else
path=($HOME/.gem/ruby/*/bin(N) $path) path=($HOME/.gem/ruby/*/bin(N) $path)
fi fi