rvm 0.0.93 → 0.0.95
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/lib/VERSION.yml +1 -1
- data/rvm.gemspec +5 -4
- data/scripts/manage +1 -1
- data/scripts/selector +27 -27
- metadata +2 -2
data/lib/VERSION.yml
CHANGED
data/rvm.gemspec
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rvm}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.95"
|
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-12-
|
12
|
+
s.date = %q{2009-12-15}
|
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}
|
@@ -88,3 +88,4 @@ Gem::Specification.new do |s|
|
|
88
88
|
else
|
89
89
|
end
|
90
90
|
end
|
91
|
+
|
data/scripts/manage
CHANGED
@@ -414,7 +414,7 @@ RubyWrapper
|
|
414
414
|
|
415
415
|
ruby)
|
416
416
|
if [[ "rvm_make_flags_flag" -eq 1 ]] ; then __rvm_make_flags ; fi
|
417
|
-
if [[ -z "$rvm_ruby_configure_flags" ]] ; then rvm_ruby_configure_flags="--
|
417
|
+
if [[ -z "$rvm_ruby_configure_flags" ]] ; then rvm_ruby_configure_flags="--enable-shared" ; fi
|
418
418
|
|
419
419
|
__rvm_install_source $*
|
420
420
|
;;
|
data/scripts/selector
CHANGED
@@ -235,7 +235,9 @@ __rvm_use() {
|
|
235
235
|
|
236
236
|
new_path=$(echo $PATH | tr ':' '\n' | awk '$0 !~ /rvm/' | paste -sd : -)
|
237
237
|
new_path=$MY_RUBY_HOME/bin:$GEM_HOME/bin:$rvm_path/bin:$rvm_bin_path:$new_path
|
238
|
+
fi
|
238
239
|
|
240
|
+
if [[ ! -z "$rvm_default_flag" ]] && [[ "default" != "$rvm_ruby_interpreter" ]] ; then
|
239
241
|
if [[ "root" = "$(whoami)" ]] ; then
|
240
242
|
for binary in erb gem irb rake rdoc ri ruby testrb ; do
|
241
243
|
rm -f $rvm_symlink_path/$binary
|
@@ -243,36 +245,34 @@ __rvm_use() {
|
|
243
245
|
rm -f $rvm_symlink_path/passenger_ruby
|
244
246
|
ln -nfs $rvm_bin_path/$rvm_ruby_string $rvm_symlink_path/passenger_ruby
|
245
247
|
done
|
246
|
-
fi
|
247
|
-
fi
|
248
|
-
|
249
|
-
if [[ ! -z "$rvm_default_flag" ]] && [[ "default" != "$rvm_ruby_interpreter" ]] ; then
|
250
|
-
if [[ "system" = "$rvm_ruby_interpreter" ]] ; then
|
251
|
-
rm -f $rvm_path/default
|
252
|
-
rm -f $rvm_path/bin/default*
|
253
248
|
else
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
echo "PATH=$MY_RUBY_HOME/bin:$GEM_HOME/bin:$rvm_path/bin:\$PATH ; export PATH" > $rvm_path/default
|
258
|
-
|
259
|
-
for variable in RUBY_VERSION GEM_HOME GEM_PATH MY_RUBY_HOME IRBRC rvm_ruby_string rvm_gem_set_name; do
|
260
|
-
eval "export $variable"
|
261
|
-
eval value=\$${variable}
|
262
|
-
if [[ ! -z "$value" ]] ; then
|
263
|
-
echo "${variable}='$value' ; export ${variable}" >> $rvm_path/default
|
264
|
-
else
|
265
|
-
echo "unset ${variable}" >> $rvm_path/default
|
266
|
-
fi
|
267
|
-
done ; unset variable value
|
268
|
-
|
269
|
-
if [[ -s "$rvm_path/bin/$rvm_ruby_string" ]] ; then
|
249
|
+
if [[ "system" = "$rvm_ruby_interpreter" ]] ; then
|
250
|
+
rm -f $rvm_path/default
|
270
251
|
rm -f $rvm_path/bin/default*
|
271
|
-
ln -fs "$rvm_path/bin/$rvm_ruby_string" "$rvm_path/bin/default_ruby" # So that people know what it's for :)
|
272
|
-
ln -fs "$rvm_path/$rvm_ruby_string/bin/gem" "$rvm_path/bin/default_gem"
|
273
|
-
ln -fs "$rvm_path/$rvm_ruby_string/bin/irb" "$rvm_path/bin/default_irb"
|
274
252
|
else
|
275
|
-
|
253
|
+
RUBY_VERSION="$($MY_RUBY_HOME/bin/ruby -v | sed 's#^\(.*\) (.*$#\1#')"
|
254
|
+
export GEM_HOME GEM_PATH MY_RUBY_HOME RUBY_VERSION
|
255
|
+
|
256
|
+
echo "PATH=$MY_RUBY_HOME/bin:$GEM_HOME/bin:$rvm_path/bin:\$PATH ; export PATH" > $rvm_path/default
|
257
|
+
|
258
|
+
for variable in RUBY_VERSION GEM_HOME GEM_PATH MY_RUBY_HOME IRBRC rvm_ruby_string rvm_gem_set_name; do
|
259
|
+
eval "export $variable"
|
260
|
+
eval value=\$${variable}
|
261
|
+
if [[ ! -z "$value" ]] ; then
|
262
|
+
echo "${variable}='$value' ; export ${variable}" >> $rvm_path/default
|
263
|
+
else
|
264
|
+
echo "unset ${variable}" >> $rvm_path/default
|
265
|
+
fi
|
266
|
+
done ; unset variable value
|
267
|
+
|
268
|
+
if [[ -s "$rvm_path/bin/$rvm_ruby_string" ]] ; then
|
269
|
+
rm -f $rvm_path/bin/default*
|
270
|
+
ln -fs "$rvm_path/bin/$rvm_ruby_string" "$rvm_path/bin/default_ruby" # So that people know what it's for :)
|
271
|
+
ln -fs "$rvm_path/$rvm_ruby_string/bin/gem" "$rvm_path/bin/default_gem"
|
272
|
+
ln -fs "$rvm_path/$rvm_ruby_string/bin/irb" "$rvm_path/bin/default_irb"
|
273
|
+
else
|
274
|
+
rm -f $rvm_path/bin/default*
|
275
|
+
fi
|
276
276
|
fi
|
277
277
|
fi
|
278
278
|
unset rvm_default_flag
|
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.
|
4
|
+
version: 0.0.95
|
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-12-
|
12
|
+
date: 2009-12-15 00:00:00 -05:00
|
13
13
|
default_executable: rvm-install
|
14
14
|
dependencies: []
|
15
15
|
|