rvm 1.0.6 → 1.0.7

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  unset GREP_OPTIONS
4
4
 
5
- source "$rvm_scripts_path/base"
5
+ source "$rvm_path/scripts/base"
6
6
 
7
7
  usage() {
8
8
  echo "Usage: rvm migrate from to" >&2
@@ -20,12 +20,12 @@ confirm() {
20
20
  }
21
21
 
22
22
  die_with_error() {
23
- "$rvm_scripts_path/log" "fail" "$1"
23
+ "$rvm_path/scripts/log" "fail" "$1"
24
24
  exit "${2:-1}"
25
25
  }
26
26
 
27
27
  expand_ruby_name() {
28
- "$rvm_scripts_path/tools" strings "$1" | awk -F"$rvm_gemset_separator" '{print $1}'
28
+ "$rvm_path/scripts/tools" strings "$1" | awk -F"${rvm_gemset_separator:-"@"}" '{print $1}'
29
29
  }
30
30
 
31
31
  migrate_rubies() {
@@ -57,14 +57,14 @@ migrate_rubies() {
57
57
  echo "Moving gemsets..."
58
58
 
59
59
  while read -r origin_gemset; do
60
- [[ "$origin_gemset" = "$expanded_source" || "$origin_gemset" = "$expanded_source$rvm_gemset_separator"* ]] || continue
60
+ [[ "$origin_gemset" = "$expanded_source" || "$origin_gemset" = "${expanded_source}${rvm_gemset_separator:-"@"}"* ]] || continue
61
61
 
62
- gemset_name="${origin_gemset/*${rvm_gemset_separator}/}"
62
+ gemset_name="${origin_gemset/*${rvm_gemset_separator:-"@"}/}"
63
63
 
64
64
  destination_gemset="$expanded_destination"
65
65
 
66
66
  if [[ -n "$gemset_name" ]]; then
67
- destination_gemset="$destination_gemset$rvm_gemset_separator$gemset_name"
67
+ destination_gemset="${destination_gemset}${rvm_gemset_separator:-"@"}${gemset_name}"
68
68
  fi
69
69
 
70
70
  echo "Moving $origin_gemset to $destination_gemset"
@@ -83,7 +83,7 @@ migrate_rubies() {
83
83
 
84
84
  __rvm_run_with_env "gemset.pristine" "$destination_gemset" "rvm gemset pristine"
85
85
 
86
- done < <("$rvm_scripts_path/list" gemsets strings | \grep "^$expanded_source")
86
+ done < <("$rvm_path/scripts/list" gemsets strings | \grep "^$expanded_source")
87
87
 
88
88
 
89
89
  if confirm 'Do you wish to move over aliases?' ; then
@@ -94,15 +94,15 @@ migrate_rubies() {
94
94
 
95
95
  migrate_alias_name="${alias_pair/=*/}"
96
96
 
97
- if [[ "$migrate_ruby_name" = "$expanded_source" || "$migrate_ruby_name" = "$expanded_source$rvm_gemset_separator"* ]]; then
97
+ if [[ "$migrate_ruby_name" = "$expanded_source" || "$migrate_ruby_name" = "${expanded_source}${rvm_gemset_separator:-"@"}"* ]]; then
98
98
 
99
99
  migrate_new_alias_name="${migrate_ruby_name/$expanded_source/$expanded_destination}"
100
100
 
101
101
  echo "Updating alias $migrate_alias_name to point to $migrate_new_alias_name"
102
102
 
103
- "$rvm_scripts_path/alias" delete "$migrate_alias_name" >/dev/null 2>&1
103
+ "$rvm_path/scripts/alias" delete "$migrate_alias_name" >/dev/null 2>&1
104
104
 
105
- "$rvm_scripts_path/alias" create "$migrate_alias_name" "$migrate_new_alias_name" >/dev/null 2>&1
105
+ "$rvm_path/scripts/alias" create "$migrate_alias_name" "$migrate_new_alias_name" >/dev/null 2>&1
106
106
  fi
107
107
 
108
108
  done < "$rvm_config_path/alias"
@@ -113,9 +113,9 @@ migrate_rubies() {
113
113
 
114
114
  origin_wrappers_path="$rvm_wrappers_path/$expanded_source"
115
115
 
116
- binaries=($(cd "$rvm_bin_path" ; find * -type f -maxdepth 0))
116
+ binaries=($(cd "$rvm_bin_path" ; find . -maxdepth 1 -mindepth 1 -type f))
117
117
 
118
- for binary_name in "${binaries[@]}" ; do
118
+ for binary_name in "${binaries[@]//.\/}" ; do
119
119
 
120
120
  full_bin_path="$rvm_bin_path/$binary_name"
121
121
 
@@ -3,7 +3,7 @@
3
3
  original_ruby_strings=$rvm_ruby_strings
4
4
  original_ruby_string=$rvm_ruby_string
5
5
 
6
- source "$rvm_scripts_path/base"
6
+ source "$rvm_path/scripts/base"
7
7
 
8
8
  rvm_monitor_sleep="${rvm_monitor_sleep:-2}"
9
9
 
@@ -58,11 +58,11 @@ while : ; do
58
58
  if [[ "spec" = "$framework" ]] ; then
59
59
  rvm_action="spec"
60
60
  rvm_ruby_args="spec/spec_helper.rb ${changed_spec_files[*]}"
61
- "$rvm_scripts_path/set" $rvm_action $rvm_ruby_args
61
+ "$rvm_path/scripts/set" $rvm_action $rvm_ruby_args
62
62
  elif [[ "test" = "$framework" ]] ; then
63
63
  rvm_action="ruby"
64
64
  rvm_ruby_args=" -r$(echo "${changed_test_files[*]}" | sed 's/ / -r/g') test/test_helper.rb"
65
- "$rvm_scripts_path/set" $rvm_action $rvm_ruby_args
65
+ "$rvm_path/scripts/set" $rvm_action $rvm_ruby_args
66
66
  fi
67
67
  update=1
68
68
  fi
@@ -73,11 +73,11 @@ while : ; do
73
73
  if [[ "spec" = "$framework" ]] ; then
74
74
  rvm_action="spec"
75
75
  rvm_ruby_args="spec/"
76
- "$rvm_scripts_path/set" $rvm_action $rvm_ruby_args
76
+ "$rvm_path/scripts/set" $rvm_action $rvm_ruby_args
77
77
  elif [[ "test" = "$framework" ]] ; then
78
78
  rvm_action="rake"
79
79
  rvm_ruby_args="test"
80
- "$rvm_scripts_path/set" "$rvm_action" $rvm_ruby_args
80
+ "$rvm_path/scripts/set" "$rvm_action" $rvm_ruby_args
81
81
  fi
82
82
  update=1
83
83
  fi
@@ -19,7 +19,7 @@ if [[ "Linux" = "$system" ]] ; then
19
19
  # git is required.
20
20
  # patch is required (for ree, some ruby head's).
21
21
  # If you wish to install rbx and/or any MRI head (eg. 1.9.2-head) then you must install and use rvm 1.8.7 first.
22
- # If you wish to have the 'pretty colors' again, set 'export rvm_pretty_print=1' in ~/.rvmrc.
22
+ # If you wish to have the 'pretty colors' again, set 'export rvm_pretty_print_flag=1' in ~/.rvmrc.
23
23
  "
24
24
 
25
25
  if [[ ! -z "$rvm_aptitude_binary" ]] ; then
@@ -3,7 +3,7 @@
3
3
  if [[ "$rvm_trace_flag" -eq 2 ]] ; then set -x ; export rvm_trace_flag ; fi
4
4
 
5
5
  rvm_base_except="selector"
6
- source "$rvm_scripts_path/base"
6
+ source "$rvm_path/scripts/base"
7
7
 
8
8
  # Tools to make managing ruby dependencies inside of rvm easier.
9
9
  args=($*)
@@ -20,18 +20,18 @@ install_package() {
20
20
  (
21
21
  builtin cd "$rvm_src_path"
22
22
 
23
- "$rvm_scripts_path/log" "info" "Fetching $package-$version.$archive_format to $rvm_archives_path"
23
+ "$rvm_path/scripts/log" "info" "Fetching $package-$version.$archive_format to $rvm_archives_path"
24
24
 
25
25
  if [[ "$archive_format" = "tar.gz" ]] || [[ "$archive_format" = "tgz" ]] ; then
26
- "$rvm_scripts_path/fetch" "$package_url/$package-$version.$archive_format" || (result=$? && return $result)
26
+ "$rvm_path/scripts/fetch" "$package_url/$package-$version.$archive_format" || (result=$? && return $result)
27
27
  __rvm_run "$package/extract" "tar zxf $rvm_archives_path/$package-$version.$archive_format -C $rvm_src_path" "Extracting $package-$version.$archive_format to $rvm_src_path"
28
28
 
29
29
  elif [[ "$archive_format" = "tar.bz2" ]] ; then
30
- "$rvm_scripts_path/fetch" "$package_url/$package-$version.$archive_format" || (result=$? && return $result)
30
+ "$rvm_path/scripts/fetch" "$package_url/$package-$version.$archive_format" || (result=$? && return $result)
31
31
  __rvm_run "$package/extract" "tar jxf $rvm_archives_path/$package-$version.$archive_format -C $rvm_src_path" "Extracting $package-$version.$archive_format to $rvm_src_path"
32
32
 
33
33
  elif [[ "$archive_format" = "zip" ]] ; then
34
- "$rvm_scripts_path/fetch" "$package_url/$package-$version.$archive_format" || (result=$? && return $result)
34
+ "$rvm_path/scripts/fetch" "$package_url/$package-$version.$archive_format" || (result=$? && return $result)
35
35
  __rvm_run "$package/extract" "unzip -q -o $rvm_archives_path/$package-$version.$archive_format -d $rvm_src_path/$package-$version" "Extracting $package-$version.$archive_format to $rvm_src_path"
36
36
 
37
37
  else
@@ -53,7 +53,7 @@ install_package() {
53
53
  fi
54
54
 
55
55
  \touch "$rvm_config_path/packages"
56
- "$rvm_scripts_path/db" "$rvm_config_path/packages" "${package}" "${version}"
56
+ "$rvm_path/scripts/db" "$rvm_config_path/packages" "${package}" "${version}"
57
57
  )
58
58
  }
59
59
 
@@ -81,11 +81,11 @@ openssl() {
81
81
 
82
82
  if [[ ! -z "$rvm_archflags" ]]; then
83
83
 
84
- if "$rvm_scripts_path/match" "$rvm_archflags" "64"; then
84
+ if "$rvm_path/scripts/match" "$rvm_archflags" "64"; then
85
85
  hw_cpu64bit=1
86
86
  fi
87
87
 
88
- if "$rvm_scripts_path/match" "$rvm_archflags" "ppc"; then
88
+ if "$rvm_path/scripts/match" "$rvm_archflags" "ppc"; then
89
89
  hw_machine="Power Macintosh"
90
90
  fi
91
91
  else
@@ -109,7 +109,9 @@ openssl() {
109
109
  fi
110
110
  fi
111
111
  configure_command="./Configure"
112
- patches="$rvm_patches_path/$package/Makefile.org.patch,$rvm_patches_path/$package/crypto-Makefile.patch"
112
+
113
+ patches="$rvm_path/patches/$package/Makefile.org.patch,$rvm_patch/patches/$package/crypto-Makefile.patch"
114
+
113
115
  # Don't use -j option for make OpenSSL
114
116
  if [[ ! -z "$rvm_make_flags" ]] ; then
115
117
  rvm_make_flags=$(echo "$rvm_make_flags" | sed -e "s/-j[[:space:]]*[[0-9]]*//")
@@ -192,16 +194,20 @@ llvm() {
192
194
  }
193
195
 
194
196
  if [[ -n "$library" ]] ; then
197
+
195
198
  case $library in
196
199
  readline|iconv|curl|openssl|zlib|autoconf|ncurses|pkgconfig|gettext|glib|mono|llvm|libxml2)
197
200
  ${library}
198
201
  ;;
199
202
  *)
200
- "$rvm_scripts_path/log" "error" "Package '${library}' is unknown."
203
+ "$rvm_path/scripts/log" "error" "Package '${library}' is unknown."
201
204
  ;;
202
205
  esac
206
+
207
+ exit $?
208
+
203
209
  else
204
- "$rvm_scripts_path/log" "info" "Usage: 'rvm package {install,uninstall} {readline,iconv,curl,openssl,zlib,autoconf,ncurses,pkgconfig,gettext,glib,mono,llvm,libxml2}'"
210
+ "$rvm_path/scripts/log" "info" \
211
+ "Usage: 'rvm package {install,uninstall} {readline,iconv,curl,openssl,zlib,autoconf,ncurses,pkgconfig,gettext,glib,mono,llvm,libxml2}'"
205
212
  exit 1
206
213
  fi
207
-
@@ -6,9 +6,14 @@
6
6
  # Returns the path used to look for a patch given a specific name.
7
7
  __rvm_patch_lookup_path() {
8
8
  echo "/"
9
+
9
10
  [[ -n "${rvm_patch_original_pwd:-""}" ]] && echo "$rvm_patch_original_pwd/"
11
+
10
12
  echo "$PWD/"
11
- __rvm_ruby_string_paths_under "$rvm_patches_path" | sed 's/$/\//'
13
+
14
+ __rvm_ruby_string_paths_under "$rvm_path/patches" | sed 's/$/\//'
15
+
16
+ return $?
12
17
  }
13
18
 
14
19
  __rvm_expand_patch_name() {
@@ -18,7 +23,7 @@ __rvm_expand_patch_name() {
18
23
 
19
24
  [[ -z "$name" ]] && return 0
20
25
 
21
- expanded_patch_name="$("$rvm_scripts_path/patchsets" show "$name")"
26
+ expanded_patch_name="$("$rvm_path/scripts/patchsets" show "$name")"
22
27
 
23
28
  if [[ "$?" == "0" ]]; then
24
29
  echo "${expanded_patch_name}"
@@ -52,5 +57,5 @@ __rvm_lookup_full_patch_path() {
52
57
 
53
58
  done
54
59
 
55
- return 1
60
+ return 0
56
61
  }
@@ -1,41 +1,73 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
3
  rvm_base_except="selector"
4
- source "$rvm_scripts_path/base"
5
- source "$rvm_scripts_path/patches"
4
+
5
+ source "$rvm_path/scripts/base"
6
+
7
+ source "$rvm_path/scripts/patches"
6
8
 
7
9
  lookup_patchset() {
10
+
11
+ local paths lookup_path
12
+
8
13
  if [[ -z "$1" ]]; then
9
14
  echo "Usage: rvm patchset show name"
10
15
  return 1
11
16
  fi
12
- for lookup_path in $(__rvm_ruby_string_paths_under "$rvm_patchsets_path") ; do
17
+
18
+ paths=($(__rvm_ruby_string_paths_under "$rvm_path/patchsets"))
19
+
20
+ for lookup_path in "${paths[@]}" ; do
21
+
13
22
  if [[ -s "$lookup_path/$1" ]]; then
23
+
14
24
  cat "$lookup_path/$1"
15
- return
25
+
26
+ return 0
16
27
  fi
17
- done; unset lookup_path
28
+ done
29
+
18
30
  return 1
19
31
  }
20
32
 
21
33
  # Return the full patch for a given patch.
22
34
  __rvm_lookup_full_patch_path() {
35
+
36
+ local directory directories extension patch_path
37
+
38
+ directories=($(__rvm_patch_lookup_path))
39
+
23
40
  # Absolute path, pwd and then finally the rvm patches path.
24
- for directory in $(__rvm_patch_lookup_path) ; do
41
+ for directory in "${directories[@]}" ; do
42
+
25
43
  for extension in {"",.patch,.diff}; do
44
+
26
45
  patch_path="${directory}${1}${extension}"
46
+
27
47
  if [[ -s "$patch_path" ]]; then
28
48
  echo "$patch_path"
29
49
  return
30
50
  fi
31
- done; unset extension patch_path
32
- done; unset directory
51
+
52
+ done
53
+
54
+ done
55
+
33
56
  return 1
34
57
  }
35
58
 
36
59
  usage() {
37
- echo "Usage: 'rvm patchset {show,lookup} [patchset]'"
38
- echo " Tools for manipulating patchsets."
60
+ printf "
61
+
62
+ Usage:
63
+
64
+ rvm patchset {show,lookup} [patchset]
65
+
66
+ Description:
67
+
68
+ Tools for manipulating patchsets.
69
+
70
+ "
39
71
  return 1
40
72
  }
41
73
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- source "$rvm_scripts_path/base"
3
+ source "$rvm_path/scripts/base"
4
4
 
5
5
  usage() {
6
6
  echo "Usage: rvm repair {symlinks,environments,archives,all}" >&2
@@ -15,7 +15,7 @@ repair_symlinks() {
15
15
  for executable_name in $(\find \. -type l); do
16
16
  [[ -e "$executable_name" || "$(readlink "$executable_name")" != "$rvm_wrappers_path/"* ]] && continue
17
17
  if [[ -f "$executable_name" ]] ; then
18
- "$rvm_scripts_path/log" "info" \
18
+ "$rvm_path/scripts/log" "info" \
19
19
  "Removing stale symlink from $(basename "$executable_name")"
20
20
  \rm -f "$executable_name"
21
21
  fi
@@ -27,19 +27,19 @@ repair_symlinks() {
27
27
  repair_environments() {
28
28
  local environment_name environments
29
29
 
30
- environments=($(cd "$rvm_environments_path" ; find * -type f -maxdepth 0))
30
+ environments=($(cd "$rvm_environments_path" ; find . -maxdepth 1 -mindepth 1 -type f))
31
31
 
32
- for environment_name in "${environments[@]}" ; do
32
+ for environment_name in "${environments[@]//.\/}" ; do
33
33
 
34
34
  [[ -L "$rvm_environments_path/$environment_name" ]] && continue
35
35
 
36
- "$rvm_scripts_path/log" "info" \
36
+ "$rvm_path/scripts/log" "info" \
37
37
  "Regenerating environment file for '$environment_name'"
38
38
 
39
39
  [[ -f "$rvm_environments_path/$environment_name" ]] && \rm -f "$rvm_environments_path/$environment_name"
40
40
 
41
41
  (
42
- source "$rvm_scripts_path/base"
42
+ source "$rvm_path/scripts/base"
43
43
 
44
44
  __rvm_become "$environment_name"
45
45
 
@@ -54,19 +54,19 @@ repair_archives() {
54
54
 
55
55
  local archive_file archives stored_md5sum
56
56
 
57
- archives=($(cd "$rvm_archives_path" ; find * -type f -maxdepth 0))
57
+ archives=($(cd "$rvm_archives_path" ; find . -maxdepth 1 -mindepth 1 -type f))
58
58
 
59
- for archive_file in "${archives[@]}" ; do
59
+ for archive_file in "${archives[@]//.\/}" ; do
60
60
 
61
61
  [[ -f "$rvm_archives_path/$archive_file" ]] || continue
62
62
 
63
- stored_md5sum="$($rvm_scripts_path/db "$rvm_config_path/md5" "$archive_file" | head -n1)"
63
+ stored_md5sum="$($rvm_path/scripts/db "$rvm_config_path/md5" "$archive_file" | head -n1)"
64
64
 
65
65
  if [[ -n "$stored_md5sum" ]] ; then
66
66
 
67
- if [[ ! "$rvm_scripts_path/md5" "$rvm_archives_path/$archive_file" "$stored_md5sum" ]] ; then
67
+ if [[ ! "$rvm_path/scripts/md5" "$rvm_archives_path/$archive_file" "$stored_md5sum" ]] ; then
68
68
 
69
- "$rvm_scripts_path/log" "info" "Removing archive for '$archive_file' - Incorrect md5 checksum."
69
+ "$rvm_path/scripts/log" "info" "Removing archive for '$archive_file' - Incorrect md5 checksum."
70
70
 
71
71
  rm -rf "$rvm_archives_path/$archive_file"
72
72
  fi
@@ -84,7 +84,7 @@ repair_all() {
84
84
 
85
85
  repair_environments
86
86
 
87
- "$rvm_scripts_path/log" "info" \
87
+ "$rvm_path/scripts/log" "info" \
88
88
  "symlinks, archives and environments have been repaired."
89
89
 
90
90
  return 0
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- source "$rvm_scripts_path/base"
3
+ source "$rvm_path/scripts/base"
4
4
 
5
5
  result=0
6
6
 
@@ -20,17 +20,17 @@ rubygems_setup() {
20
20
  fi
21
21
 
22
22
  if [[ "$install" -eq 0 ]] ; then
23
- "$rvm_scripts_path/log" "error" "Cannot switch to ${version} for this interpreter."
23
+ "$rvm_path/scripts/log" "error" "Cannot switch to ${version} for this interpreter."
24
24
  exit 1
25
25
  else
26
- "$rvm_scripts_path/log" "info" "Removing old Rubygems files..."
26
+ "$rvm_path/scripts/log" "info" "Removing old Rubygems files..."
27
27
  rubygems_dir="$(ruby -rrbconfig -e "puts Config::CONFIG.values_at('sitelibdir','vendorlibdir').detect {|path| File.directory?(File.join(path, 'rubygems')) }.to_s")"
28
28
  if [[ -n "$rubygems_dir" && -d "$rubygems_dir" ]]; then
29
29
  # Remove common files installed by ruby gems.
30
30
  \rm -rf "${rubygems_dir}/ubygems.rb" "${rubygems_dir}/rubygems.rb" "${rubygems_dir}/rubygems" "${rubygems_dir}/gauntlet_rubygems.rb"
31
31
  fi
32
32
 
33
- "$rvm_scripts_path/log" "info" "Installing rubygems dedicated to $rvm_ruby_string..."
33
+ "$rvm_path/scripts/log" "info" "Installing rubygems dedicated to $rvm_ruby_string..."
34
34
  rvm_rubygems_version="$version"
35
35
  rvm_gem_package_name="rubygems-$rvm_rubygems_version"
36
36
  rvm_rubygems_url=$(__rvm_db "rubygems_${rvm_rubygems_version}_url")
@@ -43,10 +43,10 @@ rubygems_setup() {
43
43
  fi
44
44
 
45
45
  if [[ ! -d "$rvm_src_path/$rvm_gem_package_name" ]] ; then
46
- "$rvm_scripts_path/log" "info" "Retrieving $rvm_gem_package_name"
47
- "$rvm_scripts_path/fetch" "$rvm_gem_url"
46
+ "$rvm_path/scripts/log" "info" "Retrieving $rvm_gem_package_name"
47
+ "$rvm_path/scripts/fetch" "$rvm_gem_url"
48
48
  result=$? ; if [[ "$result" -gt 0 ]] ; then
49
- "$rvm_scripts_path/log" "error" "There has been an error while trying to fetch the source. Aborting the installation." ; return $result
49
+ "$rvm_path/scripts/log" "error" "There has been an error while trying to fetch the source. Aborting the installation." ; return $result
50
50
  fi
51
51
  \mkdir -p "$rvm_src_path/$rvm_gem_package_name"
52
52
  __rvm_run "rubygems.extract" "gunzip < $rvm_archives_path/$rvm_gem_package_name.tgz | tar xf - -C $rvm_src_path" "Extracting $rvm_gem_package_name ..."
@@ -57,9 +57,9 @@ rubygems_setup() {
57
57
  __rvm_run "rubygems.install" "GEM_PATH=$rvm_ruby_gem_path GEM_HOME=$rvm_ruby_gem_home BUNDLE_PATH=$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"
58
58
  result=$?
59
59
  if [[ "$result" == 0 ]] ; then
60
- "$rvm_scripts_path/log" "info" "Installation of rubygems completed successfully."
60
+ "$rvm_path/scripts/log" "info" "Installation of rubygems completed successfully."
61
61
  else
62
- "$rvm_scripts_path/log" "warning" "Installation of rubygems did not complete successfully."
62
+ "$rvm_path/scripts/log" "warning" "Installation of rubygems did not complete successfully."
63
63
  fi
64
64
 
65
65
  if [[ ! -z "$rvm_ruby_major_version" ]] ; then
@@ -80,7 +80,7 @@ rubygems_setup() {
80
80
  }
81
81
 
82
82
  if ! command -v ruby > /dev/null ; then
83
- "$rvm_scripts_path/log" "error" "'ruby' was not found, cannot install rubygems unless ruby is present (Do you have an RVM ruby installed & selected?)"
83
+ "$rvm_path/scripts/log" "error" "'ruby' was not found, cannot install rubygems unless ruby is present (Do you have an RVM ruby installed & selected?)"
84
84
  exit 1
85
85
  fi
86
86
 
@@ -92,7 +92,7 @@ version="${args[0]}"
92
92
  args="$(echo ${args[@]:1}) " # Strip trailing / leading / extra spacing.
93
93
 
94
94
  if [[ -z "$version" ]] ; then
95
- "$rvm_scripts_path/log" "error" "A version must be specified, for example 'rvm rubygems 1.3.7'"
95
+ "$rvm_path/scripts/log" "error" "A version must be specified, for example 'rvm rubygems 1.3.7'"
96
96
  exit 1
97
97
  fi
98
98