How to disable post-install messages from rubygems?

后端 未结 4 2342
轮回少年
轮回少年 2021-02-20 10:16

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

Post-install message from httparty:
When you HTTPa         


        
4条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-20 10:40

    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

提交回复
热议问题