Y
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
scraplab
4878 days ago
Like so:
install: --no-rdoc --no-ri update: --no-rdoc --no-ri
link
regularfry
4878 days ago
Also add --env-shebang so that you don't get stupid shebang lines which lock you to a specific interpreter.
link
kawsper
4878 days ago
Is it a problem that this gets passed to every gem command?
link
why-el
4878 days ago
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.
link