rvm 0.0.27 → 0.0.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/bin/rvm-install +1 -1
  2. data/bin/rvm-update +1 -1
  3. data/rvm.gemspec +47 -0
  4. data/scripts/rvm +22 -12
  5. metadata +3 -2
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  # Hot potato!!! Bash it!
4
- %x["bash -l -c 'cd #{File.dirname(File.dirname(__FILE__))} && ./scripts/rvm-install #{ARGV.join(' ')} && source ~/.rvm/scripts/rvm'"]
4
+ exec "bash -l -c 'cd #{File.dirname(File.dirname(__FILE__))} && ./scripts/rvm-install #{ARGV.join(' ')} && source ~/.rvm/scripts/rvm'"
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  # Hot potato!!! Bash it!
4
- %x["bash -l -c 'cd #{File.dirname(File.dirname(__FILE__))} && ./scripts/rvm-update #{ARGV.join(' ')} && source ~/.rvm/scripts/rvm'"]
4
+ exec "bash -l -c 'cd #{File.dirname(File.dirname(__FILE__))} && ./scripts/rvm-update #{ARGV.join(' ')} && source ~/.rvm/scripts/rvm'"
5
5
 
@@ -0,0 +1,47 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{rvm}
8
+ s.version = "0.0.28"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Wayne E. Seguin"]
12
+ s.date = %q{2009-09-01}
13
+ s.description = %q{Manages Ruby interpreter installations and switching between them.}
14
+ s.email = %q{wayneeseguin@gmail.com}
15
+ s.executables = ["rvm-install", "rvm-update"]
16
+ s.extra_rdoc_files = [
17
+ "README"
18
+ ]
19
+ s.files = [
20
+ "INSTALL",
21
+ "LICENCE",
22
+ "README",
23
+ "config/cache",
24
+ "examples/rvmrc",
25
+ "lib/rvm.rb",
26
+ "rvm.gemspec",
27
+ "scripts/rvm",
28
+ "scripts/rvm-install",
29
+ "scripts/rvm-update"
30
+ ]
31
+ s.homepage = %q{http://github.com/wayneeseguin/rvm}
32
+ s.rdoc_options = ["--inline-source", "--charset=UTF-8"]
33
+ s.require_paths = ["lib"]
34
+ s.rubyforge_project = %q{dynamicreports}
35
+ s.rubygems_version = %q{1.3.5}
36
+ s.summary = %q{Ruby Version Manager (rvm)}
37
+
38
+ if s.respond_to? :specification_version then
39
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
40
+ s.specification_version = 3
41
+
42
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
43
+ else
44
+ end
45
+ else
46
+ end
47
+ end
@@ -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.27"
15
- rvm_meta_updated="2009.08.31"
14
+ rvm_meta_version="0.0.28"
15
+ rvm_meta_updated="2009.09.01"
16
16
  }
17
17
 
18
18
  function __rvm_version { __rvm_meta ; echo "rvm $rvm_meta_version ($rvm_meta_updated) [$rvm_meta_website]" ; }
@@ -210,9 +210,6 @@ function __rvm_initialize {
210
210
  rvm_macruby_repo_url="${rvm_macruby_repo_url:-"http://svn.macosforge.org/repository/ruby/MacRuby"}"
211
211
  rvm_jruby_repo_url="${rvm_jruby_repo_url:-"git://kenai.com/jruby~main"}"
212
212
 
213
- if [ ! -z "$rvm_ruby_configure" ] ; then
214
- rvm_ruby_configure="$(echo $rvm_ruby_configure | tr ',-' ' -')"
215
- fi
216
213
  __rvm_clean-path
217
214
  rvm_result=$(echo $PATH | grep 'rvm\/bin:')
218
215
  if [ -z $rvm_result ] ; then
@@ -244,6 +241,7 @@ function __rvm_install-source {
244
241
  rvm_url="${rvm_url:-"ftp://ftp.ruby-lang.org/pub/ruby/1.$rvm_major_version/$rvm_ruby_package_name.tar.gz"}"
245
242
  __rvm_log "info" "\tDownloading $rvm_ruby_package_name, this may take a while depending on your connection..."
246
243
  __rvm_curl $rvm_url
244
+ if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$rvm_package_file/*.error.log" ; return 1 ; fi
247
245
 
248
246
  __rvm_log "info" "\tExtracting $rvm_ruby_package_name ..."
249
247
  mkdir -p $rvm_source_path/$rvm_ruby_package_name
@@ -306,6 +304,7 @@ function __rvm_install-source {
306
304
  cd $rvm_source_path/$rvm_gem_package_name
307
305
  else
308
306
  __rvm_curl $rvm_gem_url
307
+ if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$rvm_package_file/*.error.log" ; return 1 ; fi
309
308
  mkdir -p $rvm_source_path/$rvm_gem_package_name
310
309
  nice -n $rvm_niceness tar zxf $rvm_archives_path/$rvm_gem_package_name.tgz -C $rvm_source_path
311
310
  fi
@@ -372,6 +371,7 @@ function __rvm_install-ruby {
372
371
  else
373
372
  __rvm_log "info" "\tDownloading $rvm_ruby_package_name, this may take a while depending on your connection..."
374
373
  __rvm_curl $rvm_url
374
+ if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$rvm_package_file/*.error.log" ; return 1 ; fi
375
375
  __rvm_log "info" "\tExtracting $rvm_ruby_package_name..."
376
376
  mkdir -p $rvm_source_path/$rvm_ruby_package_name
377
377
  nice -n $rvm_niceness tar xzf $rvm_archives_path/$rvm_ruby_package_name.tar.gz -C $rvm_source_path
@@ -395,10 +395,11 @@ function __rvm_install-ruby {
395
395
  cd $rvm_source_path/$rvm_gem_package_name
396
396
  else
397
397
  __rvm_curl $rvm_gem_url
398
+ if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$rvm_package_file/*.error.log" ; return 1 ; fi
398
399
  mkdir -p $rvm_source_path/$rvm_gem_package_name
399
400
  nice -n $rvm_niceness tar zxf $rvm_archives_path/$rvm_gem_package_name.tgz -C $rvm_source_path
400
401
  fi
401
- if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$rvm_package_file/*.error.log" ; return 1 ; fi
402
+ if [ $? -gt 0 ] ; then __rvm_log "error" "There was an error, please check $rvm_log_path/$rvm_package_file/*.error.log" ; return 1 ; fi
402
403
  # Well this is fun... fix nil error on require_paths:
403
404
  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
404
405
 
@@ -410,9 +411,9 @@ function __rvm_install-ruby {
410
411
  __rvm_log "info" "Installing $rvm_gem_name"
411
412
  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
412
413
  done
413
- ;;
414
+ ;;
414
415
 
415
- rbx|rubinius)
416
+ rbx|rubinius)
416
417
  rvm_ruby_repo_url=$rvm_rubinius_repo_url
417
418
  rvm_ruby_configure=""
418
419
  rvm_ruby_make="rake"
@@ -428,9 +429,9 @@ function __rvm_install-ruby {
428
429
  for binary in ruby irb ; do
429
430
  ln -fs $rvm_install_path/$rvm_ruby_interpreter-$rvm_ruby_version/bin/rbx $rvm_install_path/$rvm_ruby_interpreter-$rvm_ruby_version/bin/$binary
430
431
  done
431
- ;;
432
+ ;;
432
433
 
433
- jruby)
434
+ jruby)
434
435
  rvm_package_file="$rvm_ruby_interpreter-bin-$rvm_ruby_version"
435
436
  rvm_url="http://dist.codehaus.org/$rvm_ruby_interpreter/$rvm_ruby_version/$rvm_package_file.zip"
436
437
  rvm_jruby_repo_url="${rvm_jruby_repo_url:-"git://kenai.com/jruby~main"}"
@@ -737,7 +738,7 @@ function __rvm_list {
737
738
  function __rvm_reset {
738
739
 
739
740
  PATH="$rvm_default_path" ; export PATH
740
- for variable in RUBY_VERSION GEM_HOME MY_RUBY_HOME ; do unset $variable ; done
741
+ for variable in RUBY_VERSION GEM_HOME MY_RUBY_HOME rvm_prompt ; do unset $variable ; done
741
742
  rm -f $rvm_install_path/default*
742
743
  rm -f $rvm_install_path/current
743
744
 
@@ -951,7 +952,16 @@ function __rvm_parse-args {
951
952
  -S|--source) rvm_source_path="$1" ; shift ;;
952
953
  -A|--archive) rvm_archives_path="$1" ; shift ;;
953
954
  -G|--gems) rvm_gem_path="$1" ; shift ;;
954
- -C|--configure) rvm_ruby_configure="$1" ; shift ;;
955
+ -C|--configure)
956
+ if [ ! -z "$1" ] ; then
957
+ rvm_ruby_configure="$(echo $1 | tr ',-' ' -')"
958
+ shift
959
+ else
960
+ rvm_action="error"
961
+ rvm_error_message="--configure *must* be followed by configure flags."
962
+ break;
963
+ fi
964
+ ;;
955
965
  -M|--make) rvm_ruby_make="$1" ; shift ;;
956
966
  -I|--make-install) rvm_ruby_make_install="$1" ; shift ;;
957
967
  -l|--level) rvm_ruby_patch_level="$1" ; shift ;;
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.27
4
+ version: 0.0.28
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-08-31 00:00:00 -04:00
12
+ date: 2009-09-01 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -29,6 +29,7 @@ files:
29
29
  - config/cache
30
30
  - examples/rvmrc
31
31
  - lib/rvm.rb
32
+ - rvm.gemspec
32
33
  - scripts/rvm
33
34
  - scripts/rvm-install
34
35
  - scripts/rvm-update