Skip to content
New issue

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

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

Already on GitHub? # to your account

Exclude rvm global gems #36

Closed
diasjorge opened this issue Nov 21, 2012 · 3 comments
Closed

Exclude rvm global gems #36

diasjorge opened this issue Nov 21, 2012 · 3 comments

Comments

@diasjorge
Copy link

It would be great to have an option so it would exclude all the gems I have in rvm global gemset, instead of specifying every binary by hand

@mpapis
Copy link
Member

mpapis commented Nov 21, 2012

great idea, trying something new today: https://www.bountysource.com/#repos/mpapis/rubygems-bundler/issues/36

@mpapis
Copy link
Member

mpapis commented Jul 13, 2013

I was giving this some thought and in the end this is dangerous feature as it would exclude rake in default RVM setups, maybe instead of automatically ignoring this gems a helper to display them would be enough? something like:

$ rgb-show-global-gems --separator=,
bundler,rake,rvm,gist

@mpapis
Copy link
Member

mpapis commented Aug 4, 2013

I will close this as it would be rather dangerous feature, you can get the list of global gems for ignoring with:

rvm @global do gem list --no-versions

I have opened a pull request for rubygems to also support --quiet flag so you could write simple script:

rvm @global do gem list --quiet --no-versions | awk 'NR>1{printf","} {printf $1} END{printf"\n"}'

open a ticket for rvm if you would like to have simple command for it like rvm global-gems

@mpapis mpapis closed this as completed Aug 4, 2013
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants