From: James Britt Date: 2004-08-08T09:46:44+09:00 Subject: Re: RubyGems question: Knowing the correct name for add_dependency Jim Weirich wrote: > James Britt wrote: > >> I'm trying to write a gemspec file. My code depends on Austin >> Ziegler's Mime::Types library. I want to call to add_dependency, but >> I do not know what to pass as the first argument. > > > The first argument should be the base name of the gem without version or > platform information ... E.g. > > spec = Gem::Specification.new do |s| > ... > s.add_dependency('rake', ">0.4.0") > ... > end What is the "base name" of a gem? Given "FooBar.gem", is it "FooBar" ? Is it something defined in that gem's gemspec file? I looked into the gemspec for MIME::Types, but couldn't tell if I should use add_dependency( 'MIME::Types', "> 1.12" ) or add_dependency( 'mime-types', "> 1.12" ) Thanks, James