Jared Beck Jared Beck - 19 days ago 4
Ruby Question

How to disable post-install messages from rubygems?

I'm tired of seeing silly messages like this, after installing gems:

Post-install message from httparty:
When you HTTParty, you must party hard!


In a quick scan of the RubyGems Guides I found no option to disable post-install messages. I'm hoping to be able to configure this in my
~/.gemrc
.

Answer

To ignore all post-install messages, in all projects:

bundle config --global ignore_messages true

Documentation:

ignore_messages (BUNDLE_IGNORE_MESSAGES): When set, no post install messages will be printed. To silence a single gem, use dot notation like ignore_messages.httparty true. https://bundler.io/v1.13/man/bundle-config.1.html