show system ruby version as last resort on ruby-info

This commit is contained in:
Zeh Rizzatti 2012-12-13 01:30:46 -03:00
parent 13b501adaf
commit a3c516c17c

View file

@ -18,6 +18,8 @@ if (( $+commands[rvm-prompt] )); then
version="$(rvm-prompt)" version="$(rvm-prompt)"
elif (( $+commands[rbenv] )); then elif (( $+commands[rbenv] )); then
version="$(rbenv version-name)" version="$(rbenv version-name)"
elif (( $+commands[ruby] )); then
version="$(ruby --version | cut -d' ' -f2)"
fi fi
# Format version. # Format version.