Rbenv doesn't actually modify the GEM_HOME or GEM_PATH. It also doesn't add gem binary directories into the PATH. It follows a similar approach to ASDF by adding its shims directory into the PATH.
Implementation
We can rely on the env.PATH returned by the activation script directly, without setting anything manually. That should be enough to find the gem executables.
Motivation
Closes #1947
Rbenv doesn't actually modify the GEM_HOME or GEM_PATH. It also doesn't add gem binary directories into the PATH. It follows a similar approach to ASDF by adding its
shims
directory into the PATH.Implementation
We can rely on the
env.PATH
returned by the activation script directly, without setting anything manually. That should be enough to find the gem executables.Automated Tests
Adapted our tests.