rvm 0.0.71 → 0.0.72

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/config/db CHANGED
@@ -5,12 +5,12 @@ 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_repo_url=git://kenai.com/jruby~main
8
+ jruby_version=1.3.1
9
+ jruby_repo_url=git://github.com/jruby/jruby.git
9
10
  ruby_configure=--enable-shared
10
11
  interpreter=ruby
11
12
  ruby_version=1.8.6
12
13
  ruby_patchlevel=383
13
- jruby_version=1.3.1
14
14
  ree_version=1.8.7
15
15
  ree_1.8.6_patch_level=20090610
16
16
  ree_1.8.6_url=http://rubyforge.org/frs/download.php/58677
data/install CHANGED
@@ -23,8 +23,8 @@ done
23
23
 
24
24
  rm -rf $rvm_path/scripts # Clear the old scripts directory so that the old style rvm- scripts are cleared out.
25
25
  for dir_name in config scripts examples lib ; do
26
- mkdir -p $rvm_path/$dir_name
27
- /bin/cp -Rf $source_dir/$dir_name $rvm_path
26
+ mkdir -p "$rvm_path/$dir_name"
27
+ cp -Rf "$source_dir/$dir_name" "$rvm_path"
28
28
  done ; unset dir_name
29
29
 
30
30
  for file_name in rvm-prompt gemsync ; do
@@ -53,18 +53,17 @@ for file in ~/.bash_profile ~/.bashrc ~/.zshrc ; do
53
53
  actual_file="$file"
54
54
  fi
55
55
 
56
- grep 'rvm\/bin\/rvm' $actual_file > /dev/null
56
+ grep 'rvm\/bin\/rvm' "$actual_file" > /dev/null
57
57
  if [[ $? -eq 0 ]] ; then
58
- sed -i.orig 's#rvm/bin/rvm #rvm/scripts/rvm #g' $actual_file
59
- rm -f $actual_file.orig
58
+ sed -i.orig 's#rvm/bin/rvm #rvm/scripts/rvm #g' "$actual_file"
59
+ rm -f "$actual_file.orig"
60
60
  fi
61
61
 
62
62
  if [[ -f ~/.profile ]] ; then
63
- grep '.profile' $actual_file > /dev/null
63
+ grep '.profile' "$actual_file" > /dev/null
64
64
  if [[ $? -gt 0 ]] ; then
65
65
  profile=~/.profile
66
- echo -e "\n" >> $actual_file
67
- echo "source $profile" >> $actual_file
66
+ echo -e "\nsource ${profile}" >> "$actual_file"
68
67
  fi
69
68
  fi
70
69
  fi
@@ -88,6 +87,8 @@ if [[ "Linux" = "$system" ]] ; then
88
87
  echo -e " $ sudo aptitude install sun-java6-bin sun-java6-jre sun-java6-jdk"
89
88
  echo -e " $item For ree (if you wish to use it) you will need:"
90
89
  echo -e " $ sudo aptitude install libreadline5-dev libssl-dev bison"
90
+ echo -e " $item For 1.9.X (if you wish to use it) we additionally recommend:"
91
+ echo -e " $ sudo aptitude install libxml2-dev"
91
92
 
92
93
  elif [[ ! -z "$rvm_emerge_binary" ]] ; then
93
94
  echo -e " $item For jRuby (if you wish to use it) you will need:"
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 0
4
- :patch: 71
4
+ :patch: 72
@@ -1,4 +1,15 @@
1
1
  module RVM
2
- require "yaml"
3
- VERSION = YAML.load_file("#{File.expand_path(File.dirname(__FILE__))}/../VERSION.yml")
2
+ module Version
3
+
4
+ require "yaml"
5
+
6
+ YAML = YAML.load_file("#{File.expand_path(File.dirname(__FILE__))}/../VERSION.yml")
7
+
8
+ MAJOR = YAML[:major]
9
+ MINOR = YAML[:minor]
10
+ PATCH = YAML[:patch]
11
+
12
+ STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
13
+
14
+ end
4
15
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rvm}
8
- s.version = "0.0.71"
8
+ s.version = "0.0.72"
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-10-31}
12
+ s.date = %q{2009-11-02}
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}
@@ -152,7 +152,7 @@ __rvm_gems_load() {
152
152
 
153
153
  if [[ -f "$rvm_file_name" ]] ; then
154
154
  echo "Loading $rvm_file_name file..."
155
- rvm_ruby_gem_list=$(/bin/ls $rvm_ruby_gem_home/specifications/ 2> /dev/null | sed 's#.gems.*$##' 2> /dev/null)
155
+ rvm_ruby_gem_list=$(\ls $rvm_ruby_gem_home/specifications/ 2> /dev/null | sed 's#.gems.*$##' 2> /dev/null)
156
156
 
157
157
  while read line
158
158
  do # Keep this on 2nd line :(
@@ -188,7 +188,7 @@ __rvm_gems_load() {
188
188
  elif [[ -f "$rvm_gem_path/cache/${gem_file_name}" ]] ; then
189
189
  cache_file="$rvm_gem_path/cache/${gem_file_name}"
190
190
  else
191
- cache_file="${cache_file:-$(ls ${rvm_gem_path}/*/*/cache/${gem_file_name}* 2> /dev/null | sort | head -n1)}"
191
+ cache_file="${cache_file:-$(\ls ${rvm_gem_path}/*/*/cache/${gem_file_name}* 2> /dev/null | sort | head -n1)}"
192
192
  if [[ ! -z "$cache_file" ]] && [[ -f "$cache_file" ]] ; then
193
193
  if [[ "$(dirname $cache_file)" != "$rvm_gem_path/cache/" ]] ; then
194
194
  cp "$cache_file" "$rvm_gem_path/cache/"
@@ -23,8 +23,8 @@ done
23
23
 
24
24
  rm -rf $rvm_path/scripts # Clear the old scripts directory so that the old style rvm- scripts are cleared out.
25
25
  for dir_name in config scripts examples lib ; do
26
- mkdir -p $rvm_path/$dir_name
27
- /bin/cp -Rf $source_dir/$dir_name $rvm_path
26
+ mkdir -p "$rvm_path/$dir_name"
27
+ cp -Rf "$source_dir/$dir_name" "$rvm_path"
28
28
  done ; unset dir_name
29
29
 
30
30
  for file_name in rvm-prompt gemsync ; do
@@ -53,18 +53,17 @@ for file in ~/.bash_profile ~/.bashrc ~/.zshrc ; do
53
53
  actual_file="$file"
54
54
  fi
55
55
 
56
- grep 'rvm\/bin\/rvm' $actual_file > /dev/null
56
+ grep 'rvm\/bin\/rvm' "$actual_file" > /dev/null
57
57
  if [[ $? -eq 0 ]] ; then
58
- sed -i.orig 's#rvm/bin/rvm #rvm/scripts/rvm #g' $actual_file
59
- rm -f $actual_file.orig
58
+ sed -i.orig 's#rvm/bin/rvm #rvm/scripts/rvm #g' "$actual_file"
59
+ rm -f "$actual_file.orig"
60
60
  fi
61
61
 
62
62
  if [[ -f ~/.profile ]] ; then
63
- grep '.profile' $actual_file > /dev/null
63
+ grep '.profile' "$actual_file" > /dev/null
64
64
  if [[ $? -gt 0 ]] ; then
65
65
  profile=~/.profile
66
- echo -e "\n" >> $actual_file
67
- echo "source $profile" >> $actual_file
66
+ echo -e "\nsource ${profile}" >> "$actual_file"
68
67
  fi
69
68
  fi
70
69
  fi
@@ -88,6 +87,8 @@ if [[ "Linux" = "$system" ]] ; then
88
87
  echo -e " $ sudo aptitude install sun-java6-bin sun-java6-jre sun-java6-jdk"
89
88
  echo -e " $item For ree (if you wish to use it) you will need:"
90
89
  echo -e " $ sudo aptitude install libreadline5-dev libssl-dev bison"
90
+ echo -e " $item For 1.9.X (if you wish to use it) we additionally recommend:"
91
+ echo -e " $ sudo aptitude install libxml2-dev"
91
92
 
92
93
  elif [[ ! -z "$rvm_emerge_binary" ]] ; then
93
94
  echo -e " $item For jRuby (if you wish to use it) you will need:"
@@ -45,18 +45,16 @@ function __rvm_install_source {
45
45
  if [[ $? -gt 0 ]] ; then result=$? ; return $result ; fi
46
46
  fi
47
47
  else
48
- if [[ -z "$rvm_ruby_revision" ]] ; then
48
+ if [[ ! -z "$rvm_head_flag" ]] || [[ "trunk" = "$rvm_ruby_revision" ]] ; then
49
+ rvm_url="$rvm_ruby_repo_url/trunk"
50
+ rvm_rev=""
51
+ elif [[ ! -z "$rvm_ruby_tag" ]] ; then
49
52
  # TODO: Check if tag v is valid
50
53
  rvm_url="$rvm_ruby_repo_url/tags/$rvm_ruby_tag"
51
54
  rvm_rev=""
52
55
  else
53
- if [[ "head" = "$rvm_ruby_revision" ]] || [[ "trunk" = "$rvm_ruby_revision" ]] ; then
54
- rvm_url="$rvm_ruby_repo_url/trunk"
55
- rvm_rev=""
56
- else
57
- rvm_url=$rvm_ruby_repo_url/branches/ruby_1_${rvm_major_version}_${rvm_minor_version}
58
- rvm_rev="-$rvm_ruby_revision"
59
- fi
56
+ rvm_url=$rvm_ruby_repo_url/branches/ruby_1_${rvm_major_version}_${rvm_minor_version}
57
+ rvm_rev="-$rvm_ruby_revision"
60
58
  fi
61
59
 
62
60
  if [[ -d "$rvm_ruby_src_path/.svn" ]] ; then
@@ -87,12 +85,13 @@ function __rvm_install_source {
87
85
 
88
86
  if [[ -s ./Makefile ]] && [[ -z "$rvm_reconfigure_flag" ]] ; then
89
87
  __rvm_log "debug" "Skipping configure step, Makefile exists so configure must have already been run."
88
+ elif [[ ! -z "rvm_ruby_configure" ]] ; then
89
+ __rvm_run "configure" "$rvm_ruby_configure"
90
+ if [[ $? -gt 0 ]] ; then result=$? ; return $result ; fi
90
91
  elif [[ -s ./configure ]] ; then
91
- __rvm_run "configure" "./configure --prefix=$rvm_ruby_home $rvm_ruby_configure $configure_parameters" "Configuring $rvm_ruby_package_name using $rvm_ruby_configure, this may take a while depending on your cpu(s)..."
92
+ __rvm_run "configure" "./configure --prefix=$rvm_ruby_home $rvm_ruby_configure $configure_parameters" "Configuring $rvm_ruby_package_name, this may take a while depending on your cpu(s)..."
92
93
  if [[ $? -gt 0 ]] ; then result=$? ; return $result ; fi
93
94
  unset configure_parameters
94
- elif [[ ! -z "rvm_ruby_configure" ]] ; then
95
- $rvm_ruby_configure
96
95
  else
97
96
  __rvm_log "error" "Skipping configure step, 'configure' script does not exist, did autoconf not run successfully?"
98
97
  fi
@@ -126,33 +125,23 @@ function __rvm_install_ruby {
126
125
  case "$rvm_ruby_interpreter" in
127
126
  macruby)
128
127
  if [[ "Darwin" = "$(uname)" ]] ; then
129
- if [[ "nightly" = "$rvm_ruby_version" ]] ; then
128
+ if [[ "$rvm_head_flag" = 1 ]] ; then
130
129
  macruby_path="/usr/local/bin"
131
- # TODO: Separated nightly from head.
132
- rvm_url="$(__rvm_db "macruby_nightly_url")"
133
- __rvm_log "info" "Retrieving the latest nightly macruby build..."
134
- __rvm_fetch $rvm_url
135
- mv "$rvm_archives_path/latest" "$rvm_archives_path/macruby_nightly.pkg"
136
- __rvm_run "macruby/extract" "sudo installer -pkg '$rvm_path/archives/macruby_nightly.pkg' -target '/'"
137
- mkdir -p "$rvm_ruby_home/bin"
138
- elif [[ "head" = "$rvm_ruby_version" ]] ; then
139
130
  # TODO: configure & make variables should be set here.
131
+ rvm_ruby_configure=""
132
+ rvm_ruby_make="rake"
133
+ rvm_ruby_make_install="sudo rake install"
140
134
  rvm_url="$(__rvm_db "${rvm_ruby_interpreter}_repo_url")"
141
- if [[ -z "$rvm_url" ]] ; then
142
- __rvm_log "fail" "rvm does not know the rvm repo url for 'ree_${rvm_ruby_version}'"
143
- result=1
144
- else
145
- rvm_ruby_repo_url=$rvm_url
146
- __rvm_install_source $*
147
- fi
148
- else
135
+ rvm_ruby_repo_url=$rvm_url
136
+ __rvm_install_source $*
137
+ else # if [[ "nightly" = "$rvm_ruby_version" ]] ; then
149
138
  macruby_path="/usr/local/bin"
150
139
  # TODO: Separated nightly from head.
151
140
  rvm_url="$(__rvm_db "macruby_nightly_url")"
152
- __rvm_log "info" "Retrieving latest macruby" # $rvm_archives_path/macruby_nightly.pkg
153
- __rvm_fetch $rvm_url
154
- mv $rvm_archives_path/latest $rvm_archives_path/macruby_nightly.pkg
155
- __rvm_run "macruby/extract" "sudo installer -pkg '$rvm_path/archives/$rvm_ruby_package_file.zip' -target '/'"
141
+ __rvm_log "info" "Retrieving the latest nightly macruby build..."
142
+ __rvm_fetch "$rvm_url"
143
+ mv "$rvm_archives_path/latest" "$rvm_archives_path/macruby_nightly.pkg"
144
+ __rvm_run "macruby/extract" "sudo installer -pkg '$rvm_path/archives/macruby_nightly.pkg' -target '/'"
156
145
  mkdir -p "$rvm_ruby_home/bin"
157
146
  fi
158
147
 
@@ -185,7 +174,6 @@ RubyWrapper
185
174
  ;;
186
175
 
187
176
  ree)
188
- __rvm_make_flags
189
177
  if [[ ! -z "$(echo $rvm_ruby_version | awk '/^1\.8/')" ]] && [[ -z "$rvm_head_flag" ]] ; then
190
178
  rvm_url="$(__rvm_db "ree_${rvm_ruby_version}_url")/$rvm_ruby_package_file.tar.gz"
191
179
  __rvm_log "info" "Installing Ruby Enterprise Edition from source to: $rvm_ruby_home"
@@ -205,7 +193,7 @@ RubyWrapper
205
193
 
206
194
  mkdir -p "$rvm_ruby_log_path"
207
195
  mkdir -p "${rvm_ruby_home}/lib/ruby/gems/1.8/gems"
208
- if [[ ! -z "$rvm_ruby_configure" ]] ; then rvm_ruby_configure="-c $rvm_ruby_configure"; fi
196
+ if [[ ! -z "$rvm_ruby_configure" ]] ; then rvm_ruby_configure="$(echo $rvm_ruby_configure | sed 's#--#-c --#g')"; fi
209
197
  __rvm_run "install" "./installer -a $rvm_path/$rvm_ruby_interpreter-$rvm_ruby_version-$rvm_ruby_patch_level $rvm_ree_options --dont-install-useful-gems $rvm_ruby_configure" "Installing $rvm_ruby_string, this may take a while, depending on your cpu(s)..." # --no-tcmalloc
210
198
  if [[ $? -gt 0 ]] ; then result=$? ; return $result ; fi
211
199
  chmod +x $rvm_ruby_home/bin/*
@@ -327,14 +315,34 @@ RubyWrapper
327
315
  ;;
328
316
 
329
317
  jruby)
330
- mkdir -p $rvm_ruby_log_path
318
+ mkdir -p "$rvm_ruby_log_path" "$rvm_ruby_src_path"
331
319
  __rvm_pushpop $rvm_src_path
332
320
 
333
- if [[ ! -z "$rvm_ruby_revision" ]] ; then
334
- if [[ ! -d "$rvm_path/$rvm_ruby_interpreter-$rvm_ruby_version" ]] || [[ ! -d "$rvm_path/$rvm_ruby_interpreter-$rvm_ruby_version/.git" ]] ; then
335
- git clone --depth 1 $rvm_jruby_repo_url $rvm_ruby_src_path
336
- cd $rvm_ruby_src_path && ant # TODO: Test if 'ant' is installed, if not throw error.
321
+ if [[ "$rvm_head_flag" -eq 1 ]] || [[ ! -z "$rvm_ruby_revision" ]] ; then
322
+ if [[ -d "$rvm_ruby_src_path/.git" ]] ; then
323
+ cd "$rvm_ruby_src_path"
324
+ if [[ -z "$rvm_ruby_revision" ]] ; then
325
+ __rvm_log "info" "Pulling from $rvm_ruby_repo_url, this may take a while depending on your connection..."
326
+ git pull origin master
327
+ if [[ $? -gt 0 ]] ; then result=$? ; return $result ; fi
328
+ else
329
+ if [[ -z "$rvm_ruby_sha" ]] ; then
330
+ git checkout HEAD
331
+ else
332
+ git checkout $(echo $rvm_ruby_sha | sed 's#^s##')
333
+ fi
334
+ if [[ $? -gt 0 ]] ; then result=$? ; return $result ; fi
335
+ fi
336
+ else
337
+ rm -rf "$rvm_ruby_src_path"
338
+ __rvm_log "info" "Cloning from $rvm_ruby_repo_url, this may take a while depending on your connection..."
339
+ git clone --depth 1 "$rvm_ruby_repo_url" "$rvm_ruby_src_path"
340
+ if [[ $? -gt 0 ]] ; then result=$? ; return $result ; fi
337
341
  fi
342
+
343
+ cd "$rvm_ruby_src_path"
344
+ ant dist
345
+
338
346
  else
339
347
  if [[ -d $rvm_ruby_src_path ]] ; then
340
348
  cd $rvm_ruby_src_path
@@ -487,7 +495,7 @@ function __rvm_manage_rubies {
487
495
  eval "__rvm_${rvm_action}_ruby"
488
496
  __rvm_unset_ruby_variables
489
497
  fi
490
- done < <(/bin/ls $rvm_path/*/bin/ruby 2> /dev/null)
498
+ done < <(\ls $rvm_path/*/bin/ruby 2> /dev/null)
491
499
  else
492
500
  __rvm_log "warn" 'Really? Install all? See "rvm list --all" and limit the selection to something more sane please :)'
493
501
  fi
@@ -23,8 +23,8 @@ done
23
23
 
24
24
  rm -rf $rvm_path/scripts # Clear the old scripts directory so that the old style rvm- scripts are cleared out.
25
25
  for dir_name in config scripts examples lib ; do
26
- mkdir -p $rvm_path/$dir_name
27
- /bin/cp -Rf $source_dir/$dir_name $rvm_path
26
+ mkdir -p "$rvm_path/$dir_name"
27
+ cp -Rf "$source_dir/$dir_name" "$rvm_path"
28
28
  done ; unset dir_name
29
29
 
30
30
  for file_name in rvm-prompt gemsync ; do
@@ -53,18 +53,17 @@ for file in ~/.bash_profile ~/.bashrc ~/.zshrc ; do
53
53
  actual_file="$file"
54
54
  fi
55
55
 
56
- grep 'rvm\/bin\/rvm' $actual_file > /dev/null
56
+ grep 'rvm\/bin\/rvm' "$actual_file" > /dev/null
57
57
  if [[ $? -eq 0 ]] ; then
58
- sed -i.orig 's#rvm/bin/rvm #rvm/scripts/rvm #g' $actual_file
59
- rm -f $actual_file.orig
58
+ sed -i.orig 's#rvm/bin/rvm #rvm/scripts/rvm #g' "$actual_file"
59
+ rm -f "$actual_file.orig"
60
60
  fi
61
61
 
62
62
  if [[ -f ~/.profile ]] ; then
63
- grep '.profile' $actual_file > /dev/null
63
+ grep '.profile' "$actual_file" > /dev/null
64
64
  if [[ $? -gt 0 ]] ; then
65
65
  profile=~/.profile
66
- echo -e "\n" >> $actual_file
67
- echo "source $profile" >> $actual_file
66
+ echo -e "\nsource ${profile}" >> "$actual_file"
68
67
  fi
69
68
  fi
70
69
  fi
@@ -88,6 +87,8 @@ if [[ "Linux" = "$system" ]] ; then
88
87
  echo -e " $ sudo aptitude install sun-java6-bin sun-java6-jre sun-java6-jdk"
89
88
  echo -e " $item For ree (if you wish to use it) you will need:"
90
89
  echo -e " $ sudo aptitude install libreadline5-dev libssl-dev bison"
90
+ echo -e " $item For 1.9.X (if you wish to use it) we additionally recommend:"
91
+ echo -e " $ sudo aptitude install libxml2-dev"
91
92
 
92
93
  elif [[ ! -z "$rvm_emerge_binary" ]] ; then
93
94
  echo -e " $item For jRuby (if you wish to use it) you will need:"
@@ -14,19 +14,22 @@ function __rvm_select {
14
14
  case "$rvm_ruby_interpreter" in
15
15
  macruby)
16
16
  if [[ "Darwin" = "$(uname)" ]] ; then
17
- rvm_ruby_repo_url="${rvm_ruby_repo_url:-"$(__rvm_db "macruby_repo_url")"}"
18
17
  rvm_ruby_package_name=${rvm_ruby_interpreter}-${rvm_ruby_version}
19
- rvm_ruby_string="${rvm_ruby_interpreter}-${rvm_ruby_version}"
20
- if [[ "nightly" = "$rvm_ruby_version" ]] ; then
21
- rvm_url="http://macruby.icoretech.org/latest"
22
- elif [[ "head" = "$rvm_ruby_version" ]] ; then
18
+ if [[ "$rvm_head_flag" -eq 1 ]] ; then
19
+ unset rvm_ruby_version rvm_ruby_tag
20
+ rvm_ruby_revision="head"
23
21
  rvm_ruby_repo_url=${rvm_ruby_repo_url:-"$(__rvm_db "macruby_repo_url")"}
24
22
  rvm_url="$rvm_ruby_repo_url"
23
+ rvm_ruby_string="${rvm_ruby_interpreter}-head"
24
+ elif [[ "nightly" = "$rvm_ruby_version" ]] ; then
25
+ rvm_url="http://macruby.icoretech.org/latest"
26
+ rvm_ruby_string="${rvm_ruby_interpreter}-${rvm_ruby_version}"
25
27
  else
26
28
  rvm_ruby_version="${rvm_ruby_version:-"$(__rvm_db "macruby_version")"}"
27
29
  rvm_ruby_package_name="${rvm_ruby_interpreter}_nightly-${rvm_ruby_version}"
28
30
  rvm_ruby_package_file="MacRuby%200.5%20beta%201.zip"
29
31
  rvm_url="http://www.macruby.org/files/MacRuby%200.5%20beta%201.zip"
32
+ rvm_ruby_string="${rvm_ruby_interpreter}-${rvm_ruby_version}"
30
33
  fi
31
34
 
32
35
  unset rvm_ruby_patch_level
@@ -48,18 +51,23 @@ function __rvm_select {
48
51
  ;;
49
52
 
50
53
  jruby)
51
- rvm_jruby_repo_url="${rvm_jruby_repo_url:-"git://kenai.com/jruby~main"}"
52
- rvm_ruby_version="${rvm_ruby_version:-"$(__rvm_db "jruby_version")"}"
53
54
  unset rvm_ruby_patch_level
54
- if match "$rvm_ruby_version" "^1.4" ; then
55
+ if [[ "$rvm_head_flag" -eq 1 ]] ; then
56
+ rvm_ruby_version="head"
57
+ rvm_ruby_string="jruby-head"
58
+ rvm_ruby_repo_url="${rvm_ruby_repo_url:-$(__rvm_db "jruby_repo_url")}"
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"
55
62
  rvm_ruby_version="1.4.0RC3"
56
63
  rvm_ruby_string="jruby-1.4.0RC3"
57
64
  rvm_package_file="$rvm_ruby_interpreter-bin-${rvm_ruby_version}"
58
65
  else
66
+ 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"
59
68
  rvm_package_file="$rvm_ruby_interpreter-bin-$rvm_ruby_version"
60
69
  rvm_ruby_string="${rvm_ruby_interpreter}-${rvm_ruby_version}"
61
70
  fi
62
- rvm_url="http://jruby.kenai.com/downloads/$rvm_ruby_interpreter/$rvm_ruby_version/$rvm_package_file.tar.gz"
63
71
  alias jruby_ng="jruby --ng"
64
72
  alias jruby_ng_server="jruby --ng-server"
65
73
  ;;
@@ -322,7 +330,7 @@ __rvm_ruby_string() {
322
330
 
323
331
  # Unspecified version
324
332
  if [[ -z "$rvm_ruby_version" ]] ; then
325
- rvm_ruby_version=${rvm_ruby_version:-"$(__rvm_db "${rvm_ruby_interpreter}_version")"}
333
+ rvm_ruby_version=${rvm_ruby_version:-"$(__rvm_db "${rvm_ruby_interpreter}_version")"}
326
334
  fi
327
335
  rvm_ruby_string="${rvm_ruby_interpreter}-${rvm_ruby_version}"
328
336
 
@@ -23,8 +23,8 @@ done
23
23
 
24
24
  rm -rf $rvm_path/scripts # Clear the old scripts directory so that the old style rvm- scripts are cleared out.
25
25
  for dir_name in config scripts examples lib ; do
26
- mkdir -p $rvm_path/$dir_name
27
- /bin/cp -Rf $source_dir/$dir_name $rvm_path
26
+ mkdir -p "$rvm_path/$dir_name"
27
+ cp -Rf "$source_dir/$dir_name" "$rvm_path"
28
28
  done ; unset dir_name
29
29
 
30
30
  for file_name in rvm-prompt gemsync ; do
@@ -53,18 +53,17 @@ for file in ~/.bash_profile ~/.bashrc ~/.zshrc ; do
53
53
  actual_file="$file"
54
54
  fi
55
55
 
56
- grep 'rvm\/bin\/rvm' $actual_file > /dev/null
56
+ grep 'rvm\/bin\/rvm' "$actual_file" > /dev/null
57
57
  if [[ $? -eq 0 ]] ; then
58
- sed -i.orig 's#rvm/bin/rvm #rvm/scripts/rvm #g' $actual_file
59
- rm -f $actual_file.orig
58
+ sed -i.orig 's#rvm/bin/rvm #rvm/scripts/rvm #g' "$actual_file"
59
+ rm -f "$actual_file.orig"
60
60
  fi
61
61
 
62
62
  if [[ -f ~/.profile ]] ; then
63
- grep '.profile' $actual_file > /dev/null
63
+ grep '.profile' "$actual_file" > /dev/null
64
64
  if [[ $? -gt 0 ]] ; then
65
65
  profile=~/.profile
66
- echo -e "\n" >> $actual_file
67
- echo "source $profile" >> $actual_file
66
+ echo -e "\nsource ${profile}" >> "$actual_file"
68
67
  fi
69
68
  fi
70
69
  fi
@@ -88,6 +87,8 @@ if [[ "Linux" = "$system" ]] ; then
88
87
  echo -e " $ sudo aptitude install sun-java6-bin sun-java6-jre sun-java6-jdk"
89
88
  echo -e " $item For ree (if you wish to use it) you will need:"
90
89
  echo -e " $ sudo aptitude install libreadline5-dev libssl-dev bison"
90
+ echo -e " $item For 1.9.X (if you wish to use it) we additionally recommend:"
91
+ echo -e " $ sudo aptitude install libxml2-dev"
91
92
 
92
93
  elif [[ ! -z "$rvm_emerge_binary" ]] ; then
93
94
  echo -e " $item For jRuby (if you wish to use it) you will need:"
@@ -44,7 +44,7 @@ function __rvm_debug {
44
44
  __rvm_log "debug" "ARCHFLAGS: $ARCHFLAGS"
45
45
  __rvm_log "debug" "LDFLAGS: $LDFLAGS"
46
46
  __rvm_log "debug" "CFLAGS: $CFLAGS"
47
- __rvm_log "debug" "/Developer/SDKs/*:$(ls /Developer/SDKs/ | tr "\n" ',')"
47
+ __rvm_log "debug" "/Developer/SDKs/*:$(basename -a /Developer/SDKs/* | tr "\n" ',')"
48
48
  fi
49
49
 
50
50
  for file_name in ~/.bash_profile ~/.bashrc ~/.zshrc ; do
@@ -62,7 +62,7 @@ function __rvm_debug {
62
62
  __rvm_log "debug" "gem sources:\n$(gem sources | awk '/gems/')"
63
63
 
64
64
  if [[ -f "$rvm_path/bin/rvm" ]] ; then
65
- __rvm_log "error" "rvm script in bin! \n$(ls -laht $rvm_path/bin/rvm)"
65
+ __rvm_log "error" "rvm script in bin! \n$(\ls -laht $rvm_path/bin/rvm)"
66
66
  fi
67
67
  }
68
68
 
@@ -128,7 +128,7 @@ __rvm_cleanup_variables() {
128
128
  }
129
129
 
130
130
  __rvm_unset_ruby_variables() {
131
- unset rvm_ruby_interpreter rvm_ruby_version rvm_ruby_repo_url rvm_ruby_package_name rvm_ruby_patch_level rvm_ruby_make rvm_ruby_make_install rvm_ruby_revision rvm_ruby_tag rvm_major_version rvm_minor_version rvm_ruby_gem_home rvm_ruby_binary rvm_ruby_home rvm_ruby_log_path rvm_ruby_src_path rvm_ruby_irbrc rvm_ruby_selected_flag rvm_ruby_string rvm_ruby_string rvm_ruby_src_path rvm_ruby_repo_url rvm_major_version rvm_minor_version rvm_ruby_gem_home rvm_head_flag
131
+ unset rvm_ruby_interpreter rvm_ruby_version rvm_ruby_repo_url rvm_ruby_package_name rvm_ruby_patch_level rvm_ruby_make rvm_ruby_make_install rvm_ruby_revision rvm_ruby_tag rvm_major_version rvm_minor_version rvm_ruby_gem_home rvm_ruby_binary rvm_ruby_home rvm_ruby_log_path rvm_ruby_src_path rvm_ruby_irbrc rvm_ruby_selected_flag rvm_ruby_string rvm_ruby_string rvm_ruby_src_path rvm_ruby_repo_url rvm_major_version rvm_minor_version rvm_ruby_gem_home rvm_head_flag rvm_ruby_configure
132
132
  }
133
133
 
134
134
  # TODO: root user loadng of /etc/rvmrc
@@ -137,7 +137,7 @@ function __rvm_load_rvmrc {
137
137
  }
138
138
 
139
139
  function __rvm_bin_scripts {
140
- for rvm_ruby_binary in $(/bin/ls $rvm_path/*/bin/ruby 2> /dev/null) ; do
140
+ for rvm_ruby_binary in $(\ls $rvm_path/*/bin/ruby 2> /dev/null) ; do
141
141
  if [[ -x "$rvm_ruby_binary" ]] ; then
142
142
  rvm_ruby_string=$(dirname "$rvm_ruby_binary" | xargs dirname | xargs basename)
143
143
  __rvm_select
@@ -385,13 +385,14 @@ __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
387
  echo -e "jruby 1.2.0\njruby 1.3.0\njruby (1.3.1, the default)\njruby 1.4.1\njruby --head"
388
- echo -e "rbx head (rubinius head, the default)\nrbx head --jit"
389
- echo -e "ree 1.8.6 --head\nree (1.8.7, the default)"
388
+ echo -e "rbx (rubinius head, the default)\nrbx-head --jit"
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"
390
391
  echo -e "mput head (shyouhei head, the default)"
391
392
  else
392
393
  current_ruby="$(which ruby | xargs dirname | xargs dirname | xargs basename 2> /dev/null)"
393
394
  echo -e "\nruby:\n"
394
- for version in $(/bin/ls -l $rvm_path/ 2> /dev/null | awk '/ ruby-[1-2].*/ { print $NF }') ; do
395
+ for version in $(\ls -l $rvm_path/ 2> /dev/null | awk '/ ruby-[1-2].*/ { print $NF }') ; do
395
396
  string=$($rvm_path/$version/bin/ruby -v)
396
397
  if [[ "$version" = "$current_ruby" ]] ; then
397
398
  echo -e "=> $version : $string"
@@ -402,7 +403,7 @@ __rvm_list() {
402
403
  done ; unset version
403
404
 
404
405
  echo -e "\nree:\n"
405
- for version in $(/bin/ls $rvm_path/ 2> /dev/null | awk '/ree-.*/ { print $NF }') ; do
406
+ for version in $(\ls $rvm_path/ 2> /dev/null | awk '/ree-.*/ { print $NF }') ; do
406
407
  string="$($rvm_path/$version/bin/ruby -v | tr "\n" ' ' )"
407
408
  if [[ "$version" = "$current_ruby" ]] ; then
408
409
  echo -e "=> $version : $string"
@@ -413,7 +414,7 @@ __rvm_list() {
413
414
  done ; unset version
414
415
 
415
416
  echo -e "\nmput:\n"
416
- for version in $(/bin/ls $rvm_path/ 2> /dev/null | awk '/mput-.*/ { print $NF }') ; do
417
+ for version in $(\ls $rvm_path/ 2> /dev/null | awk '/mput-.*/ { print $NF }') ; do
417
418
  string="$($rvm_path/$version/bin/ruby -v | tr "\n" ' ' )"
418
419
  if [[ "$version" = "$current_ruby" ]] ; then
419
420
  echo -e "=> $version : $string"
@@ -424,7 +425,7 @@ __rvm_list() {
424
425
  done ; unset version
425
426
 
426
427
  echo -e "\njruby:\n"
427
- for version in $(/bin/ls -l $rvm_path/ 2> /dev/null | awk '/jruby-.*/ { print $NF }') ; do
428
+ for version in $(\ls $rvm_path/ 2> /dev/null | awk '/jruby-.*/ { print $NF }') ; do
428
429
  string=$($rvm_path/$version/bin/ruby -v)
429
430
  if [[ "$version" = "$current_ruby" ]] ; then
430
431
  echo -e "=> $version : $string"
@@ -435,7 +436,7 @@ __rvm_list() {
435
436
  done ; unset version
436
437
 
437
438
  echo -e "\nrbx:\n"
438
- # for version in $(/bin/ls $rvm_path/ 2> /dev/null | awk '/rbx-.*/ { print $NF }') ; do
439
+ # for version in $(\ls $rvm_path/ 2> /dev/null | awk '/rbx-.*/ { print $NF }') ; do
439
440
  for version in "rbx-head" ; do
440
441
  if [[ -f "$rvm_path/$version/bin/ruby" ]] ; then
441
442
  string="$($rvm_path/$version/bin/ruby -v | tr "\n" ' ' )"
@@ -451,7 +452,7 @@ __rvm_list() {
451
452
 
452
453
  if [[ "Darwin" = "$(uname)" ]] ; then
453
454
  echo -e "\nmacruby:\n"
454
- for version in $(/bin/ls $rvm_path/ 2> /dev/null | awk '/macruby-.*/ { print $NF }') ; do
455
+ for version in $(\ls $rvm_path/ 2> /dev/null | awk '/macruby-.*/ { print $NF }') ; do
455
456
  string="$($rvm_path/$version/bin/ruby -v | tr "\n" ' ' )"
456
457
  if [[ "$version" = "$current_ruby" ]] ; then
457
458
  echo -e "=> $version : $string"
@@ -650,7 +651,7 @@ __rvm_do() {
650
651
  rvm_ruby_string="$(dirname $bin_line | xargs dirname | xargs basename)"
651
652
  __rvm_ruby_do
652
653
  fi
653
- done < <(/bin/ls $rvm_path/*/bin/ruby 2> /dev/null)
654
+ done < <(\ls $rvm_path/*/bin/ruby 2> /dev/null)
654
655
  fi
655
656
 
656
657
  if [[ ! -z "$rvm_summary_flag" ]] ; then __rvm_summary ; fi
@@ -787,7 +788,7 @@ function __rvm_readline_install {
787
788
  __rvm_run "$package/extract" "tar zxf $rvm_archives_path/$package-$version.$archive_format -C $rvm_src_path" "Extracting $package-$version.$archive_format"
788
789
  cd "$rvm_src_path/$package-$version"
789
790
  if [[ "Darwin" = "$(uname)" ]] ; then
790
- #sdk=$(ls -t /Developer/SDKs/ | head -n 1)
791
+ #sdk=$(\ls -t /Developer/SDKs/ | head -n 1)
791
792
  #CFLAGS="-isysroot /Developer/SDKs/$sdk -arch i386 -arch x86_64"
792
793
  #LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/$sdk -arch i386 -arch x86_64"
793
794
  #export CFLAGS LDFLAGS
@@ -878,7 +879,7 @@ __rvm_make_flags() {
878
879
  fi
879
880
 
880
881
  if [[ -z "$rvm_sdk" ]] ; then
881
- rvm_sdk="$(ls /Developer/SDKs/ | sort | tail -n 1)"
882
+ rvm_sdk="$(basename -a /Developer/SDKs/* | sort | tail -n 1)"
882
883
  fi
883
884
 
884
885
  CFLAGS="-isysroot /Developer/SDKs/$rvm_sdk $rvm_archflags" ; export CFLAGS
@@ -895,7 +896,7 @@ __rvm_monitor() {
895
896
  changed_test_files=() ; changed_spec_files=()
896
897
 
897
898
  if [[ -d "test/" ]] ; then
898
- test_files=($(/bin/ls test/**/*_test.rb))
899
+ test_files=($(\ls test/**/*_test.rb))
899
900
  for file in "${test_files[@]}"; do
900
901
  if [[ $(timestamp $file) -gt $timestamp ]] ; then
901
902
  array_push $changed_test_files
@@ -904,7 +905,7 @@ __rvm_monitor() {
904
905
  fi
905
906
 
906
907
  if [[ -d "spec/" ]] ; then
907
- spec_files=($(/bin/ls spec/**/*_spec.rb))
908
+ spec_files=($(\ls spec/**/*_spec.rb))
908
909
  for file in "${spec_files[@]}"; do
909
910
  if [[ $(timestamp $file) -gt $timestamp ]] ; then
910
911
  array_push $changed_spec_files
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.71
4
+ version: 0.0.72
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-10-31 00:00:00 -04:00
12
+ date: 2009-11-02 00:00:00 -05:00
13
13
  default_executable: rvm-install
14
14
  dependencies: []
15
15