You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: en/news/_posts/2018-11-08-snap.md
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -13,25 +13,27 @@ https://snapcraft.io/ruby
13
13
14
14
snap is the package system developed by Canonical. You can distribute the package with necessary libraries by using snap. It solved the problem that users can not use any versions of Ruby interpreter when using Linux distribution package system like rpm or apt.
15
15
16
-
For Ubuntu 16.04 or later distribution, you can use Ruby snap with the following command.
16
+
On Ubuntu 16.04 or later, you can use Ruby snap with the following command:
17
17
18
18
sudo snap install ruby -classic
19
19
20
-
When you use the Linux distributions other than Ubuntu, Please refer to https://docs.snapcraft.io/installing-snapd/6735.
20
+
(If you use other Linux distributions, please refer to https://docs.snapcraft.io/installing-snapd/6735)
21
21
22
-
Ruby snap uses the feature called channelto distribute the currently maintained version. For example, if you do not specify a channel at 2018/11, It will be installed 2.5.3. but if you want to use Ruby 2.4, specify it as follows.
22
+
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:
Multiple Ruby versions can be used with the snap feature. For example, to switch to Ruby 2.3, execute the following command.
26
+
You can also use multiple channels. The following commands switch to Ruby 2.3:
27
27
28
28
sudo snap switch ruby --channel=2.3/stable
29
29
sudo snap refresh
30
30
31
-
The Ruby snap has set `$HOME/.gem` to `GEM_HOME` and `GEM_PATH`environmental variables. Therefore, if you want to execute commands such as rails and rspec without using `bundle exec`, you need to set the following lines to` .bashrc` and so on.
31
+
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):
32
32
33
33
eval `ruby.env`
34
34
35
35
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` command.
36
36
37
-
This ruby snap released the official version for the first time with the snapcraft summit held at the canonical office in London on 6-8 Nov, 2018. The feedback are accepted at [https://github.com/ruby/snap.ruby](http://github.com/ruby/snap.ruby). Please enjoy.
37
+
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.
0 commit comments