But the question is would the hoe developers use this?  They seem
fairly stuck on this whole idempotentence kick.

--Jeremy

On 1/11/07, Gregory Brown <gregory.t.brown / gmail.com> wrote:
> On 1/11/07, Daniel Berger <djberg96 / gmail.com> wrote:
> > interact with the gem on a meta-level will need hoe.
> >
> > How about:
> >
> > spec = Gem::Specification.new do |gem|
> >    gem.add_dependency("something", ">= 1.2.0")
> >    gem.add_optional("rspec", "Test suite only", ">= 0.5.0")
> >    ...
> > end
> >
> > And, at the command prompt:
> >
> > C:\gem install something
> >
> > Install required dependency something? [Yn]
> > Install optional dependency rspec (Test suite only) [Yn]
> > ...
> >
> > And the API would simply be:
> >
> > Gem#add_optional(gem, comment, *requirements)
>
> Dan, Excellent approach.  I'd love to see this.
>
>


-- 
My free Ruby e-book:
http://www.humblelittlerubybook.com/book/

My blogs:
http://www.mrneighborly.com/
http://www.rubyinpractice.com/