James Britt wrote: > 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" ? Given foobar-1.2.0.gem, it would be foobar. Sorry, I should have been more explicity. If you do a gem list command, the name is displayed followed by all the available versions in parenthesis. > add_dependency( 'mime-types', "> 1.12" ) This is the one you want. -- -- Jim Weirich jim / weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)