Hacker News new | ask | show | jobs
by why-el 4879 days ago
This will run these options for every gem command though. Better restrict it to install and update.
2 comments

Like so:

    install: --no-rdoc --no-ri 
    update:  --no-rdoc --no-ri
Also add --env-shebang so that you don't get stupid shebang lines which lock you to a specific interpreter.
Is it a problem that this gets passed to every gem command?
Yes because it does not make sense to pass it to some commands. For instance, what would `gem list --no-rdoc --local` mean? You will get a lot of invalid option errors.