From: Nathaniel Talbott Date: 2007-01-12T06:31:25+09:00 Subject: Re: Tattle - The Ruby Census On 1/11/07, Daniel Berger wrote: > 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) The comment/description idea is excellent, and addresses my main complaint with generic optional dependencies. Ship it! :-) -- Nathaniel Talbott <:((><