pyenv/test
Mislav Marohnić 959968c46d
Support GEM_HOME, add limited support for user-installed gems (#1436)
The rehash process will now discover executables in additional locations:
- `~/.gem/ruby/<version>/bin/*`
- `$GEM_HOME/bin`

The `rbenv which` (and thus `rbenv exec`) command will also search these locations when looking up a command. This enables shims to dispatch calls to executables added by `gem install --user-install`.

Note that this support is limited:
- It will only work with C Ruby, as it's difficult to guess the `~/.gem/<engine>/<version>` directory for other Rubies without actually loading Ruby;
- It will only work for RBENV_VERSION values in the format `X.Y.Z` and not "system".
2022-09-26 02:57:15 +02:00
..
libexec Add tests for rbenv PATH and RBENV_HOOK_PATH handling 2014-10-19 14:35:36 +02:00
--version.bats Improve git --version git revision lookup 2015-12-24 03:52:33 +01:00
commands.bats
completions.bats add --help to subcommand completions 2015-11-19 12:05:19 -05:00
exec.bats Supply head -n flag explicitly 2021-05-05 22:42:56 +02:00
global.bats Remove support for legacy global version files 2015-12-28 22:05:00 -05:00
help.bats add tests for help and rbenv --version 2013-04-08 23:16:35 +02:00
hooks.bats Simplify resolving symlinks, remove native extension (#1428) 2022-09-22 11:34:02 +02:00
init.bats Init script automatically adds rbenv to PATH if necessary (#1432) 2022-09-24 23:59:13 +02:00
local.bats Remove support for legacy version file 2015-12-28 21:34:07 -05:00
prefix.bats rbenv-prefix: do not silence rbenv-which for system version 2018-08-07 01:44:13 +02:00
rbenv.bats Extract common create_hook helper 2016-01-04 09:14:04 -05:00
rehash.bats Support GEM_HOME, add limited support for user-installed gems (#1436) 2022-09-26 02:57:15 +02:00
run Simplify resolving symlinks, remove native extension (#1428) 2022-09-22 11:34:02 +02:00
shell.bats Make work in set -u (nounset) mode 2020-05-24 09:08:05 +03:00
shims.bats
test_helper.bash Simplify resolving symlinks, remove native extension (#1428) 2022-09-22 11:34:02 +02:00
version-file-read.bats Disallow path segments and directory traversal in .ruby-version files 2019-04-03 12:58:25 +02:00
version-file-write.bats add tests for version commands 2013-04-08 23:16:35 +02:00
version-file.bats Fix https://github.com/rbenv/rbenv/issues/1065 2018-02-26 16:49:37 +08:00
version-name.bats Spelling fix 2020-04-23 07:59:28 +03:00
version-origin.bats Fix (revert) test/version-origin.bats 2020-01-16 23:24:42 +08:00
version.bats Fix tests for #1203 2020-01-08 16:41:14 +08:00
versions.bats 💅 Clean up version sorting and add test 2021-09-29 20:07:47 +02:00
whence.bats undo assert_output_lines in tests 2013-04-08 23:16:35 +02:00
which.bats Support GEM_HOME, add limited support for user-installed gems (#1436) 2022-09-26 02:57:15 +02:00