pyenv/test
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
..
libexec Add tests for rbenv PATH and RBENV_HOOK_PATH handling 2014-10-19 14:35:36 +02:00
--version.bats
commands.bats
completions.bats
exec.bats
global.bats
help.bats
hooks.bats
init.bats Fix test for adding shims in fish 2015-04-19 23:53:19 +02:00
local.bats
prefix.bats
rbenv.bats Add rbenv's own rbenv.d directory to hook paths 2014-10-19 14:35:36 +02:00
rehash.bats Simplify the shims registration implementation in rbenv-rehash 2014-10-15 05:46:18 +02:00
run Create configure script to generate a cross-platform Makefile 2014-10-13 04:12:35 +02:00
shell.bats
shims.bats
test_helper.bash
version-file-read.bats
version-file-write.bats
version-file.bats
version-name.bats create hook: version-name 2015-12-23 17:22:30 +01:00
version-origin.bats
version.bats
versions.bats
whence.bats
which.bats Isolate rbenv-which tests from any .ruby-version file on the system 2014-10-13 12:39:47 +02:00