rvm 0.0.63 → 0.0.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 0
4
- :patch: 63
4
+ :patch: 64
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rvm}
8
- s.version = "0.0.63"
8
+ s.version = "0.0.64"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Wayne E. Seguin"]
@@ -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|remove)
469
+ install|uninstall)
467
470
  __rvm_manage_rubies
468
471
  result=$?
469
472
  ;;
@@ -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) __rvm_remove ; result=$? ;;
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=$? ;;
@@ -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 $* ; fi
462
+ if [[ -z "$rvm_ruby_selected_flag" ]] ; then __rvm_select ; fi
463
463
 
464
- if [[ ! -z "$rvm_ruby_package_name" ]] ; then
464
+ if [[ ! -z "$rvm_ruby_string" ]] ; then
465
465
  for dir in $rvm_src_path $rvm_path ; do
466
- if [[ -d $dir/$rvm_ruby_package_name ]] ; then
467
- __rvm_log "info" "Removing $dir/$rvm_ruby_package_name..."
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/$rvm_ruby_package_name is already non existent."
470
+ __rvm_log "info" "it seems that $dir/$rvm_ruby_string is already non existent."
471
471
  fi
472
- if [[ -e $rvm_bin_path/$rvm_ruby_package_name ]] ; then
473
- rm -f $rvm_bin_path/$rvm_ruby_package_name
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rvm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.63
4
+ version: 0.0.64
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wayne E. Seguin