rvm 0.1.31 → 0.1.32

Sign up to get free protection for your applications and to get access to all the features.
data/config/db CHANGED
@@ -4,14 +4,13 @@ ruby_configure=--enable-shared
4
4
  interpreter=ruby
5
5
  ruby_version=1.8.6
6
6
  ruby_patchlevel=383
7
- rubygems_version=1.3.6
7
+ rubygems_version=1.3.7
8
8
  rubygems_1.3.5_url=http://rubyforge.org/frs/download.php/60718
9
9
  rubygems_1.3.6_url=http://rubyforge.org/frs/download.php/69365
10
+ rubygems_1.3.7_url=http://rubyforge.org/frs/download.php/70696
10
11
  rbx_version=1.0.0
11
- rbx_patch_level=rc5
12
- rbx_1.0.0_rc3_url=http://asset.rubini.us/rubinius-1.0.0-rc3-20100216.tar.gz
13
- rbx_1.0.0_rc4_url=http://asset.rubini.us/rubinius-1.0.0-rc4-20100331.tar.gz
14
- rbx_1.0.0_rc5_url=http://asset.rubini.us/rubinius-1.0.0-rc5-20100510.tar.gz
12
+ rbx_1.0.0_patch_level=20100514
13
+ rbx_url=http://asset.rubini.us
15
14
  ree_version=1.8.7
16
15
  ree_1.8.6_patch_level=20090610
17
16
  ree_1.8.6_url=http://rubyforge.org/frs/download.php/58677
data/config/md5 CHANGED
@@ -1,6 +1,7 @@
1
1
  rubinius-1.0.0-rc1-20091125.tar.gz=c1cf037f05caf1bc962c09e220b435f4
2
2
  rubinius-1.0.0-rc4-20100331.tar.gz=c631131cc9542c548b4fc3791d8aa6b2
3
3
  rubinius-1.0.0-rc5-20100510.tar.gz=d4fbb5b01aaeee3948cbe1cd38236524
4
+ rubinius-1.0.0-20100514.tar.gz=b05f4e791d3712c5a50b3d210dac6eb0
4
5
  ruby-1.8.5-p115.tar.gz=20ca6cc87eb077296806412feaac0356
5
6
  ruby-1.8.5-p231.tar.gz=e900cf225d55414bffe878f00a85807c
6
7
  ruby-1.8.6-p286.tar.gz=797ea136fe43e4286c9362ee4516674e
@@ -23,6 +24,8 @@ ruby-enterprise-1.8.6-20090610.tar.gz=0bf66ee626918464a6eccdd83c99d63a
23
24
  ruby-enterprise-1.8.7-2009.10.tar.gz=3727eef7b6b1b2f31db7d091328d966e
24
25
  ruby-enterprise-1.8.7-20090928.tar.gz=ae00018ce89d95419dfde370fcd485ac
25
26
  rubygems-1.3.5.tgz=6e317335898e73beab15623cdd5f8cff
27
+ rubygems-1.3.6.tgz=789ca8e9ad1d4d3fe5f0534fcc038a0d
28
+ rubygems-1.3.7.tgz=e85cfadd025ff6ab689375adbf344bbe
26
29
  MacRuby%200.5.zip=675454a8c7bc19d606d90a726e08427c
27
30
  MacRuby%200.6.zip=a80afd3700c88cf95c539fc63b272faf
28
31
  jruby-bin-1.3.1.tar.gz=4a95db8fc93ed7219663fbede98b6117
@@ -38,7 +41,6 @@ readline-6.0.tar.gz=b7f65a48add447693be6e86f04a63019
38
41
  zlib-1.2.3.tar.gz=debc62758716a169df9f62e6ab2bc634
39
42
  curl-7.19.7.tar.gz=ecb2e37e45c9933e2a963cabe03670ab
40
43
  pkg-config-0.23.tar.gz=d922a88782b64441d06547632fd85744
41
- rubygems-1.3.6.tgz=789ca8e9ad1d4d3fe5f0534fcc038a0d
42
44
  ironruby-1.0.zip=7a92888837b3507355ed391dbfc0ab83
43
45
  GemStone-23464.Darwin-i386.tar.gz=9e5d393d3daecad39404644b5384fec0
44
46
  GemStone-23464.Linux-x86_64.tar.gz=93947d3b8dd651cf8b61753c2387cd19
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 1
4
- :patch: 31
4
+ :patch: 32
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rvm}
8
- s.version = "0.1.31"
8
+ s.version = "0.1.32"
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-05-12}
12
+ s.date = %q{2010-05-16}
13
13
  s.default_executable = %q{rvm-install}
14
14
  s.description = %q{Manages Ruby Environments.}
15
15
  s.email = %q{wayneeseguin@gmail.com}
@@ -107,7 +107,7 @@ Gem::Specification.new do |s|
107
107
  s.rdoc_options = ["--inline-source", "--charset=UTF-8"]
108
108
  s.require_paths = ["lib"]
109
109
  s.rubyforge_project = %q{rvm}
110
- s.rubygems_version = %q{1.3.6}
110
+ s.rubygems_version = %q{1.3.7}
111
111
  s.summary = %q{Ruby Version Manager (rvm)}
112
112
 
113
113
  if s.respond_to? :specification_version then
@@ -42,6 +42,7 @@ __rvm_parse_args() {
42
42
 
43
43
  # Can likely remove this due to the *) case
44
44
  jruby|ree|macruby|rbx|rubinius|mput|shyouhei|ironruby|default|maglev|all)
45
+ if [[ "rubinius" = "$rvm_token" ]] ; then rvm_token="rbx"; fi
45
46
  rvm_ruby_interpreter="$rvm_token"
46
47
  rvm_ruby_string="$rvm_token"
47
48
  rvm_action="${rvm_action:-use}"
@@ -1,12 +1,8 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- if [[ ! -z "$rvm_trace_flag" ]] ; then set -x ; export rvm_trace_flag ; fi
4
-
5
- trap "if [[ -d $rvm_tmp_path/ ]] && [[ -f $rvm_tmp_path/$$ ]] ; then rm -f $rvm_tmp_path/$$ > /dev/null 2>&1 ; fi ; exit" 0 1 2 3 15
6
-
7
- if [[ ! -z "$1" ]] ; then
8
- if [[ -s "$rvm_hooks_path/$1" ]] ; then
9
- if [[ "$rvm_verbose_flag" -eq 1 ]] || [[ "$rvm_debug_flag" -eq 1 ]] ; then $rvm_scripts_path/log "info" "running hook $1" ; fi
10
- source "$rvm_hooks_path/$1"
3
+ if [[ ! -z "$rvm_hook" ]] ; then
4
+ if [[ -s "$rvm_hooks_path/$rvm_hook" ]] ; then
5
+ if [[ "$rvm_verbose_flag" -eq 1 ]] || [[ "$rvm_debug_flag" -eq 1 ]] ; then $rvm_scripts_path/log "info" "running hook $rvm_hook" ; fi
6
+ source "$rvm_hooks_path/$rvm_hook"
11
7
  fi
12
- fi
8
+ fi ; unset rvm_hook
@@ -53,7 +53,7 @@ fi
53
53
  # Check that the current directory is writable
54
54
  if [[ ! -w "." ]]; then
55
55
  $rvm_scripts_path/log "error" "This script requires write permission on your current directory."
56
- /bin/ls -ld $PWD
56
+ \ls -ld $PWD
57
57
  exit 1
58
58
  fi
59
59
 
@@ -7,7 +7,7 @@ source $rvm_scripts_path/initialize
7
7
  source $rvm_scripts_path/utility
8
8
  source $rvm_scripts_path/selector
9
9
 
10
- trap "rm -f $rvm_tmp_path/$$* > /dev/null 2>&1 ; exit" 0 1 2 3 15
10
+ trap "rm -rf ${rvm_tmp_path}/$$* > /dev/null 2>&1 ; exit" 0 1 2 3 15
11
11
 
12
12
  if [[ ! -z "$rvm_trace_flag" ]] ; then set -x ; export rvm_trace_flag ; fi
13
13
 
@@ -267,19 +267,20 @@ RubyWrapper
267
267
  PATH=$rvm_bin_path:$PATH ; export PATH
268
268
 
269
269
  if [[ ! -z "$(echo $rvm_ruby_version | awk '/^1\.0/')" ]] && [[ -z "$rvm_head_flag" ]] ; then
270
- if [[ ! -f "$rvm_archives_path/$rvm_ruby_package_file.tar.gz" ]] ; then
270
+ if [[ ! -f "$rvm_archives_path/$rvm_ruby_package_file" ]] ; then
271
271
  $rvm_scripts_path/log "info" "Downloading $rvm_ruby_file, this may take a while depending on your connection..."
272
272
  $rvm_scripts_path/fetch "$rvm_url"
273
273
  result=$? ; if [[ "$result" -gt 0 ]] ; then
274
274
  $rvm_scripts_path/log "error" "There has been an error while trying to fetch the source. Aborting the installation." ; __rvm_pushpop ; return $result
275
275
  fi
276
276
  fi
277
- __rvm_run "extract" "cat $rvm_archives_path/$(basename $rvm_url) | gunzip | tar xf - -C $rvm_src_path" "Extracting $rvm_ruby_package_file ..."
277
+ __rvm_run "extract" "cat $rvm_archives_path/$(basename $rvm_ruby_package_file) | gunzip | tar xf - -C $rvm_src_path" "Extracting $rvm_ruby_package_file ..."
278
278
 
279
279
  result=$? ; if [[ "$result" -gt 0 ]] ; then
280
280
  $rvm_scripts_path/log "error" "There has been an error while trying to extract the source. Aborting the installation." ; __rvm_pushpop ; return $result
281
281
  fi
282
- mv "$rvm_src_path/rubinius-$rvm_ruby_version-${rvm_ruby_patch_level/^p//}" $rvm_ruby_src_path
282
+
283
+ mv $rvm_src_path/rubinius-${rvm_ruby_version} ${rvm_ruby_src_path}
283
284
  else
284
285
  __rvm_db "rubinius_repo_url" "rvm_ruby_repo_url"
285
286
  #rvm_ruby_home="$rvm_rubies_path/$rvm_ruby_interpreter-$rvm_ruby_version"
@@ -301,6 +302,7 @@ RubyWrapper
301
302
  #fi
302
303
 
303
304
  builtin cd "$rvm_ruby_src_path" ; chmod +x ./configure
305
+ rvm_ruby_configure_flags="${rvm_ruby_configure_flags:-"--skip-system"}"
304
306
  rvm_ruby_configure="./configure --prefix=$rvm_ruby_home $rvm_ruby_configure_flags" ; message="Configuring rbx"
305
307
  if [[ "$rvm_llvm_flag" = "0" ]] ; then
306
308
  rvm_ruby_configure="$rvm_ruby_configure --disable-llvm"
@@ -679,7 +681,7 @@ RubyWrapper
679
681
 
680
682
  esac
681
683
 
682
- $rvm_scripts_path/hook "after_install"
684
+ rvm_hook="after_install" ; source $rvm_scripts_path/hook
683
685
 
684
686
  if [[ ! -z "$ruby_options" ]] ; then RUBYOPT=$ruby_options ; export RUBYOPT ; fi
685
687
  }
@@ -1066,4 +1068,3 @@ __rvm_manage_rubies() {
1066
1068
  rvm_action="$1" ; rubies_string="$2"
1067
1069
  __rvm_manage_rubies
1068
1070
  exit $?
1069
-
@@ -21,7 +21,7 @@ if [[ "Linux" = "$system" ]] ; then
21
21
  echo -e "\n $ aptitude install curl sun-java6-bin sun-java6-jre sun-java6-jdk"
22
22
 
23
23
  echo -e "\n $item For MRI & ree (if you wish to use it) you will need:"
24
- echo -e "\n $ aptitude install curl bison build-essential zlib1g zlib1g-dev libssl-dev libreadline5-dev libreadline6-dev libxml2-dev git-core subversion"
24
+ echo -e "\n $ aptitude install curl bison build-essential zlib1g zlib1g-dev libssl-dev libreadline5-dev libreadline6-dev libxml2-dev git-core subversion autoconf"
25
25
 
26
26
  echo -e "\n $item For IronRuby (if you wish to use it) you will need:"
27
27
  echo -e "\n $ aptitude install curl mono-2.0-devel"
@@ -107,7 +107,7 @@ autoconf() {
107
107
  package_url="ftp.gnu.org/gnu/autoconf"
108
108
  package="autoconf" ; version="2.65" ; archive_format="tar.gz"
109
109
 
110
- prefix_path="${rvm_symlink_path:-"${rvm_path:-"$HOME/.rvm"}/bin"}"
110
+ prefix_path="${rvm_symlink_path:-"${rvm_path:-"$HOME/.rvm"}"}"
111
111
  install_package
112
112
  }
113
113
 
@@ -43,19 +43,19 @@ __rvm_select() {
43
43
  ;;
44
44
 
45
45
  rbx|rubinius)
46
+ rvm_archive_extension="tar.gz"
46
47
  rvm_ruby_interpreter="rbx"
47
48
  rvm_ruby_version=${rvm_ruby_version:-$(__rvm_db "rbx_version")}
48
49
  rvm_ruby_repo_url=${rvm_rbx_repo_url:-$(__rvm_db "rubinius_repo_url")}
49
- __rvm_db "rbx_${rvm_ruby_version}_${rvm_ruby_patch_level}_url" "rvm_url"
50
50
  if [[ -z "$rvm_head_flag" ]] ; then
51
51
  rvm_ruby_patch_level=${rvm_ruby_patch_level:-$(__rvm_db "rbx_patch_level")}
52
- rvm_ruby_string="$rvm_ruby_interpreter-$rvm_ruby_version-p$rvm_ruby_patch_level"
53
52
  rvm_ruby_string="${rvm_ruby_string/-prc/-rc}"
54
- rvm_ruby_string="$(echo $rvm_ruby_string | sed 's#-pp#-p#')"
55
- rvm_ruby_file="rubinius-$rvm_ruby_version-$rvm_ruby_patch_level"
53
+ rvm_ruby_string="$(echo "$rvm_ruby_string" | sed 's#-p*#-#')"
54
+ rvm_ruby_package_file="$(echo "rubinius-${rvm_ruby_version}-${rvm_ruby_patch_level}.${rvm_archive_extension}" | sed 's#-p*#-#' )"
55
+ __rvm_db "rbx_url" "rvm_url"
56
+ rvm_url="$rvm_url/$rvm_ruby_package_file"
56
57
  else
57
- unset rvm_ruby_patch_level
58
- unset rvm_ruby_version
58
+ unset rvm_ruby_patch_level rvm_ruby_version
59
59
  rvm_ruby_string="$rvm_ruby_interpreter-head"
60
60
  fi
61
61
  ;;
@@ -356,7 +356,7 @@ __rvm_use() {
356
356
  fi
357
357
  fi
358
358
 
359
- $rvm_scripts_path/hook "after_use"
359
+ rvm_hook="after_use" ; source $rvm_scripts_path/hook
360
360
  }
361
361
 
362
362
  __rvm_ruby_string() {
@@ -411,6 +411,8 @@ __rvm_ruby_string() {
411
411
  if [[ "ree" = "$rvm_ruby_interpreter" ]] ; then
412
412
  rvm_ruby_patch_level="$string"
413
413
  unset rvm_ruby_revision
414
+ elif [[ "rbx" = "$rvm_ruby_interpreter" ]] ; then
415
+ rvm_ruby_patch_level="$string"
414
416
  elif [[ "maglev" = "$rvm_ruby_interpreter" ]] ; then
415
417
  rvm_ruby_version="$string"
416
418
  unset rvm_ruby_revision rvm_ruby_patch_level
@@ -480,11 +482,21 @@ __rvm_ruby_string() {
480
482
  rvm_ruby_string="${rvm_ruby_string}-${rvm_ruby_user_tag}"
481
483
  else
482
484
  patch_level="$(__rvm_db "${rvm_ruby_interpreter}_${rvm_ruby_version}_patch_level")"
483
- if [[ ! -z "$patch_level" ]] ; then rvm_ruby_patch_level="p${patch_level}" ; fi
485
+ if [[ ! -z "$patch_level" ]] ; then
486
+ if [[ "ree" = "$rvm_ruby_interpreter" ]] || [[ "rbx" = "$rvm_ruby_interpreter" ]] ; then
487
+ rvm_ruby_patch_level="${patch_level}"
488
+ else
489
+ rvm_ruby_patch_level="p${patch_level}"
490
+ fi
491
+ fi
484
492
  if [[ ! -z "$rvm_ruby_patch_level" ]] ; then
485
493
  rvm_ruby_patch_level="$(echo $rvm_ruby_patch_level | sed 's#^pp#p#')"
486
494
  rvm_ruby_string="${rvm_ruby_string}-${rvm_ruby_patch_level}"
487
- rvm_ruby_string="$(echo $rvm_ruby_string | sed 's#-pp#-p#')"
495
+ if [[ "ree" = "$rvm_ruby_interpreter" ]] || [[ "rbx" = "$rvm_ruby_interpreter" ]] ; then
496
+ rvm_ruby_string="$(echo $rvm_ruby_string | sed 's#-p*#-#')"
497
+ else
498
+ rvm_ruby_string="$(echo $rvm_ruby_string | sed 's#-pp#-p#')"
499
+ fi
488
500
  fi
489
501
  fi
490
502
  }
@@ -172,6 +172,6 @@ if [[ ! -z "$rvm_summary_flag" ]] ; then __rvm_summary ; fi
172
172
  if [[ ! -z "$rvm_yaml_flag" ]] ; then __rvm_yaml ; fi
173
173
  if [[ ! -z "$rvm_json_flag" ]] ; then __rvm_json ; fi
174
174
 
175
- $rvm_scripts_path/hook "after_do"
175
+ rvm_hook="after_do" ; source $rvm_scripts_path/hook
176
176
 
177
177
  exit ${#errors[*]}
@@ -85,7 +85,7 @@ __rvm_debug() {
85
85
  __rvm_environment_info
86
86
  $rvm_scripts_path/log "debug" "PATH:\n$(echo $PATH | awk -F":" '{print $1":"$2":"$3":"$4":"$5}')"
87
87
  $rvm_scripts_path/log "debug" "uname -a: $(uname -a)"
88
- $rvm_scripts_path/log "debug" "permissions: $(ls -la $rvm_path{,/rubies})"
88
+ $rvm_scripts_path/log "debug" "permissions: $(\ls -la $rvm_path{,/rubies})"
89
89
 
90
90
  if [[ "Darwin" = "$(uname)" ]] ; then
91
91
  $rvm_scripts_path/log "debug" "uname -r: $(uname -r)"
@@ -419,7 +419,7 @@ __rvm_list_known() {
419
419
  echo "${prefix}-t${tag/\//}"
420
420
  unset prefix tag
421
421
  done < <(svn list http://svn.ruby-lang.org/repos/ruby/tags/ | awk '/^v1_[8|9]/')
422
- echo -e "(ruby-)1.8.6(-p399)\n(ruby-)1.8.6-head\n(ruby-)1.8.7(-p249)\n(ruby-)1.8.7-head\n(ruby-)1.9.1(-p243)\n(ruby-)1.9.1(-p376)\n(ruby-)1.9.1-head\n(ruby-)1.9.2-preview1\nruby-head\n"
422
+ echo -e "(ruby-)1.8.6(-p399)\n(ruby-)1.8.6-head\n(ruby-)1.8.7(-p249)\n(ruby-)1.8.7-head\n(ruby-)1.9.1(-p243)\n(ruby-)1.9.1(-p376)\n(ruby-)1.9.1-head\n(ruby-)1.9.2-preview1\n(ruby-)1.9.2-head\nruby-head\n"
423
423
  echo -e "jruby-1.2.0\njruby-1.3.1\njruby-1.4.0\njruby(-1.5.0) # the default\njruby-head"
424
424
  echo -e "rbx(-prc5) # default\nrbx-head"
425
425
  echo -e "ree-1.8.6\nree(-1.8.7) # the default\nree-1.8.6-head\nree-1.8.7-head"
@@ -464,7 +464,7 @@ __rvm_list_rubies() {
464
464
  if [[ ! -z "$system_ruby" ]] && [[ -x "$system_ruby" ]] ; then
465
465
  echo -e "\nSystem Ruby\n"
466
466
  system_version=$($system_ruby -v)
467
- binary=$(ls -l "$system_ruby" | awk '{print $NF}') # Account for symbolic links.
467
+ binary=$(\ls -l "$system_ruby" | awk '{print $NF}') # Account for symbolic links.
468
468
  string="[ $(file $binary | awk '/x86.64/ {print "x86_64"} /386/ {print "i386"} /ppc/ {print "ppc"}' | tr "\n" ' ')]"
469
469
 
470
470
  if [[ ! -z "$system_ruby" ]] && [[ "$current_ruby" = "$system_version" ]] ; then echo -n "=> " ; else echo -n " " ; fi
@@ -526,7 +526,7 @@ __rvm_update_rvm() {
526
526
  fi
527
527
 
528
528
  __rvm_pushpop
529
- $rvm_scripts_path/hook "after_update"
529
+ rvm_hook="after_update" ; source $rvm_scripts_path/hook
530
530
  }
531
531
 
532
532
  __rvm_reboot() {
@@ -601,7 +601,7 @@ __rvm_inspect() {
601
601
  __rvm_make_flags() {
602
602
  # This is only an issue with Darwin :/
603
603
  if [[ "Darwin" = "$(uname)" ]] ; then
604
- # ls /usr/lib/gcc/x86_64-apple-darwin10
604
+ # \ls /usr/lib/gcc/x86_64-apple-darwin10
605
605
 
606
606
  # Set the build & host type
607
607
  if [[ "Power Macintosh" = "$(sysctl hw.machine | awk -F: '{print $2}' | sed 's/^ //')" ]] ; then
@@ -714,7 +714,7 @@ __rvm_gemset_select() {
714
714
  # If there is a cache *directory* already,
715
715
  # move all the gems to the global cache directory and remove it.
716
716
  if [[ -d "$rvm_ruby_gem_home/cache" ]] && [[ ! -L "$rvm_ruby_gem_home/cache" ]] ; then
717
- if [[ ! -z "$(ls -A "$rvm_ruby_gem_home"/cache/)" ]] ; then
717
+ if [[ ! -z "$(\ls -A "$rvm_ruby_gem_home"/cache/)" ]] ; then
718
718
  mv "$rvm_ruby_gem_home"/cache/* "$HOME"/.gem/cache/
719
719
  fi
720
720
  rmdir "$rvm_ruby_gem_home"/cache
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 31
9
- version: 0.1.31
8
+ - 32
9
+ version: 0.1.32
10
10
  platform: ruby
11
11
  authors:
12
12
  - Wayne E. Seguin
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-12 00:00:00 -04:00
17
+ date: 2010-05-16 00:00:00 -04:00
18
18
  default_executable: rvm-install
19
19
  dependencies: []
20
20