# Typeout during RubyGems Install

**URL:** <https://www.ruby-forum.com/t/typeout-during-rubygems-install/57879>\
**Category:** Ruby\
**Created:** [April 15, 2006, 1:50pm UTC](https://www.ruby-forum.com/t/typeout-during-rubygems-install/57879 "2006-04-15T13:50:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bil\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/848f3c/32.png) [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Post date:** [April 15, 2006, 1:50pm UTC](https://www.ruby-forum.com/t/typeout-during-rubygems-install/57879/1 "2006-04-15T13:50:39Z")

</div>

[Note: I’m reposting this to the mailing list since I think  
the gateway was down when I posted through news:comp.lang.ruby]

Hello,

The NASA Open Source Agreement,

[NASA Open Source Agreement v1.3 – Open Source Initiative](http://opensource.org/licenses/nasa1.3.php)

that I’m being required to use, has a clause (3f) about at  
least making an attempt to have the user register.

Is there a way to at least get a typeout during gem install?

For example,

$ sudo gem install -r funit  
Attempting remote installation of ‘funit’  
Updating Gem source index for: [http://gems.rubyforge.org](http://gems.rubyforge.org)  
Successfully installed fUnit-0.0.2

> > Registration appreciated – see [http://funit.rubyforge.org](http://funit.rubyforge.org) \<\<  
> > Installing RDoc documentation for fUnit-0.0.2…

Thanks,

---

<div class="post-metadata">

**Author:** ![Bil\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/848f3c/32.png) [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Post date:** [April 16, 2006, 2:36am UTC](https://www.ruby-forum.com/t/typeout-during-rubygems-install/57879/2 "2006-04-16T02:36:33Z")

</div>

Bil K. wrote:

> Is there a way to at least get a typeout during gem install?

There is no hook in RubyGems to allow this. Sorry.

–  
– Jim W.

---

<div class="post-metadata">

**Author:** ![Bil\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/848f3c/32.png) [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Post date:** [April 16, 2006, 7:55am UTC](https://www.ruby-forum.com/t/typeout-during-rubygems-install/57879/3 "2006-04-16T07:55:09Z")

</div>

On Apr 15, 2006, at 7:48 AM, Bil K. wrote:

> $ sudo gem install -r funit  
> Attempting remote installation of ‘funit’  
> Updating Gem source index for: [http://gems.rubyforge.org](http://gems.rubyforge.org)  
> Successfully installed fUnit-0.0.2
> 
> > > Registration appreciated – see [http://funit.rubyforge.org](http://funit.rubyforge.org) \<\<  
> > > Installing RDoc documentation for fUnit-0.0.2…

I wonder if you could purposely introduce some kind of bug into your  
RDoc that would provoke it to produce an error message that contained  
some text with the link to the license. I can’t think of how to do it  
though.

---

<div class="post-metadata">

**Author:** ![Bil\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/848f3c/32.png) [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Post date:** [April 17, 2006, 1:54am UTC](https://www.ruby-forum.com/t/typeout-during-rubygems-install/57879/4 "2006-04-17T01:54:45Z")

</div>

On 4/15/06, Jim W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Bil K. wrote:
> 
> > Is there a way to at least get a typeout during gem install?  
> > There is no hook in RubyGems to allow this. Sorry.

I am really hoping that one can be provided for the next version of  
RubyGems. Bil’s needs aren’t the only needs.

-austin

---

<div class="post-metadata">

**Author:** ![Bil\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/848f3c/32.png) [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Post date:** [April 16, 2006, 10:24am UTC](https://www.ruby-forum.com/t/typeout-during-rubygems-install/57879/5 "2006-04-16T10:24:51Z")

</div>

On Sat, Apr 15, 2006 at 08:48:43PM +0900, Bil K. wrote:

> Hello,
> 
> The NASA Open Source Agreement,
> 
> [NASA Open Source Agreement v1.3 – Open Source Initiative](http://opensource.org/licenses/nasa1.3.php)
> 
> that I’m being required to use, has a clause (3f) about at  
> least making an attempt to have the user register.
> 
> Is there a way to at least get a typeout during gem install?

It is possible to abuse the support for building extensions in order  
to show a message (or do anything else for the matter), by placing  
arbitrary code in an extconf.rb file and creating a bogus Makefile (just  
so that RubyGems sees it and doesn’t report an error)[1]. The code you  
place in extconf.rb will often be run with euid=root.

[1] this assumes that make (or nmake on mswin builds) is available  
unless you  
change ENV[“make”]; otherwise, you could (ab)use the Rake support for  
the same  
ends.
