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 work around bug in git 1.8.2.1 in tests 2013-06-07 19:13:54 +02:00
commands.bats fix iterating through paths that have spaces in them 2013-04-01 01:04:19 +02:00
completions.bats Fix detecting completions support on OpenBSD 2014-01-02 22:33:54 +01:00
exec.bats Revert "rbenv exec: avoid mutating PATH" 2013-11-03 12:18:28 +02:00
global.bats tests galore 2013-03-07 15:07:32 -05:00
help.bats add tests for help and rbenv --version 2013-04-08 23:16:35 +02:00
hooks.bats undo assert_output_lines in tests 2013-04-08 23:16:35 +02:00
init.bats Fix test for adding shims in fish 2015-04-19 23:53:19 +02:00
local.bats add tests for version commands 2013-04-08 23:16:35 +02:00
prefix.bats Fix emulating the scenario where system Ruby is missing on OpenBSD 2014-01-02 22:30:21 +01:00
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 reliably detect parent shell in rbenv init 2013-10-07 03:24:45 +02:00
shims.bats tests galore 2013-03-07 15:07:32 -05:00
test_helper.bash Fail hard if RBENV_NATIVE_EXT is set but extensions failed to load 2014-10-13 04:12:35 +02:00
version-file-read.bats Move carriage return test to version-file-read 2014-03-21 01:32:29 +01:00
version-file-write.bats add tests for version commands 2013-04-08 23:16:35 +02:00
version-file.bats add tests for version commands 2013-04-08 23:16:35 +02:00
version-name.bats create hook: version-name 2015-12-23 17:22:30 +01:00
version-origin.bats add tests for version commands 2013-04-08 23:16:35 +02:00
version.bats Move carriage return test to version-file-read 2014-03-21 01:32:29 +01:00
versions.bats Add tests for non-directory types under RBENV_ROOT/versions/ 2014-10-13 04:02:46 +02:00
whence.bats undo assert_output_lines in tests 2013-04-08 23:16:35 +02:00
which.bats Isolate rbenv-which tests from any .ruby-version file on the system 2014-10-13 12:39:47 +02:00