Project

General

Profile

Actions

Feature #19972

open

Install default/bundled gems into dedicated directories

Added by vo.x (Vit Ondruch) about 1 year ago. Updated 12 months ago.

Status:
Assigned
Target version:
-
[ruby-core:115165]

Description

I think that the current situation, where the same directory (lets call it Gem.default_dir) is used for default/bundled gems as well as for user installed gems, is suboptimal. During the times, this has caused us quite some issue on Fedora. Historically, we redefined the Gem.default_dir to user home directory, to avoid the mixing of system gems and user installed gems. Unfortunately, with advent of default/bundled gems, we were facing issues that these gems were suddenly not listed, etc. I am realizing this issue in full once again since the "user install" RubyGems feature has landed 1. I also think that we have arrived to this situation by evolution, not by design.

Therefore my proposal is:

Keep the Gem.default_dir for user gem installed gems and lets install default and bundled gems into separate dedicated directories. Have separate Gem.bundled_gems_dir and Gem.default_gems_dir structures.

Of course, if Gem.default_dir == Gem.bundled_gems_dir == Gem.default_gems_dir, we still can have the current layout.

I have a simple POC here:

https://github.com/ruby/ruby/pull/8761

BTW I have reported it here, because I think that RubyGems provides all it is needed. So it is not RubyGems ticket after all. However, I believe that RubyGems could benefit from this long term and some simplifications/cleanups would be possible.


Related issues 2 (2 open0 closed)

Related to Ruby master - Feature #14737: Split default gems into separate directory structureAssignedhsbt (Hiroshi SHIBATA)Actions
Related to Ruby master - Feature #5617: Allow install RubyGems into dediceted directoryAssignedhsbt (Hiroshi SHIBATA)Actions
Actions

Also available in: Atom PDF

Like3
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0