1
1
---
2
2
layout : news_post
3
- title : The official ruby snap is available
3
+ title : The official Ruby snap is available
4
4
author : Hiroshi SHIBATA
5
5
translator :
6
6
date : 2018-11-08 14:58:28 +0000
7
7
lang : en
8
8
---
9
9
10
- We released the official snap package of Ruby language.
10
+ We released the official snap package of the Ruby language.
11
11
12
12
< https://snapcraft.io/ruby >
13
13
14
14
Snap is a package system developed by Canonical. It allows you to distribute
15
15
a software with its dependencies for many different Linux systems.
16
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.
17
+ from the default repository of their system like in ` rpm ` or ` apt ` .
18
18
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:
20
21
21
22
```
22
23
sudo snap install ruby --classic
23
24
```
24
25
25
26
(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 > . )
27
28
28
29
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 :
32
33
33
34
```
34
35
sudo snap install ruby --classic --channel=2.4/stable
@@ -41,10 +42,11 @@ sudo snap switch ruby --channel=2.3/stable
41
42
sudo snap refresh
42
43
```
43
44
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 ` ):
48
50
49
51
```
50
52
eval `ruby.env`
@@ -54,8 +56,8 @@ Since `$HOME/.gem` is shared by multiple versions, if you switch versions
54
56
and use them, you will need to recompile C extensions using the
55
57
` gem pristine --extensions ` command.
56
58
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 > .
60
62
61
63
Enjoy!
0 commit comments