From: Jeremy McAnally Date: 2007-01-12T14:43:19+09:00 Subject: Re: Tattle - The Ruby Census 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 wrote: > On 1/11/07, Daniel Berger 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/