Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法配置 gem 的 gemspec 以在有人使用下载并安装 gem 后立即打印重要的信息消息gem install?
gem install
是的,post_install_message在 gemspec ( docs ) 中使用。
post_install_message
您可以在其 gemspec中看到HTTParty是如何做到的。