# Firebrigade + hoe?

**URL:** <https://www.ruby-forum.com/t/firebrigade-hoe/85197>\
**Category:** Ruby\
**Created:** [February 11, 2007, 5:33am UTC](https://www.ruby-forum.com/t/firebrigade-hoe/85197 "2007-02-11T05:33:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mat\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ce7236/32.png) [@Mat\_S](https://www.ruby-forum.com/u/Mat_S)\
**Post date:** [February 11, 2007, 5:33am UTC](https://www.ruby-forum.com/t/firebrigade-hoe/85197/1 "2007-02-11T05:33:27Z")

</div>

I used newgem to create my ‘sparehand’ gem. The rakefile now depends  
on Hoe, but it also looks like newgem creates a Rakefile such that hoe  
can’t be a dependency.

I tried adding ‘hoe’ as a dependency with no luck.

Think someone could offer a little advice? It would make me really  
happy to see ‘Passed’ next to my gem 🙂

The rakefile is available here:  
[http://rubyforge.org/viewvc/sparehand/trunk/Rakefile?root=phillyonrails&view=markup](http://rubyforge.org/viewvc/sparehand/trunk/Rakefile?root=phillyonrails&view=markup)

Thanks in advance,  
Mat

---

<div class="post-metadata">

**Author:** ![Mat\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ce7236/32.png) [@Mat\_S](https://www.ruby-forum.com/u/Mat_S)\
**Post date:** [February 11, 2007, 7:49am UTC](https://www.ruby-forum.com/t/firebrigade-hoe/85197/2 "2007-02-11T07:49:36Z")

</div>

On 2/11/07, Mat S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I used newgem to create my ‘sparehand’ gem. The rakefile now depends  
> on Hoe, \<snip…\>

here is the (somewhat long) discussion that went on on this topic  
recently:  
[http://rubyurl.com/fm5](http://rubyurl.com/fm5)

And here is one solution:

> **[if you don’t want to hoe… echoe](https://blog.evanweaver.com/2007/01/10/if-you-dont-want-to-hoe-echoe/)**
>
> Hoe, a gem used to build gems, injects itself as a dependency into every gem it creates. To many people, this is unnecessary, since hardly anybody wants to perform meta-operations on a gem itself. …

hth,  
-Harold

---

<div class="post-metadata">

**Author:** ![Mat\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ce7236/32.png) [@Mat\_S](https://www.ruby-forum.com/u/Mat_S)\
**Post date:** [February 11, 2007, 4:42pm UTC](https://www.ruby-forum.com/t/firebrigade-hoe/85197/3 "2007-02-11T16:42:24Z")

</div>

On 2/10/07, Mat S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> [http://rubyforge.org/viewvc/sparehand/trunk/Rakefile?root=phillyonrails&view=markup](http://rubyforge.org/viewvc/sparehand/trunk/Rakefile?root=phillyonrails&view=markup)
> 
> Thanks in advance,  
> Mat

Hi Mat,  
Hoe automatically injects itself as a dependency.

---

<div class="post-metadata">

**Author:** ![Mat\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ce7236/32.png) [@Mat\_S](https://www.ruby-forum.com/u/Mat_S)\
**Post date:** [February 12, 2007, 5:07am UTC](https://www.ruby-forum.com/t/firebrigade-hoe/85197/4 "2007-02-12T05:07:15Z")

</div>

On 2/11/07, Chris C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi Mat,  
> Hoe automatically injects itself as a dependency.

In the ‘newgem’ case it doesn’t. Thanks, Harold, for that blog entry.  
That summed it all up. newgem inserts a couple of lines in the  
Rakefile that avoid the hoe dependency, but it still requires hoe  
without a rescue block, which causes problems if you don’t have hoe  
and try to test the package.

The solutions I found for firebrigade testing were twofold.

1. Add a test/test\_all.rb file that includes all the \*\_test.rb files.  
This allows ‘testrb test’ to actually run the test cases.
2. Put a begin…rescue LoadError…end block around the hoe portions of  
the rake file. and include a test task that runs test\_all.rb in the  
rescue block.

Based off of tinderbox\_gem\_build, I think this will work. We’ll see  
in a little while when firebrigade proper lights up my gem.

Thanks for the help folks. I oughta start a professional blog so I  
can blog about this stuff 🙂  
-Mat

---

<div class="post-metadata">

**Author:** ![Mat\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ce7236/32.png) [@Mat\_S](https://www.ruby-forum.com/u/Mat_S)\
**Post date:** [February 12, 2007, 8:01pm UTC](https://www.ruby-forum.com/t/firebrigade-hoe/85197/5 "2007-02-12T20:01:52Z")

</div>

On 2/11/07, Mat S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Based off of tinderbox\_gem\_build, I think this will work. We’ll see  
> in a little while when firebrigade proper lights up my gem.

w00t! [http://firebrigade.seattlerb.org/gem/show/sparehand](http://firebrigade.seattlerb.org/gem/show/sparehand)

Thanks for the help everyone!  
-Mat
