scripts/selector in rvm-0.0.82 vs scripts/selector in rvm-0.0.83
- old
+ new
@@ -38,18 +38,16 @@
fi
;;
rbx|rubinius)
rvm_ruby_interpreter="rbx"
- rvm_ruby_version="${rvm_ruby_version:-head}"
- unset rvm_ruby_patch_level
+ rvm_ruby_version=${rvm_ruby_version:-"$($rvm_scripts_path/db "$rvm_config_path/db" "rbx_version")"}
+ rvm_ruby_patch_level=${rvm_ruby_patch_level:-"$($rvm_scripts_path/db "$rvm_config_path/db" "rbx_patch_level")"}
rvm_ruby_repo_url=${rvm_rbx_repo_url:-"$($rvm_scripts_path/db "$rvm_config_path/db" "rubinius_repo_url")"}
- rvm_ruby_string="rbx-head" # for now :)
- rvm_url=$rvm_ruby_repo_url
- rvm_ruby_configure=" true "
- rvm_ruby_make="build"
- rvm_ruby_make_install=""
+ #rvm_ruby_string="rbx-head" # for now :)
+ rvm_url=$($rvm_scripts_path/db "$rvm_config_path/db" "rbx_url")
+ rvm_ruby_file="rubinius-$rvm_ruby_version-$rvm_ruby_patch_level"
;;
jruby)
unset rvm_ruby_patch_level
if [[ "$rvm_head_flag" -eq 1 ]] ; then
@@ -106,10 +104,10 @@
rvm_ruby_repo_url="${rvm_ruby_repo_url:-"$($rvm_scripts_path/db "$rvm_config_path/db" "ruby_repo_url")"}"
if [[ -z "$rvm_ruby_version" ]] ; then $rvm_scripts_path/log "fail" "Unknown ruby version: $rvm_ruby_version" ; fi
;;
current)
- ruby_binary="$(which binary)"
+ ruby_binary="$(which binary 2>/dev/null)"
if $rvm_scripts_path/match "$ruby_binary" "rvm" ; then
rvm_ruby_string="$(dirname "$ruby_binary" | xargs dirname | xargs basename)"
else
rvm_ruby_interpreter="system"
fi