8000 Updated the Configuration and Examples to match Rubies (@mpapis). · devandroid/chruby@2ebbfdc · GitHub
[go: up one dir, main page]

Skip to content

Commit 2ebbfdc

Browse files
committed
Updated the Configuration and Examples to match Rubies (@mpapis).
1 parent a971fe7 commit 2ebbfdc

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

README.md

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Add the following lines to your `~/.bashrc` or `~/.profile` file:
8989

9090
. /usr/local/share/chruby/chruby.sh
9191

92-
RUBIES=(~/src/{ruby,jruby,rubinius}*)
92+
RUBIES=(/usr/local/{ruby,jruby,rubinius}*)
9393

9494
### System Wide
9595

@@ -98,10 +98,9 @@ Add the following to `/etc/profile.d/chruby.sh` or `/etc/profile`:
9898
. /usr/local/share/chruby/chruby.sh
9999

100100
RUBIES=(
101-
/usr/local/ruby-1.8.7-p370
102-
/usr/local/ruby-1.9.3-p194
103-
/usr/local/jruby-1.6.7.2
104-
/usr/local/rubinius
101+
/usr/local/ruby-1.9.3-p237
102+
/usr/local/jruby-1.7.0
103+
/usr/local/rubinius-2.0.0-rc1
105104
)
106105

107106
### Migrating
@@ -123,31 +122,29 @@ If you wish to set a default Ruby, simply call `chruby` in `~/.bashrc`:
123122
List available Rubies:
124123

125124
$ chruby
126-
ruby-1.8.7-p370
127-
ruby-1.9.3-p194
128-
jruby-1.6.7.2
129-
rubinius
125+
ruby-1.9.3-p237
126+
jruby-1.7.0
127+
rubinius-2.0.0-rc1
130128

131129
Select a Ruby:
132130

133-
$ chruby 1.8
131+
$ chruby 1.9.3
134132
$ chruby
135-
* ruby-1.8.7-p370
136-
ruby-1.9.3-p194
137-
jruby-1.6.7.2
138-
rubinius
133+
* ruby-1.9.3-p237
134+
jruby-1.7.0
135+
rubinius-2.0.0-rc1
139136
$ echo $PATH
140-
/home/hal/.gem/ruby/1.8.7/bin:/usr/local/ruby-1.8.7-p370/lib/ruby/gems/1.8/bin:/usr/local/ruby-1.8.7-p370/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/hal/bin
137+
/home/hal/.gem/ruby/1.9.3/bin:/usr/local/ruby-1.9.3-p327/lib/ruby/gems/1.9.1/bin:/usr/local/ruby-1.9.3-p327/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/hal/bin:/home/hal/bin
141138
$ echo $GEM_HOME
142-
/home/hal/.gem/ruby/1.8.7
139+
/home/hal/.gem/ruby/1.9.3
143140
$ echo $GEM_PATH
144-
/home/hal/.gem/ruby/1.8.7:/usr/local/ruby-1.8.7-p370/lib/ruby/gems/1.8
141+
/home/hal/.gem/ruby/1.9.3:/usr/local/ruby-1.9.3-p327/lib/ruby/gems/1.9.1
145142

146143
Switch to JRuby in 1.9 mode:
147144

148145
$ chruby jruby --1.9
149146
$ ruby -v
150-
jruby 1.6.7.2 (ruby-1.9.2-p312) (2012-05-01 26e08ba) (OpenJDK 64-Bit Server VM 1.6.0_24) [linux-amd64-java]
147+
jruby 1.7.0 (1.9.3p203) 2012-10-22 ff1ebbe on OpenJDK 64-Bit Server VM 1.7.0_09-icedtea-mockbuild_2012_10_17_15_53-b00 [linux-amd64]
151148

152149
Switch back to system Ruby:
153150

0 commit comments

Comments
 (0)
0