scripts/cli in rvm-0.0.66 vs scripts/cli in rvm-0.0.67
- old
+ new
@@ -40,11 +40,11 @@
;;
jruby|ree|macruby|rbx|rubinius|mput|shyouhei|default|all)
rvm_ruby_interpreter="$rvm_token"
rvm_action="${rvm_action:-use}"
- if match "$1" "^[0-9]" ; then rvm_ruby_version=$1 ; shift ; fi
+ if match "$1" "^[0-9]\.[0-9]" ; then rvm_ruby_version=$1 ; shift ; fi
;;
gems|gemset)
rvm_action="gems"
if [[ "name" = "$1" ]] || [[ "dir" = "$1" ]] || [[ "list" = "$1" ]] || [[ "empty" = "$1" ]] || [[ "delete" = "$1" ]] ; then
@@ -114,11 +114,11 @@
else
if match "$1" "^[0-9]" ; then
rvm_ruby_version=$(echo "$1" | tr ',' ' ') ; shift
unset rvm_ruby_interpreter
else
- if [[ "jruby" = "$1" ]] || [[ "rbx" = "$1" ]] || [[ "rubinius" = "$1" ]] || [[ "macruby" = "$1" ]] || [[ "ree" = "$1" ]] || [[ "ruby-enterprise" = "$1" ]] || [[ "mput" = "$1" ]] || [[ "shyouhei" = "$1" ]] ; then
+ if [[ "jruby" = "$1" ]] || [[ "rbx" = "$1" ]] || [[ "rubinius" = "$1" ]] || [[ "macruby" = "$1" ]] || [[ "ree" = "$1" ]] || [[ "mput" = "$1" ]] || [[ "shyouhei" = "$1" ]] ; then
rvm_ruby_interpreter=$1 ; shift
else
unset rvm_ruby_interpreter rvm_ruby_version
fi
fi
@@ -133,26 +133,26 @@
specs|tests)
rvm_action="do"
rvm_ruby_args="rake $rvm_token"
;;
- 1.8|1.8.0|1.8.1|1.8.2|1.8.3|1.8.4|1.8.5|1.8.6|1.8.7|1.9|1.9.1|1.9.2)
- rvm_ruby_interpreter=${rvm_ruby_interpreter:-ruby}
- rvm_ruby_version="$rvm_token"
- rvm_action=${rvm_action:-use}
- ;;
+ #1.8|1.8.0|1.8.1|1.8.2|1.8.3|1.8.4|1.8.5|1.8.6|1.8.7|1.9|1.9.1|1.9.2)
+ # rvm_ruby_interpreter=${rvm_ruby_interpreter:-ruby}
+ # rvm_ruby_version="$rvm_token"
+ # rvm_action=${rvm_action:-use}
+ #;;
- 1.2.0|1.3|1.3.0|1.3.1|1.4|1.4.0)
- if [[ "1.3" = "$rvm_token" ]] ; then
- rvm_ruby_version="1.3.1"
- elif [[ "1.4" = "$rvm_token" ]] ; then
- rvm_ruby_version="1.4.0"
- else
- rvm_ruby_version="$rvm_token"
- fi
- rvm_ruby_interpreter=${rvm_ruby_interpreter:-jruby}
- rvm_action=${rvm_action:-use}
- ;;
+ #1.2.0|1.3|1.3.0|1.3.1|1.4|1.4.0)
+ # if [[ "1.3" = "$rvm_token" ]] ; then
+ # rvm_ruby_version="1.3.1"
+ # elif [[ "1.4" = "$rvm_token" ]] ; then
+ # rvm_ruby_version="1.4.0"
+ # else
+ # rvm_ruby_version="$rvm_token"
+ # fi
+ # rvm_ruby_interpreter=${rvm_ruby_interpreter:-jruby}
+ # rvm_action=${rvm_action:-use}
+ #;;
-v|--version)
if [[ -z "$1" ]] ; then
rvm_action="version"
else