Skip to content

Commit af2733e

Browse files
committed
Various improvements in snap post (en)
1 parent eabc382 commit af2733e

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

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

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,35 @@
11
---
22
layout: news_post
3-
title: The official ruby snap is available
3+
title: The official Ruby snap is available
44
author: Hiroshi SHIBATA
55
translator:
66
date: 2018-11-08 14:58:28 +0000
77
lang: en
88
---
99

10-
We released the official snap package of Ruby language.
10+
We released the official snap package of the Ruby language.
1111

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

1414
Snap is a package system developed by Canonical. It allows you to distribute
1515
a software with its dependencies for many different Linux systems.
1616
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.
17+
from the default repository of their system like in `rpm` or `apt`.
1818

19-
On Ubuntu 16.04 or later, you can use Ruby snap with the following command:
19+
On Ubuntu 16.04 or later, you can install the Ruby snap with the
20+
following command:
2021

2122
```
2223
sudo snap install ruby --classic
2324
```
2425

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

2829
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:
30+
concurrently. For example, without specifying a channel, currently
31+
Ruby 2.5.3 will be installed. But if you want to use Ruby 2.4,
32+
specify the 2.4 channel as follows:
3233

3334
```
3435
sudo snap install ruby --classic --channel=2.4/stable
@@ -41,10 +42,11 @@ sudo snap switch ruby --channel=2.3/stable
4142
sudo snap refresh
4243
```
4344

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):
45+
Our snap sets the `GEM_HOME` and `GEM_PATH` environment variables
46+
to `$HOME/.gem`.
47+
So if you want to execute commands installed by gems, such as `rails` and
48+
`rspec`, without using `bundle exec`, you have to add the following line
49+
to your shell rc files (like `.bashrc`):
4850

4951
```
5052
eval `ruby.env`
@@ -54,8 +56,8 @@ Since `$HOME/.gem` is shared by multiple versions, if you switch versions
5456
and use them, you will need to recompile C extensions using the
5557
`gem pristine --extensions` command.
5658

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>.
59+
The initial version of the official Ruby snap has been released during
60+
the Snapcraft summit held at the Canonical office in London on Nov 6-8th, 2018.
61+
Any feedback is welcome at <https://github.com/ruby/snap.ruby>.
6062

6163
Enjoy!

0 commit comments

Comments
 (0)