From: Ryan Davis Date: 2012-10-28T03:06:21+09:00 Subject: Re: Managine Hoe gem dependencies On Oct 27, 2012, at 07:20 , Milli Sami wrote: > I've bootstrapped a gem using hoe and its the Rakefile: > > # -*- ruby -*- > > require 'rubygems' > require 'hoe' > require 'thor' > > Hoe.plugin :bundler > Hoe.plugin :minitest > Hoe.plugin :deps > > Hoe.spec 'launchcloud' do > > developer('Millisami', 'millisami@gmail.com') > > end > > # vim: syntax=ruby > > Since there ain't any .gemspec, if I want to add the dependencies into > the Rakefile, where to put it? > > For e.g., if I want the nokogiri gem as its dependencies, where do I > specify it just like Bundler's Gemfile. % ri Hoe.dependency = Hoe.dependency (from gem hoe-3.1.0) ------------------------------------------------------------------------------ dependency(name, version, type = :runtime) ------------------------------------------------------------------------------ Add a dependency declaration to your spec. Pass :dev to type for developer dependencies. so it would be: Hoe.spec 'launchcloud' do developer('Millisami', 'millisami@gmail.com') dependency "nokogiri", "~> 1.5.5" end