rvm 0.0.6 → 0.0.7
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/bash/rvm +28 -24
- metadata +2 -2
data/bash/rvm
CHANGED
@@ -3,8 +3,8 @@
|
|
3
3
|
rvm_author="Wayne E. Seguin"
|
4
4
|
rvm_author_email="wayneeseguin@gmail.com"
|
5
5
|
rvm_website="http://github.com/wayneeseguin/rvm"
|
6
|
-
rvm_version="0.0.
|
7
|
-
rvm_updated="2009.08.
|
6
|
+
rvm_version="0.0.7"
|
7
|
+
rvm_updated="2009.08.25"
|
8
8
|
|
9
9
|
#
|
10
10
|
# License: See LICENSE
|
@@ -29,23 +29,24 @@ function rvm-usage {
|
|
29
29
|
|
30
30
|
Action:
|
31
31
|
|
32
|
-
* usage
|
33
|
-
use
|
34
|
-
info
|
35
|
-
gemdir
|
36
|
-
srcdir
|
37
|
-
gemdup
|
38
|
-
|
39
|
-
install
|
40
|
-
|
32
|
+
* usage - Show this usage information
|
33
|
+
use - Switch to using a specific ruby versio (new login shell)
|
34
|
+
info - Show information for current ruby
|
35
|
+
gemdir - Switch to gem directory for installation (new login shell)
|
36
|
+
srcdir - Switch to src directory for the current ruby installation
|
37
|
+
gemdup - Clone source implementation version gems to currently used version
|
38
|
+
(expiramental) Example: rvm gemdup ~/.gem/ruby/1.8/
|
39
|
+
install - Install a ruby version, default is from source
|
40
|
+
uninstall - Uninstall a ruby version
|
41
|
+
debug - Emit environment and configuration information for debugging
|
41
42
|
|
42
43
|
Implementation:
|
43
44
|
|
44
|
-
* ruby
|
45
|
-
jruby
|
46
|
-
ree
|
47
|
-
default
|
48
|
-
all
|
45
|
+
* ruby - MRI/YARV Ruby (The Standard), defaults to 1.8.6
|
46
|
+
jruby - jRuby
|
47
|
+
ree - Ruby Enterprise Edition
|
48
|
+
default - Resets to the default system ruby
|
49
|
+
all - Used with install, installs all latest known versions
|
49
50
|
|
50
51
|
Options:
|
51
52
|
|
@@ -68,13 +69,14 @@ function rvm-usage {
|
|
68
69
|
|
69
70
|
Examples:
|
70
71
|
|
71
|
-
$ gem install rvm
|
72
|
-
$ rvm-install
|
73
|
-
$ rvm install jruby
|
74
|
-
$ rvm use ruby -v 1.9.1
|
75
|
-
$ rvm use 1.9
|
76
|
-
$ rvm use 1.8
|
77
|
-
$ rvm use default
|
72
|
+
$ gem install rvm # Install the rvm gem
|
73
|
+
$ rvm-install # Install rvm, adds hooks for bash & zsh
|
74
|
+
$ rvm install jruby # Install jRuby (default version is 1.3.1)
|
75
|
+
$ rvm use ruby -v 1.9.1 # Use Ruby 1.9.1, installs if necessary
|
76
|
+
$ rvm use 1.9 # Equivalent to above, due to defaults
|
77
|
+
$ rvm use 1.8 # Use Ruby 1.8.6, installs if necessary
|
78
|
+
$ rvm use default # Use the system default (as if no rvm)
|
79
|
+
$ rvm gemdup ~/.gem/ruby/1.8/ # Install gems from ~/.gem/ruby/1.8/
|
78
80
|
|
79
81
|
TODO: (in order)
|
80
82
|
|
@@ -143,6 +145,7 @@ function rvm-install-source {
|
|
143
145
|
*) fail "Ruby version '$version' is unknown."
|
144
146
|
esac
|
145
147
|
|
148
|
+
set -x
|
146
149
|
package_name="ruby-$major.$minor-p$level"
|
147
150
|
url="ftp://ftp.ruby-lang.org/pub/ruby/$major/$package_name.tar.gz"
|
148
151
|
|
@@ -158,7 +161,7 @@ function rvm-install-source {
|
|
158
161
|
curl -O -L -s $url
|
159
162
|
fi
|
160
163
|
info "\tExtracting $package_name..."
|
161
|
-
tar xzf $package_name.tar.gz && cd $
|
164
|
+
tar xzf $package_name.tar.gz && cd $package_name
|
162
165
|
fi
|
163
166
|
|
164
167
|
info "\tConfiguring $package_name using ${configure-'--enable-shared'}, this may take a while depending on your cpu(s)..."
|
@@ -192,6 +195,7 @@ function rvm-install-source {
|
|
192
195
|
$install_path/$package_name/bin/gem install $gem_name --no-rdoc --no-ri -q >> $install_path/$package_name/gems.install.log
|
193
196
|
done
|
194
197
|
|
198
|
+
set +x
|
195
199
|
}
|
196
200
|
|
197
201
|
function rvm-install-ruby {
|
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.
|
4
|
+
version: 0.0.7
|
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-
|
12
|
+
date: 2009-08-25 00:00:00 -04:00
|
13
13
|
default_executable: rvm-install
|
14
14
|
dependencies: []
|
15
15
|
|