fdietz-ruby-config 0.4.0 → 0.5.0
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/README.md +89 -13
- metadata +1 -1
data/README.md
CHANGED
@@ -1,14 +1,86 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
* Website: [http://fdietz.wordpress.com/ruby-config](http://fdietz.wordpress.com/ruby-config)
|
4
|
-
* Github: [http://github.com/fdietz/ruby-config](http://github.com/fdietz/ruby-config)
|
5
|
-
* Author: fdietz@gmail.com
|
6
|
-
|
7
|
-
## Description
|
1
|
+
# Ruby-Config
|
8
2
|
|
9
3
|
Ruby-Config lets you install and switch between various Ruby Runtimes
|
10
4
|
|
11
|
-
|
5
|
+
Currently, it supports the following Ruby Runtimes:
|
6
|
+
|
7
|
+
* Ruby 1.9.1-p243
|
8
|
+
* Ruby 1.8.6-p383
|
9
|
+
* Ruby 1.8.7-p174
|
10
|
+
* Ruby Enterprise Edition 1.8.6-20090421
|
11
|
+
* JRuby 1.3.1
|
12
|
+
|
13
|
+
Ruby-Config is written in Ruby and designed to be unobtrusive to your system configuration.
|
14
|
+
It sets up all runtimes and a dedicated gem home for each runtime in the user's
|
15
|
+
home directory.
|
16
|
+
|
17
|
+
## Getting Started
|
18
|
+
|
19
|
+
Install the gem:
|
20
|
+
|
21
|
+
sudo gem install fdietz-ruby-config
|
22
|
+
|
23
|
+
Ensure that your bash profile script is configured correctly:
|
24
|
+
|
25
|
+
#bash: ruby-config --setup
|
26
|
+
|
27
|
+
Note, that the setup routine will show the changes it will make beforehand and will prompt you
|
28
|
+
before actually applying the changes. You can manually apply the changes if you decide.
|
29
|
+
|
30
|
+
List all available runtimes:
|
31
|
+
|
32
|
+
#bash: ruby-config -a
|
33
|
+
|
34
|
+
|
35
|
+
List all currently installed runtimes:
|
36
|
+
|
37
|
+
#bash: ruby-config -l
|
38
|
+
|
39
|
+
Installed Ruby Versions:
|
40
|
+
1) Default Leopard Ruby 1.8.6 [ruby-leopard-1.8.6]
|
41
|
+
2) Ruby Enterprise Edition 1.8.6-20090421 [ruby-enterprise-1.8.6]
|
42
|
+
3) JRuby 1.3.1 [jruby-1.3.1]
|
43
|
+
4) Ruby 1.9.1-p243 [ruby-1.9.1-p243]
|
44
|
+
5) * Ruby 1.8.6-p383 [ruby-1.8.6-p383]
|
45
|
+
6) Ruby 1.8.7-p174 [ruby-1.8.7-p174]
|
46
|
+
|
47
|
+
The wildcard for the 5. item indicates that this is the currently used runtime.
|
48
|
+
|
49
|
+
Install new Runtime by handle name:
|
50
|
+
|
51
|
+
#bash: ruby-config -i jruby-1.3.1
|
52
|
+
|
53
|
+
Alternatively, you can use the index of the available runtimes listing:
|
54
|
+
|
55
|
+
#bash: ruby-config -i 3
|
56
|
+
|
57
|
+
Switch to an already installed runtime:
|
58
|
+
|
59
|
+
#bash: ruby-config -u jruby-1.3.1
|
60
|
+
|
61
|
+
Alternatively, you can use the index again.. Now check the ruby-version:
|
62
|
+
|
63
|
+
#bash: ruby -v
|
64
|
+
jruby 1.3.1 (ruby 1.8.6p287) (2009-06-15 2fd6c3d) (Java HotSpot(TM) Client VM 1.5.0_19) [i386-java]
|
65
|
+
|
66
|
+
#bash: which ruby
|
67
|
+
/Users/frd/.ruby-config/ruby/bin/ruby
|
68
|
+
|
69
|
+
And the gem environment:
|
70
|
+
|
71
|
+
# bash: gem env
|
72
|
+
RubyGems Environment:
|
73
|
+
- RUBYGEMS VERSION: 1.3.3
|
74
|
+
- RUBY VERSION: 1.8.6 (2009-06-15 patchlevel 287) [java]
|
75
|
+
- INSTALLATION DIRECTORY: /Users/frd/.ruby-config/gem
|
76
|
+
- RUBY EXECUTABLE: /Users/frd/.ruby-config/ruby/bin/jruby
|
77
|
+
- EXECUTABLE DIRECTORY: /Users/frd/.ruby-config/gem/bin
|
78
|
+
- RUBYGEMS PLATFORMS:
|
79
|
+
- ruby
|
80
|
+
- universal-java-1.5
|
81
|
+
- GEM PATHS:
|
82
|
+
- /Users/frd/.ruby-config/gem
|
83
|
+
|
12
84
|
## Prerequisites
|
13
85
|
|
14
86
|
### Mac OS X:
|
@@ -21,7 +93,8 @@ Use apt-get to install the essential packages:
|
|
21
93
|
|
22
94
|
### JRuby:
|
23
95
|
|
24
|
-
You need a
|
96
|
+
You need a complete Java installation.
|
97
|
+
|
25
98
|
#### OS X:
|
26
99
|
OS X comes with an already installed Java version.
|
27
100
|
|
@@ -30,13 +103,16 @@ Use apt-get to install the essential packages:
|
|
30
103
|
|
31
104
|
sudo apt-get install sun-java6-jre sun-java6-jdk
|
32
105
|
|
33
|
-
## Installation
|
34
|
-
|
35
|
-
sudo gem install ruby-config
|
36
106
|
|
37
107
|
## Kudos
|
38
108
|
|
39
|
-
Thanks to
|
109
|
+
Thanks to Relevance for their work on [Ruby Switcher](http://github.com/relevance/etc/blob/3d607c8ac2f76077f27c3cbc0140b04a89f546be/bash/ruby_switcher.sh) which I used as the basis for the installation of various Ruby Runtimes.
|
110
|
+
|
111
|
+
## Contact
|
112
|
+
* Author: Frederik Dietz <fdietz@gmail.com>
|
113
|
+
* Website: [http://fdietz.net](http://fdietz.net)
|
114
|
+
* Github: [http://github.com/fdietz/ruby-config](http://github.com/fdietz/ruby-config)
|
115
|
+
|
40
116
|
|
41
117
|
## License
|
42
118
|
|