rvm 0.0.73 → 0.0.74

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: 73
4
+ :patch: 74
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rvm}
8
- s.version = "0.0.73"
8
+ s.version = "0.0.74"
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-11-02}
12
+ s.date = %q{2009-11-03}
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}
@@ -218,7 +218,7 @@ function __rvm_parse_args {
218
218
 
219
219
  -C|--configure)
220
220
  if [[ ! -z "$1" ]] ; then
221
- rvm_ruby_configure="$(echo $1 | tr ',' ' ')"
221
+ rvm_ruby_configure_flags="$(echo $1 | tr ',' ' ')"
222
222
  shift
223
223
  else
224
224
  rvm_action="error"
@@ -1,6 +1,6 @@
1
1
  #!/bin/bash
2
2
 
3
- function __rvm_install_source {
3
+ __rvm_install_source() {
4
4
  if [[ -z "$rvm_ruby_selected_flag" ]] ; then __rvm_select $* ; fi
5
5
  __rvm_log "info" "Installing Ruby from source to: $rvm_ruby_home"
6
6
  mkdir -p "$rvm_ruby_log_path"
@@ -85,11 +85,11 @@ function __rvm_install_source {
85
85
 
86
86
  if [[ -s ./Makefile ]] && [[ -z "$rvm_reconfigure_flag" ]] ; then
87
87
  __rvm_log "debug" "Skipping configure step, Makefile exists so configure must have already been run."
88
- elif [[ ! -z "rvm_ruby_configure" ]] ; then
88
+ elif [[ ! -z "$rvm_ruby_configure" ]] ; then
89
89
  __rvm_run "configure" "$rvm_ruby_configure"
90
90
  if [[ $? -gt 0 ]] ; then result=$? ; return $result ; fi
91
91
  elif [[ -s ./configure ]] ; then
92
- __rvm_run "configure" "./configure --prefix=$rvm_ruby_home $rvm_ruby_configure $configure_parameters" "Configuring $rvm_ruby_package_name, this may take a while depending on your cpu(s)..."
92
+ __rvm_run "configure" "./configure --prefix=$rvm_ruby_home $rvm_ruby_configure_flags $configure_parameters" "Configuring $rvm_ruby_package_name, this may take a while depending on your cpu(s)..."
93
93
  if [[ $? -gt 0 ]] ; then result=$? ; return $result ; fi
94
94
  unset configure_parameters
95
95
  else
@@ -116,7 +116,7 @@ function __rvm_install_source {
116
116
  __rvm_pushpop
117
117
  }
118
118
 
119
- function __rvm_install_ruby {
119
+ __rvm_install_ruby() {
120
120
 
121
121
  if [[ -z "$rvm_ruby_selected_flag" ]] ; then __rvm_select $* ; fi
122
122
  if [[ ! -z "$RUBYOPT" ]] ; then ruby_options="$RUBYOPT" ; unset RUBYOPT ; fi
@@ -128,7 +128,7 @@ function __rvm_install_ruby {
128
128
  if [[ "$rvm_head_flag" = 1 ]] ; then
129
129
  macruby_path="/usr/local/bin"
130
130
  # TODO: configure & make variables should be set here.
131
- rvm_ruby_configure=""
131
+ rvm_ruby_configure=" true "
132
132
  rvm_ruby_make="rake"
133
133
  rvm_ruby_make_install="sudo rake install"
134
134
  rvm_url="$(__rvm_db "${rvm_ruby_interpreter}_repo_url")"
@@ -193,8 +193,10 @@ RubyWrapper
193
193
 
194
194
  mkdir -p "$rvm_ruby_log_path"
195
195
  mkdir -p "${rvm_ruby_home}/lib/ruby/gems/1.8/gems"
196
- if [[ ! -z "$rvm_ruby_configure" ]] ; then rvm_ruby_configure="$(echo $rvm_ruby_configure | sed 's#--#-c --#g')"; fi
197
- __rvm_run "install" "./installer -a $rvm_path/$rvm_ruby_interpreter-$rvm_ruby_version-$rvm_ruby_patch_level $rvm_ree_options --dont-install-useful-gems $rvm_ruby_configure" "Installing $rvm_ruby_string, this may take a while, depending on your cpu(s)..." # --no-tcmalloc
196
+ if [[ ! -z "$rvm_ruby_configure_flags" ]] ; then
197
+ rvm_ruby_configure_flags="$(echo $rvm_ruby_configure_flags | sed 's#--#-c --#g')"
198
+ fi
199
+ __rvm_run "install" "./installer -a $rvm_path/$rvm_ruby_interpreter-$rvm_ruby_version-$rvm_ruby_patch_level $rvm_ree_options --dont-install-useful-gems $rvm_ruby_configure_flags" "Installing $rvm_ruby_string, this may take a while, depending on your cpu(s)..." # --no-tcmalloc
198
200
  if [[ $? -gt 0 ]] ; then result=$? ; return $result ; fi
199
201
  chmod +x $rvm_ruby_home/bin/*
200
202
 
@@ -394,7 +396,7 @@ RubyWrapper
394
396
  PATH=$rvm_bin_path:$PATH ; export PATH
395
397
 
396
398
  rvm_ruby_repo_url=$rvm_shyouhei_repo_url
397
- rvm_ruby_configure=" "
399
+ unset rvm_ruby_configure
398
400
  rvm_ruby_src_path=$rvm_ruby_home
399
401
  # rvm_ruby_make="rake"
400
402
  # rvm_ruby_make_install="rake install"
@@ -419,12 +421,12 @@ RubyWrapper
419
421
 
420
422
  if [[ -s ./Makefile ]] && [[ -z "$rvm_reconfigure_flag" ]] ; then
421
423
  __rvm_log "debug" "Skipping configure step, Makefile exists so configure must have already been run."
424
+ elif [[ ! -z "rvm_ruby_configure" ]] ; then
425
+ $rvm_ruby_configure
422
426
  elif [[ -s ./configure ]] ; then
423
- __rvm_run "configure" "./configure --prefix=$rvm_ruby_home $rvm_ruby_configure $configure_parameters" "Configuring $rvm_ruby_package_name using $rvm_ruby_configure, this may take a while depending on your cpu(s)..."
427
+ __rvm_run "configure" "./configure --prefix=$rvm_ruby_home $rvm_ruby_configure_flags $configure_parameters" "Configuring $rvm_ruby_package_name using $rvm_ruby_configure_flags, this may take a while depending on your cpu(s)..."
424
428
  if [[ $? -gt 0 ]] ; then result=$? ; return $result ; fi
425
429
  unset configure_parameters
426
- elif [[ ! -z "rvm_ruby_configure" ]] ; then
427
- $rvm_ruby_configure
428
430
  else
429
431
  __rvm_log "error" "Skipping configure step, 'configure' script does not exist, did autoconf not run successfully?"
430
432
  fi
@@ -464,7 +466,7 @@ RubyWrapper
464
466
  if [[ ! -z "$ruby_options" ]] ; then RUBYOPT=$ruby_options ; export RUBYOPT ; fi
465
467
  }
466
468
 
467
- function __rvm_manage_rubies {
469
+ __rvm_manage_rubies() {
468
470
  __rvm_state
469
471
  rubies=() ; successes=() ; errors=() ; statuses=()
470
472
  unset rvm_gem_set_name
@@ -503,7 +505,7 @@ function __rvm_manage_rubies {
503
505
  if [[ ! -z "$rvm_json_flag" ]] ; then __rvm_json ; fi
504
506
  }
505
507
 
506
- function __rvm_uninstall_ruby {
508
+ __rvm_uninstall_ruby() {
507
509
  if [[ -z "$rvm_ruby_selected_flag" ]] ; then __rvm_select $* ; fi
508
510
 
509
511
  if [[ ! -z "$rvm_ruby_package_name" ]] ; then
@@ -524,7 +526,7 @@ function __rvm_uninstall_ruby {
524
526
  fi
525
527
  }
526
528
 
527
- function __rvm_remove_ruby {
529
+ __rvm_remove_ruby() {
528
530
  if [[ -z "$rvm_ruby_selected_flag" ]] ; then __rvm_select ; fi
529
531
 
530
532
  if [[ ! -z "$rvm_ruby_string" ]] ; then
@@ -544,7 +546,7 @@ function __rvm_remove_ruby {
544
546
  fi
545
547
  }
546
548
 
547
- function __rvm_post_install {
549
+ __rvm_post_install() {
548
550
  binaries="${binaries:-"gem irb erb ri rdoc testrb rake"}"
549
551
  for binary in $(echo $binaries) ; do
550
552
  if [[ -e "$rvm_ruby_home/bin/$binary" ]] || [[ -e "$rvm_ruby_src_path/bin/$binary" ]] ; then
@@ -577,7 +579,7 @@ function __rvm_post_install {
577
579
  fi ; unset binary
578
580
  }
579
581
 
580
- function __rvm_rubygems_setup {
582
+ __rvm_rubygems_setup() {
581
583
  if [[ ! -z "$(echo $rvm_ruby_version | awk '/^1\.9/')" ]] || [[ ! -z "$(echo $rvm_ruby_interpreter | awk '/^mput/')" ]] ; then
582
584
  # 1.9 has it's own built-in gem command
583
585
  __rvm_inject_ruby_shebang "$rvm_ruby_src_path/bin/gem"
@@ -589,20 +591,20 @@ function __rvm_rubygems_setup {
589
591
 
590
592
  elif [[ ! -z "$(echo $rvm_ruby_interpreter | awk '/^rbx|jruby/')" ]] ; then
591
593
  __rvm_log "debug" "Skipping rubygems update for $rvm_ruby_version"
592
-
593
594
  else
594
595
  __rvm_log "info" "Installing rubygems dedicated to $rvm_ruby_package_name..."
595
596
  rvm_gem_package_name="rubygems-1.3.5"
596
597
  rvm_gem_url="http://rubyforge.org/frs/download.php/60718/$rvm_gem_package_name.tgz"
597
- if [[ -d "$rvm_src_path/$rvm_gem_package_name" ]] && [[ -f "$rvm_src_path/$rvm_gem_package_name/setup.rb" ]]; then
598
- cd "$rvm_src_path/$rvm_gem_package_name"
599
- else
600
- rm -rf "$rvm_src_path/$rvm_gem_package_name"
598
+
599
+ # Sanity check...
600
+ if [[ ! -f "$rvm_src_path/$rvm_gem_package_name/setup.rb" ]]; then rm -rf "$rvm_src_path/$rvm_gem_package_name" ; fi
601
+ if [[ ! -d "$rvm_src_path/$rvm_gem_package_name" ]] ; then
601
602
  __rvm_log "info" "Retrieving $rvm_gem_package_name"
602
603
  __rvm_fetch "$rvm_gem_url"
603
604
  mkdir -p "$rvm_src_path/$rvm_gem_package_name"
604
605
  __rvm_run "rubygems.extract" "tar zxf $rvm_archives_path/$rvm_gem_package_name.tgz -C $rvm_src_path" "Extracting $rvm_gem_package_name"
605
606
  fi
607
+ cd "$rvm_src_path/$rvm_gem_package_name"
606
608
  __rvm_run "rubygems.install" "GEM_PATH=$rvm_gem_path GEM_HOME=$rvm_ruby_gem_home $rvm_ruby_home/bin/ruby $rvm_src_path/$rvm_gem_package_name/setup.rb" "Installing rubygems for $rvm_ruby_home/bin/ruby"
607
609
  result=$?
608
610
  if [[ $result -eq 0 ]] ; then
@@ -615,7 +617,7 @@ function __rvm_rubygems_setup {
615
617
  return $result
616
618
  }
617
619
 
618
- function __rvm_inject_ruby_shebang {
620
+ __rvm_inject_ruby_shebang() {
619
621
  __rvm_actual_file $1
620
622
  if [[ -f "$actual_file" ]] ; then
621
623
  sed -i.orig -e "s=env [j]*ruby=env $rvm_ruby_home/bin/ruby=" $actual_file
@@ -623,7 +625,7 @@ function __rvm_inject_ruby_shebang {
623
625
  fi ; unset actual_file
624
626
  }
625
627
 
626
- function __rvm_inject_gem_env {
628
+ __rvm_inject_gem_env() {
627
629
  __rvm_actual_file $1
628
630
  if [[ -f "$actual_file" ]] ; then
629
631
  if [[ ! -z "$(head -n 1 $actual_file | awk '/[j]*ruby/')" ]] ; then
@@ -639,7 +641,7 @@ function __rvm_inject_gem_env {
639
641
  fi ; unset actual_file
640
642
  }
641
643
 
642
- function __rvm_actual_file {
644
+ __rvm_actual_file() {
643
645
  if [[ -L $1 ]] ; then # If the file is a symlink,
644
646
  actual_file="$(readlink $1)" # read the link target so we can preserve it.
645
647
  else
@@ -1,7 +1,7 @@
1
1
  #!/bin/bash
2
2
 
3
3
  # __rvm_select implementation version patch_level
4
- function __rvm_select {
4
+ __rvm_select() {
5
5
  if [[ -z "$rvm_ruby_string" ]] ; then
6
6
  rvm_ruby_string="${rvm_ruby_interpreter}"
7
7
  if [[ ! -z "$rvm_ruby_version" ]] ; then rvm_ruby_string="$rvm_ruby_string-$rvm_ruby_version" ; fi
@@ -45,7 +45,7 @@ function __rvm_select {
45
45
  rvm_ruby_repo_url=${rvm_rbx_repo_url:-"$(__rvm_db "rubinius_repo_url")"}
46
46
  rvm_ruby_string="rbx-head" # for now :)
47
47
  rvm_url=$rvm_ruby_repo_url
48
- rvm_ruby_configure=""
48
+ rvm_ruby_configure=" true "
49
49
  rvm_ruby_make="build"
50
50
  rvm_ruby_make_install=""
51
51
  ;;
@@ -153,14 +153,14 @@ function __rvm_select {
153
153
 
154
154
  rvm_ruby_selected_flag=1
155
155
 
156
- export rvm_ruby_interpreter rvm_ruby_version rvm_ruby_repo_url rvm_ruby_package_name rvm_url rvm_ruby_patch_level rvm_ruby_configure rvm_ruby_make rvm_ruby_make_install rvm_ruby_revision rvm_ruby_tag rvm_major_version rvm_minor_version rvm_gem_set_name rvm_gem_path rvm_ruby_gem_home rvm_path rvm_src_path rvm_bin_path rvm_ruby_binary rvm_ruby_home rvm_log_path rvm_ruby_log_path rvm_src_path rvm_ruby_src_path rvm_ruby_irbrc rvm_ruby_selected_flag rvm_ruby_string
156
+ export rvm_ruby_interpreter rvm_ruby_version rvm_ruby_repo_url rvm_ruby_package_name rvm_url rvm_ruby_patch_level rvm_ruby_configure rvm_ruby_configure_flags rvm_ruby_make rvm_ruby_make_install rvm_ruby_revision rvm_ruby_tag rvm_major_version rvm_minor_version rvm_gem_set_name rvm_gem_path rvm_ruby_gem_home rvm_path rvm_src_path rvm_bin_path rvm_ruby_binary rvm_ruby_home rvm_log_path rvm_ruby_log_path rvm_src_path rvm_ruby_src_path rvm_ruby_irbrc rvm_ruby_selected_flag rvm_ruby_string
157
157
  else
158
158
  __rvm_unset_ruby_variables
159
159
  rvm_ruby_interpreter="system"
160
160
  fi
161
161
  }
162
162
 
163
- function __rvm_use {
163
+ __rvm_use() {
164
164
  if [[ -z "$rvm_ruby_selected_flag" ]] ; then __rvm_select $* ; fi
165
165
  if [[ -z "$rvm_ruby_interpreter" ]] ; then rvm_ruby_interpreter="default" ; fi
166
166
 
@@ -342,6 +342,7 @@ __rvm_ruby_string() {
342
342
  patch_level="$(__rvm_db "${rvm_ruby_interpreter}_${rvm_ruby_version}_patch_level")"
343
343
  if [[ ! -z "$patch_level" ]] ; then rvm_ruby_patch_level="p${patch_level}" ; fi
344
344
  if [[ ! -z "$rvm_ruby_patch_level" ]] ; then
345
+ rvm_ruby_patch_level="$(echo $rvm_ruby_patch_level | sed 's#^pp#p#')"
345
346
  rvm_ruby_string="${rvm_ruby_string}-${rvm_ruby_patch_level}"
346
347
  fi
347
348
  fi
@@ -33,7 +33,7 @@ Info
33
33
  unset full_version
34
34
  }
35
35
 
36
- function __rvm_debug {
36
+ __rvm_debug() {
37
37
  __rvm_log "debug" "PATH:\n$(echo $PATH | awk -F":" '{print $1":"$2":"$3":"$4":"$5}')"
38
38
  __rvm_log "debug" "uname -a: $(uname -a)"
39
39
 
@@ -68,7 +68,7 @@ function __rvm_debug {
68
68
 
69
69
  # Logging functions based on level
70
70
  # TODO: Allow specification of a base file name to output to.
71
- function __rvm_log {
71
+ __rvm_log() {
72
72
  if [[ ! -z "$2" ]] ; then level=$1 ; shift ; else level="info" ; fi
73
73
  message=$1
74
74
  case "$level" in
@@ -92,19 +92,19 @@ __rvm_push() {
92
92
  unset array item
93
93
  }
94
94
 
95
- function __rvm_clean_path {
95
+ __rvm_clean_path() {
96
96
  PATH=$(echo $PATH | tr -s ':' '\n' | awk '!($0 in a){a[$0];print}' | tr -s '\n' ':' | sed 's#:$##')
97
97
  export PATH
98
98
  }
99
99
 
100
- function __rvm_remove_rvm_from_path {
100
+ __rvm_remove_rvm_from_path() {
101
101
  PATH=$(echo $PATH | tr -s ':' '\n' | grep -v "\.rvm" | tr -s '\n' ':' | sed 's#:$##')
102
102
  export PATH
103
103
  }
104
104
 
105
- function __rvm_gi { gem install -q --no-rdoc --no-ri $* ; }
105
+ __rvm_gi() { gem install -q --no-rdoc --no-ri $* ; }
106
106
 
107
- function __rvm_run {
107
+ __rvm_run() {
108
108
  log_file_name="$1" ; command="$2" ; message="$3"
109
109
  rvm_ruby_log_path="${rvm_ruby_log_path:-$rvm_path/log}"
110
110
  mkdir -p $(dirname "$rvm_ruby_log_path/$log_file_name.log")
@@ -124,19 +124,19 @@ function __rvm_run {
124
124
 
125
125
  __rvm_cleanup_variables() {
126
126
  __rvm_unset_ruby_variables
127
- unset rvm_ruby_selected_flag rvm_action rvm_irbrc_file rvm_src_path rvm_path rvm_prefix_path rvm_gem_path rvm_command rvm_error_message rvm_gem_set_name rvm_url rvm_config_path 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 rvm_shebang_flag rvm_env_flag rvm_tail_flag rvm_use_flag rvm_dir_flag rvm_list_flag rvm_empty_flag rvm_log_path rvm_file_name rvm_ruby_configure rvm_benchmark_flag
127
+ unset rvm_ruby_selected_flag rvm_action rvm_irbrc_file rvm_src_path rvm_path rvm_prefix_path rvm_gem_path rvm_command rvm_error_message rvm_gem_set_name rvm_url rvm_config_path 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 rvm_shebang_flag rvm_env_flag rvm_tail_flag rvm_use_flag rvm_dir_flag rvm_list_flag rvm_empty_flag rvm_log_path rvm_file_name rvm_benchmark_flag
128
128
  }
129
129
 
130
130
  __rvm_unset_ruby_variables() {
131
- unset rvm_ruby_interpreter rvm_ruby_version rvm_ruby_repo_url rvm_ruby_package_name rvm_ruby_patch_level rvm_ruby_make rvm_ruby_make_install rvm_ruby_revision rvm_ruby_tag rvm_major_version rvm_minor_version rvm_ruby_gem_home rvm_ruby_binary rvm_ruby_home rvm_ruby_log_path rvm_ruby_src_path rvm_ruby_irbrc rvm_ruby_selected_flag rvm_ruby_string rvm_ruby_string rvm_ruby_src_path rvm_ruby_repo_url rvm_major_version rvm_minor_version rvm_ruby_gem_home rvm_head_flag rvm_ruby_configure
131
+ unset rvm_ruby_interpreter rvm_ruby_version rvm_ruby_repo_url rvm_ruby_package_name rvm_ruby_patch_level rvm_ruby_make rvm_ruby_make_install rvm_ruby_revision rvm_ruby_tag rvm_major_version rvm_minor_version rvm_ruby_gem_home rvm_ruby_binary rvm_ruby_home rvm_ruby_log_path rvm_ruby_src_path rvm_ruby_irbrc rvm_ruby_selected_flag rvm_ruby_string rvm_ruby_string rvm_ruby_src_path rvm_ruby_repo_url rvm_major_version rvm_minor_version rvm_ruby_gem_home rvm_head_flag rvm_ruby_configure_flags rvm_ruby_configure
132
132
  }
133
133
 
134
134
  # TODO: root user loadng of /etc/rvmrc
135
- function __rvm_load_rvmrc {
135
+ __rvm_load_rvmrc() {
136
136
  if [[ -s ~/.rvmrc ]] ; then source ~/.rvmrc ; fi
137
137
  }
138
138
 
139
- function __rvm_bin_scripts {
139
+ __rvm_bin_scripts() {
140
140
  for rvm_ruby_binary in $(\ls $rvm_path/*/bin/ruby 2> /dev/null) ; do
141
141
  if [[ -x "$rvm_ruby_binary" ]] ; then
142
142
  rvm_ruby_string=$(dirname "$rvm_ruby_binary" | xargs dirname | xargs basename)
@@ -146,7 +146,7 @@ function __rvm_bin_scripts {
146
146
  done
147
147
  }
148
148
 
149
- function __rvm_bin_script {
149
+ __rvm_bin_script() {
150
150
  if [[ -z "$rvm_ruby_selected_flag" ]] ; then __rvm_select $* ; fi
151
151
  ruby_wrapper=$(cat <<RubyWrapper
152
152
  #!/bin/bash
@@ -165,7 +165,7 @@ RubyWrapper
165
165
  chmod +x $rvm_path/bin/$rvm_ruby_package_name
166
166
  }
167
167
 
168
- function __rvm_fetch {
168
+ __rvm_fetch() {
169
169
  __rvm_pushpop $rvm_archives_path
170
170
  if [[ -z "$1" ]] ; then log "fail" "BUG: __rvm_fetch called without an argument :/" ; return 1 ; fi
171
171
  archive=$(basename "$1") ; downlaod=1
@@ -221,7 +221,7 @@ function __rvm_fetch {
221
221
  return $result
222
222
  }
223
223
 
224
- function __rvm_load_defaults {
224
+ __rvm_load_defaults() {
225
225
  if [[ ! -s "$rvm_path/system" ]] ; then
226
226
  for variable in RUBY_VERSION GEM_HOME GEM_PATH MY_RUBY_HOME ; do
227
227
  eval value=\$${variable}
@@ -258,7 +258,7 @@ function __rvm_load_defaults {
258
258
  fi
259
259
  }
260
260
 
261
- function __rvm_reset {
261
+ __rvm_reset() {
262
262
  PATH=$(echo $PATH | tr ':' '\n' | awk '$0 !~ /rvm/' | paste -sd : -)
263
263
  PATH=$rvm_bin_path:$PATH ; export PATH
264
264
 
@@ -277,7 +277,7 @@ function __rvm_reset {
277
277
  rm -f $rvm_path/bin/ruby $rvm_path/bin/gem $rvm_path/bin/rake $rvm_path/bin/irb $rvm_path/bin/default*
278
278
  }
279
279
 
280
- function __rvm_implode {
280
+ __rvm_implode() {
281
281
  while : ; do
282
282
  __rvm_log "warn" "Are you SURE you wish for rvm to implode? This will remove $rvm_path ? (type 'yes' or 'no')"
283
283
  read response
@@ -301,7 +301,7 @@ function __rvm_implode {
301
301
  done
302
302
  }
303
303
 
304
- function __rvm_gemdir {
304
+ __rvm_gemdir() {
305
305
  if [[ -z "$rvm_ruby_selected_flag" ]] ; then __rvm_select $* ; fi
306
306
  if [[ ! -z "$GEM_HOME" ]] ; then
307
307
  echo "$GEM_HOME"
@@ -310,7 +310,7 @@ function __rvm_gemdir {
310
310
  fi
311
311
  }
312
312
 
313
- function __rvm_source_dir {
313
+ __rvm_source_dir() {
314
314
  if [[ -z "$rvm_ruby_selected_flag" ]] ; then __rvm_select $* ; fi
315
315
  if [[ -z "$rvm_ruby_src_path" ]] ; then
316
316
  __rvm_log "fail" "No source directory exists for the default implementation."
@@ -321,7 +321,7 @@ function __rvm_source_dir {
321
321
 
322
322
  # clones from source implementation/version to default
323
323
  # TODO: Merge this into 'rvm sync'
324
- function __rvm_gemdup {
324
+ __rvm_gemdup() {
325
325
  if [[ -z "$rvm_ruby_selected_flag" ]] ; then __rvm_select $* ; fi
326
326
  __rvm_log "debug" "$rvm_ruby_interpreter"
327
327
  if [[ "default" = "$rvm_ruby_interpreter" ]] ; then
@@ -338,7 +338,7 @@ function __rvm_gemdup {
338
338
  __rvm_gem_sync
339
339
  }
340
340
 
341
- function __rvm_gem_sync {
341
+ __rvm_gem_sync() {
342
342
  if [[ ! -z "$rvm_source_gem_path" ]] ; then
343
343
  for rvm_gem_name_version in $rvm_source_gem_path/gems/* ; do
344
344
  rvm_gem_name="${rvm_gem_name_version%-*}"
@@ -491,7 +491,7 @@ __rvm_list() {
491
491
  fi
492
492
  }
493
493
 
494
- function __rvm_initialize {
494
+ __rvm_initialize() {
495
495
  rvm_fetch=$(which curl)
496
496
  if [[ $? -ne 0 ]] ; then
497
497
  __rvm_log "fail" "rvm requires curl, which does not seem to exist in your path :("
@@ -665,7 +665,7 @@ __rvm_do() {
665
665
  return ${#errors[*]}
666
666
  }
667
667
 
668
- function __rvm_summary {
668
+ __rvm_summary() {
669
669
  export successes errors statuses
670
670
  summary="\nSummary:\n\n"
671
671
  if [[ ${#successes[*]} -gt 0 ]] ; then
@@ -680,7 +680,7 @@ function __rvm_summary {
680
680
  return ${#errors[*]}
681
681
  }
682
682
 
683
- function __rvm_yaml {
683
+ __rvm_yaml() {
684
684
  export successes errors statuses
685
685
  yaml="totals:\n rubies: ${#rubies[*]}\n successes: ${#successes[*]}\n errors: ${#errors[*]}\nsuccesses:"
686
686
  for var in ${successes[*]} ; do yaml="$yaml\n - $var" ; done
@@ -699,7 +699,7 @@ function __rvm_yaml {
699
699
  return ${#errors[*]}
700
700
  }
701
701
 
702
- function __rvm_json {
702
+ __rvm_json() {
703
703
  json="{"
704
704
  json="$json\n \"totals\": { \"rubies\": ${#rubies[*]}, \"successes\": ${#successes[*]}, \"errors\": ${#errors[*]}},"
705
705
  json="$json\n \"successful\": [ "$(echo ${successes[*]} | sed 's# #", "#g')" ],"
@@ -721,7 +721,7 @@ function __rvm_json {
721
721
  return ${#errors[*]}
722
722
  }
723
723
 
724
- function __rvm_benchmark {
724
+ __rvm_benchmark() {
725
725
  code="require \"benchmark\" \n Benchmark.bmbm do |benchmark| \n benchmark.report(\"${rvm_ruby_file}\") do \n"
726
726
  echo -e "$code" > "$rvm_temp_path/$$.rb"
727
727
  unset code
@@ -734,14 +734,14 @@ function __rvm_benchmark {
734
734
  __rvm_do
735
735
  }
736
736
 
737
- function __rvm_irbrc {
737
+ __rvm_irbrc() {
738
738
  # Create the irbrc for the currently selected ruby installation.
739
739
  if [[ -d "$rvm_ruby_home" ]] && [[ ! -s "$rvm_ruby_irbrc" ]] ; then
740
740
  cp $rvm_path/scripts/irbrc $rvm_ruby_irbrc
741
741
  fi
742
742
  }
743
743
 
744
- function __rvm_pushpop {
744
+ __rvm_pushpop() {
745
745
  if [[ -z "$1" ]] ; then
746
746
  popd > /dev/null 2>&1
747
747
  else
@@ -749,7 +749,7 @@ function __rvm_pushpop {
749
749
  fi
750
750
  }
751
751
 
752
- function __rvm_state {
752
+ __rvm_state() {
753
753
  if [[ -z "$rvm_state" ]] ; then
754
754
  if [[ -z "$(which ruby | awk /$(basename $rvm_path)/)" ]] ; then
755
755
  rvm_state=system
@@ -764,7 +764,7 @@ function __rvm_state {
764
764
  fi
765
765
  }
766
766
 
767
- function __rvm_inspect {
767
+ __rvm_inspect() {
768
768
  for binary in $rvm_ruby_args ; do
769
769
  actual_file=$(which $binary)
770
770
  __rvm_log "info" "$actual_file:"
@@ -780,7 +780,7 @@ function __rvm_inspect {
780
780
  #
781
781
  # ruby supporting libraries:
782
782
  #
783
- function __rvm_readline_install {
783
+ __rvm_readline_install() {
784
784
  __rvm_make_flags
785
785
  __rvm_pushpop $rvm_src_path
786
786
  package="readline" ; version="5.2" ; archive_format="tar.gz"
@@ -803,7 +803,7 @@ function __rvm_readline_install {
803
803
  __rvm_pushpop
804
804
  }
805
805
 
806
- function __rvm_iconv_install {
806
+ __rvm_iconv_install() {
807
807
  __rvm_make_flags
808
808
  __rvm_pushpop $rvm_src_path
809
809
  package="libiconv" ; version=1.13.1 ; archive_format="tar.gz"
@@ -817,7 +817,7 @@ function __rvm_iconv_install {
817
817
  __rvm_pushpop
818
818
  }
819
819
 
820
- function __rvm_openssl_install {
820
+ __rvm_openssl_install() {
821
821
  __rvm_make_flags
822
822
  if match "$rvm_archflags" "x86_64" ; then
823
823
  openssl_os="os/compiler darwin64-x86_64-cc"
@@ -836,7 +836,7 @@ function __rvm_openssl_install {
836
836
  __rvm_pushpop
837
837
  }
838
838
 
839
- function __rvm_zlib_install {
839
+ __rvm_zlib_install() {
840
840
  __rvm_make_flags
841
841
  __rvm_pushpop $rvm_src_path
842
842
  package="zlib" ; version="1.2.3" ; archive_format="tar.gz"
@@ -850,7 +850,7 @@ function __rvm_zlib_install {
850
850
  __rvm_pushpop
851
851
  }
852
852
 
853
- function __rvm_ncurses_install {
853
+ __rvm_ncurses_install() {
854
854
  __rvm_make_flags
855
855
  __rvm_pushpop $rvm_src_path
856
856
  package="ncurses" ; version="5.7" ; archive_format="tar.gz"
@@ -875,9 +875,9 @@ __rvm_make_flags() {
875
875
  fi
876
876
 
877
877
  if [[ "-arch x86_64" = "$rvm_archflags" ]] ; then
878
- rvm_ruby_configure="${rvm_ruby_configure} --build=x86_64-apple-darwin$(uname -r) --host=x86_64-apple-darwin$(uname -r)"
878
+ rvm_ruby_configure_flags="${rvm_ruby_configure_flags} --build=x86_64-apple-darwin$(uname -r) --host=x86_64-apple-darwin$(uname -r)"
879
879
  elif [[ "-arch i386" = "$rvm_archflags" ]] ; then
880
- rvm_ruby_configure="${rvm_ruby_configure} --build=i386-apple-darwin$(uname -r) --host=i386-apple-darwin$(uname -r)"
880
+ rvm_ruby_configure_flags="${rvm_ruby_configure_flags} --build=i386-apple-darwin$(uname -r) --host=i386-apple-darwin$(uname -r)"
881
881
  fi
882
882
 
883
883
  if [[ -z "$rvm_sdk" ]] ; then
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.73
4
+ version: 0.0.74
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-11-02 00:00:00 -05:00
12
+ date: 2009-11-03 00:00:00 -05:00
13
13
  default_executable: rvm-install
14
14
  dependencies: []
15
15