Complete XDG-aware RubyGems lookup and executable PATH setup across shells - #30
Merged
Merged
Conversation
13 tasks
Co-authored-by: szmyty <14865041+szmyty@users.noreply.github.com>
Co-authored-by: szmyty <14865041+szmyty@users.noreply.github.com>
Co-authored-by: szmyty <14865041+szmyty@users.noreply.github.com>
Co-authored-by: szmyty <14865041+szmyty@users.noreply.github.com>
Co-authored-by: szmyty <14865041+szmyty@users.noreply.github.com>
Co-authored-by: szmyty <14865041+szmyty@users.noreply.github.com>
Co-authored-by: szmyty <14865041+szmyty@users.noreply.github.com>
Co-authored-by: szmyty <14865041+szmyty@users.noreply.github.com>
Co-authored-by: szmyty <14865041+szmyty@users.noreply.github.com>
Co-authored-by: szmyty <14865041+szmyty@users.noreply.github.com>
Co-authored-by: szmyty <14865041+szmyty@users.noreply.github.com>
Co-authored-by: szmyty <14865041+szmyty@users.noreply.github.com>
Co-authored-by: szmyty <14865041+szmyty@users.noreply.github.com>
Co-authored-by: szmyty <14865041+szmyty@users.noreply.github.com>
Co-authored-by: szmyty <14865041+szmyty@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Complete XDG-aware Ruby gem configuration and executable PATH support
Complete XDG-aware RubyGems lookup and executable PATH setup across shells
Sep 12, 2026
szmyty
marked this pull request as ready for review
September 12, 2026 10:33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mantle already set XDG-oriented RubyGems storage, but not the corresponding lookup and executable discovery contract. This change makes Ruby gem installs predictable across shell initialization by aligning
GEM_HOME,GEM_PATH,GEM_SPEC_CACHE, and${GEM_HOME}/binbehavior in Bash/Zsh/Fish without clobbering explicit user overrides.RubyGems environment contract
GEM_HOMEto"$XDG_DATA_HOME/gem"when unset.GEM_SPEC_CACHEunder"$XDG_CACHE_HOME/gem/specs".GEM_PATHfrom the activegem env pathrather than forcingGEM_PATH="$GEM_HOME", so system/default gem paths remain visible.GEM_PATH.Executable discovery
${GEM_HOME}/bininto Mantle’s deterministic PATH construction for Bash/Zsh and Fish.Override and safety behavior
GEM_HOME,GEM_PATH, andGEM_SPEC_CACHE.GEM_HOMEis relative; in that case Mantle does not deriveGEM_PATHor project a gem bin path.Cross-shell alignment
Documentation and hermetic coverage
asdf,rbenv,mise, and Bundler.GEM_HOME, and live RubyGems path derivation when a real runtime is present.