Do not assume a specific Ruby version.

This commit is contained in:
Sorin Ionescu 2011-12-28 16:48:25 -05:00
parent fadea4fe43
commit b0d47546fe

View file

@ -1,6 +1,6 @@
# Install local gems according to Mac OS X conventions.
if [[ "$OSTYPE" == darwin* ]]; then
export GEM_HOME=$HOME/Library/Ruby/Gems/1.8
export GEM_HOME="$HOME/Library/Ruby/Gems/${$(ruby --version)[6,8]}"
path=("$GEM_HOME/bin" $path)
# Set environment variables for launchd processes.