rvm 0.0.72 → 0.0.73

Sign up to get free protection for your applications and to get access to all the features.
data/config/db CHANGED
@@ -5,8 +5,9 @@ shyouhei_repo_url=git://github.com/shyouhei/ruby.git
5
5
  macruby_version=nightly
6
6
  macruby_repo_url=git://git.macruby.org/macruby/MacRuby.git
7
7
  macruby_nightly_url=http://macruby.icoretech.org/latest
8
- jruby_version=1.3.1
8
+ jruby_version=1.4.0
9
9
  jruby_repo_url=git://github.com/jruby/jruby.git
10
+ jruby_url=http://jruby.kenai.com/downloads/
10
11
  ruby_configure=--enable-shared
11
12
  interpreter=ruby
12
13
  ruby_version=1.8.6
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 0
4
- :patch: 72
4
+ :patch: 73
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rvm}
8
- s.version = "0.0.72"
8
+ s.version = "0.0.73"
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"]
@@ -342,27 +342,23 @@ RubyWrapper
342
342
 
343
343
  cd "$rvm_ruby_src_path"
344
344
  ant dist
345
-
346
345
  else
347
- if [[ -d $rvm_ruby_src_path ]] ; then
348
- cd $rvm_ruby_src_path
346
+ if [[ -z "$rvm_force_flag" ]] && [[ -f $rvm_package_file ]] && [[ -s $rvm_package_file ]] ; then
347
+ __rvm_log "info" "It appears that $rvm_package_file has already been downloaded, skipping. Use --force to force re-download."
349
348
  else
350
- if [[ -z "$rvm_force_flag" ]] && [[ -f $rvm_package_file ]] && [[ -s $rvm_package_file ]] ; then
351
- __rvm_log "info" "It appears that $rvm_package_file has already been downloaded, skipping. Use --force to force re-download."
352
- else
353
- __rvm_log "info" "Downloading $rvm_package_file, this may take a while depending on your connection..."
354
- __rvm_fetch $rvm_url
355
- fi
356
- __rvm_run "extract" "tar zxf $rvm_archives_path/$rvm_package_file.tar.gz -C $rvm_src_path" "Extracting $rvm_package_file..."
357
- if [[ "$rvm_package_file" != "$rvm_ruby_string" ]] ; then
358
- mv $rvm_src_path/$rvm_package_file $rvm_src_path/$rvm_ruby_string
359
- fi
360
- cd $rvm_ruby_src_path
349
+ __rvm_log "info" "Downloading $rvm_package_file, this may take a while depending on your connection..."
350
+ __rvm_fetch "$rvm_url"
351
+ fi
352
+ __rvm_run "extract" "tar zxf $rvm_archives_path/$rvm_package_file.tar.gz -C $rvm_src_path" "Extracting $rvm_package_file..."
353
+ if [[ "$rvm_package_file" != "$rvm_ruby_string" ]] ; then
354
+ mv "$rvm_src_path/$rvm_package_file" "$rvm_src_path/$rvm_ruby_string"
361
355
  fi
356
+ cd "$rvm_ruby_src_path"
362
357
  fi
363
358
 
364
- mkdir -p $rvm_ruby_home/bin/
365
- __rvm_run "nailgun" "cd $rvm_ruby_src_path/tool/nailgun && /usr/bin/make $rvm_make_flags" "Installing $rvm_ruby_package_name..."
359
+ mkdir -p "$rvm_ruby_home/bin/"
360
+ cd "$rvm_ruby_src_path/tool/nailgun" && /usr/bin/make $rvm_make_flags
361
+
366
362
  __rvm_pushpop
367
363
 
368
364
  if [[ -z "$rvm_ruby_home" ]] || [[ "$rvm_ruby_home" = "/" ]] ; then echo "WTH?!?! rvm_ruby_home == / ??? not removing." ; return 1000000 ; fi
@@ -57,16 +57,11 @@ function __rvm_select {
57
57
  rvm_ruby_string="jruby-head"
58
58
  rvm_ruby_repo_url="${rvm_ruby_repo_url:-$(__rvm_db "jruby_repo_url")}"
59
59
  rvm_url="${rvm_ruby_repo_url:-$(__rvm_db "jruby_repo_url")}"
60
- elif match "$rvm_ruby_version" "^1.4" ; then
61
- rvm_url="http://jruby.kenai.com/downloads/$rvm_ruby_interpreter/$rvm_ruby_version/$rvm_package_file.tar.gz"
62
- rvm_ruby_version="1.4.0RC3"
63
- rvm_ruby_string="jruby-1.4.0RC3"
64
- rvm_package_file="$rvm_ruby_interpreter-bin-${rvm_ruby_version}"
65
60
  else
66
61
  rvm_ruby_version="${rvm_ruby_version:-"$(__rvm_db "jruby_version")"}"
67
- rvm_url="http://jruby.kenai.com/downloads/$rvm_ruby_interpreter/$rvm_ruby_version/$rvm_package_file.tar.gz"
68
- rvm_package_file="$rvm_ruby_interpreter-bin-$rvm_ruby_version"
62
+ rvm_package_file="${rvm_ruby_interpreter}-bin-${rvm_ruby_version}"
69
63
  rvm_ruby_string="${rvm_ruby_interpreter}-${rvm_ruby_version}"
64
+ rvm_url="http://jruby.kenai.com/downloads/${rvm_ruby_version}/${rvm_package_file}.tar.gz"
70
65
  fi
71
66
  alias jruby_ng="jruby --ng"
72
67
  alias jruby_ng_server="jruby --ng-server"
@@ -384,11 +384,13 @@ __rvm_db() {
384
384
  __rvm_list() {
385
385
  if [[ ! -z "$rvm_all_flag" ]] ; then
386
386
  svn list http://svn.ruby-lang.org/repos/ruby/tags/ | grep 'v1_[8|9]' | sed 's#^v1_##' | sed 's#/$##' | awk -F'_' '{print "1."$1"."$2 " -l "$3}' | sed 's#p$##'
387
- echo -e "jruby 1.2.0\njruby 1.3.0\njruby (1.3.1, the default)\njruby 1.4.1\njruby --head"
387
+ echo -e "jruby 1.2.0\njruby 1.3.0\njruby 1.3.1\njruby (1.4.0, the default)\njruby --head"
388
388
  echo -e "rbx (rubinius head, the default)\nrbx-head --jit"
389
389
  echo -e "ree 1.8.6-head\nree (1.8.7, the default)"
390
- echo -e "macruby-nightly (macruby-nightly, the default)\nmacruby-head"
391
390
  echo -e "mput head (shyouhei head, the default)"
391
+ if [[ "Darwin" = "$(uname)" ]] ; then
392
+ echo -e "macruby-nightly (macruby-nightly, the default)\nmacruby-head"
393
+ fi
392
394
  else
393
395
  current_ruby="$(which ruby | xargs dirname | xargs dirname | xargs basename 2> /dev/null)"
394
396
  echo -e "\nruby:\n"
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.72
4
+ version: 0.0.73
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wayne E. Seguin