红联Linux门户
Linux帮助

rbenv 1.0发布,Ruby版本管理工具

发布时间:2015-12-26 09:21:09来源:红联作者:baihuo
rbenv 是个健壮的工具,遵循 UNIX 标准来实现 Ruby 每个项目版本和相关运行时环境的管理。

rbenv 1.0 相比 0.4.0 版本,改进内容如下:

速度

Speed up rbenv with dynamically loaded realpath C extension

Speed up rbenv rehash when there are many Ruby versions with similar sets of executables

Improve performance of rbenv-which for "system" version

Avoid rbenv-exec calling out to rbenv-version-name twice

新特性

New plugin hooks version-name and version-origin enable plugin authors to hook into version selection logic.

rbenv versions --skip-aliases --bare will only list versions that are not aliases (symlinks) for other versions.

rbenv version-file finds a .ruby-version file in the target directory or any of its parent directories.

rbenv init now recognizes and supports fish shell syntax.

rbenv --debug is a shortcut for enabling RBENV_DEBUG.

Shell 集成

Fix rbenv() shell function in ksh and dash

Ubuntu fix: use source instead of .

Reliably detect user's current shell in rbenv init

Improve detection of completion support for commands

Fix detecting completions support on OpenBSD

Check if completion script is readable

Suppress shell warnings when hashing is disabled by set +h

rbenv() shell function preserves multiline output of sh-* commands

常规改进

rbenv local now respects .ruby-version file in parent directories as well

rbenv versions now emits a warning when no Ruby versions were found

Consistently support rbenv --help as alternative to rbenv help

Improve parsing of git revision in rbenv --version when rbenv was installed from git

Export PS4 when RBENV_DEBUG is set for more informative debug output

Bug 修复

Fix incorrect formatting of rbenv-help output under MAWK (Ubuntu)

Prefer gawk over awk if both are available

Fix resolving symlinks in rbenv-hooks

Fix iterating through paths that have spaces in them

Fix rbenv rehash when paths have spaces in them

More useful error message when rehash fails on a non-writable directory

Make rbenv-exec fail for invalid Ruby version

Bail out early if readlink is not available

Properly resolve symlinks when listing hook scripts

Better error message for rbenv prefix system

Fix reading .ruby-version on platforms that don't support process substitution

Remove carriage return characters in .ruby-version files

Fixes rbenv on OpenBSD and other systems that don't support head -c

Guard against exported CDPATH

Ensure that IFS is reset to its original value within hook scripts

下载:https://github.com/rbenv/rbenv/archive/v1.0.0.zip

rbenv让你通过简单的方式在Ruby多个版本及实现之间进行切换。

来自:开源中国社区
文章评论

共有 0 条评论