Ruby 版本管理工具,rbenv 1.0 發布
rbenv 是個健壯的工具,遵循 UNIX 標準來實現 Ruby 每個項目版本和相關運行時環境的管理。
rbenv 1.0 相比 0.4.0 版本,改進內容如下:
速度
-
Speed up rbenv with dynamically loaded
realpathC extension -
Speed up
rbenv rehashwhen there are many Ruby versions with similar sets of executables -
Improve performance of
rbenv-whichfor "system" version -
Avoid
rbenv-execcalling out torbenv-version-nametwice
新特性
-
New plugin hooks
version-nameandversion-originenable plugin authors to hook into version selection logic. -
rbenv versions --skip-aliases --barewill only list versions that are not aliases (symlinks) for other versions. -
rbenv version-file <dir>finds a.ruby-versionfile in the target directory or any of its parent directories. -
rbenv initnow recognizes and supports fish shell syntax.
-
rbenv --debug <command>is a shortcut for enabling RBENV_DEBUG.
Shell 集成
-
Fix
rbenv()shell function in ksh and dash -
Ubuntu fix: use
sourceinstead 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 ofsh-*commands
常規改進
-
rbenv localnow respects.ruby-versionfile in parent directories as well -
rbenv versionsnow emits a warning when no Ruby versions were found -
Consistently support
rbenv <command> --helpas alternative torbenv help <command> -
Improve parsing of git revision in
rbenv --versionwhen rbenv was installed from git -
Export PS4 when RBENV_DEBUG is set for more informative debug output
Bug 修復
-
Fix incorrect formatting of
rbenv-helpoutput under MAWK (Ubuntu) -
Prefer
gawkoverawkif both are available -
Fix resolving symlinks in
rbenv-hooks -
Fix iterating through paths that have spaces in them
-
Fix
rbenv rehashwhen paths have spaces in them -
More useful error message when rehash fails on a non-writable directory
-
Make
rbenv-execfail for invalid Ruby version -
Bail out early if
readlinkis not available -
Properly resolve symlinks when listing hook scripts
-
Better error message for
rbenv prefix system -
Fix reading
.ruby-versionon platforms that don't support process substitution -
Remove carriage return characters in
.ruby-versionfiles -
Fixes rbenv on OpenBSD and other systems that don't support
head -c -
Guard against exported
CDPATH -
Ensure that
IFSis reset to its original value within hook scripts
下載:https://github.com/rbenv/rbenv/archive/v1.0.0.zip
rbenv讓你通過簡單的方式在Ruby多個版本及實現之間進行切換。