From: Dave Thomas Date: 2001-10-30T23:04:11+09:00 Subject: [ruby-talk:23843] Re: RubyGems Status (was: Re: Someinspirations from REBOL) Robert Feldt writes: > On Tue, 30 Oct 2001, Dave Thomas wrote: > > > dependsOn Gem("RyansCoolGem") >= V(0, 0, 2) > > > Yes, and maybe V() can also take a string as in V("0.0.2") and produce the > version object. I'm not sure I understand your Gem constructor though. How > can it represent different dependency types? Wouldn't it be better with > dependency hierarchy > > class Dependency; ...; end > class Requires < Dependency; ...; end > class Recommends < Dependency; ...; end it struck me that it was more natural to put that relationship separate from the Gem name: dependsOn Gem("RyansCoolGem") >= V(0, 0, 2) conflictsWith Gem("RyansCoolGem") >= V(0, 0, 2) recommends Gem("RyansCoolGem") >= V(0, 0, 2) Dave