wayneeseguin-rvm 0.0.45 → 0.0.46

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 0
4
- :patch: 45
4
+ :patch: 46
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rvm}
8
- s.version = "0.0.45"
8
+ s.version = "0.0.46"
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"]
12
- s.date = %q{2009-09-20}
12
+ s.date = %q{2009-09-22}
13
13
  s.default_executable = %q{rvm-install}
14
14
  s.description = %q{Manages Ruby interpreter installations and switching between them.}
15
15
  s.email = %q{wayneeseguin@gmail.com}
@@ -106,7 +106,7 @@ function __rvm_parse-args {
106
106
  while [ $# -gt 0 ] ; do
107
107
  rvm_token="$1" ; shift
108
108
  case "$rvm_token" in
109
- install|uninstall|path|info|setup|version|srcdir|list|symlinks|reset|debug|reload|usage|help|implode|update|readline|iconv|benchmark|bench|use|sync)
109
+ install|uninstall|path|info|setup|version|srcdir|list|symlinks|reset|debug|reload|usage|help|implode|update|readline|iconv|benchmark|bench|use|gemsync)
110
110
  rvm_action=$rvm_token
111
111
  ;;
112
112
 
@@ -302,7 +302,7 @@ function __rvm_parse-args {
302
302
  rvm_ruby_interpreter="system"
303
303
  ;;
304
304
 
305
- --install) rvm_install_on_use=1 ;;
305
+ --install) rvm_install_on_use_flag=1 ;;
306
306
  --prefix) rvm_prefix_path="$1" ; shift ;;
307
307
  -G|--gems) rvm_gem_path="$1" ; shift ;;
308
308
  --source) rvm_source_path="$1" ; shift ;;
@@ -365,7 +365,7 @@ function rvm {
365
365
  __rvm_cleanup_variables
366
366
  __rvm_load-rvmrc
367
367
  __rvm_initialize
368
- __rvm_load-defaults
368
+ __rvm_load_defaults
369
369
  __rvm_parse-args $@
370
370
 
371
371
  if [ -z "$rvm_debug_flag" ] ; then set +x ; else set -x ; fi
@@ -393,7 +393,7 @@ function rvm {
393
393
  bench|benchmark) __rvm_benchmark ; result=$? ;;
394
394
  rubydo|rakedo|gemdo) __rvm_do ; result=$? ;;
395
395
 
396
- sync)
396
+ gemsync)
397
397
  result=0
398
398
  rvm_source_gem_path=`__rvm_select ; echo $rvm_gem_home`
399
399
  __rvm_gem_sync
@@ -412,7 +412,11 @@ function rvm {
412
412
  result=0
413
413
  ;;
414
414
 
415
- error) __rvm_log "fail" "$rvm_error_message ( see: 'rvm usage' )" ; __rvm_pushpop ; return 1; ;;
415
+ error)
416
+ __rvm_log "fail" "$rvm_error_message ( see: 'rvm usage' )"
417
+ __rvm_pushpop
418
+ result=1;
419
+ ;;
416
420
  *)
417
421
  if [ ! -z "$rvm_action" ] ; then
418
422
  __rvm_log "fail" "unknown action '$rvm_action'"
@@ -6,7 +6,7 @@ if [ "$user" = "root" ] ; then
6
6
  exit 1
7
7
  fi
8
8
 
9
- info="\n\033[0;32m<i>\033[0m"
9
+ item="\033[0;32m* \033[0m"
10
10
  question="\n\033[0;32m<?>\033[0m"
11
11
  cwd=$(pwd)
12
12
  source_dir="${source_dir:-`dirname $0 | xargs dirname`}"
@@ -14,7 +14,9 @@ if [ ! -d "$source_dir" ] ; then unset source_dir ; fi
14
14
  source_dir="${source_dir:-$cwd}"
15
15
  rvm_dir=~/.rvm
16
16
 
17
- echo -e "\nInstalling rvm to ~/.rvm/ ..."
17
+ # State what is required to use rvm
18
+ echo -e "\n\033[0;32mrvm\033[0m\n\n shell scripts that allows a user to manage multiple ruby versions in their own account."
19
+ echo -e "\n Installing rvm to ~/.rvm/ ..."
18
20
  for dir_name in src scripts bin log archives config gems examples ; do
19
21
  mkdir -p $rvm_dir/$dir_name
20
22
  done
@@ -29,12 +31,6 @@ for file_name in rvm-prompt gemsync ; do
29
31
  chmod +x $rvm_dir/bin/$file_name
30
32
  done ; unset file_name
31
33
 
32
-
33
- # State what is required to use rvm
34
- echo -e "\n\033[0;32mrvm\033[0m is a shell script that allows a user to manage multiple ruby versions in their own account."
35
- echo -e "$info In order to use rvm the following line must occur in your shell's loading files:"
36
- echo -e "\n\033[0;32m (a)\033[0m if [ -s ~/.rvm/scripts/rvm ] ; then source ~/.rvm/scripts/rvm ; fi"
37
-
38
34
  results=$(grep 'scripts/rvm' ~/.bash_profile ~/.bashrc ~/.zshrc > /dev/null)
39
35
  if [ $? -gt 0 ] ; then
40
36
  while : ; do
@@ -44,7 +40,7 @@ if [ $? -gt 0 ] ; then
44
40
  echo 'w00t!'
45
41
  break
46
42
  elif [ "${response:0:1}" = "m" ] ; then
47
- echo -e "$info Please make sure that this line is in place."
43
+ echo -e " Please make sure that this line is in place."
48
44
  break
49
45
  fi
50
46
  done
@@ -96,7 +92,7 @@ if [ $? -gt 0 ] ; then
96
92
  fi
97
93
  fi
98
94
 
99
- echo -e "\n\033[0;32m<i>\033[0m Ensuring that rvm script location in $file is scripts/rvm not bin/rvm for: ~/.bash_profile, ~/.bashrc, ~/.zshrc"
95
+ echo -e "\n Ensuring that rvm script location in $file is scripts/rvm not bin/rvm for: ~/.bash_profile, ~/.bashrc, ~/.zshrc..."
100
96
  for file in ~/.bash_profile ~/.bashrc ~/.zshrc ; do
101
97
  if [ -s $file ] ; then
102
98
  if [ -L $file ] ; then # If the file is a symlink,
@@ -123,11 +119,12 @@ for file in ~/.bash_profile ~/.bashrc ~/.zshrc ; do
123
119
  done
124
120
 
125
121
  if [ -f ~/.rvm/bin/rvm ] ; then
126
- echo -e "\n\033[0;32m<i>\033[0m Removing old rvm file from ~/.rvm/bin/rvm"
122
+ echo -e "\n Removing old rvm file from ~/.rvm/bin/rvm..."
127
123
  rm -f ~/.rvm/bin/rvm
128
124
  fi
129
125
 
130
126
  system=`uname`
127
+ echo -e "\n \033[0;33mNOTES: \033[0m"
131
128
  if [ "$system" = "Linux" ] ; then
132
129
  rvm_apt_get_binary=`which apt-get 2> /dev/null`
133
130
  rvm_emerge_binary=`which emerge 2> /dev/null`
@@ -135,44 +132,41 @@ if [ "$system" = "Linux" ] ; then
135
132
  rvm_yum_binary=`which yum 2> /dev/null`
136
133
 
137
134
  if [ ! -z "$rvm_apt_get_binary" ] ; then
138
- echo -e "\033[0;33m <w> \033[0mFor jRuby (if you wish to use it) you will need:"
139
- echo -e "\033[0;32m <i> \033[0msudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk"
140
- echo -e "\033[0;33m <w> \033[0mFor ree (if you wish to use it) you will need:"
141
- echo -e "\033[0;32m <i> \033[0msudo apt-get install libreadline5-dev libssl-dev bison"
135
+ echo -e " $item For jRuby (if you wish to use it) you will need:"
136
+ echo -e " $ sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk"
137
+ echo -e " $item For ree (if you wish to use it) you will need:"
138
+ echo -e " $ sudo apt-get install libreadline5-dev libssl-dev bison"
142
139
 
143
140
  elif [ ! -z "$rvm_emerge_binary" ] ; then
144
- echo -e "\033[0;33m <w> \033[0mFor jRuby (if you wish to use it) you will need:"
145
- echo -e "\033[0;32m <i> \033[0msudo emerge dev-java/sun-jdk dev-java/sun-jre-bin"
141
+ echo -e " $item For jRuby (if you wish to use it) you will need:"
142
+ echo -e " $ sudo emerge dev-java/sun-jdk dev-java/sun-jre-bin"
146
143
 
147
144
  elif [ ! -z "$rvm_pacman_binary" ] ; then
148
- echo -e "\033[0;33m <w> \033[0mFor jRuby (if you wish to use it) you will need:"
149
- echo -e "\033[0;32m <i> \033[0msudo pacman -Sy jdk jre"
145
+ echo -e " $item For jRuby (if you wish to use it) you will need:"
146
+ echo -e " $ sudo pacman -Sy jdk jre"
150
147
 
151
148
  elif [ ! -z "$rvm_yum_binary" ] ; then
152
- echo -e "\033[0;33m <w> \033[0mFor ree (if you wish to use it) you will need:"
153
- echo -e "\033[0;32m <i> \033[0myum install -y rpm-build gcc gcc-c++ redhat-rpm-config ; then download and rpmbuild and install the sdk, Have fun..."
149
+ echo -e " $item For ree (if you wish to use it) you will need:"
150
+ echo -e " $ yum install -y rpm-build gcc gcc-c++ redhat-rpm-config ; then download and rpmbuild and install the sdk, Have fun..."
154
151
 
155
152
  else
156
- echo -e "\033[0;33m <w> \033[0mFor jRuby (if you wish to use it) you will need:"
157
- echo -e "\033[0;32m <i> \033[0mThe SUN java runtime environment and development kit."
153
+ echo -e " $item For jRuby (if you wish to use it) you will need:"
154
+ echo -e " The SUN java runtime environment and development kit."
158
155
  fi
159
156
  elif [ "$system" = "Darwin" ] ; then
160
- echo -e "\033[0;32m <i> \033[0mBe sure that you have XCode Tools installed in order to use rvm."
161
- echo -e "\033[0;32m <i> \033[0mIf you intend on installing MacRuby you must install LLVM first."
157
+ echo -e " $item Be sure that you have XCode Tools installed in order to use rvm."
158
+ echo -e " $item If you intend on installing MacRuby you must install LLVM first."
162
159
  fi
163
160
 
164
- echo -e "$info There have been a great many updates since previous releases, please:"
165
- echo -e "$info * remove sourcing of ~/.rvm/current from your shell profiles."
166
- echo -e "$info * CLOSE THIS SHELL AND OPEN A NEW ONE FOR rvm."
161
+ echo -e " $item In order to use rvm the following line must occur in your shell's loading files, after all path/variable settings.:"
162
+ echo -e " $item if [ -s ~/.rvm/scripts/rvm ] ; then source ~/.rvm/scripts/rvm ; fi"
163
+ echo -e " $item CLOSE THIS SHELL AND OPEN A NEW ONE in order to use rvm."
167
164
 
168
- echo -e "\n$info Please visit the website for much more information: http://rvm.beginrescueend.com/\n"
169
- echo ' w⦿‿⦿t! '
170
- echo -e "\n ~ Wayne"
165
+ echo -e "\n \033[0;33mRTFM: \033[0m http://rvm.beginrescueend.com/ \n"
166
+ echo -e '\033[0;32mw⦿‿⦿t!\033[0m'
167
+ echo -e "\n ~ Wayne\n"
171
168
 
172
169
  source $rvm_dir/scripts/rvm
173
-
174
- rvm symlinks
175
- echo
176
170
  rvm -v
177
171
  echo
178
172
 
@@ -102,7 +102,7 @@ function __rvm_install_source {
102
102
  if [ -z "$rvm_ruby_make" ] ; then
103
103
  __rvm_run "make" make $rvm_make_flags
104
104
  else
105
- __rvm_run "make" $rvm_ruby_make
105
+ __rvm_run "make" $rvm_ruby_make $rvm_make_flags
106
106
  fi
107
107
  if [ $? -gt 0 ] ; then result=$? ; return $result ; fi
108
108
 
@@ -235,7 +235,8 @@ function __rvm_install_ruby {
235
235
 
236
236
  rbx|rubinius)
237
237
  unset GEM_HOME GEM_PATH MY_RUBY_HOME IRBRC
238
- PATH="$rvm_system_path" ; export PATH
238
+ PATH=$(echo $PATH | tr ':' '\n' | awk '$0 !~ /rvm/' | paste -sd : -)
239
+ PATH=$rvm_bin_path:$PATH ; export PATH
239
240
  rvm_ruby_repo_url=$rvm_rubinius_repo_url
240
241
  rvm_ruby_configure=""
241
242
  rvm_ruby_src_path=$rvm_ruby_home
@@ -359,10 +360,7 @@ RubyWrapper
359
360
 
360
361
  esac
361
362
 
362
- if [ ! -z "$ruby_options" ] ; then
363
- RUBYOPT=$ruby_options ; export RUBYOPT
364
- fi
365
-
363
+ if [ ! -z "$ruby_options" ] ; then RUBYOPT=$ruby_options ; export RUBYOPT ; fi
366
364
  }
367
365
 
368
366
  # TODO: DRY up __rvm_remove and __rvm_uninstall
@@ -406,24 +404,24 @@ function __rvm_uninstall {
406
404
  else
407
405
  __rvm_log "fail" "Cannot uninstall unknown package '$rvm_ruby_package_name'"
408
406
  fi
409
-
410
407
  }
411
408
 
412
409
  function __rvm_post_install {
413
-
414
410
  for binary in gem irb erb ri rdoc testrb rake ; do
415
- if [ -f $rvm_ruby_home/bin/$binary -o -f $rvm_ruby_src_path/bin/$binary ] ; then
416
- if [ "$rvm_ruby_src_path" != "$rvm_ruby_home" -a $rvm_ruby_src_path/bin/$binary] ; then
411
+ if [ -e $rvm_ruby_home/bin/$binary -o -e $rvm_ruby_src_path/bin/$binary ] ; then
412
+ if [ "$rvm_ruby_src_path" != "$rvm_ruby_home" -a -f $rvm_ruby_src_path/bin/$binary ] ; then
417
413
  cp -f $rvm_ruby_src_path/bin/$binary $rvm_ruby_home/bin/$binary
418
414
  elif [ -f "$rvm_gem_home/bin/$binary" ] ; then
419
415
  cp -f $rvm_gem_home/bin/$binary $rvm_ruby_home/bin/$binary
420
416
  fi
421
- string="ENV['GEM_HOME']=ENV['GEM_HOME'] || '$rvm_gem_home'\nENV['GEM_PATH']=ENV['GEM_PATH'] || '$rvm_gem_home'\nENV['PATH']='$rvm_ruby_home/bin:$rvm_gem_home/bin:' + ENV['PATH']"
422
- awk "NR==2 {print \"$string\"} {print}" $rvm_ruby_home/bin/$binary > $rvm_ruby_home/bin/$binary.new
423
- mv $rvm_ruby_home/bin/$binary.new $rvm_ruby_home/bin/$binary
417
+ if [ -f $rvm_ruby_home/bin/$binary ] ; then
418
+ string="ENV['GEM_HOME']=ENV['GEM_HOME'] || '$rvm_gem_home'\nENV['GEM_PATH']=ENV['GEM_PATH'] || '$rvm_gem_home'\nENV['PATH']='$rvm_ruby_home/bin:$rvm_gem_home/bin:' + ENV['PATH']"
419
+ awk "NR==2 {print \"$string\"} {print}" $rvm_ruby_home/bin/$binary > $rvm_ruby_home/bin/$binary.new
420
+ mv $rvm_ruby_home/bin/$binary.new $rvm_ruby_home/bin/$binary
421
+ else
422
+ __rvm_log "info" "Skipping $rvm_ruby_src_path/bin/$binary, it is an executable not a script."
423
+ fi
424
424
  chmod +x $rvm_ruby_home/bin/$binary
425
- else
426
- __rvm_log "warn" "$rvm_ruby_src_path/bin/$binary is missing"
427
425
  fi
428
426
  done
429
427
 
@@ -441,19 +439,13 @@ function __rvm_post_install {
441
439
  if [ "$rvm_gem_home" != "$rvm_ruby_home" ] ; then
442
440
  cp $rvm_gem_home/bin/$binary $rvm_ruby_home/bin/$binary
443
441
  fi
444
- # TODO: Account for rubygem installed rake vs system rake
445
- string="ENV['GEM_HOME']=ENV['GEM_HOME'] || '$rvm_gem_home'\nENV['GEM_PATH']=ENV['GEM_PATH'] || '$rvm_gem_home'\nENV['PATH']='$rvm_ruby_home/bin:$rvm_gem_home/bin:' + ENV['PATH']"
446
- awk "NR==2 {print \"$string\"} {print}" $rvm_ruby_home/bin/$binary > $rvm_ruby_home/bin/$binary.new
447
- mv $rvm_ruby_home/bin/$binary.new $rvm_ruby_home/bin/$binary
448
- chmod +x $rvm_ruby_home/bin/$binary
449
- else
450
- __rvm_log "warn" "$rvm_gem_home/bin/$binary is missing"
442
+ __rvm_inject_gem_env "$rvm_ruby_home/bin/$binary"
451
443
  fi
452
444
  unset binary
453
445
  }
454
446
 
455
447
  function __rvm_rubygems_setup {
456
- if [ "`echo $rvm_ruby_version | awk '{print substr($1, 0, 3)}'`" != "1.9" ] ; then
448
+ if [ -z "`echo $rvm_ruby_version | awk '/^1\.9/'`" ] ; then
457
449
  __rvm_log "info" "\tInstalling rubygems dedicated to $rvm_ruby_package_name..."
458
450
  rvm_gem_package_name="rubygems-1.3.5"
459
451
  rvm_gem_url="http://rubyforge.org/frs/download.php/60718/$rvm_gem_package_name.tgz"
@@ -469,14 +461,29 @@ function __rvm_rubygems_setup {
469
461
  if [ $result -eq 0 ] ; then
470
462
  __rvm_log "info" "Installation of rubygems $rvm_ruby_package_name completed successfully."
471
463
  fi
464
+
465
+ __rvm_inject_ruby_shebang "$rvm_ruby_home/bin/gem"
472
466
  else
473
- # 1.9 has it's own built gem command, let's adjust the shebang line.
474
- mv $rvm_ruby_src_path/bin/gem $rvm_ruby_src_path/bin/gem.orig
475
- cat $rvm_ruby_src_path/bin/gem.orig | sed -e "s=!# */usr/bin/env ruby=!#/usr/bin/$rvm_ruby_home/bin/ruby=" > $rvm_ruby_src_path/bin/gem
476
- chmod +x $rvm_ruby_home/bin/gem
467
+ # 1.9 has it's own built-in gem command
468
+ __rvm_inject_ruby_shebang "$rvm_ruby_src_path/bin/gem"
469
+ cp $rvm_ruby_src_path/bin/gem $rvm_ruby_home/bin/gem
477
470
  __rvm_run "rubygems.update" $rvm_ruby_home/bin/gem update --system
478
471
  fi
479
-
480
472
  return $result
481
473
  }
482
474
 
475
+ function __rvm_inject_ruby_shebang {
476
+ if [ -f $1 ] ; then
477
+ cat $1 | sed -e "s=#!/usr/bin/env ruby=#!$rvm_ruby_home/bin/ruby=" > $1.new
478
+ mv $1.new $1 ; chmod +x $1
479
+ fi
480
+ }
481
+
482
+ function __rvm_inject_gem_env {
483
+ if [ -f $1 ] ; then
484
+ string="ENV['GEM_HOME']=ENV['GEM_HOME'] || '$rvm_gem_home'\nENV['GEM_PATH']=ENV['GEM_PATH'] || '$rvm_gem_home'\nENV['PATH']='$rvm_ruby_home/bin:$rvm_gem_home/bin:' + ENV['PATH']"
485
+ awk "NR==2 {print \"$string\"} {print}" $1 > $1.new
486
+ mv $1.new $1 ; chmod +x $1
487
+ fi
488
+ }
489
+
@@ -3,16 +3,25 @@
3
3
  # __rvm_select implementation version patch_level
4
4
  function __rvm_select {
5
5
 
6
- if [ ! -z "$rvm_ruby_string" ] ; then __rvm_ruby_string ; fi
7
-
8
- rvm_ruby_interpreter="${1:-$rvm_ruby_interpreter}"
9
- rvm_ruby_interpreter="${rvm_ruby_interpreter:-ruby}" # Default is standard ruby
10
-
11
- temp=$(echo $rvm_ruby_interpreter | awk '{print substr($1, 0, 1)}')
12
- if [ ! -z "$(echo $temp | grep '[0-9]')" ] ; then
13
- rvm_ruby_version=$rvm_ruby_interpreter
14
- rvm_ruby_interpreter="ruby"
15
- fi ; unset temp
6
+ if [ ! -z "$rvm_ruby_string" ] ; then
7
+ __rvm_ruby_string
8
+ elif [ ! -z "$rvm_ruby_selector" ] ; then
9
+ if [ ! -z "$(echo $rvm_ruby_selector | awk '/^[0-9]/')" ] ; then
10
+ rvm_ruby_interpreter="ruby"
11
+ rvm_ruby_version=$rvm_ruby_selector
12
+ else
13
+ rvm_ruby_interpreter="$rvm_ruby_selector"
14
+ unset rvm_ruby_version
15
+ fi
16
+ elif [ ! -z "$rvm_ruby_interpreter" ] ; then
17
+ if [ ! -z "$(echo $rvm_ruby_interpreter | awk '/^[0-9]/')" ] ; then
18
+ rvm_ruby_version=$rvm_ruby_interpreter
19
+ rvm_ruby_interpreter="ruby"
20
+ else
21
+ rvm_ruby_interpreter="${1:-$rvm_ruby_interpreter}"
22
+ rvm_ruby_interpreter="${rvm_ruby_interpreter:-ruby}" # Default is standard ruby
23
+ fi
24
+ fi
16
25
 
17
26
  if [ "$rvm_ruby_version" = "1.8" ] ; then rvm_ruby_version="1.8.6" ; fi
18
27
  if [ "$rvm_ruby_version" = "1.9" ] ; then rvm_ruby_version="1.9.1" ; fi
@@ -117,7 +126,7 @@ function __rvm_select {
117
126
  rvm_ruby_home="${rvm_ruby_home:-"$rvm_path/$rvm_ruby_interpreter-$rvm_ruby_version"}"
118
127
  else
119
128
  if [ "$rvm_ruby_interpreter" != "ruby-enterprise" ] ; then
120
- if [ ! -z "`echo $rvm_ruby_patch_level | awk '/[0-9]+/{print}'`" ] ; then
129
+ if [ ! -z "`echo $rvm_ruby_patch_level | awk '/^[0-9]/'`" ] ; then
121
130
  rvm_ruby_patch_level="p$rvm_ruby_patch_level"
122
131
  fi
123
132
  rvm_ruby_patch_level="`echo $rvm_ruby_patch_level | sed 's/^pp/p/'`" # sanity check, thanks sfpyra
@@ -147,20 +156,24 @@ function __rvm_use {
147
156
 
148
157
  if [ "$rvm_ruby_interpreter" = "default" ] ; then
149
158
 
159
+ PATH=$(echo $PATH | tr ':' '\n' | awk '$0 !~ /rvm/' | paste -sd : -)
160
+ PATH=$rvm_bin_path:$PATH ; export PATH
161
+
150
162
  if [ -s $rvm_path/default ] ; then
151
163
  source $rvm_path/default
152
164
  else
153
165
  __rvm_log "error" "no default rvm specified, defaulting to pre-rvm sytem."
154
166
  unset GEM_HOME GEM_PATH MY_RUBY_HOME RUBY_VERSION IRBRC
155
- PATH="$rvm_system_path" ; export PATH
156
167
  if [ -s $rvm_path/system ] ; then source $rvm_path/system ; fi
157
168
  fi
158
169
 
159
170
  elif [ "$rvm_ruby_interpreter" = "system" ] ; then
160
171
 
161
172
  unset GEM_HOME GEM_PATH MY_RUBY_HOME RUBY_VERSION IRBRC
162
- # TODO: Remove .rvm/bin from the path
163
- PATH="$rvm_system_path" ; export PATH
173
+
174
+ PATH=$(echo $PATH | tr ':' '\n' | awk '$0 !~ /rvm/' | paste -sd : -)
175
+ PATH=$rvm_bin_path:$PATH ; export PATH
176
+
164
177
  if [ -s $rvm_path/system ] ; then
165
178
  grep "^MY_RUBY_HOME='$rvm_path" "$rvm_path/system" > /dev/null
166
179
  if [ $? -eq 0 ] ; then
@@ -180,14 +193,16 @@ function __rvm_use {
180
193
 
181
194
  if [ ! -d $MY_RUBY_HOME ] ; then
182
195
  __rvm_log "warn" "$rvm_ruby_interpreter $rvm_ruby_version is not installed."
183
- if [ ! -z "$rvm_install_on_use" ] ; then
184
- __rvm_install-ruby $rvm_ruby_interpreter $rvm_ruby_version $rvm_ruby_patch_level
196
+ if [ ! -z "$rvm_install_on_use_flag" ] ; then
197
+ __rvm_install_ruby $rvm_ruby_interpreter $rvm_ruby_version $rvm_ruby_patch_level
185
198
  fi
186
199
  fi
187
200
 
188
201
  __rvm_irbrc
189
202
 
190
- PATH="$MY_RUBY_HOME/bin:$GEM_HOME/bin:$rvm_path/bin:$rvm_system_path" ; export PATH
203
+ PATH=$(echo $PATH | tr ':' '\n' | awk '$0 !~ /rvm/' | paste -sd : -)
204
+ PATH=$rvm_bin_path:$PATH ; export PATH
205
+ PATH=$MY_RUBY_HOME/bin:$GEM_HOME/bin:$rvm_path/bin:$PATH ; export PATH
191
206
 
192
207
  if [ ! -z "$rvm_default_flag" ] ; then
193
208
  RUBY_VERSION="$($MY_RUBY_HOME/bin/ruby -v | sed 's/^\(.*\) (.*$/\1/')"
@@ -6,7 +6,7 @@ if [ "$user" = "root" ] ; then
6
6
  exit 1
7
7
  fi
8
8
 
9
- info="\n\033[0;32m<i>\033[0m"
9
+ item="\033[0;32m* \033[0m"
10
10
  question="\n\033[0;32m<?>\033[0m"
11
11
  cwd=$(pwd)
12
12
  source_dir="${source_dir:-`dirname $0 | xargs dirname`}"
@@ -14,7 +14,9 @@ if [ ! -d "$source_dir" ] ; then unset source_dir ; fi
14
14
  source_dir="${source_dir:-$cwd}"
15
15
  rvm_dir=~/.rvm
16
16
 
17
- echo -e "\nInstalling rvm to ~/.rvm/ ..."
17
+ # State what is required to use rvm
18
+ echo -e "\n\033[0;32mrvm\033[0m\n\n shell scripts that allows a user to manage multiple ruby versions in their own account."
19
+ echo -e "\n Installing rvm to ~/.rvm/ ..."
18
20
  for dir_name in src scripts bin log archives config gems examples ; do
19
21
  mkdir -p $rvm_dir/$dir_name
20
22
  done
@@ -29,12 +31,6 @@ for file_name in rvm-prompt gemsync ; do
29
31
  chmod +x $rvm_dir/bin/$file_name
30
32
  done ; unset file_name
31
33
 
32
-
33
- # State what is required to use rvm
34
- echo -e "\n\033[0;32mrvm\033[0m is a shell script that allows a user to manage multiple ruby versions in their own account."
35
- echo -e "$info In order to use rvm the following line must occur in your shell's loading files:"
36
- echo -e "\n\033[0;32m (a)\033[0m if [ -s ~/.rvm/scripts/rvm ] ; then source ~/.rvm/scripts/rvm ; fi"
37
-
38
34
  results=$(grep 'scripts/rvm' ~/.bash_profile ~/.bashrc ~/.zshrc > /dev/null)
39
35
  if [ $? -gt 0 ] ; then
40
36
  while : ; do
@@ -44,7 +40,7 @@ if [ $? -gt 0 ] ; then
44
40
  echo 'w00t!'
45
41
  break
46
42
  elif [ "${response:0:1}" = "m" ] ; then
47
- echo -e "$info Please make sure that this line is in place."
43
+ echo -e " Please make sure that this line is in place."
48
44
  break
49
45
  fi
50
46
  done
@@ -96,7 +92,7 @@ if [ $? -gt 0 ] ; then
96
92
  fi
97
93
  fi
98
94
 
99
- echo -e "\n\033[0;32m<i>\033[0m Ensuring that rvm script location in $file is scripts/rvm not bin/rvm for: ~/.bash_profile, ~/.bashrc, ~/.zshrc"
95
+ echo -e "\n Ensuring that rvm script location in $file is scripts/rvm not bin/rvm for: ~/.bash_profile, ~/.bashrc, ~/.zshrc..."
100
96
  for file in ~/.bash_profile ~/.bashrc ~/.zshrc ; do
101
97
  if [ -s $file ] ; then
102
98
  if [ -L $file ] ; then # If the file is a symlink,
@@ -123,11 +119,12 @@ for file in ~/.bash_profile ~/.bashrc ~/.zshrc ; do
123
119
  done
124
120
 
125
121
  if [ -f ~/.rvm/bin/rvm ] ; then
126
- echo -e "\n\033[0;32m<i>\033[0m Removing old rvm file from ~/.rvm/bin/rvm"
122
+ echo -e "\n Removing old rvm file from ~/.rvm/bin/rvm..."
127
123
  rm -f ~/.rvm/bin/rvm
128
124
  fi
129
125
 
130
126
  system=`uname`
127
+ echo -e "\n \033[0;33mNOTES: \033[0m"
131
128
  if [ "$system" = "Linux" ] ; then
132
129
  rvm_apt_get_binary=`which apt-get 2> /dev/null`
133
130
  rvm_emerge_binary=`which emerge 2> /dev/null`
@@ -135,44 +132,41 @@ if [ "$system" = "Linux" ] ; then
135
132
  rvm_yum_binary=`which yum 2> /dev/null`
136
133
 
137
134
  if [ ! -z "$rvm_apt_get_binary" ] ; then
138
- echo -e "\033[0;33m <w> \033[0mFor jRuby (if you wish to use it) you will need:"
139
- echo -e "\033[0;32m <i> \033[0msudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk"
140
- echo -e "\033[0;33m <w> \033[0mFor ree (if you wish to use it) you will need:"
141
- echo -e "\033[0;32m <i> \033[0msudo apt-get install libreadline5-dev libssl-dev bison"
135
+ echo -e " $item For jRuby (if you wish to use it) you will need:"
136
+ echo -e " $ sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk"
137
+ echo -e " $item For ree (if you wish to use it) you will need:"
138
+ echo -e " $ sudo apt-get install libreadline5-dev libssl-dev bison"
142
139
 
143
140
  elif [ ! -z "$rvm_emerge_binary" ] ; then
144
- echo -e "\033[0;33m <w> \033[0mFor jRuby (if you wish to use it) you will need:"
145
- echo -e "\033[0;32m <i> \033[0msudo emerge dev-java/sun-jdk dev-java/sun-jre-bin"
141
+ echo -e " $item For jRuby (if you wish to use it) you will need:"
142
+ echo -e " $ sudo emerge dev-java/sun-jdk dev-java/sun-jre-bin"
146
143
 
147
144
  elif [ ! -z "$rvm_pacman_binary" ] ; then
148
- echo -e "\033[0;33m <w> \033[0mFor jRuby (if you wish to use it) you will need:"
149
- echo -e "\033[0;32m <i> \033[0msudo pacman -Sy jdk jre"
145
+ echo -e " $item For jRuby (if you wish to use it) you will need:"
146
+ echo -e " $ sudo pacman -Sy jdk jre"
150
147
 
151
148
  elif [ ! -z "$rvm_yum_binary" ] ; then
152
- echo -e "\033[0;33m <w> \033[0mFor ree (if you wish to use it) you will need:"
153
- echo -e "\033[0;32m <i> \033[0myum install -y rpm-build gcc gcc-c++ redhat-rpm-config ; then download and rpmbuild and install the sdk, Have fun..."
149
+ echo -e " $item For ree (if you wish to use it) you will need:"
150
+ echo -e " $ yum install -y rpm-build gcc gcc-c++ redhat-rpm-config ; then download and rpmbuild and install the sdk, Have fun..."
154
151
 
155
152
  else
156
- echo -e "\033[0;33m <w> \033[0mFor jRuby (if you wish to use it) you will need:"
157
- echo -e "\033[0;32m <i> \033[0mThe SUN java runtime environment and development kit."
153
+ echo -e " $item For jRuby (if you wish to use it) you will need:"
154
+ echo -e " The SUN java runtime environment and development kit."
158
155
  fi
159
156
  elif [ "$system" = "Darwin" ] ; then
160
- echo -e "\033[0;32m <i> \033[0mBe sure that you have XCode Tools installed in order to use rvm."
161
- echo -e "\033[0;32m <i> \033[0mIf you intend on installing MacRuby you must install LLVM first."
157
+ echo -e " $item Be sure that you have XCode Tools installed in order to use rvm."
158
+ echo -e " $item If you intend on installing MacRuby you must install LLVM first."
162
159
  fi
163
160
 
164
- echo -e "$info There have been a great many updates since previous releases, please:"
165
- echo -e "$info * remove sourcing of ~/.rvm/current from your shell profiles."
166
- echo -e "$info * CLOSE THIS SHELL AND OPEN A NEW ONE FOR rvm."
161
+ echo -e " $item In order to use rvm the following line must occur in your shell's loading files, after all path/variable settings.:"
162
+ echo -e " $item if [ -s ~/.rvm/scripts/rvm ] ; then source ~/.rvm/scripts/rvm ; fi"
163
+ echo -e " $item CLOSE THIS SHELL AND OPEN A NEW ONE in order to use rvm."
167
164
 
168
- echo -e "\n$info Please visit the website for much more information: http://rvm.beginrescueend.com/\n"
169
- echo ' w⦿‿⦿t! '
170
- echo -e "\n ~ Wayne"
165
+ echo -e "\n \033[0;33mRTFM: \033[0m http://rvm.beginrescueend.com/ \n"
166
+ echo -e '\033[0;32mw⦿‿⦿t!\033[0m'
167
+ echo -e "\n ~ Wayne\n"
171
168
 
172
169
  source $rvm_dir/scripts/rvm
173
-
174
- rvm symlinks
175
- echo
176
170
  rvm -v
177
171
  echo
178
172
 
@@ -93,7 +93,7 @@ function __rvm_run {
93
93
  }
94
94
 
95
95
  function __rvm_cleanup_variables {
96
- unset rvm_selected rvm_action rvm_ruby_interpreter rvm_ruby_patch_level rvm_ruby_version rvm_irbrc_file rvm_ruby_irbrc rvm_source_path rvm_path rvm_prefix_path rvm_ruby_package_name rvm_gem_path rvm_command rvm_error_message rvm_ruby_home rvm_ruby_binary rvm_gem_set_name rvm_ruby_tag rvm_ruby_rev rvm_url rvm_ruby_make rvm_ruby_configure rvm_ruby_make_install rvm_config_path rvm_ruby_string rvm_bin_path rvm_force_flag rvm_all_flag rvm_reconfigure_flag rvm_make_flags rvm_bin_flag rvm_load_flag rvm_dump_flag rvm_self_flag rvm_gem_flag rvm_rubygems_flag rvm_debug_flag rvm_delete_flag rvm_summary_flag rvm_test_flag _rvm_spec_flag rvm_install_on_use rvm_json_flag rvm_yaml_flag
96
+ unset rvm_selected rvm_action rvm_ruby_interpreter rvm_ruby_patch_level rvm_ruby_version rvm_irbrc_file rvm_ruby_irbrc rvm_source_path rvm_path rvm_prefix_path rvm_ruby_package_name rvm_gem_path rvm_command rvm_error_message rvm_ruby_home rvm_ruby_binary rvm_gem_set_name rvm_ruby_tag rvm_ruby_rev rvm_url rvm_ruby_make rvm_ruby_configure rvm_ruby_make_install rvm_config_path rvm_ruby_string rvm_bin_path rvm_force_flag rvm_all_flag rvm_reconfigure_flag rvm_make_flags rvm_bin_flag rvm_load_flag rvm_dump_flag rvm_self_flag rvm_gem_flag rvm_rubygems_flag rvm_debug_flag rvm_delete_flag rvm_summary_flag rvm_test_flag _rvm_spec_flag rvm_json_flag rvm_yaml_flag
97
97
  }
98
98
 
99
99
  # TODO: root user loadng of /etc/rvmrc
@@ -139,6 +139,11 @@ function __rvm_fetch {
139
139
  if [ $result -gt 0 ] ; then
140
140
  if [ $result -eq 78 ] ; then
141
141
  __rvm_log "error" "The requested url does not exist: '$1'"
142
+ elif [ $result -eq 33 ] ; then
143
+ archive=`basename "$1"`
144
+ __rvm_log "debug" "Server does not support 'range' command, removing '$archive'"
145
+ rm -f $archive ; unset archive
146
+ __rvm_fetch "$1"
142
147
  else
143
148
  __rvm_log "error" "There was an error, please check $rvm_ruby_log_path/*.error.log"
144
149
  fi
@@ -147,10 +152,10 @@ function __rvm_fetch {
147
152
  return $result
148
153
  }
149
154
 
150
- function __rvm_load-defaults {
155
+ function __rvm_load_defaults {
151
156
 
152
157
  if [ ! -s $rvm_path/system ] ; then
153
- for variable in RUBY_VERSION GEM_HOME GEM_PATH MY_RUBY_HOME PATH ; do
158
+ for variable in RUBY_VERSION GEM_HOME GEM_PATH MY_RUBY_HOME ; do
154
159
  eval value=\$${variable}
155
160
  if [ -z "$value" ] ; then
156
161
  echo "unset ${variable}" >> $rvm_path/system
@@ -162,14 +167,6 @@ function __rvm_load-defaults {
162
167
  done
163
168
  fi
164
169
 
165
- rvm_system_path=`__rvm_db "system_path"`
166
- if [ -z "$rvm_system_path" ] ; then
167
- __rvm_clean-path # Clean the path the first time we compute system path.
168
- __rvm_remove-rvm-from-path
169
- rvm_system_path="$PATH"
170
- __rvm_db "system_path" "$rvm_system_path"
171
- fi
172
-
173
170
  rvm_system_ps1=`__rvm_db "system_ps1"`
174
171
  if [ -z "$rvm_system_ps1" ] ; then
175
172
  rvm_system_ps1=$PS1
@@ -202,7 +199,9 @@ function __rvm_load-defaults {
202
199
 
203
200
  function __rvm_reset {
204
201
 
205
- PATH="$rvm_path/bin:$rvm_system_path" ; export PATH
202
+ PATH=$(echo $PATH | tr ':' '\n' | awk '$0 !~ /rvm/' | paste -sd : -)
203
+ PATH=$rvm_bin_path:$PATH ; export PATH
204
+
206
205
  for variable in RUBY_VERSION GEM_HOME MY_RUBY_HOME ; do unset $variable ; done
207
206
 
208
207
  for file in system default ; do
@@ -210,7 +209,7 @@ function __rvm_reset {
210
209
  done
211
210
  __rvm_select "system"
212
211
 
213
- for system_config in system_ps1 system_path system_ruby system_gem_path system_user_gem_path ; do
212
+ for system_config in system_ps1 system_ruby system_gem_path system_user_gem_path ; do
214
213
  __rvm_db "$system_config" "delete"
215
214
  done ; unset system_config variable
216
215
 
@@ -321,21 +320,6 @@ function __rvm_db {
321
320
  fi
322
321
  }
323
322
 
324
- # Q: TODO: Is this neccessary any longer?
325
- function __rvm_symlinks {
326
- # TODO: Account for the ruby wrapper script files
327
-
328
- mkdir -p ${rvm_path}/bin
329
- for release in `/bin/ls $rvm_path 2> /dev/null | grep 'ruby-'` ; do
330
- for binary in irb gem rdoc ri erb ; do
331
- if [ -x $rvm_path/$release/bin/$binary ] ; then
332
- ln -fs $rvm_path/$release/bin/$binary $rvm_path/bin/$binary-${release#ruby-}
333
- fi
334
- done
335
- done
336
-
337
- }
338
-
339
323
  function __rvm_list {
340
324
 
341
325
  if [ "$rvm_all_flag" ] ; then
@@ -558,15 +542,11 @@ function __rvm_do {
558
542
  # TODO: Extract the outer looping mechanism with rvm_install's
559
543
  rubies=() ; successes=() ; errors=() ; statuses=()
560
544
  # TODO: Extract the common functionality out of the if below
561
- if [ ! -z "$rvm_ruby_version" ] ; then
545
+ if [ ! -z "$rvm_ruby_string" ] ; then
546
+ unset rvm_ruby_interpreter rvm_ruby_version
547
+ __rvm_ruby_do
548
+ elif [ ! -z "$rvm_ruby_version" ] ;then
562
549
  for rvm_ruby_selector in `echo $rvm_ruby_version | tr ',' ' '` ; do
563
- if [ ! -z "$(echo $rvm_ruby_selector | awk '/^[0-9]/')" ] ; then
564
- rvm_ruby_interpreter="ruby"
565
- rvm_ruby_version="$rvm_ruby_selector"
566
- else
567
- rvm_ruby_interpreter="$rvm_ruby_selector"
568
- unset rvm_ruby_version
569
- fi
570
550
  unset rvm_ruby_string
571
551
  __rvm_ruby_do
572
552
  done
@@ -579,69 +559,72 @@ function __rvm_do {
579
559
  fi
580
560
  done < <(/bin/ls $rvm_path/*/bin/ruby 2> /dev/null)
581
561
  fi
582
- __rvm_summary
562
+
563
+ if [ ! -z "$rvm_summary_flag" ] ; then __rvm_summary ; fi
564
+ if [ ! -z "$rvm_yaml_flag" ] ; then __rvm_yaml ; fi
565
+ if [ ! -z "$rvm_json_flag" ] ; then __rvm_json ; fi
566
+
583
567
  return ${#errors[*]}
584
568
  }
585
569
 
586
570
  function __rvm_summary {
587
- if [ ! -z "$rvm_summary_flag" ] ; then
588
- export successes errors statuses
589
- echo -e "\nSummary:"
590
- echo -e "\033[0;32msuccessful (${#successes[*]}) : [ $(echo "${successes[*]}" | sed 's/ /, /g') ]\033[0m"
591
- echo -e "\033[0;31merrors (${#errors[*]}) : [ $(echo "${errors[*]}" | sed 's/ /, /g') ]\033[0m"
592
- echo -e "rubies (${#rubies[*]}) : [ $(echo "${rubies[*]}" | sed 's/ /, /g') ]"
593
- echo -e "statuses: [ $(echo "${statuses[*]}" | sed 's/ /, /g') ]\n"
594
- fi
571
+ export successes errors statuses
572
+ echo -e "\nSummary:"
573
+ echo -e "\033[0;32msuccessful (${#successes[*]}) : [ $(echo "${successes[*]}" | sed 's/ /, /g') ]\033[0m"
574
+ echo -e "\033[0;31merrors (${#errors[*]}) : [ $(echo "${errors[*]}" | sed 's/ /, /g') ]\033[0m"
575
+ echo -e "rubies (${#rubies[*]}) : [ $(echo "${rubies[*]}" | sed 's/ /, /g') ]"
576
+ echo -e "statuses: [ $(echo "${statuses[*]}" | sed 's/ /, /g') ]\n"
577
+ return ${#errors[*]}
578
+ }
595
579
 
596
- if [ ! -z "$rvm_yaml_flag" ] ; then
597
- export successes errors statuses
598
- yaml="\nYAML:\n totals:\n rubies: ${#rubies[*]}\n successes: ${#successes[*]}\n errors: ${#errors[*]}\n successes:"
599
- for var in ${successes[*]} ; do
600
- yaml="$yaml\n - $var"
601
- done
602
- yaml="$yaml\n errors:"
603
- for var in ${errors[*]} ; do
604
- yaml="$yaml\n - $var"
605
- done
606
- yaml="$yaml\n rubies:"
607
- total=${#rubies[*]}
608
- if [ ! -z "$ZSH_VERSION" ] ; then array_start=1 ; else array_start=0 ; fi
609
- for (( index = $array_start ; index < $total + $array_start ; index++ )) ; do
610
- echo "${rubies[$index]}: ${statuses[$index]}"
611
- yaml="$yaml\n \"${rubies[$index]}\": ${statuses[$index]}"
612
- done ; unset index array_start
613
- echo -e "$yaml"
614
- fi
580
+ function __rvm_yaml {
581
+ export successes errors statuses
582
+ yaml="\ntotals:\n rubies: ${#rubies[*]}\n successes: ${#successes[*]}\n errors: ${#errors[*]}\n successes:"
583
+ for var in ${successes[*]} ; do
584
+ yaml="$yaml\n - $var"
585
+ done
586
+ yaml="$yaml\n errors:"
587
+ for var in ${errors[*]} ; do
588
+ yaml="$yaml\n - $var"
589
+ done
590
+ yaml="$yaml\n rubies:"
591
+ total=${#rubies[*]}
592
+ if [ ! -z "$ZSH_VERSION" ] ; then array_start=1 ; else array_start=0 ; fi
593
+ for (( index = $array_start ; index < $total + $array_start ; index++ )) ; do
594
+ echo "${rubies[$index]}: ${statuses[$index]}"
595
+ yaml="$yaml\n \"${rubies[$index]}\": ${statuses[$index]}"
596
+ done ; unset index array_start
615
597
 
616
- if [ ! -z "$rvm_json_flag" ] ; then
617
- #
618
- # TODO: Merge statuses & rubies:
619
- # rubies:
620
- # "jruby...": 0
621
- # "1.9.1...": 1
622
- #
623
- json="JSON:\n{"
598
+ mkdir -p log
599
+ echo -e "$yaml" | tee -a log/summary.yaml
600
+
601
+ return ${#errors[*]}
602
+ }
603
+
604
+ function __rvm_json {
605
+ json="{"
624
606
  json="$json\n \"totals\": { \"rubies\": ${#rubies[*]}, \"successes\": ${#successes[*]}, \"errors\": ${#errors[*]}},"
625
607
  json="$json\n \"successful\": [ "$(echo ${successes[*]} | sed 's/ /", "/g')" ],"
626
608
  json="$json\n \"errors\": [ "$(echo ${errors[*]} | sed 's/ /", "/g')" ],"
627
609
  json="$json\n \"rubies\": {"
628
- total=${#rubies[*]}
629
- if [ ! -z "$ZSH_VERSION" ] ; then array_start=1 ; else array_start=0 ; fi
630
- for (( index = $array_start ; index < $total + $array_start ; index++ )) ; do
631
- echo "${rubies[$index]}: ${statuses[$index]}"
632
- json="$json\n {\"${rubies[$index]}\": ${statuses[$index]}}"
633
- if (( $index + 1 < $total + $array_start )) ; then json="$json, " ; fi
634
- done ; unset index array_start
635
- json="$json\n }\n}"
636
- echo -e "$json"
637
- else
638
- unset bin_line rvm_summary_flag
639
- fi
610
+
611
+ total=${#rubies[*]}
612
+ if [ ! -z "$ZSH_VERSION" ] ; then array_start=1 ; else array_start=0 ; fi
613
+ for (( index = $array_start ; index < $total + $array_start ; index++ )) ; do
614
+ echo "${rubies[$index]}: ${statuses[$index]}"
615
+ json="$json\n {\"${rubies[$index]}\": ${statuses[$index]}}"
616
+ if (( $index + 1 < $total + $array_start )) ; then json="$json, " ; fi
617
+ done ; unset index array_start
618
+ json="$json\n }\n}"
619
+
620
+ mkdir -p log
621
+ echo -e "$json" | tee -a log/summary.json
622
+
640
623
  return ${#errors[*]}
641
624
  }
642
625
 
643
626
  function __rvm_benchmark {
644
- rvm_code="$(cat <<RubyCode
627
+ rvm_code="$(cat <<RubyCode
645
628
  #!/usr/bin/env ruby
646
629
  require "benchmark"
647
630
  Benchmark.bmbm do|benchmark|
@@ -649,14 +632,14 @@ Benchmark.bmbm do|benchmark|
649
632
 
650
633
  RubyCode
651
634
  )"
652
- echo "$rvm_code" > /tmp/$$.rb
653
- cat $rvm_ruby_file >> /tmp/$$.rb
654
- echo -e "\n end\nend\n" >> /tmp/$$.rb
655
- unset rvm_code
656
- rvm_ruby_args="/tmp/$$.rb"
657
- rvm_action="rubydo"
658
- if [ ! -z "$rvm_debug_flag" ] ; then echo -e "/tmp/$$.rb:\n$(cat /tmp/$$.rb)" ; fi
659
- __rvm_do
635
+ echo "$rvm_code" > /tmp/$$.rb
636
+ cat $rvm_ruby_file >> /tmp/$$.rb
637
+ echo -e "\n end\nend\n" >> /tmp/$$.rb
638
+ unset rvm_code
639
+ rvm_ruby_args="/tmp/$$.rb"
640
+ rvm_action="rubydo"
641
+ if [ ! -z "$rvm_debug_flag" ] ; then echo -e "/tmp/$$.rb:\n$(cat /tmp/$$.rb)" ; fi
642
+ __rvm_do
660
643
  }
661
644
 
662
645
  function __rvm_ruby_string {
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.45
4
+ version: 0.0.46
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wayne E. Seguin
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-20 00:00:00 -07:00
12
+ date: 2009-09-22 00:00:00 -07:00
13
13
  default_executable: rvm-install
14
14
  dependencies: []
15
15