Skip to content

Commit

Permalink
Feature: 'rvm install ruby-head'.
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed Jan 25, 2010
1 parent ef000a6 commit 7afdaac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 4 additions & 2 deletions scripts/manage
Expand Up @@ -711,12 +711,14 @@ __rvm_fetch_ruby() {
if [[ ! -z "$rvm_ruby_tag" ]] ; then
# TODO: Check if tag v is valid
rvm_url="${rvm_url:-"$rvm_ruby_repo_url/tags/$(echo $rvm_ruby_tag | sed 's/^t//')"}"
elif [[ -z "$rvm_ruby_version" ]] && [[ ! -z "$rvm_head_flag" ]] ; then
rvm_url="${rvm_url:-"$rvm_ruby_repo_url/trunk"}"
elif [[ "$rvm_major_version" = "9" ]] ; then
if [[ -z "$rvm_minor_version" ]] || [[ "$rvm_minor_version" = 2 ]] ; then
rvm_url="${rvm_url:-"$rvm_ruby_repo_url/trunk"}"
else
else
rvm_url="${rvm_url:-"$rvm_ruby_repo_url/branches/ruby_1_${rvm_major_version}_${rvm_minor_version}"}"
fi
fi
elif [[ -z "$rvm_minor_version" ]] || [[ "$rvm_major_version.$rvm_minor_version" = "8.8" ]] ; then
rvm_url="${rvm_url:-"$rvm_ruby_repo_url/branches/ruby_1_${rvm_major_version}"}"
else
Expand Down
7 changes: 5 additions & 2 deletions scripts/selector
Expand Up @@ -153,8 +153,11 @@ __rvm_select() {
;;

ruby)
rvm_ruby_repo_url="${rvm_ruby_repo_url:-"$(__rvm_db "ruby_repo_url")"}"
if [[ -z "$rvm_ruby_version" ]] ; then $rvm_scripts_path/log "fail" "Unknown ruby version: $rvm_ruby_version" ; fi
if [[ -z "$rvm_ruby_version" ]] && [[ -z "$rvm_head_flag" ]]; then
$rvm_scripts_path/log "fail" "Unknown ruby version: $rvm_ruby_version"
else
rvm_ruby_repo_url="${rvm_ruby_repo_url:-"$(__rvm_db "ruby_repo_url")"}"
fi
;;

current)
Expand Down

0 comments on commit 7afdaac

Please sign in to comment.