From 448fe055defedd8c71a12d1dd2fb81295a29556c Mon Sep 17 00:00:00 2001 From: ccmywish Date: Wed, 7 Dec 2022 21:05:50 +0800 Subject: [PATCH 1/2] Add installation method: rbenv for Windows --- en/documentation/installation/index.md | 11 +++++++++++ zh_cn/documentation/installation/index.md | 7 +++++++ 2 files changed, 18 insertions(+) diff --git a/en/documentation/installation/index.md b/en/documentation/installation/index.md index 6026503886..eddab39740 100644 --- a/en/documentation/installation/index.md +++ b/en/documentation/installation/index.md @@ -336,6 +336,16 @@ plugin can. Both tools are available for macOS, Linux, or other UNIX-like operating systems. +### rbenv for Windows +{: #rbenv-for-windows} + +[rbenv for Windows][rbenv-for-windows] allows you to install and +manage multiple installations of Ruby on Windows. It's written in +PowerShell thus providing a native way to use Ruby for Windows users. +Besides, the command line interface is compatible with [rbenv][rbenv] +on UNIX-like systems. + + ### RVM ("Ruby Version Manager") {: #rvm} @@ -375,6 +385,7 @@ though, because the installed Ruby won't be managed by any tools. [rvm]: http://rvm.io/ [rbenv]: https://github.com/rbenv/rbenv#readme +[rbenv-for-windows]: https://github.com/ccmywish/rbenv-for-windows#readme [ruby-build]: https://github.com/rbenv/ruby-build#readme [ruby-install]: https://github.com/postmodern/ruby-install#readme [chruby]: https://github.com/postmodern/chruby#readme diff --git a/zh_cn/documentation/installation/index.md b/zh_cn/documentation/installation/index.md index b9f60b203d..2b9ea57375 100644 --- a/zh_cn/documentation/installation/index.md +++ b/zh_cn/documentation/installation/index.md @@ -178,6 +178,12 @@ $ pkg install runtime/ruby [rbenv][rbenv] 用于管理系统中安装的多个 Ruby 版本。它不能直接安装 Ruby,但有个流行的插件叫 [ruby-build](#ruby-build) 能够安装 Ruby。这两个工具都支持 macOS、Linux 和其它类 UNIX 操作系统。 +### rbenv for Windows +{: #rbenv-for-windows} + +[rbenv for Windows][rbenv-for-windows] 用于在Windows上下载安装并管理系统中的多个 Ruby 版本。它使用PowerShell编写,由此为Windows用户提供了一个使用Ruby的原生方法。除此之外,它的命令行接口与类 UNIX 系统上的 [rbenv][rbenv] 兼容。 + + ### RVM(“Ruby Version Manager”) {: #rvm} @@ -208,6 +214,7 @@ $ sudo make install [rvm]: http://rvm.io/ [rbenv]: https://github.com/rbenv/rbenv#readme +[rbenv-for-windows]: https://github.com/ccmywish/rbenv-for-windows#readme [ruby-build]: https://github.com/rbenv/ruby-build#readme [ruby-install]: https://github.com/postmodern/ruby-install#readme [chruby]: https://github.com/postmodern/chruby#readme From e69f532894fc70065c06d6611b1f246f37e9d51a Mon Sep 17 00:00:00 2001 From: ccmywish Date: Thu, 8 Dec 2022 11:09:03 +0800 Subject: [PATCH 2/2] Remove the trailing-spaces in doc/installation of 'rbenv for Windows' --- en/documentation/installation/index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/en/documentation/installation/index.md b/en/documentation/installation/index.md index eddab39740..0170db5621 100644 --- a/en/documentation/installation/index.md +++ b/en/documentation/installation/index.md @@ -339,10 +339,10 @@ UNIX-like operating systems. ### rbenv for Windows {: #rbenv-for-windows} -[rbenv for Windows][rbenv-for-windows] allows you to install and -manage multiple installations of Ruby on Windows. It's written in -PowerShell thus providing a native way to use Ruby for Windows users. -Besides, the command line interface is compatible with [rbenv][rbenv] +[rbenv for Windows][rbenv-for-windows] allows you to install and +manage multiple installations of Ruby on Windows. It's written in +PowerShell thus providing a native way to use Ruby for Windows users. +Besides, the command line interface is compatible with [rbenv][rbenv] on UNIX-like systems.