pyenv/libexec
Jason Karns 258e4413b1 create hook: version-name
Expose a `version-name` hook.

It is invoked *after* the traditional `RBENV_VERSION` lookup. Which means hook scripts can interrogate `$RBENV_VERSION_FILE` and/or `$RBENV_VERSION` (or use the executables).

The hooks are then run, giving plugins a chance to alter `RBENV_VERSION`. Once the hooks have run, we now have (in `$RBENV_VERSION`) the actual version we want to use (or it's empty which defaults to `system` per normal). Lastly, the same logic remains for checking if the version exists, or trimming the `ruby-` prefix.

Prime example: the ruby-bundler-ruby-version plugin can select a ruby by using the `ruby` directive from the `Gemfile` if a local `.ruby-version` doesn't exist.
2015-12-23 17:22:30 +01:00
..
rbenv Add rbenv's own rbenv.d directory to hook paths 2014-10-19 14:35:36 +02:00
rbenv---version tests galore 2013-03-07 15:07:32 -05:00
rbenv-commands fix iterating through paths that have spaces in them 2013-04-01 01:04:19 +02:00
rbenv-completions Fix detecting completions support on OpenBSD 2014-01-02 22:33:54 +01:00
rbenv-exec Speed up obtaining exec/which/whence completions 2014-10-15 01:24:45 +02:00
rbenv-global Improve syntax for inline documentation and allow for multi-line usage 2012-12-29 12:06:20 -06:00
rbenv-help Prefer gawk over awk if both are available. 2014-04-18 10:40:56 +10:00
rbenv-hooks Fail hard if RBENV_NATIVE_EXT is set but extensions failed to load 2014-10-13 04:12:35 +02:00
rbenv-init Merge pull request #528 from sstephenson/dylib 2014-10-15 18:19:54 +02:00
rbenv-local add tests for version commands 2013-04-08 23:16:35 +02:00
rbenv-prefix better error message for rbenv prefix system 2013-10-03 21:42:52 +02:00
rbenv-rehash Simplify the shims registration implementation in rbenv-rehash 2014-10-15 05:46:18 +02:00
rbenv-root Documentation tweaks 2012-12-29 22:05:04 -06:00
rbenv-sh-rehash Avoid invoking hash -r in fish 2013-10-31 20:18:14 +02:00
rbenv-sh-shell reliably detect parent shell in rbenv init 2013-10-07 03:24:45 +02:00
rbenv-shims tests galore 2013-03-07 15:07:32 -05:00
rbenv-version Documentation tweaks 2012-12-29 22:05:04 -06:00
rbenv-version-file Prefer .ruby-version to .rbenv-version for reading local versions 2012-12-30 18:35:20 -06:00
rbenv-version-file-read Add \r to IFS instead of removing it manually 2014-03-21 01:36:39 +01:00
rbenv-version-file-write Documentation tweaks 2012-12-29 22:05:04 -06:00
rbenv-version-name create hook: version-name 2015-12-23 17:22:30 +01:00
rbenv-version-origin Documentation tweaks 2012-12-29 22:05:04 -06:00
rbenv-versions Have versions emit a warning when no Ruby version was found 2014-10-13 04:02:04 +02:00
rbenv-whence Speed up obtaining exec/which/whence completions 2014-10-15 01:24:45 +02:00
rbenv-which Speed up obtaining exec/which/whence completions 2014-10-15 01:24:45 +02:00