Permalink
Browse files

Bugfix: missed a spot.

  • Loading branch information...
1 parent 7683d44 commit 99cf8764374cac19e6ac4a49d6a816c20b04c635 @wayneeseguin wayneeseguin committed Feb 25, 2010
Showing with 23 additions and 19 deletions.
  1. +23 −18 scripts/cli
  2. +0 −1 scripts/manage
View
@@ -49,7 +49,7 @@ __rvm_parse_args() {
;;
gemset)
- rvm_action="gemset"
+ rvm_action=$rvm_token
if [[ "clear" = "$1" ]] ; then
unset rvm_gemset_name ; shift
export rvm_ruby_gem_home="$(echo $GEM_HOME | sed 's/%.*$//')"
@@ -380,34 +380,39 @@ rvm() {
result=0
case "$rvm_action" in
- use) __rvm_use ; result=$? ;;
- srcdir) __rvm_source_dir ; result=$? ;;
- list) __rvm_list ; result=$? ;;
- strings) __rvm_strings ; result=$? ;;
- info) __rvm_info ; result=$? ;;
- debug) __rvm_debug ; result=$? ;;
- version) __rvm_version ; result=$? ;;
- reset) __rvm_reset ; result=$? ;;
- update) __rvm_update ; result=$? ;;
- reboot) __rvm_reboot ; result=$? ;;
- usage|help) __rvm_usage ; result=$? ;;
- benchmark) __rvm_benchmark ; result=$? ;;
- inspect) __rvm_inspect ; result=$? ;;
- implode|seppuku) __rvm_implode ; result=$? ;;
- gemdir) $rvm_scripts_path/gemset gemdir ; result=$? ;;
+ use) __rvm_use ; result=$? ;;
+ srcdir) __rvm_source_dir ; result=$? ;;
+ list) __rvm_list ; result=$? ;;
+ strings) __rvm_strings ; result=$? ;;
+ info) __rvm_info ; result=$? ;;
+ debug) __rvm_debug ; result=$? ;;
+ version) __rvm_version ; result=$? ;;
+ reset) __rvm_reset ; result=$? ;;
+ update) __rvm_update ; result=$? ;;
+ reboot) __rvm_reboot ; result=$? ;;
+ usage|help) __rvm_usage ; result=$? ;;
+ benchmark) __rvm_benchmark ; result=$? ;;
+ inspect) __rvm_inspect ; result=$? ;;
+ implode|seppuku) __rvm_implode ; result=$? ;;
+
+ gemdir)
+ $rvm_scripts_path/gemsets gemdir
+ result=$?
+ ;;
+
ruby|gem|rake)
$rvm_scripts_path/set $rvm_action $rvm_ruby_args
result=$?
;;
- gems)
+ gemset)
if [[ "$rvm_use_flag" -eq 1 ]] ; then
__rvm_gemset_select
result=$?
if [[ $result -eq 0 ]] ; then
__rvm_gemset_use
fi
else
- $rvm_scripts_path/gemset $rvm_ruby_args
+ $rvm_scripts_path/gemsets $rvm_ruby_args
fi
result=$?
;;
View
@@ -860,7 +860,6 @@ __rvm_rubygems_setup() {
install=1
fi
-
if [[ "$install" -eq 0 ]] ; then
# 1.9.X has it's own built-in gem command
__rvm_inject_ruby_shebang "$rvm_ruby_src_path/bin/gem"

0 comments on commit 99cf876

Please sign in to comment.