Is there a way to print a message after a user installs a Ruby gem?

喜夏-厌秋 提交于 2019-12-07 02:49:30

问题


Is there a way to configure a gem's gemspec to print an important informational message right after someone downloads and installs the gem using gem install?


回答1:


Yes, use post_install_message in the gemspec (docs).

You can see how HTTParty does it in its gemspec.



来源:https://stackoverflow.com/questions/6543001/is-there-a-way-to-print-a-message-after-a-user-installs-a-ruby-gem

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!