[Ruby] hoe and Manifest.txt

Aaron Patterson aaron_patterson at speakeasy.net
Wed Nov 1 08:47:00 PST 2006


On Tue, Oct 31, 2006 at 09:20:32PM -0800, Timothy J. Wood wrote:
> 
> On Oct 31, 2006, at 4:38 PM, Eric Hodel wrote:
> > DO ANY OF YOU ACTUALLY _USE_ HOE?!?!?!
> 
>    I'm trying... :)
> 
>    There are a couple places that seem like they should include 'ext'  
> for gems that include binary components:
> 
> diff -r ./lib/hoe.rb /opt/local/lib/ruby/gems/1.8/gems/hoe-1.1.2/lib/ 
> hoe.rb
> 97c97
> <     "-w -I#{%w(lib bin test).join(File::PATH_SEPARATOR)}" +
> ---
>  >     "-w -I#{%w(lib ext bin test).join(File::PATH_SEPARATOR)}" +
> 177c177
> <       dirs = Dir['{lib,test}']
> ---
>  >       dirs = Dir['{lib,ext,test}']
> 
>    It doesn't look like 'hoe' will check if there is a binary module  
> either, so I have ':extensions  => ["ext/extconf.rb"]' in my  
> spec_extras.
> 
>    Also, while 'hoe' is required to run the rake tasks, it isn't  
> clear why it is added as a dependency in general.  Does the final gem  
> actually have any dependencies on 'hoe'?  I'm overriding that for now  
> with ':dependencies => []' in my spec_extras.

If you ship your Rakefile with your library, people will need hoe to run
your rake tasks.  If you don't ship the Rakefile, people might not know
how to run your unit tests!

> 
>    So far, though, this is pretty nifty :)
> 
> -tim

--Aaron

-- 
Aaron Patterson
http://tenderlovemaking.com/


More information about the Ruby mailing list