rvm 0.0.85 → 0.0.86

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: 85
4
+ :patch: 86
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rvm}
8
- s.version = "0.0.85"
8
+ s.version = "0.0.86"
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"]
@@ -376,7 +376,7 @@ rvm() {
376
376
  error)
377
377
  $rvm_scripts_path/log "fail" "$rvm_error_message ( see: 'rvm usage' )"
378
378
  __rvm_pushpop
379
- result=1;
379
+ result=1
380
380
  ;;
381
381
 
382
382
  *)
@@ -247,7 +247,7 @@ __rvm_gems_load() {
247
247
  __rvm_gemdir() {
248
248
 
249
249
  if [[ "$rvm_user_flag" -eq 1 ]] ; then
250
- echo $(rvm system ; gem env | grep $HOME | awk '{print $NF}')
250
+ echo $(rvm system ; gem env | grep "\- $HOME" | awk '{print $NF}')
251
251
  elif [[ "$rvm_system_flag" -eq 1 ]] ; then
252
252
  echo $(rvm system ; gem env gemdir system)
253
253
  elif [[ ! -z "$rvm_ruby_string" ]] ; then
@@ -400,13 +400,16 @@ __rvm_update() {
400
400
  fi
401
401
  if [[ ! -z "$rvm_bin_flag" ]] ; then __rvm_bin_scripts ; fi
402
402
  if [[ ! -z "$rvm_rubygems_flag" ]] ; then __rvm_rubygems_setup ; fi
403
- __rvm_hook "after_update"
403
+
404
+ unset rvm_update_flag rvm_action rvm_self_flag rvm_ruby_revision rvm_bin_flag rvm_rubygems_flag
404
405
  }
405
406
 
406
407
  __rvm_update_rvm() {
407
408
  mkdir -p "$rvm_src_path"
408
409
  __rvm_pushpop "$rvm_src_path"
409
- if [[ "head" = "$rvm_ruby_revision" ]] ; then
410
+
411
+ system_ruby="$(rvm system ; which ruby 2>/dev/null)"
412
+ if [[ "head" = "$rvm_ruby_revision" ]] || [[ -z "$system_ruby" ]] ; then
410
413
  if [[ -d "$rvm_src_path/rvm/.git" ]] ; then
411
414
  builtin cd $rvm_src_path/rvm/ && git pull origin master && ./scripts/install
412
415
  else
@@ -414,9 +417,10 @@ __rvm_update_rvm() {
414
417
  fi
415
418
  else
416
419
  # TODO: rvm_install_path:
417
- gem install rvm --no-rdoc --no-ri -q rvm && $(gem env gemdir user)/bin/rvm-install && source $rvm_path/scripts/rvm
420
+ gem install rvm --no-rdoc --no-ri -q rvm && cd "$(rvm system ; gem env | grep "\- $HOME" | awk '{print $NF}')/gems/rvm-$(gem list rvm | sed 's/.*(//' | awk -F',' '{print $1 ; exit}')" && ./install
418
421
  fi
419
422
  __rvm_pushpop
423
+ __rvm_hook "after_update"
420
424
  }
421
425
 
422
426
  __rvm_reboot() {
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.85
4
+ version: 0.0.86
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wayne E. Seguin