rvm 0.0.28 → 0.0.29
Sign up to get free protection for your applications and to get access to all the features.
- data/rvm.gemspec +2 -2
- data/scripts/rvm +31 -15
- metadata +2 -2
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.0.
|
8
|
+
s.version = "0.0.29"
|
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-
|
12
|
+
s.date = %q{2009-09-02}
|
13
13
|
s.description = %q{Manages Ruby interpreter installations and switching between them.}
|
14
14
|
s.email = %q{wayneeseguin@gmail.com}
|
15
15
|
s.executables = ["rvm-install", "rvm-update"]
|
data/scripts/rvm
CHANGED
@@ -11,8 +11,8 @@ function __rvm_meta {
|
|
11
11
|
rvm_meta_author="Wayne E. Seguin"
|
12
12
|
rvm_meta_author_email="wayneeseguin@gmail.com"
|
13
13
|
rvm_meta_website="http://rvm.beginrescueend.com/"
|
14
|
-
rvm_meta_version="0.0.
|
15
|
-
rvm_meta_updated="2009.09.
|
14
|
+
rvm_meta_version="0.0.29"
|
15
|
+
rvm_meta_updated="2009.09.02"
|
16
16
|
}
|
17
17
|
|
18
18
|
function __rvm_version { __rvm_meta ; echo "rvm $rvm_meta_version ($rvm_meta_updated) [$rvm_meta_website]" ; }
|
@@ -241,7 +241,7 @@ function __rvm_install-source {
|
|
241
241
|
rvm_url="${rvm_url:-"ftp://ftp.ruby-lang.org/pub/ruby/1.$rvm_major_version/$rvm_ruby_package_name.tar.gz"}"
|
242
242
|
__rvm_log "info" "\tDownloading $rvm_ruby_package_name, this may take a while depending on your connection..."
|
243
243
|
__rvm_curl $rvm_url
|
244
|
-
if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$
|
244
|
+
if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$rvm_package_name/*.error.log" ; return 1 ; fi
|
245
245
|
|
246
246
|
__rvm_log "info" "\tExtracting $rvm_ruby_package_name ..."
|
247
247
|
mkdir -p $rvm_source_path/$rvm_ruby_package_name
|
@@ -273,7 +273,7 @@ function __rvm_install-source {
|
|
273
273
|
if [ -s ./configure ] ; then
|
274
274
|
__rvm_log "info" "\tConfiguring $rvm_ruby_package_name using ${rvm_ruby_configure:-"--enable-shared"}, this may take a while depending on your cpu(s)..."
|
275
275
|
nice -n $rvm_niceness ./configure --prefix=$rvm_install_path/$rvm_ruby_package_name ${rvm_ruby_configure:-"--enable-shared"} > $rvm_log_path/$rvm_ruby_package_name/configure.log 2> $rvm_log_path/$rvm_ruby_package_name/configure.error.log
|
276
|
-
if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$
|
276
|
+
if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$rvm_package_name/*.error.log" ; return 1 ; fi
|
277
277
|
else
|
278
278
|
__rvm_log "warn" "\tSkipping configure step, ./configure file does not exist."
|
279
279
|
fi
|
@@ -284,14 +284,14 @@ function __rvm_install-source {
|
|
284
284
|
else
|
285
285
|
nice -n $rvm_niceness $rvm_ruby_make > $rvm_log_path/$rvm_ruby_package_name/install.log 2> $rvm_log_path/$rvm_ruby_package_name/install.error.log
|
286
286
|
fi
|
287
|
-
if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$
|
287
|
+
if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$rvm_package_name/*.error.log" ; return 1 ; fi
|
288
288
|
if [ -z "$rvm_ruby_make" ] ; then
|
289
289
|
__rvm_log "info" "\tInstalling $rvm_ruby_package_name"
|
290
290
|
nice -n $rvm_niceness make install > $rvm_log_path/$rvm_ruby_package_name/install.log 2> $rvm_log_path/$rvm_ruby_package_name/install.error.log
|
291
291
|
else
|
292
292
|
nice -n $rvm_niceness $rvm_ruby_make_install > $rvm_log_path/$rvm_ruby_package_name/install.log 2> $rvm_log_path/$rvm_ruby_package_name/install.error.log
|
293
293
|
fi
|
294
|
-
if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$
|
294
|
+
if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$rvm_package_name/*.error.log" ; return 1 ; fi
|
295
295
|
|
296
296
|
chmod +x $rvm_install_path/$rvm_ruby_package_name/bin/*
|
297
297
|
|
@@ -304,7 +304,7 @@ function __rvm_install-source {
|
|
304
304
|
cd $rvm_source_path/$rvm_gem_package_name
|
305
305
|
else
|
306
306
|
__rvm_curl $rvm_gem_url
|
307
|
-
if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$
|
307
|
+
if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$rvm_package_name/*.error.log" ; return 1 ; fi
|
308
308
|
mkdir -p $rvm_source_path/$rvm_gem_package_name
|
309
309
|
nice -n $rvm_niceness tar zxf $rvm_archives_path/$rvm_gem_package_name.tgz -C $rvm_source_path
|
310
310
|
fi
|
@@ -319,6 +319,22 @@ function __rvm_install-source {
|
|
319
319
|
__rvm_log "info" "Installing $rvm_gem_name"
|
320
320
|
nice -n $rvm_niceness $rvm_install_path/$rvm_ruby_package_name/bin/gem install $rvm_gem_name --no-rdoc --no-ri -q >> $rvm_log_path/$rvm_ruby_package_name/gems.install.log 2> $rvm_log_path/$rvm_ruby_package_name/gems.error.log
|
321
321
|
done
|
322
|
+
|
323
|
+
set -x
|
324
|
+
passenger_ruby=$(cat <<-PassengerRuby
|
325
|
+
#!/bin/bash
|
326
|
+
|
327
|
+
GEM_HOME=$rvm_gem_home ; export GEM_HOME
|
328
|
+
MY_RUBY_HOME=$rvm_ruby_home ; export MY_RUBY_HOME
|
329
|
+
PATH=$rvm_ruby_home/bin:$rvm_gem_home/bin:$rvm_default_path ; export PATH
|
330
|
+
|
331
|
+
exec "$rvm_ruby_binary" "\$@"
|
332
|
+
PassengerRuby
|
333
|
+
)
|
334
|
+
echo "$passenger_ruby" > $rvm_ruby_home/bin/passenger-$rvm_ruby_package_name
|
335
|
+
chmod +x $rvm_ruby_home/bin/passenger-$rvm_ruby_package_name
|
336
|
+
ln -fs $rvm_ruby_home/bin/passenger-$rvm_ruby_package_name $rvm_install_path/bin/passenger-$rvm_ruby_package_name
|
337
|
+
set +x
|
322
338
|
}
|
323
339
|
|
324
340
|
function __rvm_install-ruby {
|
@@ -371,19 +387,19 @@ function __rvm_install-ruby {
|
|
371
387
|
else
|
372
388
|
__rvm_log "info" "\tDownloading $rvm_ruby_package_name, this may take a while depending on your connection..."
|
373
389
|
__rvm_curl $rvm_url
|
374
|
-
if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$
|
390
|
+
if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$rvm_package_name/*.error.log" ; return 1 ; fi
|
375
391
|
__rvm_log "info" "\tExtracting $rvm_ruby_package_name..."
|
376
392
|
mkdir -p $rvm_source_path/$rvm_ruby_package_name
|
377
393
|
nice -n $rvm_niceness tar xzf $rvm_archives_path/$rvm_ruby_package_name.tar.gz -C $rvm_source_path
|
378
394
|
fi
|
379
|
-
if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$
|
395
|
+
if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$rvm_package_name/*.error.log" ; return 1 ; fi
|
380
396
|
|
381
397
|
__rvm_log "info" "\tInstalling $rvm_ruby_package_name, this may take a while, depending on your cpu(s)..."
|
382
398
|
mkdir -p $rvm_log_path/$rvm_ruby_package_name
|
383
399
|
|
384
400
|
cd $rvm_source_path/$rvm_ruby_package_name
|
385
401
|
nice -n $rvm_niceness ./installer -a $rvm_install_path/ruby-enterprise-$rvm_ruby_version-$rvm_ruby_patch_level --dont-install-useful-gems --no-tcmalloc > $rvm_log_path/$rvm_ruby_package_name/install.log 2> $rvm_log_path/$rvm_ruby_package_name/install.error.log
|
386
|
-
if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$
|
402
|
+
if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$rvm_package_name/*.error.log" ; return 1 ; fi
|
387
403
|
chmod +x $rvm_install_path/$rvm_ruby_package_name/bin/*
|
388
404
|
|
389
405
|
ln -fs $rvm_install_path/$rvm_ruby_package_name/bin/ruby $rvm_install_path/bin/$rvm_ruby_package_name
|
@@ -395,11 +411,11 @@ function __rvm_install-ruby {
|
|
395
411
|
cd $rvm_source_path/$rvm_gem_package_name
|
396
412
|
else
|
397
413
|
__rvm_curl $rvm_gem_url
|
398
|
-
if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$
|
414
|
+
if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$rvm_package_name/*.error.log" ; return 1 ; fi
|
399
415
|
mkdir -p $rvm_source_path/$rvm_gem_package_name
|
400
416
|
nice -n $rvm_niceness tar zxf $rvm_archives_path/$rvm_gem_package_name.tgz -C $rvm_source_path
|
401
417
|
fi
|
402
|
-
if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$
|
418
|
+
if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$rvm_package_name/*.error.log" ; return 1 ; fi
|
403
419
|
# Well this is fun... fix nil error on require_paths:
|
404
420
|
sed -i.orig "s/require_paths\.join/require_paths.to_a.join/" $rvm_source_path/$rvm_gem_package_name/lib/rubygems/gem_path_searcher.rb > $rvm_log_path/$rvm_ruby_package_name/rubygems.install.log 2> $rvm_log_path/$rvm_ruby_package_name/rubygems.install.error.log
|
405
421
|
|
@@ -425,7 +441,7 @@ function __rvm_install-ruby {
|
|
425
441
|
git clone --depth 1 $rvm_ruby_repo_url $rvm_install_path/$rvm_ruby_interpreter-$rvm_ruby_version
|
426
442
|
fi
|
427
443
|
cd $rvm_install_path/$rvm_ruby_interpreter-$rvm_ruby_version && $rvm_rubinius_jit rake build
|
428
|
-
if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$
|
444
|
+
if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$rvm_package_name/*.error.log" ; return 1 ; fi
|
429
445
|
for binary in ruby irb ; do
|
430
446
|
ln -fs $rvm_install_path/$rvm_ruby_interpreter-$rvm_ruby_version/bin/rbx $rvm_install_path/$rvm_ruby_interpreter-$rvm_ruby_version/bin/$binary
|
431
447
|
done
|
@@ -457,12 +473,12 @@ function __rvm_install-ruby {
|
|
457
473
|
cd $rvm_source_path/$rvm_ruby_package_name
|
458
474
|
fi
|
459
475
|
fi
|
460
|
-
if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$
|
476
|
+
if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$rvm_package_name/*.error.log" ; return 1 ; fi
|
461
477
|
|
462
478
|
__rvm_log "info" "\tInstalling $rvm_ruby_package_name..."
|
463
479
|
mkdir -p $rvm_install_path/$rvm_ruby_package_name/bin/
|
464
480
|
rsync -ag $rvm_source_path/$rvm_ruby_package_name/ $rvm_install_path/$rvm_ruby_package_name/
|
465
|
-
if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$
|
481
|
+
if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$rvm_package_name/*.error.log" ; return 1 ; fi
|
466
482
|
cd $rvm_source_path/$rvm_ruby_package_name/tool/nailgun && make > $rvm_log_path/$rvm_ruby_package_name/install.nailgun.log 2> $rvm_log_path/$rvm_ruby_package_name/install.error.nailgun.log
|
467
483
|
popd > /dev/null
|
468
484
|
chmod +x $rvm_install_path/$rvm_ruby_package_name/bin/*
|
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.29
|
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-
|
12
|
+
date: 2009-09-02 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|