rvm 0.0.63 → 0.0.64
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/VERSION.yml +1 -1
- data/rvm.gemspec +1 -1
- data/scripts/cli +4 -1
- data/scripts/completion +1 -1
- data/scripts/ruby-installer +7 -7
- metadata +1 -1
data/lib/VERSION.yml
CHANGED
data/rvm.gemspec
CHANGED
data/scripts/cli
CHANGED
@@ -389,6 +389,8 @@ function __rvm_parse_args {
|
|
389
389
|
elif match "$rvm_token" "^.+%.+$" ; then
|
390
390
|
rvm_gem_set_name="$(echo "$rvm_token" | awk -F'%' '{print $2}')"
|
391
391
|
rvm_ruby_string="$(echo "$rvm_token" | awk -F'%' '{print $1}')"
|
392
|
+
elif match "$rvm_token" "-" ; then
|
393
|
+
rvm_ruby_string="$rvm_token"
|
392
394
|
elif match "$rvm_token" "^[0-9].[0-9]" ; then
|
393
395
|
rvm_ruby_string="$rvm_token"
|
394
396
|
rvm_action="${rvm_action:-use}"
|
@@ -454,6 +456,7 @@ function rvm {
|
|
454
456
|
ruby) __rvm_do ; result=$? ;;
|
455
457
|
inspect) __rvm_inspect ; result=$? ;;
|
456
458
|
gems) __rvm_gems ; result=$? ;;
|
459
|
+
remove) __rvm_remove_ruby ; result=$? ;;
|
457
460
|
reload)
|
458
461
|
source "$rvm_path/scripts/rvm"
|
459
462
|
;;
|
@@ -463,7 +466,7 @@ function rvm {
|
|
463
466
|
result=$?
|
464
467
|
;;
|
465
468
|
|
466
|
-
install|uninstall
|
469
|
+
install|uninstall)
|
467
470
|
__rvm_manage_rubies
|
468
471
|
result=$?
|
469
472
|
;;
|
data/scripts/completion
CHANGED
@@ -139,7 +139,7 @@ function _rvm {
|
|
139
139
|
case "$rvm_action" in
|
140
140
|
install) __rvm_install ; result=$? ;;
|
141
141
|
uninstall) __rvm_uninstall ; result=$? ;;
|
142
|
-
remove)
|
142
|
+
remove) __rvm_remove_ruby ; result=$? ;;
|
143
143
|
use) __rvm_use ; result=$? ;;
|
144
144
|
gemdir) __rvm_gem-dir ; result=$? ;;
|
145
145
|
srcdir) __rvm_src-dir ; result=$? ;;
|
data/scripts/ruby-installer
CHANGED
@@ -459,18 +459,18 @@ function __rvm_uninstall_ruby {
|
|
459
459
|
}
|
460
460
|
|
461
461
|
function __rvm_remove_ruby {
|
462
|
-
if [[ -z "$rvm_ruby_selected_flag" ]] ; then __rvm_select
|
462
|
+
if [[ -z "$rvm_ruby_selected_flag" ]] ; then __rvm_select ; fi
|
463
463
|
|
464
|
-
if [[ ! -z "$
|
464
|
+
if [[ ! -z "$rvm_ruby_string" ]] ; then
|
465
465
|
for dir in $rvm_src_path $rvm_path ; do
|
466
|
-
if [[ -d $dir/$
|
467
|
-
__rvm_log "info" "Removing $dir/$
|
466
|
+
if [[ -d $dir/$rvm_ruby_string ]] ; then
|
467
|
+
__rvm_log "info" "Removing $dir/$rvm_ruby_string..."
|
468
468
|
rm -rf $dir/$rvm_ruby_package_name
|
469
469
|
else
|
470
|
-
__rvm_log "info" "it seems that $dir/$
|
470
|
+
__rvm_log "info" "it seems that $dir/$rvm_ruby_string is already non existent."
|
471
471
|
fi
|
472
|
-
if [[ -e $rvm_bin_path/$
|
473
|
-
rm -f $rvm_bin_path/$
|
472
|
+
if [[ -e $rvm_bin_path/$rvm_ruby_string ]] ; then
|
473
|
+
rm -f $rvm_bin_path/$rvm_ruby_string
|
474
474
|
fi
|
475
475
|
done ; unset dir
|
476
476
|
else
|