Open
Description
Description
Currently, extension gems are installed into a common directory regardless of the Ruby version in use. This can cause conflicts or compatibility issues when multiple Ruby versions are installed on the same machine.
The proposal is to install gems into separate directories for each Ruby version and platform. This can be done by extracting the Ruby version number and platform information from the output of ruby --version
. For example, from:
ruby 3.4.4 (2025-05-14 revision a38531fd3f) +PRISM [arm64-darwin24]
extract 3.4.4-arm64-darwin24
and use this as the directory name for that Ruby version’s gems.
This approach will isolate gems per Ruby version and platform, preventing conflicts and improving stability when multiple Ruby versions are used on the same system.