# Raking RubyGems

**URL:** <https://www.ruby-forum.com/t/raking-rubygems/93940>\
**Category:** Ruby\
**Created:** [April 15, 2006, 1:53pm UTC](https://www.ruby-forum.com/t/raking-rubygems/93940 "2006-04-15T13:53:40Z")\
**Posts on this page:** 2\
**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:53pm UTC](https://www.ruby-forum.com/t/raking-rubygems/93940/1 "2006-04-15T13:53:40Z")

</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,

So I’m finally getting around to learning how to package  
a gem with rake, and I’ve found that in addition to Chad’s  
wonderful Pickaxe writeup, looking at other people’s Rakefiles  
has been a great help.

However, at least one question still lingers:

In Rake’s Rakefile, I am puzzled by why lines 176-179 are  
not replaced by s.rdoc\_options=rd.options similar to  
the way s.extra\_rdoc\_files=rd.rdoc\_files is done on the  
line before – see

[http://rubyforge.org/plugins/scmsvn/viewcvs.php/rake/Rakefile?annotate=1.73&root=rake](http://rubyforge.org/plugins/scmsvn/viewcvs.php/rake/Rakefile?annotate=1.73&root=rake)

Jim, in case you read this, there is a typo in the  
the header comments → “is may be”?

FWIW, it took me a while to figure out that I needed to use

rake package

to get rake to spit out all three types of packages I had  
requested; Chad’s Pickaxe writeup only has an explicit-  
target example, so I was doing,

rake pkg/fUnit-0.0.1.gem  
rake pkg/fUnit-0.0.1.tgz  
rake pkg/fUnit-0.0.1.zip

If you want to take a look at my current Rakefile mess,  
and offer patches, see

[http://rubyforge.org/plugins/scmsvn/viewcvs.php/trunk/Rakefile?root=funit&view=markup](http://rubyforge.org/plugins/scmsvn/viewcvs.php/trunk/Rakefile?root=funit&view=markup)

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:35am UTC](https://www.ruby-forum.com/t/raking-rubygems/93940/2 "2006-04-16T02:35:35Z")

</div>

Bil K. wrote:

> In Rake’s Rakefile, I am puzzled by why lines 176-179 are  
> not replaced by s.rdoc\_options=rd.options similar to  
> the way s.extra\_rdoc\_files=rd.rdoc\_files is done on the  
> line before

Good idea! I’ve modified the Rakefile to do exactly that.

> Jim, in case you read this, there is a typo in the  
> the header comments -\> “is may be”?

Yep, typo. Should be just “may be”

> FWIW, it took me a while to figure out that I needed to use
> 
> rake package
> 
> to get rake to spit out all three types of packages I had  
> requested;

‘rake -T’ might help here.

–  
– Jim W.
