wayneeseguin-rvm 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bash/rvm +9 -7
  2. metadata +1 -1
data/bash/rvm CHANGED
@@ -3,7 +3,7 @@
3
3
  rvm_author="Wayne E. Seguin"
4
4
  rvm_author_email="wayneeseguin@gmail.com"
5
5
  rvm_website="http://github.com/wayneeseguin/rvm"
6
- rvm_version="0.0.7"
6
+ rvm_version="0.0.8"
7
7
  rvm_updated="2009.08.25"
8
8
 
9
9
  #
@@ -145,7 +145,6 @@ function rvm-install-source {
145
145
  *) fail "Ruby version '$version' is unknown."
146
146
  esac
147
147
 
148
- set -x
149
148
  package_name="ruby-$major.$minor-p$level"
150
149
  url="ftp://ftp.ruby-lang.org/pub/ruby/$major/$package_name.tar.gz"
151
150
 
@@ -194,8 +193,6 @@ function rvm-install-source {
194
193
  info "Installing $gem_name"
195
194
  $install_path/$package_name/bin/gem install $gem_name --no-rdoc --no-ri -q >> $install_path/$package_name/gems.install.log
196
195
  done
197
-
198
- set +x
199
196
  }
200
197
 
201
198
  function rvm-install-ruby {
@@ -524,7 +521,7 @@ function rvm {
524
521
  -c|--configure) configure="$1" ; shift ;;
525
522
  -m|--manager) manager="$1" ; shift ;;
526
523
  -u|--gemdup) action="gemdup" ; gem_dir="$1" ; shift ;;
527
- -d|--debug) debug=true ;;
524
+ -d|--debug) debug=1 ;;
528
525
  *) rvm-usage ; return 1
529
526
  esac
530
527
  done
@@ -538,14 +535,15 @@ function rvm {
538
535
 
539
536
  # TODO: Sanitize user input, ensure that there is a / a the end...
540
537
  if [ "$username" = "root" ] ; then
541
- prefix_path=${prefix-/usr/local/}
538
+ fail "root user support is not yet implemented."
539
+ #prefix_path=${prefix-/usr/local/}
542
540
  else
543
541
  prefix_path=${prefix-$HOME/.}
544
542
  fi
545
543
  source_path="${source_path-${prefix_path}rvm/src}"
546
544
  install_path="${prefix_path}rvm"
547
545
 
548
- mkdir -p $source_path $install_path
546
+ mkdir -p ~/.rvm/ $source_path $install_path
549
547
 
550
548
  if [ -f ~/.rvm/original_path ] ; then
551
549
  original_path=`cat ~/.rvm/original_path`
@@ -555,6 +553,8 @@ function rvm {
555
553
  original_path=$PATH
556
554
  fi
557
555
 
556
+ if [ "$debug" = "1" ] ; then set -x ; fi
557
+
558
558
  case "$action" in
559
559
  install)
560
560
  if [ "$implementation" = "all" ] ; then
@@ -595,5 +595,7 @@ function rvm {
595
595
  return 1
596
596
  esac
597
597
 
598
+ set +x
599
+
598
600
  }
599
601
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wayneeseguin-rvm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wayne E. Seguin