rvm 0.0.18 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/README +2 -102
  2. data/bash/rvm +38 -3
  3. data/bash/rvm-install +4 -1
  4. data/bash/rvm-update +2 -0
  5. data/rvm.gemspec +2 -2
  6. metadata +2 -2
data/README CHANGED
@@ -1,104 +1,4 @@
1
+ For detailed information on rvm, please see:
1
2
 
2
- About:
3
-
4
- rvm 0.0.17 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
- * To manually reset to defaults: "rm -f ~/.rvm/current", then open new shell
56
- * To preserve previous gem installations for a particular ruby version copy,
57
- move, symlink or copy the old gem directory to (1.8 for 1.8.X):
58
- ~/.gem/$interpreter/$version
59
-
60
- Examples:
61
-
62
- $ rvm install jruby # Install jRuby (default version is 1.3.1)
63
- $ rvm use ruby -v 1.9.1 # Use Ruby 1.9.1, installs if necessary
64
- $ rvm use 1.9 # Equivalent to above, due to defaults
65
- $ rvm use 1.8 # Use Ruby 1.8.6, installs if necessary
66
- $ rvm use default # Use the system default (as if no rvm)
67
- $ rvm gemdup ~/.gem/ruby/1.8/ # Install gems from ~/.gem/ruby/1.8/
68
- $ rvm gemdir # Switch to gems directory for current ruby
69
- $ rvm gemdir system # Switch to the system gems directory
70
- $ rvm gemdir system user # Switch to the system user gems directory
71
- $ rvm gemdir ruby 1.9 # Switch to gems directory for ruby 1.9.1
72
-
73
- TODO: (in order)
74
-
75
- * rvm gemdup
76
- * root support
77
- * Settings file, user overridable
78
- * Show current in rvm list, if applicable
79
-
80
- Many Thanks:
81
-
82
- Bash Support Testing
83
-
84
- - Daniel Neighman (dneighman@gmail.com)
85
- irc: hassox ; github: http://github.com/hassox
86
-
87
- - John Mettraux (jmettraux@openwfe.org)
88
- irc: jmettraux ; github: http://github.com/jmettraux
89
-
90
- ZSH Support Testing
91
-
92
- - Franco Lazzarino (flazzarino@gmail.com)
93
- irc: flazz ; github: http://github.com/flazz
94
-
95
- Ubuntu Linux Support Testing
96
-
97
- - Anita Kuno (anteaya@anteaya.info)
98
- irc: anteaya ; github: http://github.com/anteaya
99
-
100
- Website Design
101
-
102
- - Jim Lindley (jlindley@gmail.com)
103
- irc: jlindley ; github: http://github.com/jlindley
3
+ http://rvm.beginrescueend.com/
104
4
 
data/bash/rvm CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  rvm_author="Wayne E. Seguin"
4
4
  rvm_author_email="wayneeseguin@gmail.com"
5
- rvm_website="http://github.com/wayneeseguin/rvm"
6
- rvm_version="0.0.18"
5
+ rvm_website="http://rvm.beginrescueend.com/"
6
+ rvm_version="0.0.19"
7
7
  rvm_updated="2009.08.25"
8
8
 
9
9
  #
@@ -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 {
@@ -393,6 +401,7 @@ function rvm-use {
393
401
  default)
394
402
  rm -f $install_path/current
395
403
  source $install_path/default
404
+ unset GEM_HOME MY_RUBY_HOME
396
405
  PATH="$default_path" ; export PATH
397
406
  ;;
398
407
 
@@ -481,6 +490,17 @@ function rvm-use {
481
490
 
482
491
  }
483
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
+
484
504
  function rvm-list {
485
505
 
486
506
  echo -e "\nruby:"
@@ -652,7 +672,7 @@ function rvm {
652
672
  while [ $# -gt 0 ] ; do
653
673
  token="$1" ; shift
654
674
  case "$token" in
655
- install|uninstall|use|path|info|setup|version|srcdir|list|reset|debug|gemdup)
675
+ install|uninstall|use|path|info|setup|version|srcdir|list|symlinks|reset|debug)
656
676
  action=$token
657
677
  ;;
658
678
 
@@ -673,6 +693,20 @@ function rvm {
673
693
  implementation="${implementation-current}"
674
694
  ;;
675
695
 
696
+ gemdup)
697
+ action=$token
698
+ if [ -z "$1" ] ; then
699
+ implementaiton="default"
700
+ elif [ "$1" = "system" ] ; then
701
+ implementation=$1 ; shift
702
+ elif [ "$1" = "default" ] ; then
703
+ implementation=$1 ; shift
704
+ else
705
+ implementation=$1 ; shift
706
+ version=$2 ; shift
707
+ fi
708
+ ;;
709
+
676
710
  1.8|1.8.6|1.8.7|1.9|1.9.1|1.9.2|1.2.0|1.3.1)
677
711
  version="$token"
678
712
  action="${action-use}"
@@ -783,6 +817,7 @@ function rvm {
783
817
  srcdir) rvm-src-dir $implementation $version $patchlevel ;;
784
818
  gemdup) rvm-gem-dup $implementation $version $patchlevel ;;
785
819
  info) rvm-info $implementation $version $patchlevel ;;
820
+ symlinks) rvm-symlinks ;;
786
821
  version) rvm-version ;;
787
822
  reset) rvm-reset ;;
788
823
  debug)
@@ -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: ~/.ruby-1.9.1p243 -e 'puts \"hello world\"' #=> hello world"
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"
@@ -17,3 +17,5 @@ echo -e " ~ Wayne"
17
17
 
18
18
  source ~/.rvm/bin/rvm
19
19
 
20
+ rvm-symlinks
21
+
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rvm}
8
- s.version = "0.0.18"
8
+ s.version = "0.0.19"
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-25}
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: rvm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
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-25 00:00:00 -04:00
12
+ date: 2009-08-26 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15