Hoe and gems: How to handle deps?

I got into using Hoe, my projects were starting to get ou t of control
and Hoe helps a lot in keeping everything at a sane level.
I just need a final bit of help with figuring out how to build the
various gems.

Q1: Why does Hoe add itself as a dependency to the gem and how can I
remove it?

Q2: How to I add gem dependencies in a gem defined with Hoe?

And a couple of comment about the handling of README and the default
Rakefile:
Calculation of the paragraphs seems to be off by 1, so everything ends
up in the wrong place.
This is not actually very serious, it’s only that the fiels generated by
sow just don’t exactly fit with what Hoe expects.

Also, it would be nice to strip whitespace from the beginning of a line
for things like the url of a project.
(yes, yes, I should my coding where my comments are…I know :slight_smile: )

Cheers,
V.-

On 5/11/07, Vassilis R. [email protected] wrote:

I got into using Hoe, my projects were starting to get ou t of control
and Hoe helps a lot in keeping everything at a sane level.
I just need a final bit of help with figuring out how to build the
various gems.

Q1: Why does Hoe add itself as a dependency to the gem and how can I
remove it?

When a user wants to run tests on your package via “gem check -t” then
Hoe needs to be included as a dependency so your Rakefile is usable by
gem.

Currently there is no way to remove Hoe as a dependency.

Q2: How to I add gem dependencies in a gem defined with Hoe?

Hoe.new(‘your_project’, ‘0.0.0’) do |proj|
proj.extra_deps << [‘rubyforge’, ‘>= 0.3.1’]
proj.extra_deps << [‘xx’]
end

Blessings,
TwP

“Tim P.” [email protected] writes:

When a user wants to run tests on your package via “gem check -t” then
Hoe needs to be included as a dependency so your Rakefile is usable by
gem.

Currently there is no way to remove Hoe as a dependency.

hoe.spec.dependencies.delete_if { |dep| dep.name == “hoe” }

Be careful.