Skip to content

Commit 07847ae

Browse files
committed
Added GitHub flavored markdown for syntax highlighting.
1 parent cf64cda commit 07847ae

File tree

1 file changed

+76
-28
lines changed

1 file changed

+76
-28
lines changed

README.md

Lines changed: 76 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -54,111 +54,157 @@ Installs [Ruby], [JRuby], [TruffleRuby] (native / GraalVM), or [mruby].
5454

5555
List supported Rubies and their current stable versions:
5656

57-
$ ruby-install
57+
```shell
58+
$ ruby-install
59+
```
5860

5961
Updates then list the supported Rubies and their current stable versions:
6062

61-
$ ruby-install --update
63+
```shell
64+
$ ruby-install --update
65+
```
6266

6367
Install the current stable version of Ruby:
6468

65-
$ ruby-install ruby
69+
```shell
70+
$ ruby-install ruby
71+
```
6672

6773
Install the latest version of Ruby:
6874

69-
$ ruby-install --update ruby
75+
```shell
76+
$ ruby-install --update ruby
77+
```
7078

7179
Install a stable version of Ruby:
7280

73-
$ ruby-install ruby 3.1
81+
```shell
82+
$ ruby-install ruby 3.1
83+
```
7484

7585
Install a specific version of Ruby:
7686

77-
$ ruby-install ruby 3.1.2
87+
```shell
88+
$ ruby-install ruby 3.1.2
89+
```
7890

7991
Install a Ruby into a specific directory:
8092

81-
$ ruby-install --install-dir /path/to/dir ruby
93+
```shell
94+
$ ruby-install --install-dir /path/to/dir ruby
95+
```
8296

8397
Install a Ruby into a specific `rubies` directory:
8498

85-
$ ruby-install --rubies-dir /path/to/rubies/ ruby
99+
```shell
100+
$ ruby-install --rubies-dir /path/to/rubies/ ruby
101+
```
86102

87103
Install a Ruby into `/usr/local`:
88104

89-
$ ruby-install --system ruby 3.1.2
105+
```shell
106+
$ ruby-install --system ruby 3.1.2
107+
```
90108

91109
Install a Ruby from an official site with directly download:
92110

93-
$ ruby-install -M https://ftp.ruby-lang.org/pub/ruby ruby 3.1.2
111+
```shell
112+
$ ruby-install -M https://ftp.ruby-lang.org/pub/ruby ruby 3.1.2
113+
```
94114

95115
Install a Ruby from a mirror:
96116

97-
$ ruby-install -M http://www.mirrorservice.org/sites/ftp.ruby-lang.org/pub/ruby ruby 3.1.2
117+
```shell
118+
$ ruby-install -M http://www.mirrorservice.org/sites/ftp.ruby-lang.org/pub/ruby ruby 3.1.2
119+
```
98120

99121
Install a Ruby with a specific patch:
100122

101-
$ ruby-install -p https://raw.github.com/gist/4136373/falcon-gc.diff ruby 1.9.3-p551
123+
```shell
124+
$ ruby-install -p https://raw.github.com/gist/4136373/falcon-gc.diff ruby 1.9.3-p551
125+
```
102126

103127
Install a Ruby with a specific C compiler:
104128

105-
$ ruby-install ruby 3.1.2 -- CC=clang
129+
```shell
130+
$ ruby-install ruby 3.1.2 -- CC=clang
131+
```
106132

107133
Install a Ruby with specific configuration:
108134

109-
$ ruby-install ruby 3.1.2 -- --enable-shared --enable-dtrace CFLAGS="-O3"
135+
```shell
136+
$ ruby-install ruby 3.1.2 -- --enable-shared --enable-dtrace CFLAGS="-O3"
137+
```
110138

111139
Install a Ruby without installing dependencies first:
112140

113-
$ ruby-install --no-install-deps ruby 3.1.2
141+
```shell
142+
$ ruby-install --no-install-deps ruby 3.1.2
143+
```
114144

115145
Uninstall a Ruby version:
116146

117-
$ rm -rf ~/.rubies/ruby-3.1.2
147+
```shell
148+
$ rm -rf ~/.rubies/ruby-3.1.2
149+
```
118150

119151
### Integration
120152

121153
Using ruby-install with [RVM]:
122154

123-
$ ruby-install --rubies-dir ~/.rvm/rubies ruby-3.2.0-preview3
155+
```shell
156+
$ ruby-install --rubies-dir ~/.rvm/rubies ruby-3.2.0-preview3
157+
```
124158

125159
Using ruby-install with [rbenv]:
126160

127-
$ ruby-install --install-dir ~/.rbenv/versions/3.2.0-preview3 ruby-3.2.0-preview3
161+
```shell
162+
$ ruby-install --install-dir ~/.rbenv/versions/3.2.0-preview3 ruby-3.2.0-preview3
163+
```
128164

129165
ruby-install can even be used with [Chef].
130166

131167
## Install
132168

133-
wget -O ruby-install-0.9.0.tar.gz https://github.com/postmodern/ruby-install/archive/v0.9.0.tar.gz
134-
tar -xzvf ruby-install-0.9.0.tar.gz
135-
cd ruby-install-0.9.0/
136-
sudo make install
169+
```shell
170+
wget -O ruby-install-0.9.0.tar.gz https://github.com/postmodern/ruby-install/archive/v0.9.0.tar.gz
171+
tar -xzvf ruby-install-0.9.0.tar.gz
172+
cd ruby-install-0.9.0/
173+
sudo make install
174+
```
137175

138176
### PGP
139177

140178
All releases are [PGP] signed for security. Instructions on how to import my
141179
PGP key can be found on my [blog][1]. To verify that a release was not tampered
142180
with:
143181

144-
wget https://raw.github.com/postmodern/ruby-install/master/pkg/ruby-install-0.9.0.tar.gz.asc
145-
gpg --verify ruby-install-0.9.0.tar.gz.asc ruby-install-0.9.0.tar.gz
182+
```shell
183+
wget https://raw.github.com/postmodern/ruby-install/master/pkg/ruby-install-0.9.0.tar.gz.asc
184+
gpg --verify ruby-install-0.9.0.tar.gz.asc ruby-install-0.9.0.tar.gz
185+
```
146186

147187
### Homebrew
148188

149189
ruby-install can also be installed with [homebrew]:
150190

151-
brew install ruby-install
191+
```shell
192+
brew install ruby-install
193+
```
152194

153195
Or the absolute latest ruby-install can be installed from source:
154196

155-
brew install ruby-install --HEAD
197+
```shell
198+
brew install ruby-install --HEAD
199+
```
156200

157201
### Arch Linux
158202

159203
ruby-install is already included in the [AUR]:
160204

161-
yaourt -S ruby-install
205+
```shell
206+
yaourt -S ruby-install
207+
```
162208

163209
### Fedora Linux
164210

@@ -168,7 +214,9 @@ ruby-install is available on [Fedora Copr](https://copr.fedorainfracloud.org/cop
168214

169215
ruby-install is included in the official [FreeBSD ports collection]:
170216

171-
cd /usr/ports/devel/ruby-install/ && make install clean
217+
```shell
218+
cd /usr/ports/devel/ruby-install/ && make install clean
219+
```
172220

173221
## Known Issues
174222

0 commit comments

Comments
 (0)