rvm 0.1.5 → 0.1.6
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.
- data/config/db +1 -1
- data/config/md5 +1 -0
- data/install +2 -2
- data/lib/VERSION.yml +1 -1
- data/rvm.gemspec +2 -2
- data/scripts/cli +1 -1
- data/scripts/completion +1 -1
- data/scripts/gems +14 -14
- data/scripts/initialize +2 -2
- data/scripts/install +2 -2
- data/scripts/manage +1 -1
- data/scripts/rvm-install +2 -2
- data/scripts/selector +2 -2
- data/scripts/update +2 -2
- data/scripts/utility +9 -7
- metadata +2 -2
data/config/db
CHANGED
@@ -18,7 +18,7 @@ ruby_1.9.1_patch_level=378
|
|
18
18
|
ruby_1.9.2_patch_level=preview1
|
19
19
|
ruby_1.8.5_patch_level=231
|
20
20
|
ruby_1.8.6_patch_level=383
|
21
|
-
ruby_1.8.7_patch_level=
|
21
|
+
ruby_1.8.7_patch_level=249
|
22
22
|
jruby_version=1.4.0
|
23
23
|
jruby_repo_url=git://github.com/jruby/jruby.git
|
24
24
|
jruby_url=http://jruby.kenai.com/downloads
|
data/config/md5
CHANGED
@@ -8,6 +8,7 @@ ruby-1.8.6-p383.tar.gz=4f49544d4a4d0d34e9d86c41e853db2e
|
|
8
8
|
ruby-1.8.7-p160.tar.gz=945398f97e2de6dd8ab6df68d10bb1a1
|
9
9
|
ruby-1.8.7-p174.tar.gz=18dcdfef761a745ac7da45b61776afa5
|
10
10
|
ruby-1.8.7-p248.tar.gz=60a65374689ac8b90be54ca9c61c48e3
|
11
|
+
ruby-1.8.7-p249.tar.gz=d7db7763cffad279952eb7e9bbfc221c
|
11
12
|
ruby-1.9.1-p129.tar.gz=c71f413514ee6341c627be2957023a5c
|
12
13
|
ruby-1.9.1-p243.tar.gz=515bfd965814e718c0943abf3dde5494
|
13
14
|
ruby-1.9.1-p376.tar.gz=ebb20550a11e7f1a2fbd6fdec2a3e0a3
|
data/install
CHANGED
@@ -65,7 +65,7 @@ rvm_archives_path="${rvm_archives_path:-"$rvm_path/archives"}"
|
|
65
65
|
rvm_src_path="${rvm_src_path:-"$rvm_path/src"}"
|
66
66
|
rvm_log_path="${rvm_log_path:-"$rvm_path/log"}"
|
67
67
|
rvm_bin_path="${rvm_bin_path:-"$rvm_path/bin"}"
|
68
|
-
|
68
|
+
rvm_gems_path="${rvm_gems_path:-"$rvm_path/gems"}"
|
69
69
|
rvm_rubies_path="${rvm_rubies_path:-"$rvm_path/rubies"}"
|
70
70
|
rvm_scripts_path="${rvm_scripts_path:-"$rvm_path/scripts"}"
|
71
71
|
rvm_config_path="${rvm_config_path:-"$rvm_path/config"}"
|
@@ -74,7 +74,7 @@ rvm_tmp_path="${rvm_tmp_path:-"$rvm_path/tmp"}"
|
|
74
74
|
rvm_symlink_path="${rvm_symlink_path:-/usr/local/bin}"
|
75
75
|
rvm_gem_options="${rvm_gem_options:-"--no-rdoc --no-ri"}"
|
76
76
|
|
77
|
-
mkdir -p $rvm_archives_path $rvm_src_path $rvm_log_path $rvm_bin_path $
|
77
|
+
mkdir -p $rvm_archives_path $rvm_src_path $rvm_log_path $rvm_bin_path $rvm_gems_path $rvm_rubies_path $rvm_config_path $rvm_hooks_path $rvm_tmp_path $rvm_symlink_path $rvm_gems_path/cache $rvm_gems_path/doc
|
78
78
|
|
79
79
|
for file in README LICENCE ; do
|
80
80
|
cp -f "$source_path/$file" "$rvm_path/"
|
data/lib/VERSION.yml
CHANGED
data/rvm.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rvm}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.6"
|
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{2010-02-
|
12
|
+
s.date = %q{2010-02-04}
|
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}
|
data/scripts/cli
CHANGED
@@ -263,7 +263,7 @@ __rvm_parse_args() {
|
|
263
263
|
|
264
264
|
--install) export rvm_install_on_use_flag=1 ;;
|
265
265
|
-h|--help|usage|help) rvm_action=help ;;
|
266
|
-
-G|--gems)
|
266
|
+
-G|--gems) rvm_gems_path="$1" ; shift ;;
|
267
267
|
--source) rvm_src_path="$1" ; shift ;;
|
268
268
|
--archives) rvm_archives_path="$1" ; shift ;;
|
269
269
|
--make) rvm_ruby_make="$1" ; shift ;;
|
data/scripts/completion
CHANGED
@@ -74,7 +74,7 @@ _rvm ()
|
|
74
74
|
;;
|
75
75
|
|
76
76
|
--install) rvm_install_on_use_flag=1 ;;
|
77
|
-
-G|--gems)
|
77
|
+
-G|--gems) rvm_gems_path="$1" ; shift ;;
|
78
78
|
--source) rvm_src_path="$1" ; shift ;;
|
79
79
|
--archives) rvm_archives_path="$1" ; shift ;;
|
80
80
|
--make) rvm_ruby_make="$1" ; shift ;;
|
data/scripts/gems
CHANGED
@@ -25,25 +25,25 @@ __rvm_gems_dir() {
|
|
25
25
|
__rvm_gems_list() {
|
26
26
|
if [[ -z "$rvm_ruby_selected_flag" ]] ; then __rvm_select ; fi
|
27
27
|
|
28
|
-
$rvm_scripts_path/log "info" "gems(ets) : for $rvm_ruby_string (found in $
|
28
|
+
$rvm_scripts_path/log "info" "gems(ets) : for $rvm_ruby_string (found in $rvm_gems_path/)"
|
29
29
|
|
30
|
-
if [[ ! -z "$
|
30
|
+
if [[ ! -z "$rvm_gems_path" ]] ; then
|
31
31
|
if [[ ! -z $rvm_ruby_string ]] ; then
|
32
|
-
for gemdir in $
|
32
|
+
for gemdir in $rvm_gems_path/${rvm_ruby_string}%* ; do
|
33
33
|
echo "$gemdir" | awk -F'%' '{print $2}'
|
34
34
|
done
|
35
35
|
else
|
36
36
|
$rvm_scripts_path/log "error" "\$rvm_ruby_string is not set!"
|
37
37
|
fi
|
38
38
|
else
|
39
|
-
$rvm_scripts_path/log "error" "\$
|
39
|
+
$rvm_scripts_path/log "error" "\$rvm_gems_path is not set!"
|
40
40
|
fi
|
41
41
|
}
|
42
42
|
|
43
43
|
__rvm_gems_delete() {
|
44
44
|
if [[ -z "$rvm_ruby_selected_flag" ]] ; then __rvm_select ; fi
|
45
45
|
if [[ ! -z "$rvm_gem_set_name" ]] ; then
|
46
|
-
gemdir="$
|
46
|
+
gemdir="$rvm_gems_path/$rvm_ruby_string%$rvm_gem_set_name"
|
47
47
|
if [[ -d "$gemdir" ]] && [[ "$gemdir" != '/' ]] && [[ ! -z "$rvm_force_flag" ]] ; then
|
48
48
|
rm -rf "$gemdir"
|
49
49
|
elif [[ -d "$gemdir" ]] ; then
|
@@ -122,7 +122,7 @@ __rvm_gems_load() {
|
|
122
122
|
return 1
|
123
123
|
fi
|
124
124
|
|
125
|
-
mkdir -p "$
|
125
|
+
mkdir -p "$rvm_gems_path/cache" # Ensure the base cache dir is initialized.
|
126
126
|
|
127
127
|
if [[ -f "$rvm_file_name" ]] ; then
|
128
128
|
echo "Loading $rvm_file_name file..."
|
@@ -182,14 +182,14 @@ __rvm_gem_install() {
|
|
182
182
|
else
|
183
183
|
if [[ -f "$gem" ]] ; then
|
184
184
|
cache_file="$gem"
|
185
|
-
elif [[ -f "$
|
186
|
-
cache_file="$
|
185
|
+
elif [[ -f "$rvm_gems_path/cache/${gem_file_name}" ]] ; then
|
186
|
+
cache_file="$rvm_gems_path/cache/${gem_file_name}"
|
187
187
|
else
|
188
|
-
cache_file="${cache_file:-$(\ls ${
|
188
|
+
cache_file="${cache_file:-$(\ls ${rvm_gems_path}/*/*/cache/${gem_file_name}* 2> /dev/null | sort | head -n1)}"
|
189
189
|
if [[ ! -z "$cache_file" ]] && [[ -f "$cache_file" ]] ; then
|
190
|
-
if [[ "$(dirname $cache_file)" != "$
|
191
|
-
cp "$cache_file" "$
|
192
|
-
cache_file="$
|
190
|
+
if [[ "$(dirname $cache_file)" != "$rvm_gems_path/cache/" ]] ; then
|
191
|
+
cp "$cache_file" "$rvm_gems_path/cache/"
|
192
|
+
cache_file="$rvm_gems_path/cache/$(basename $cache_file)"
|
193
193
|
fi
|
194
194
|
fi
|
195
195
|
fi
|
@@ -209,7 +209,7 @@ __rvm_gem_install() {
|
|
209
209
|
# TODO: Switch this to use match
|
210
210
|
if [[ ! -z "$(echo "$rvm_ruby_gem_list" | awk "/${gem_name/ /} \(.*$gem_version/{print}")" ]] ; then
|
211
211
|
if [[ ! -z "$rvm_force_flag" ]] ; then
|
212
|
-
gem="$
|
212
|
+
gem="$rvm_gems_path/cache/$gem_file_name" # install as a named local gem
|
213
213
|
fi
|
214
214
|
else
|
215
215
|
gem="$cache_file"
|
@@ -221,7 +221,7 @@ __rvm_gem_install() {
|
|
221
221
|
# TODO: Set vars if fourth field is non-empty (means that there are conditional statements to execute in the gem install line.
|
222
222
|
if [[ "rvm_make_flags_flag" -eq 1 ]] ; then __rvm_make_flags ; fi
|
223
223
|
|
224
|
-
if [[ ! -z "$rvm_ruby_gem_home" ]] && [[ "$rvm_ruby_gem_home" != "$
|
224
|
+
if [[ ! -z "$rvm_ruby_gem_home" ]] && [[ "$rvm_ruby_gem_home" != "$rvm_gems_path" ]] ; then
|
225
225
|
command="GEM_HOME='$rvm_ruby_gem_home' GEM_PATH='$rvm_ruby_gem_path' $gem_prefix gem install $rvm_gem_options $gem $gem_postfix $vars"
|
226
226
|
else
|
227
227
|
command="$gem_prefix gem install $rvm_gem_options -q $gem $gem_postfix $vars"
|
data/scripts/initialize
CHANGED
@@ -15,7 +15,7 @@ rvm_archives_path="${rvm_archives_path:-"$rvm_path/archives"}"
|
|
15
15
|
rvm_src_path="${rvm_src_path:-"$rvm_path/src"}"
|
16
16
|
rvm_log_path="${rvm_log_path:-"$rvm_path/log"}"
|
17
17
|
rvm_bin_path="${rvm_bin_path:-"$rvm_path/bin"}"
|
18
|
-
|
18
|
+
rvm_gems_path="${rvm_gems_path:-"$rvm_path/gems"}"
|
19
19
|
rvm_rubies_path="${rvm_rubies_path:-"$rvm_path/rubies"}"
|
20
20
|
rvm_config_path="${rvm_config_path:-"$rvm_path/config"}"
|
21
21
|
rvm_hooks_path="${rvm_hooks_path:-"$rvm_path/hooks"}"
|
@@ -23,5 +23,5 @@ rvm_tmp_path="${rvm_tmp_path:-"$rvm_path/tmp"}"
|
|
23
23
|
rvm_symlink_path="${rvm_symlink_path:-/usr/local/bin}"
|
24
24
|
rvm_gem_options="${rvm_gem_options:-"--no-rdoc --no-ri"}"
|
25
25
|
|
26
|
-
export rvm_path rvm_rubies_path rvm_scripts_path rvm_archives_path rvm_src_path rvm_log_path rvm_bin_path
|
26
|
+
export rvm_path rvm_rubies_path rvm_scripts_path rvm_archives_path rvm_src_path rvm_log_path rvm_bin_path rvm_gems_path rvm_config_path rvm_tmp_path rvm_hooks_path
|
27
27
|
|
data/scripts/install
CHANGED
@@ -65,7 +65,7 @@ rvm_archives_path="${rvm_archives_path:-"$rvm_path/archives"}"
|
|
65
65
|
rvm_src_path="${rvm_src_path:-"$rvm_path/src"}"
|
66
66
|
rvm_log_path="${rvm_log_path:-"$rvm_path/log"}"
|
67
67
|
rvm_bin_path="${rvm_bin_path:-"$rvm_path/bin"}"
|
68
|
-
|
68
|
+
rvm_gems_path="${rvm_gems_path:-"$rvm_path/gems"}"
|
69
69
|
rvm_rubies_path="${rvm_rubies_path:-"$rvm_path/rubies"}"
|
70
70
|
rvm_scripts_path="${rvm_scripts_path:-"$rvm_path/scripts"}"
|
71
71
|
rvm_config_path="${rvm_config_path:-"$rvm_path/config"}"
|
@@ -74,7 +74,7 @@ rvm_tmp_path="${rvm_tmp_path:-"$rvm_path/tmp"}"
|
|
74
74
|
rvm_symlink_path="${rvm_symlink_path:-/usr/local/bin}"
|
75
75
|
rvm_gem_options="${rvm_gem_options:-"--no-rdoc --no-ri"}"
|
76
76
|
|
77
|
-
mkdir -p $rvm_archives_path $rvm_src_path $rvm_log_path $rvm_bin_path $
|
77
|
+
mkdir -p $rvm_archives_path $rvm_src_path $rvm_log_path $rvm_bin_path $rvm_gems_path $rvm_rubies_path $rvm_config_path $rvm_hooks_path $rvm_tmp_path $rvm_symlink_path $rvm_gems_path/cache $rvm_gems_path/doc
|
78
78
|
|
79
79
|
for file in README LICENCE ; do
|
80
80
|
cp -f "$source_path/$file" "$rvm_path/"
|
data/scripts/manage
CHANGED
@@ -765,7 +765,7 @@ __rvm_uninstall_ruby() {
|
|
765
765
|
rm -f $rvm_bin_path/$rvm_ruby_string
|
766
766
|
fi
|
767
767
|
done ; unset dir
|
768
|
-
rm -rf $
|
768
|
+
rm -rf $rvm_gems_path/$rvm_ruby_interpreter/$rvm_ruby_version*/
|
769
769
|
else
|
770
770
|
$rvm_scripts_path/log "fail" "Cannot uninstall unknown package '$rvm_ruby_string'"
|
771
771
|
fi ; unset rvm_uninstall_flag
|
data/scripts/rvm-install
CHANGED
@@ -65,7 +65,7 @@ rvm_archives_path="${rvm_archives_path:-"$rvm_path/archives"}"
|
|
65
65
|
rvm_src_path="${rvm_src_path:-"$rvm_path/src"}"
|
66
66
|
rvm_log_path="${rvm_log_path:-"$rvm_path/log"}"
|
67
67
|
rvm_bin_path="${rvm_bin_path:-"$rvm_path/bin"}"
|
68
|
-
|
68
|
+
rvm_gems_path="${rvm_gems_path:-"$rvm_path/gems"}"
|
69
69
|
rvm_rubies_path="${rvm_rubies_path:-"$rvm_path/rubies"}"
|
70
70
|
rvm_scripts_path="${rvm_scripts_path:-"$rvm_path/scripts"}"
|
71
71
|
rvm_config_path="${rvm_config_path:-"$rvm_path/config"}"
|
@@ -74,7 +74,7 @@ rvm_tmp_path="${rvm_tmp_path:-"$rvm_path/tmp"}"
|
|
74
74
|
rvm_symlink_path="${rvm_symlink_path:-/usr/local/bin}"
|
75
75
|
rvm_gem_options="${rvm_gem_options:-"--no-rdoc --no-ri"}"
|
76
76
|
|
77
|
-
mkdir -p $rvm_archives_path $rvm_src_path $rvm_log_path $rvm_bin_path $
|
77
|
+
mkdir -p $rvm_archives_path $rvm_src_path $rvm_log_path $rvm_bin_path $rvm_gems_path $rvm_rubies_path $rvm_config_path $rvm_hooks_path $rvm_tmp_path $rvm_symlink_path $rvm_gems_path/cache $rvm_gems_path/doc
|
78
78
|
|
79
79
|
for file in README LICENCE ; do
|
80
80
|
cp -f "$source_path/$file" "$rvm_path/"
|
data/scripts/selector
CHANGED
@@ -198,7 +198,7 @@ __rvm_select() {
|
|
198
198
|
rvm_ruby_src_path="$rvm_src_path/$rvm_ruby_string"
|
199
199
|
rvm_ruby_binary="$rvm_ruby_home/bin/ruby"
|
200
200
|
rvm_ruby_irbrc="$rvm_ruby_home/.irbrc"
|
201
|
-
rvm_ruby_gem_home="${
|
201
|
+
rvm_ruby_gem_home="${rvm_gems_path}/${rvm_ruby_string}"
|
202
202
|
|
203
203
|
if [[ "maglev" = "$rvm_ruby_interpreter" ]] ; then
|
204
204
|
export MAGLEV_HOME="$rvm_ruby_home"
|
@@ -213,7 +213,7 @@ __rvm_select() {
|
|
213
213
|
|
214
214
|
mkdir -p $rvm_ruby_log_path
|
215
215
|
|
216
|
-
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
|
216
|
+
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_gems_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
|
217
217
|
else
|
218
218
|
rvm_ruby_interpreter="${rvm_ruby_interpreter:-system}"
|
219
219
|
fi
|
data/scripts/update
CHANGED
@@ -65,7 +65,7 @@ rvm_archives_path="${rvm_archives_path:-"$rvm_path/archives"}"
|
|
65
65
|
rvm_src_path="${rvm_src_path:-"$rvm_path/src"}"
|
66
66
|
rvm_log_path="${rvm_log_path:-"$rvm_path/log"}"
|
67
67
|
rvm_bin_path="${rvm_bin_path:-"$rvm_path/bin"}"
|
68
|
-
|
68
|
+
rvm_gems_path="${rvm_gems_path:-"$rvm_path/gems"}"
|
69
69
|
rvm_rubies_path="${rvm_rubies_path:-"$rvm_path/rubies"}"
|
70
70
|
rvm_scripts_path="${rvm_scripts_path:-"$rvm_path/scripts"}"
|
71
71
|
rvm_config_path="${rvm_config_path:-"$rvm_path/config"}"
|
@@ -74,7 +74,7 @@ rvm_tmp_path="${rvm_tmp_path:-"$rvm_path/tmp"}"
|
|
74
74
|
rvm_symlink_path="${rvm_symlink_path:-/usr/local/bin}"
|
75
75
|
rvm_gem_options="${rvm_gem_options:-"--no-rdoc --no-ri"}"
|
76
76
|
|
77
|
-
mkdir -p $rvm_archives_path $rvm_src_path $rvm_log_path $rvm_bin_path $
|
77
|
+
mkdir -p $rvm_archives_path $rvm_src_path $rvm_log_path $rvm_bin_path $rvm_gems_path $rvm_rubies_path $rvm_config_path $rvm_hooks_path $rvm_tmp_path $rvm_symlink_path $rvm_gems_path/cache $rvm_gems_path/doc
|
78
78
|
|
79
79
|
for file in README LICENCE ; do
|
80
80
|
cp -f "$source_path/$file" "$rvm_path/"
|
data/scripts/utility
CHANGED
@@ -384,7 +384,7 @@ __rvm_initialize() {
|
|
384
384
|
PATH=$rvm_bin_path:$PATH ; export PATH
|
385
385
|
fi
|
386
386
|
|
387
|
-
mkdir -p $rvm_src_path $rvm_bin_path $rvm_archives_path $
|
387
|
+
mkdir -p $rvm_src_path $rvm_bin_path $rvm_archives_path $rvm_gems_path $rvm_tmp_path
|
388
388
|
}
|
389
389
|
|
390
390
|
# Update rubygems or binscripts based on CLI selection.
|
@@ -720,7 +720,7 @@ __rvm_make_flags() {
|
|
720
720
|
__rvm_gems_select() {
|
721
721
|
if [[ -z "$(which gem 2>/dev/null)" ]] ; then return 0 ; fi
|
722
722
|
|
723
|
-
rvm_ruby_global_gems_path="$
|
723
|
+
rvm_ruby_global_gems_path="$rvm_gems_path/$rvm_ruby_string%global"
|
724
724
|
|
725
725
|
if [[ -z "$rvm_gem_set_name" ]] ; then
|
726
726
|
# No longer defaulting to 'sticky' gem sets.
|
@@ -735,10 +735,10 @@ __rvm_gems_select() {
|
|
735
735
|
fi
|
736
736
|
|
737
737
|
if [[ ! -z "$rvm_gem_set_name" ]] && ! $rvm_scripts_path/match "$rvm_gem_set_name" "^[0-9]\.[0-9]" ; then
|
738
|
-
rvm_ruby_gem_home="$
|
738
|
+
rvm_ruby_gem_home="$rvm_gems_path/$rvm_ruby_string%$rvm_gem_set_name"
|
739
739
|
else
|
740
740
|
if [[ ! -z "$rvm_ruby_interpreter" ]] && [[ ! -z "$rvm_ruby_version" ]] && [[ "$rvm_ruby_interpreter" != "system" ]] ; then
|
741
|
-
rvm_ruby_gem_home="$
|
741
|
+
rvm_ruby_gem_home="$rvm_gems_path/$rvm_ruby_string"
|
742
742
|
elif [[ -z "$GEM_HOME" ]] && [[ ! -z "$(which gem 2>/dev/null)" ]] ; then
|
743
743
|
rvm_ruby_gem_home=$(gem env gemdir)
|
744
744
|
elif [[ ! -z "$GEM_HOME" ]] ; then
|
@@ -749,20 +749,22 @@ __rvm_gems_select() {
|
|
749
749
|
fi
|
750
750
|
if [[ -z "$rvm_gem_set_name" ]] ; then unset rvm_gem_set_name ; fi
|
751
751
|
else
|
752
|
-
rvm_ruby_gem_home="$
|
752
|
+
rvm_ruby_gem_home="$rvm_gems_path/$rvm_ruby_string%$rvm_gem_set_name"
|
753
753
|
fi
|
754
754
|
rvm_ruby_gem_path="$rvm_ruby_gem_home:$rvm_ruby_global_gems_path"
|
755
755
|
|
756
|
+
# TODO: Remove next line after a few releases.
|
757
|
+
mkdir -p $rvm_gems_path/cache $rvm_gems_path/doc
|
756
758
|
# Careful not to nuke system gems cache.
|
757
759
|
if [[ ! -z "$rvm_ruby_gem_home" ]] && [[ ! -z "$(echo $rvm_ruby_gem_home | awk '/rvm/')" ]] ; then
|
758
760
|
# Global gems cache
|
759
761
|
mkdir -p "$rvm_ruby_gem_home"
|
760
762
|
if [[ ! -L "$rvm_ruby_gem_home/cache" ]] ; then
|
761
763
|
for file in "$rvm_ruby_gem_home"/cache/* ; do
|
762
|
-
mv $file "$
|
764
|
+
mv $file "$rvm_gems_path/cache/" > /dev/null 2>&1
|
763
765
|
done
|
764
766
|
rm -rf "$rvm_ruby_gem_home/cache"
|
765
|
-
ln -nfs "$
|
767
|
+
ln -nfs "$rvm_gems_path/cache" "$rvm_ruby_gem_home/cache"
|
766
768
|
fi
|
767
769
|
fi
|
768
770
|
}
|
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.1.
|
4
|
+
version: 0.1.6
|
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: 2010-02-
|
12
|
+
date: 2010-02-04 00:00:00 -05:00
|
13
13
|
default_executable: rvm-install
|
14
14
|
dependencies: []
|
15
15
|
|