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

1

8

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?

Wetmore answered 1/7, 2011 at 2:23 Comment(0)
C
12

Yes, use post_install_message in the gemspec (docs).

You can see how HTTParty does it in its gemspec.

Cruickshank answered 1/7, 2011 at 3:39 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.