wayneeseguin-rvm 0.0.17 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- data/README +2 -103
- data/bash/rvm +22 -2
- data/bash/rvm-install +4 -1
- data/bash/rvm-update +2 -0
- data/rvm.gemspec +1 -1
- metadata +4 -3
data/README
CHANGED
@@ -1,105 +1,4 @@
|
|
1
|
+
For detailed information on rvm, please see:
|
1
2
|
|
2
|
-
|
3
|
-
|
4
|
-
rvm 0.0.18 http://github.com/wayneeseguin/rvm
|
5
|
-
|
6
|
-
by Wayne E. Seguin (wayneeseguin@gmail.com)
|
7
|
-
|
8
|
-
Installation:
|
9
|
-
|
10
|
-
$ gem install rvm # Install the rvm gem
|
11
|
-
$ rvm-install # Install rvm, adds hooks for bash & zsh
|
12
|
-
|
13
|
-
Usage:
|
14
|
-
|
15
|
-
rvm Action [Implementation] [Options]
|
16
|
-
|
17
|
-
Action:
|
18
|
-
|
19
|
-
* usage - Show this usage information
|
20
|
-
use - Switch to using a specific ruby version (new login shell)
|
21
|
-
info - Show information for current ruby
|
22
|
-
list - Show currently installed versions
|
23
|
-
gemdir - Switch to gem directory for installation (new login shell)
|
24
|
-
srcdir - Switch to src directory for the current ruby installation
|
25
|
-
gemdup - Clone source version gems to current version
|
26
|
-
(highly expiramental) Example: rvm gemdup ~/.gem/ruby/1.8/
|
27
|
-
install - Install a ruby version, default is from source
|
28
|
-
uninstall - Uninstall a ruby version
|
29
|
-
reset - Remove default and current settings, exit the shell.
|
30
|
-
(If you experience odd behavior try this first)
|
31
|
-
debug - Emit environment & configuration information for *current* ruby
|
32
|
-
|
33
|
-
Implementation:
|
34
|
-
|
35
|
-
* ruby - MRI/YARV Ruby (The Standard), defaults to 1.8.6
|
36
|
-
jruby - jRuby
|
37
|
-
ree - Ruby Enterprise Edition
|
38
|
-
default - Resets to the default system ruby
|
39
|
-
all - Used with install, installs all latest known versions
|
40
|
-
|
41
|
-
Options:
|
42
|
-
|
43
|
-
-v|--version - Ruby Package Version, defaults to 'latest'
|
44
|
-
-l|--level - Patch level for the specified Ruby version
|
45
|
-
-p|--prefix - Package and source directory prefix, with trailing slash!
|
46
|
-
Default is a users home directory and /usr/local/ for root
|
47
|
-
-c|--configure - Options for source compile (default: --enable-shared)
|
48
|
-
-d|--debug - Toggle debug mode on for extra messages (NYI)
|
49
|
-
|
50
|
-
Notes:
|
51
|
-
|
52
|
-
* Defaults above are denoted with a '*' prefix.
|
53
|
-
* rvm is intended to be run as an individual user (not root, yet)
|
54
|
-
* All ruby installation, configuration and source files are in ~/.rvm
|
55
|
-
|
56
|
-
Examples:
|
57
|
-
|
58
|
-
$ rvm -v # RVM version
|
59
|
-
$ rvm list # available rvm versions
|
60
|
-
$ rvm info # ruby information for current shell
|
61
|
-
$ rvm install jruby # Install jRuby (default version is 1.3.1)
|
62
|
-
$ rvm use ruby -v 1.9.1 # Use Ruby 1.9.1, installs if necessary
|
63
|
-
$ rvm use 1.9 # Equivalent to above, due to defaults
|
64
|
-
$ rvm use 1.8 # Use Ruby 1.8.6, installs if necessary
|
65
|
-
$ rvm gemdir # Switch to gems directory for current ruby
|
66
|
-
$ rvm gemdir system # Switch to the system gems directory
|
67
|
-
$ rvm gemdir system user # Switch to the system user gems directory
|
68
|
-
$ rvm gemdir ruby 1.9 # Switch to gems directory for ruby 1.9.1
|
69
|
-
$ rvm use default # Use the system default (as if no rvm)
|
70
|
-
$ rvm reset # Reset to pre-rvm state.
|
71
|
-
$ rvm uninstall 1.8.7 # Uninstall rvm installed 1.8.7 version
|
72
|
-
$ rvm gemdup default # Install gems from ~/.gem/ruby/1.8/
|
73
|
-
|
74
|
-
TODO: (in order)
|
75
|
-
|
76
|
-
* rvm gemdup
|
77
|
-
* root support
|
78
|
-
* Settings file, user overridable
|
79
|
-
* Show current in rvm list, if applicable
|
80
|
-
|
81
|
-
Many Thanks:
|
82
|
-
|
83
|
-
Bash Support Testing
|
84
|
-
|
85
|
-
- Daniel Neighman (dneighman@gmail.com)
|
86
|
-
irc: hassox ; github: http://github.com/hassox
|
87
|
-
|
88
|
-
- John Mettraux (jmettraux@openwfe.org)
|
89
|
-
irc: jmettraux ; github: http://github.com/jmettraux
|
90
|
-
|
91
|
-
ZSH Support Testing
|
92
|
-
|
93
|
-
- Franco Lazzarino (flazzarino@gmail.com)
|
94
|
-
irc: flazz ; github: http://github.com/flazz
|
95
|
-
|
96
|
-
Ubuntu Linux Support Testing
|
97
|
-
|
98
|
-
- Anita Kuno (anteaya@anteaya.info)
|
99
|
-
irc: anteaya ; github: http://github.com/anteaya
|
100
|
-
|
101
|
-
Website Design
|
102
|
-
|
103
|
-
- Jim Lindley (jlindley@gmail.com)
|
104
|
-
irc: jlindley ; github: http://github.com/jlindley
|
3
|
+
http://rvm.beginrescueend.com/
|
105
4
|
|
data/bash/rvm
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
rvm_author="Wayne E. Seguin"
|
4
4
|
rvm_author_email="wayneeseguin@gmail.com"
|
5
|
-
rvm_website="http://
|
5
|
+
rvm_website="http://rvm.beginrescueend.com/"
|
6
6
|
rvm_version="0.0.19"
|
7
7
|
rvm_updated="2009.08.25"
|
8
8
|
|
@@ -226,6 +226,10 @@ function rvm-install-source {
|
|
226
226
|
|
227
227
|
function rvm-install-ruby {
|
228
228
|
|
229
|
+
local ruby_options
|
230
|
+
ruby_options=RUBYOPT
|
231
|
+
unset RUBYOPT
|
232
|
+
|
229
233
|
case "$implementation" in
|
230
234
|
|
231
235
|
ree)
|
@@ -324,6 +328,10 @@ function rvm-install-ruby {
|
|
324
328
|
|
325
329
|
esac
|
326
330
|
|
331
|
+
if [ ! -z $ruby_options ] ; then
|
332
|
+
RUBYOPT="$ruby_options" ; export RUBYOPT
|
333
|
+
fi
|
334
|
+
|
327
335
|
}
|
328
336
|
|
329
337
|
function rvm-uninstall {
|
@@ -482,6 +490,17 @@ function rvm-use {
|
|
482
490
|
|
483
491
|
}
|
484
492
|
|
493
|
+
function rvm-symlinks {
|
494
|
+
mkdir -p ${install_path}/bin
|
495
|
+
for release in `ls $install_path | grep 'ruby-'` ; do
|
496
|
+
for binary in ruby irb gem rdoc ri erb ; do
|
497
|
+
if [ -x $install_path/$release/bin/$binary ] ; then
|
498
|
+
ln -fs $install_path/$release/bin/$binary $install_path/bin/$binary-${release#ruby-}
|
499
|
+
fi
|
500
|
+
done
|
501
|
+
done
|
502
|
+
}
|
503
|
+
|
485
504
|
function rvm-list {
|
486
505
|
|
487
506
|
echo -e "\nruby:"
|
@@ -653,7 +672,7 @@ function rvm {
|
|
653
672
|
while [ $# -gt 0 ] ; do
|
654
673
|
token="$1" ; shift
|
655
674
|
case "$token" in
|
656
|
-
install|uninstall|use|path|info|setup|version|srcdir|list|reset|debug)
|
675
|
+
install|uninstall|use|path|info|setup|version|srcdir|list|symlinks|reset|debug)
|
657
676
|
action=$token
|
658
677
|
;;
|
659
678
|
|
@@ -798,6 +817,7 @@ function rvm {
|
|
798
817
|
srcdir) rvm-src-dir $implementation $version $patchlevel ;;
|
799
818
|
gemdup) rvm-gem-dup $implementation $version $patchlevel ;;
|
800
819
|
info) rvm-info $implementation $version $patchlevel ;;
|
820
|
+
symlinks) rvm-symlinks ;;
|
801
821
|
version) rvm-version ;;
|
802
822
|
reset) rvm-reset ;;
|
803
823
|
debug)
|
data/bash/rvm-install
CHANGED
@@ -103,8 +103,11 @@ if [ "$system" = "Linux" ] ; then
|
|
103
103
|
|
104
104
|
fi
|
105
105
|
|
106
|
+
source ~/.rvm/bin/rvm
|
107
|
+
rvm-symlinks
|
108
|
+
|
106
109
|
echo -e "\n$info If you add ~/.rvm/bin/ to your path you will be able to refer to installed ruby binaries using: <implementation>-<version>p<patchlevel>"
|
107
|
-
echo -e " For example:
|
110
|
+
echo -e " For example: ruby-1.9.1-p243 -e 'puts \"hello world\"' #=> hello world"
|
108
111
|
echo -e "$info Contact wayneeseguin on irc.freenod.net in #rvm for any questions / feedback."
|
109
112
|
echo -e " I truly hope that you find rvm helpful! Thank you very much for using rvm. \n"
|
110
113
|
echo -e " ~ Wayne"
|
data/bash/rvm-update
CHANGED
data/rvm.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
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-08-
|
12
|
+
s.date = %q{2009-08-26}
|
13
13
|
s.description = %q{Manages Ruby interpreter installations and switching between them.}
|
14
14
|
s.email = %q{wayneeseguin@gmail.com}
|
15
15
|
s.executables = ["rvm-install", "rvm-update"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wayneeseguin-rvm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.19
|
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-26 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -33,6 +33,7 @@ files:
|
|
33
33
|
- rvm.gemspec
|
34
34
|
has_rdoc: false
|
35
35
|
homepage: http://github.com/wayneeseguin/rvm
|
36
|
+
licenses:
|
36
37
|
post_install_message:
|
37
38
|
rdoc_options:
|
38
39
|
- --inline-source
|
@@ -54,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
54
55
|
requirements: []
|
55
56
|
|
56
57
|
rubyforge_project: dynamicreports
|
57
|
-
rubygems_version: 1.
|
58
|
+
rubygems_version: 1.3.5
|
58
59
|
signing_key:
|
59
60
|
specification_version: 3
|
60
61
|
summary: Ruby Version Manager (rvm)
|