Skip to content

Install extension gems into separate directories for each Ruby version #107

@vitallium

Description

@vitallium

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.

Resources

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions