From d85565f9dbefd7a1deba907792e32e69ea8a1ddf Mon Sep 17 00:00:00 2001 From: Sangyong Sim Date: Tue, 1 Jan 2019 21:41:56 +0900 Subject: [PATCH 1/3] Import Original diff --- ko/documentation/installation/index.md | 19 ++++++++ ko/news/_posts/2018-11-08-snap.md | 63 ++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 ko/news/_posts/2018-11-08-snap.md diff --git a/ko/documentation/installation/index.md b/ko/documentation/installation/index.md index b398634e3c..fde830939b 100644 --- a/ko/documentation/installation/index.md +++ b/ko/documentation/installation/index.md @@ -35,6 +35,7 @@ ruby -v * [패키지 관리 시스템](#package-management-systems) * [Debian, Ubuntu](#apt) * [CentOS, Fedora, RHEL](#yum) + * [Snap](#snap) * [Gentoo](#portage) * [Arch Linux](#pacman) * [macOS](#homebrew) @@ -94,6 +95,24 @@ $ sudo yum install ruby 설치된 버전은 보통 그 특정 배포 버전 릴리스 시기의 최신 버전의 루비입니다. +### snap (Ubuntu or other linux distribution) +{: #snap} + +Snap is a package manager developed by Canonical. It's available out-of-the-box on Ubuntu, but snap also works on many Linux distributions. +You can use it like this. + +{% highlight sh %} +$ sudo snap install ruby --classic +{% endhighlight %} + +We have several channels per Ruby minor series. For instance, the following commands switch to Ruby 2.3: + +{% highlight sh %} +$ sudo snap switch ruby --channel=2.3/stable +$ sudo snap refresh +{% endhighlight %} + + ### portage (Gentoo) {: #portage} diff --git a/ko/news/_posts/2018-11-08-snap.md b/ko/news/_posts/2018-11-08-snap.md new file mode 100644 index 0000000000..9dd8b48fbb --- /dev/null +++ b/ko/news/_posts/2018-11-08-snap.md @@ -0,0 +1,63 @@ +--- +layout: news_post +title: The official Ruby snap is available +author: Hiroshi SHIBATA +translator: +date: 2018-11-08 14:58:28 +0000 +lang: en +--- + +We released the official snap package of the Ruby language. + + + +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`. + +On Ubuntu 16.04 or later, you can install the Ruby snap with the +following command: + +``` +sudo snap install ruby --classic +``` + +(If you use other Linux distributions, please refer to +.) + +Our snap uses the "channel" feature to release multiple Ruby series +concurrently. For example, without specifying a channel, currently +Ruby 2.5.3 will be installed. But if you want to use Ruby 2.4, +specify the 2.4 channel as follows: + +``` +sudo snap install ruby --classic --channel=2.4/stable +``` + +You can also use multiple channels. The following commands switch to Ruby 2.3: + +``` +sudo snap switch ruby --channel=2.3/stable +sudo snap refresh +``` + +Our snap sets the `GEM_HOME` and `GEM_PATH` environment variables +to `$HOME/.gem`. +So if you want to execute commands installed by gems, such as `rails` and +`rspec`, without using `bundle exec`, you have to add the following line +to your shell rc files (like `.bashrc`): + +``` +eval `ruby.env` +``` + +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. + +The initial version of the official Ruby snap has been released during +the Snapcraft summit held at the Canonical office in London on Nov 6-8th, 2018. +Any feedback is welcome at . + +Enjoy! From bfb9042fbcb78a01ea0c9a7d280228671ecd6099 Mon Sep 17 00:00:00 2001 From: Sangyong Sim Date: Tue, 1 Jan 2019 22:22:42 +0900 Subject: [PATCH 2/3] Translate snap article (ko) --- ko/documentation/installation/index.md | 8 ++-- ko/news/_posts/2018-11-08-snap.md | 56 +++++++++++++------------- 2 files changed, 31 insertions(+), 33 deletions(-) diff --git a/ko/documentation/installation/index.md b/ko/documentation/installation/index.md index fde830939b..3519c70be3 100644 --- a/ko/documentation/installation/index.md +++ b/ko/documentation/installation/index.md @@ -95,17 +95,17 @@ $ sudo yum install ruby 설치된 버전은 보통 그 특정 배포 버전 릴리스 시기의 최신 버전의 루비입니다. -### snap (Ubuntu or other linux distribution) +### snap (Ubuntu나 다른 리눅스 배포판) {: #snap} -Snap is a package manager developed by Canonical. It's available out-of-the-box on Ubuntu, but snap also works on many Linux distributions. -You can use it like this. +Snap은 Canonical에 의해 개발된 패키지 매니저입니다. 이는 Ubuntu에서 바로 사용가능합니다만, 다른 리눅스 배포판에서도 동작합니다. +다음과 같이 사용할 수 있습니다. {% highlight sh %} $ sudo snap install ruby --classic {% endhighlight %} -We have several channels per Ruby minor series. For instance, the following commands switch to Ruby 2.3: +루비의 마이너 시리즈를 위한 채널을 제공합니다. 예를 들어, 다음 명령은 루비 2.3으로 변경할 수 있게 해줍니다. {% highlight sh %} $ sudo snap switch ruby --channel=2.3/stable diff --git a/ko/news/_posts/2018-11-08-snap.md b/ko/news/_posts/2018-11-08-snap.md index 9dd8b48fbb..644d1f6bf4 100644 --- a/ko/news/_posts/2018-11-08-snap.md +++ b/ko/news/_posts/2018-11-08-snap.md @@ -1,63 +1,61 @@ --- layout: news_post -title: The official Ruby snap is available +title: 공식 루비 snap이 사용 가능합니다. author: Hiroshi SHIBATA -translator: +translator: "shia" date: 2018-11-08 14:58:28 +0000 -lang: en +lang: ko --- -We released the official snap package of the Ruby language. +루비의 공식 snap 패키지를 릴리스 했습니다. -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`. +Snap 은 Canonical이 개발한 패키지 시스템입니다. 이를 통해 여러 다른 리눅스 +시스템을 위한 의존성과 함께 소프트웨어를 배포할 수 있습니다. +이는 `rpm`이나 `apt`와 같은 각자의 기본 저장소에서 최신 루비 릴리스를 설치할 +수 없는 문제를 해결합니다. -On Ubuntu 16.04 or later, you can install the Ruby snap with the -following command: +Ubuntu 16.04나 그 이후의 버전을 사용하고 있다면 다음 명령을 통해서 루비 snap을 +설치할 수 있습니다. ``` sudo snap install ruby --classic ``` -(If you use other Linux distributions, please refer to -.) +(만약 다른 리눅스 배포판을 이용하고 있다면, +를 참고하세요.) -Our snap uses the "channel" feature to release multiple Ruby series -concurrently. For example, without specifying a channel, currently -Ruby 2.5.3 will be installed. But if you want to use Ruby 2.4, -specify the 2.4 channel as follows: +이 snap은 여러 루비 시리즈를 동시에 릴리스하기 위해서 '채널' 기능을 사용합니다. +예를 들어, 채널을 지정하지 않는다면 루비 2.5.3이 설치될 것입니다. 그러나 +루비 2.4를 사용하고 있다면 다음과 같이 2.4 채널을 지정해주세요. ``` sudo snap install ruby --classic --channel=2.4/stable ``` -You can also use multiple channels. The following commands switch to Ruby 2.3: +여러 채널을 동시에 사용할 수도 있습니다. 다음 명령을 통해 루비 2.3으로 전환할 수 있습니다. ``` sudo snap switch ruby --channel=2.3/stable sudo snap refresh ``` -Our snap sets the `GEM_HOME` and `GEM_PATH` environment variables -to `$HOME/.gem`. -So if you want to execute commands installed by gems, such as `rails` and -`rspec`, without using `bundle exec`, you have to add the following line -to your shell rc files (like `.bashrc`): +루비 snap은 `GEM_HOME`과 `GEM_PATH` 환경 변수를 `$HOME/.gem`으로 +지정합니다. +그러므로 만약 `rails`나 `rspec`과 같은 설치 젬의 명령을 `bundle exec` 없이 +실행하고 싶다면 아래의 명령을 쉘 rc 파일(예를 들어 `.bashrc`)에 추가해야 +합니다. ``` eval `ruby.env` ``` -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. +`$HOME/.gem`은 여러 버전에서 공유되므로, 만약 버전을 변경하고 이를 사용한다면, +`gem pristine --extensions` 명령을 이용해서 C 확장을 다시 컴파일해야 합니다. -The initial version of the official Ruby snap has been released during -the Snapcraft summit held at the Canonical office in London on Nov 6-8th, 2018. -Any feedback is welcome at . +공식 루비 snap의 첫 버전은 2018년 11월 6일부터 8일까지 런던의 +Canonical 오피스에서 개최된 Snapcraft 서밋에서 릴리스 되었습니다. +문제나 개선점이 있는 경우 로 피드백을 보내주세요. -Enjoy! +즐겨보세요! From e1e2bcd27ce875bc0a067806f2acb7c5f8a07eb8 Mon Sep 17 00:00:00 2001 From: Chayoung You Date: Tue, 1 Jan 2019 22:41:52 +0900 Subject: [PATCH 3/3] Apply suggestions from code review Co-Authored-By: riseshia --- ko/documentation/installation/index.md | 2 +- ko/news/_posts/2018-11-08-snap.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ko/documentation/installation/index.md b/ko/documentation/installation/index.md index 3519c70be3..631f329575 100644 --- a/ko/documentation/installation/index.md +++ b/ko/documentation/installation/index.md @@ -98,7 +98,7 @@ $ sudo yum install ruby ### snap (Ubuntu나 다른 리눅스 배포판) {: #snap} -Snap은 Canonical에 의해 개발된 패키지 매니저입니다. 이는 Ubuntu에서 바로 사용가능합니다만, 다른 리눅스 배포판에서도 동작합니다. +Snap은 Canonical에 의해 개발된 패키지 매니저입니다. 이는 Ubuntu에서 바로 사용 가능합니다만, 다른 리눅스 배포판에서도 동작합니다. 다음과 같이 사용할 수 있습니다. {% highlight sh %} diff --git a/ko/news/_posts/2018-11-08-snap.md b/ko/news/_posts/2018-11-08-snap.md index 644d1f6bf4..fce15461a1 100644 --- a/ko/news/_posts/2018-11-08-snap.md +++ b/ko/news/_posts/2018-11-08-snap.md @@ -43,8 +43,8 @@ sudo snap refresh 루비 snap은 `GEM_HOME`과 `GEM_PATH` 환경 변수를 `$HOME/.gem`으로 지정합니다. -그러므로 만약 `rails`나 `rspec`과 같은 설치 젬의 명령을 `bundle exec` 없이 -실행하고 싶다면 아래의 명령을 쉘 rc 파일(예를 들어 `.bashrc`)에 추가해야 +그러므로 만약 젬에서 설치한 `rails`나 `rspec`과 같은 명령을 `bundle exec` 없이 +실행하고 싶다면 아래의 명령을 셸 rc 파일(예를 들어 `.bashrc`)에 추가해야 합니다. ```