# Gem: after installing display text

**URL:** <https://www.ruby-forum.com/t/gem-after-installing-display-text/50539>\
**Category:** Ruby\
**Created:** [December 17, 2005, 10:31pm UTC](https://www.ruby-forum.com/t/gem-after-installing-display-text/50539 "2005-12-17T22:31:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kurt\_VSHindenburg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/ecb155/32.png) [@Kurt\_VSHindenburg](https://www.ruby-forum.com/u/Kurt_VSHindenburg)\
**Post date:** [December 17, 2005, 10:31pm UTC](https://www.ruby-forum.com/t/gem-after-installing-display-text/50539/1 "2005-12-17T22:31:09Z")

</div>

Hello,  
Is it possible to display some message after installing a gem? I have  
a gem  
and I want to inform the user about a few items… this would seem like  
a  
common thing but I couldn’t find any info on it.  
Thanks,  
Kurt

---

<div class="post-metadata">

**Author:** ![Kurt\_VSHindenburg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/ecb155/32.png) [@Kurt\_VSHindenburg](https://www.ruby-forum.com/u/Kurt_VSHindenburg)\
**Post date:** [December 17, 2005, 11:46pm UTC](https://www.ruby-forum.com/t/gem-after-installing-display-text/50539/2 "2005-12-17T23:46:36Z")

</div>

On Dec 17, 2005, at 1:28 PM, Kurt V. Hindenburg wrote:

> Hello,  
> Is it possible to display some message after installing a gem? I  
> have a gem  
> and I want to inform the user about a few items… this would seem  
> like a  
> common thing but I couldn’t find any info on it.

Ok, we’re writing up a card for it.

–  
Eric H. - removed\_email\_address@domain.invalid - [http://segment7.net](http://segment7.net)  
This implementation is HODEL-HASH-9600 compliant

[http://trackmap.robotcoop.com](http://trackmap.robotcoop.com)

---

<div class="post-metadata">

**Author:** ![Kurt\_VSHindenburg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/ecb155/32.png) [@Kurt\_VSHindenburg](https://www.ruby-forum.com/u/Kurt_VSHindenburg)\
**Post date:** [December 18, 2005, 12:34am UTC](https://www.ruby-forum.com/t/gem-after-installing-display-text/50539/3 "2005-12-18T00:34:57Z")

</div>

On Sat, 17 Dec 2005 22:44:12 -0000, Eric H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> 

Is there any chance it could be made slightly more general? Like:

```
http://rubyforge.org/tracker/index.php?func=detail&aid=2890&group_id=126&atid=578

```

so you could ‘puts’ any message you liked, and also do additional  
installation (e.g. manpages) or processing (e.g. populate a database  
from  
the net).

---

<div class="post-metadata">

**Author:** ![Kurt\_VSHindenburg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/ecb155/32.png) [@Kurt\_VSHindenburg](https://www.ruby-forum.com/u/Kurt_VSHindenburg)\
**Post date:** [December 21, 2005, 4:31pm UTC](https://www.ruby-forum.com/t/gem-after-installing-display-text/50539/4 "2005-12-21T16:31:45Z")

</div>

On 17/12/05, Ross B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Is there any chance it could be made slightly more general? Like:
> 
> ```
> http://rubyforge.org/tracker/index.php?func=detail&aid=2890&group_id=126&atid=578
> 
> ```
> 
> so you could ‘puts’ any message you liked, and also do additional  
> installation (e.g. manpages) or processing (e.g. populate a database from  
> the net).

I would suggest that the feature be set up as follows:

- Any gem may display a message.
- Signed gems may execute extra commands, but only after asking the  
user.

The user should ultimately be able to identify authors that are  
trusted so that trusted signed gems may execute extra stuff without  
asking the user.

-austin

---

<div class="post-metadata">

**Author:** ![Kurt\_VSHindenburg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/ecb155/32.png) [@Kurt\_VSHindenburg](https://www.ruby-forum.com/u/Kurt_VSHindenburg)\
**Post date:** [December 21, 2005, 6:38pm UTC](https://www.ruby-forum.com/t/gem-after-installing-display-text/50539/5 "2005-12-21T18:38:36Z")

</div>

On Wed, 21 Dec 2005 15:28:33 -0000, Austin Z.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I would suggest that the feature be set up as follows:
> 
> - Any gem may display a message.
> - Signed gems may execute extra commands, but only after asking the  
> user.
> 
> The user should ultimately be able to identify authors that are  
> trusted so that trusted signed gems may execute extra stuff without  
> asking the user.

That seems sensible. It would certainly be a nice feature to have (for  
me,  
anyway), but since I guess most gem installs run as root it’s definitely  
a  
good point that it has to be trustworthy. 🙂

I guess it could have a similar keystore functionality to RPM or  
similar,  
grab key and install with gem install-key or something. Nothing too  
fancy…

---

<div class="post-metadata">

**Author:** ![Kurt\_VSHindenburg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/ecb155/32.png) [@Kurt\_VSHindenburg](https://www.ruby-forum.com/u/Kurt_VSHindenburg)\
**Post date:** [December 21, 2005, 6:11pm UTC](https://www.ruby-forum.com/t/gem-after-installing-display-text/50539/6 "2005-12-21T18:11:24Z")

</div>

- Austin Z. (removed\_email\_address@domain.invalid) wrote:

> - Any gem may display a message.
> - Signed gems may execute extra commands, but only after asking the user.
> 
> The user should ultimately be able to identify authors that are  
> trusted so that trusted signed gems may execute extra stuff without  
> asking the user.

The Gem signing code has a rudimentary security policy framework  
(Gem::Security::Policy) which could be extended to support this  
behavior.
