scripts/selector in rvm-0.0.88 vs scripts/selector in rvm-0.0.89
- old
+ new
@@ -347,13 +347,16 @@
elif $rvm_scripts_path/match "$string" "^t[v0-9]" ; then
unset rvm_ruby_patch_level rvm_ruby_revision
rvm_ruby_tag="$string"
elif $rvm_scripts_path/match "$string" "^m[0-9]" ; then
rvm_ruby_mode="$string"
- elif $rvm_scripts_path/match "$string" "^h[a-z]" ; then
+ elif $rvm_scripts_path/match "$string" "^h[a-z0-9]" ; then
unset rvm_ruby_patch_level rvm_ruby_revision rvm_ruby_tag
rvm_ruby_patch="$string"
+ elif $rvm_scripts_path/match "$string" "^u[a-z0-9]" ; then
+ unset rvm_ruby_patch_level rvm_ruby_revision rvm_ruby_tag rvm_ruby_patch
+ rvm_ruby_user_tag="$string"
elif $rvm_scripts_path/match "$string" "^[a-z][a-z]" ; then
rvm_ruby_interpreter="$string"
else
$rvm_scripts_path/log "error" "Unknown ruby string component: '$string'"
fi
@@ -392,9 +395,11 @@
rvm_ruby_patch_name="$(basename $rvm_ruby_patch | awk -F',' '{print $1}')"
fi
rvm_ruby_string="${rvm_ruby_string}-${rvm_ruby_patch}"
elif [[ ! -z "$rvm_ruby_patch_level" ]] ; then
rvm_ruby_string="${rvm_ruby_string}-${rvm_ruby_patch_level}"
+ elif [[ ! -z "$rvm_ruby_user_tag" ]] ; then
+ rvm_ruby_string="${rvm_ruby_string}-${rvm_ruby_user_tag}"
else
patch_level="$(__rvm_db "${rvm_ruby_interpreter}_${rvm_ruby_version}_patch_level")"
if [[ ! -z "$patch_level" ]] ; then rvm_ruby_patch_level="p${patch_level}" ; fi
if [[ ! -z "$rvm_ruby_patch_level" ]] ; then
rvm_ruby_patch_level="$(echo $rvm_ruby_patch_level | sed 's#^pp#p#')"