scripts/selector in rvm-0.0.69 vs scripts/selector in rvm-0.0.70

- old
+ new

@@ -13,15 +13,24 @@ case "$rvm_ruby_interpreter" in macruby) if [[ "Darwin" = "$(uname)" ]] ; then rvm_ruby_repo_url="${rvm_ruby_repo_url:-"$(__rvm_db "macruby_repo_url")"}" - rvm_ruby_version="${rvm_ruby_version:-head}" rvm_ruby_package_name=${rvm_ruby_interpreter}-${rvm_ruby_version} - #rvm_ruby_version="${rvm_ruby_version:-"$(__rvm_db "macruby_version")"}" - #rvm_ruby_package_name=${rvm_ruby_interpreter}_nightly-${rvm_ruby_version} - #rvm_url="http://dl.getdropbox.com/u/163257/$rvm_ruby_package_name.pkg" # 'nightly' builds + rvm_ruby_string="${rvm_ruby_interpreter}-${rvm_ruby_version}" + if [[ "nightly" = "$rvm_ruby_version" ]] ; then + rvm_url="http://macruby.icoretech.org/latest" + elif [[ "head" = "$rvm_ruby_version" ]] ; then + rvm_ruby_repo_url=${rvm_ruby_repo_url:-"$(__rvm_db "macruby_repo_url")"} + rvm_url="$rvm_ruby_repo_url" + else + rvm_ruby_version="${rvm_ruby_version:-"$(__rvm_db "macruby_version")"}" + rvm_ruby_package_name="${rvm_ruby_interpreter}_nightly-${rvm_ruby_version}" + rvm_ruby_package_file="MacRuby%200.5%20beta%201.zip" + rvm_url="http://www.macruby.org/files/MacRuby%200.5%20beta%201.zip" + fi + unset rvm_ruby_patch_level else __rvm_log "fail" "MacRuby can only be installed on a Darwin OS." fi ;; @@ -261,9 +270,13 @@ elif [[ "default" = "$string" ]] ; then rvm_ruby_interpreter="default" break elif [[ "system" = "$string" ]] ; then rvm_ruby_interpreter="system" + break + elif [[ "nightly" = "$string" ]] ; then + rvm_ruby_version="nightly" + rvm_nightly_flag=1 break elif match "$string" "^preview" ; then rvm_ruby_patch_level="$string" elif match "$string" "^[a-z][a-z]" ; then rvm_ruby_interpreter="$string"