rvm 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/config/db +1 -1
- data/lib/VERSION.yml +1 -1
- data/rvm.gemspec +3 -3
- data/scripts/manage +15 -6
- data/scripts/selector +3 -2
- data/scripts/utility +5 -5
- metadata +3 -3
data/config/db
CHANGED
@@ -23,7 +23,7 @@ jruby_version=1.4.0
|
|
23
23
|
jruby_repo_url=git://github.com/jruby/jruby.git
|
24
24
|
jruby_url=http://jruby.kenai.com/downloads
|
25
25
|
macruby_version=0.5
|
26
|
-
macruby_url=http://www.macruby.org/files
|
26
|
+
macruby_url=http://www.macruby.org/files
|
27
27
|
macruby_repo_url=git://git.macruby.org/macruby/MacRuby.git
|
28
28
|
macruby_nightly_url=http://macruby.icoretech.org/latest/macruby_nightly-latest.pkg
|
29
29
|
maglev_version=22816
|
data/lib/VERSION.yml
CHANGED
data/rvm.gemspec
CHANGED
@@ -5,13 +5,13 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rvm}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.9"
|
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-02-
|
12
|
+
s.date = %q{2010-02-06}
|
13
13
|
s.default_executable = %q{rvm-install}
|
14
|
-
s.description = %q{Manages Ruby interpreter
|
14
|
+
s.description = %q{Manages Ruby interpreter environments and switching between them.}
|
15
15
|
s.email = %q{wayneeseguin@gmail.com}
|
16
16
|
s.executables = ["rvm-install"]
|
17
17
|
s.extra_rdoc_files = [
|
data/scripts/manage
CHANGED
@@ -118,10 +118,9 @@ __rvm_install_ruby() {
|
|
118
118
|
result=$? ; if [[ "$result" -gt 0 ]] ; then
|
119
119
|
$rvm_scripts_path/log "error" "There has been an error while trying to install from source. Aborting the installation." ; return $result
|
120
120
|
fi
|
121
|
-
|
121
|
+
elif [[ "nightly" = "$rvm_ruby_version" ]] ; then
|
122
122
|
macruby_path="/usr/local/bin"
|
123
123
|
# TODO: Separated nightly from head.
|
124
|
-
__rvm_db "macruby_nightly_url" "rvm_url"
|
125
124
|
$rvm_scripts_path/log "info" "Retrieving the latest nightly macruby build..."
|
126
125
|
$rvm_scripts_path/fetch "$rvm_url"
|
127
126
|
result=$? ; if [[ "$result" -gt 0 ]] ; then
|
@@ -130,6 +129,16 @@ __rvm_install_ruby() {
|
|
130
129
|
mv "$rvm_archives_path/macruby_nightly-latest.pkg" "$rvm_archives_path/macruby_nightly.pkg"
|
131
130
|
__rvm_run "macruby/extract" "sudo installer -pkg '$rvm_archives_path/macruby_nightly.pkg' -target '/'"
|
132
131
|
mkdir -p "$rvm_ruby_home/bin"
|
132
|
+
else # if [[ "nightly" = "$rvm_ruby_version" ]] ; then
|
133
|
+
macruby_path="/usr/local/bin"
|
134
|
+
# TODO: Separated nightly from head.
|
135
|
+
$rvm_scripts_path/log "info" "Retrieving the latest nightly macruby build..."
|
136
|
+
$rvm_scripts_path/fetch "$rvm_url"
|
137
|
+
result=$? ; if [[ "$result" -gt 0 ]] ; then
|
138
|
+
$rvm_scripts_path/log "error" "There has been an error while trying to fetch the source. Aborting the installation." ; __rvm_pushpop ; return $result
|
139
|
+
fi
|
140
|
+
__rvm_run "macruby/extract" "sudo installer -pkg '$rvm_archives_path/$rvm_ruby_package_file.pkg' -target '/'"
|
141
|
+
mkdir -p "$rvm_ruby_home/bin"
|
133
142
|
fi
|
134
143
|
|
135
144
|
binaries="erb gem irb rake rdoc ri ruby testrb" # Trick to work in more shells :)
|
@@ -562,17 +571,17 @@ RubyWrapper
|
|
562
571
|
|
563
572
|
rvm_ruby_home="$rvm_rubies_path/$rvm_ruby_interpreter-$rvm_ruby_version"
|
564
573
|
|
574
|
+
builtin cd $rvm_src_path
|
575
|
+
|
565
576
|
if [[ ! -d "$rvm_ruby_src_path" ]] || [[ ! -d "$rvm_ruby_src_path/.git" ]] ; then
|
566
577
|
rm -rf $rvm_ruby_src_path
|
567
578
|
__rvm_run "mput.repo" "git clone --depth 1 $rvm_ruby_repo_url $rvm_ruby_src_path" "Cloning $rvm_ruby_repo_url"
|
568
|
-
builtin cd $
|
579
|
+
builtin cd $rvm_ruby_src_path
|
569
580
|
else
|
570
|
-
builtin cd $
|
581
|
+
builtin cd $rvm_ruby_src_path
|
571
582
|
__rvm_run "mput.repo" "git pull origin trunk" "Pulling from origin trunk"
|
572
583
|
fi
|
573
584
|
|
574
|
-
builtin cd $rvm_ruby_src_path
|
575
|
-
|
576
585
|
if [[ ! -s "$rvm_ruby_src_path/configure" ]] ; then
|
577
586
|
if which autoconf &> /dev/null ; then
|
578
587
|
__rvm_run "autoconf" "autoconf" "Running autoconf"
|
data/scripts/selector
CHANGED
@@ -24,15 +24,16 @@ __rvm_select() {
|
|
24
24
|
rvm_url="$rvm_ruby_repo_url"
|
25
25
|
rvm_ruby_string="${rvm_ruby_interpreter}-head"
|
26
26
|
elif [[ "nightly" = "$rvm_ruby_version" ]] ; then
|
27
|
-
rvm_url
|
27
|
+
__rvm_db "macruby_nightly_url" "rvm_url"
|
28
28
|
rvm_ruby_string="${rvm_ruby_interpreter}-${rvm_ruby_version}"
|
29
29
|
rvm_ruby_package_name="${rvm_ruby_interpreter}_nightly-${rvm_ruby_version}"
|
30
30
|
rvm_ruby_package_file="$rvm_ruby_package_name"
|
31
31
|
else
|
32
32
|
__rvm_db "macruby_version" "rvm_ruby_version"
|
33
|
+
__rvm_db "macruby_url" "rvm_url"
|
33
34
|
rvm_ruby_package_name="MacRuby%200.5.zip"
|
34
35
|
rvm_ruby_package_file="$rvm_ruby_package_name"
|
35
|
-
rvm_url="
|
36
|
+
rvm_url="$rvm_url/$rvm_ruby_package_name"
|
36
37
|
fi
|
37
38
|
|
38
39
|
unset rvm_ruby_patch_level
|
data/scripts/utility
CHANGED
@@ -24,7 +24,7 @@ __rvm_db() {
|
|
24
24
|
|
25
25
|
# Ouput rvm environment information.
|
26
26
|
__rvm_info() {
|
27
|
-
if [[ ! -z "$(which ruby 2>/dev/null)" ]] ; then full_version=$(ruby -v) ; fi
|
27
|
+
if [[ ! -z "$(/usr/bin/which ruby 2>/dev/null)" ]] ; then full_version=$(ruby -v) ; fi
|
28
28
|
|
29
29
|
echo -e "system:\n uname: \"$(uname -a)\""
|
30
30
|
if [[ ! -z "$ZSH_VERSION" ]] ; then echo -e " shell: \"zsh\"\n version: \"$ZSH_VERSION\"" ; fi
|
@@ -768,10 +768,10 @@ __rvm_gems_select() {
|
|
768
768
|
|
769
769
|
# If there is a cache *directory* already,
|
770
770
|
# move all the gems to the global cache directory and remove it.
|
771
|
-
if [[ -d "$rvm_ruby_gem_home/cache" ]]
|
772
|
-
|
773
|
-
mv $
|
774
|
-
|
771
|
+
if [[ -d "$rvm_ruby_gem_home/cache" ]] && [[ ! -L "$rvm_ruby_gem_home/cache" ]] ; then
|
772
|
+
if [[ ! -z "$(ls -A "$rvm_ruby_gem_home"/cache/)" ]] ; then
|
773
|
+
mv "$rvm_ruby_gem_home"/cache/* "$rvm_gems_path"/cache/
|
774
|
+
fi
|
775
775
|
rm -rf "$rvm_ruby_gem_home/cache"
|
776
776
|
fi
|
777
777
|
|
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.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wayne E. Seguin
|
@@ -9,11 +9,11 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-02-
|
12
|
+
date: 2010-02-06 00:00:00 -05:00
|
13
13
|
default_executable: rvm-install
|
14
14
|
dependencies: []
|
15
15
|
|
16
|
-
description: Manages Ruby interpreter
|
16
|
+
description: Manages Ruby interpreter environments and switching between them.
|
17
17
|
email: wayneeseguin@gmail.com
|
18
18
|
executables:
|
19
19
|
- rvm-install
|