How to disable messages after installation from rubygems?

I'm tired of seeing stupid messages like this after setting gems:

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

In a quick check of the RubyGems Guides manual, I did not find a way to disable messages after installation. I hope I can configure this in my ~/.gemrc .

+8
ruby rubygems bundler
source share
4 answers

To ignore all messages after installation, in all projects:

 bundle config --global ignore_messages true 

Documentation:

ignore_messages (BUNDLE_IGNORE_MESSAGES): if set, subsequent installation messages will not be printed. To disable a single stone, use dot notation, for example ignore_messages.httparty true. https://bundler.io/v1.13/man/bundle-config.1.html

+2
source share

I would not recommend disabling them. The provided HTTParty is not useful, but the reason they are there is to tell you something important about updates, etc.

If it were me, I would split the httparty gem, delete the message and send a pull request, indicating that it does not help and increases the signal-to-noise ratio.

0
source share

If you use bundler, they added an option for this, just

bundle config ignore_messages.httparty true

0
source share

All Articles