Managine Hoe gem dependencies

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’, ‘[email protected]’)

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.

I’ve used the bundler plugin Hoe.plugin :bundler and running rake bundler:gemfile, which generates the Gemfile but where its getting
used?

Should I’ve to put require bundler/setup? If yes, then where? If not,
how does the Gemfile gems is loaded?

If I don’t want to use that plugin, where can I put the dependencies?
Is it inside the:

Hoe.spec ‘launchcloud’ do

gem ‘nokogiri’

end

block?

Will the above work?

Thanks!
I’ll try out.

Does this mean that Hoe.plugin :bundler is unnecessary?
If not, how does it work? Maybe not the right place to ask abt that
plugin, still if you or anyone can light this up a bit!

On Oct 27, 2012, at 07:20 , Milli S. [email protected] wrote:

Hoe.plugin :deps
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’, ‘[email protected]’)

dependency “nokogiri”, “~> 1.5.5”
end