Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add special __DEFAULT__ gemset to include all default gems #33

Closed
wants to merge 3 commits into from

Conversation

tomykaira
Copy link

"Global" gemset is not used when no gemset is active.
A rbenv user usually installs gems into the default directory, not "global" gemset.
This option make it easy to reuse these gems in the default directory.

Current implementation get gempath by

RBENV_GEMSETS=" " gem env gempath

but it is ugly. Please modify if there is a better way

Example:

# .rbenv-gemsets
my-gemset
__DEFAULT__

"Global" gemset is not used when no gemset is active.
A rbenv user usually installs gems into the default directory, not "global" gemset.
This option make it easy to reuse these gems in the default directory.

Current implementation get gempath by

    RBENV_GEMSETS=" " gem env gempath

but it is ugly.  Please modify if there is a better way
@joefiorini
Copy link
Collaborator

I'll take a look at this soon, thanks for submitting!

@nagas
Copy link

nagas commented Apr 23, 2013

I would love to have it!

@jf
Copy link
Owner

jf commented Jul 20, 2013

hey @tomykaira, interesting idea!

RBENV_GEMSETS=" " gem env gemdir

would be better, though. This will result in only one directory - that of the real "default" directory where gems will be installed!

@tomykaira
Copy link
Author

@jf Thank you for advice.

I intend to access all gems which is available in the default (without gemset) environment.
gemdir gives only one directory, and gempath gives one or more, but all of gempath directories are looked up in the default.
Therefore I think gempath is better.

Let me know if I misunderstand something.

@jf
Copy link
Owner

jf commented Jul 21, 2013

Yes, but really, practically, would anything really get installed with rbenv into your ~/.gem ? That is what I'm getting at. The gempath might include some subdirectory in ~/.gem - but for all practical intents and purposes, if you don't specify a gemset, your gems will really only get installed into gemdir ...

@jf jf mentioned this pull request Nov 27, 2013
@jf
Copy link
Owner

jf commented Nov 27, 2013

hey @tomykaira , I hope the latest version works for you. I'm not going to add in what is in my opinion unnecessary gem paths at this point in time. Really only ONE of the gem paths is used (and that's the gemdir!); and that's the one I've included. I am officially closing this now.

@jf jf closed this Nov 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants