Skip to content

Commit eabc382

Browse files
committed
Rewrap snap post (en)
1 parent 805b0a0 commit eabc382

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

en/news/_posts/2018-11-08-snap.md

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,24 @@ We released the official snap package of Ruby language.
1111

1212
<https://snapcraft.io/ruby>
1313

14-
Snap is a package system developed by Canonical. It allows you to distribute a software with its dependencies for many different Linux systems. This solves the problem that a user cannot install the latest Ruby release from the default repository of their system like in rpm or apt.
14+
Snap is a package system developed by Canonical. It allows you to distribute
15+
a software with its dependencies for many different Linux systems.
16+
This solves the problem that a user cannot install the latest Ruby release
17+
from the default repository of their system like in rpm or apt.
1518

1619
On Ubuntu 16.04 or later, you can use Ruby snap with the following command:
1720

1821
```
1922
sudo snap install ruby --classic
2023
```
2124

22-
(If you use other Linux distributions, please refer to <https://docs.snapcraft.io/installing-snapd/6735>)
25+
(If you use other Linux distributions, please refer to
26+
<https://docs.snapcraft.io/installing-snapd/6735>)
2327

24-
Our snap uses the "channel" feature to release multiple Ruby series concurrently. For example, without specifying a channel, 2.5.3 will be installed. But if you want to use Ruby 2.4, specify the 2.4 channel like the following:
28+
Our snap uses the "channel" feature to release multiple Ruby series
29+
concurrently. For example, without specifying a channel, 2.5.3 will be
30+
installed. But if you want to use Ruby 2.4, specify the 2.4 channel
31+
like the following:
2532

2633
```
2734
sudo snap install ruby --classic --channel=2.4/stable
@@ -34,14 +41,21 @@ sudo snap switch ruby --channel=2.3/stable
3441
sudo snap refresh
3542
```
3643

37-
Our snap set `$HOME/.gem` to `GEM_HOME` and `GEM_PATH` environment variable. So if you want to execute commands installed by rubygems such as rails and rspec without using bundle exec, you have to add the following line to your shell rc files (like .bashrc):
44+
Our snap set `$HOME/.gem` to `GEM_HOME` and `GEM_PATH` environment variable.
45+
So if you want to execute commands installed by rubygems such as rails and
46+
rspec without using bundle exec, you have to add the following line to your
47+
shell rc files (like .bashrc):
3848

3949
```
4050
eval `ruby.env`
4151
```
4252

43-
Since `$HOME/.gem` is shared by multiple versions, if you switch versions and use them, you will need to recompile C extensions using the `gem pristine --extensions` command.
53+
Since `$HOME/.gem` is shared by multiple versions, if you switch versions
54+
and use them, you will need to recompile C extensions using the
55+
`gem pristine --extensions` command.
4456

45-
The initial version of official Ruby snap has released during Snapcraft summit held at Canonical office in London on Nov 6-8th, 2018. Any feedbacks are welcomed at <https://github.com/ruby/snap.ruby>.
57+
The initial version of official Ruby snap has released during
58+
Snapcraft summit held at Canonical office in London on Nov 6-8th, 2018.
59+
Any feedbacks are welcomed at <https://github.com/ruby/snap.ruby>.
4660

4761
Enjoy!

0 commit comments

Comments
 (0)