# How to write a gem with rake?

**URL:** <https://www.ruby-forum.com/t/how-to-write-a-gem-with-rake/109361>\
**Category:** Rails\
**Created:** [July 13, 2007, 7:16pm UTC](https://www.ruby-forum.com/t/how-to-write-a-gem-with-rake/109361 "2007-07-13T19:16:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![huang\_zhimin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/54ee81/32.png) [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Post date:** [July 13, 2007, 7:16pm UTC](https://www.ruby-forum.com/t/how-to-write-a-gem-with-rake/109361/1 "2007-07-13T19:16:12Z")

</div>

I have a project based on rails. I want to generate gem file by rake and  
automatically upload to rubyforge.  
How can I do that?

–

> **[CodeLineStatistics](https://sourceforge.net/projects/mycodeline/)**
>
> Download CodeLineStatistics for free. The code line statistics takes files and directories from GUI, counts the total files, total sizes of files, total lines, lines of codes, lines of comments and lines of blanks in the files, displays the results...

[http://rubyforge.org/projects/ropenwiki/](http://rubyforge.org/projects/ropenwiki/)

---

<div class="post-metadata">

**Author:** ![huang\_zhimin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/54ee81/32.png) [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Post date:** [July 13, 2007, 7:20pm UTC](https://www.ruby-forum.com/t/how-to-write-a-gem-with-rake/109361/2 "2007-07-13T19:20:12Z")

</div>

Go grab hoe

[http://blog.zenspider.com/archives/2006/10/hoe\_112\_released.html](http://blog.zenspider.com/archives/2006/10/hoe_112_released.html)

[http://rubyforge.org/projects/seattlerb/](http://rubyforge.org/projects/seattlerb/)

Jason
