[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Hoe and gems: How to handle deps?

Vassilis Rizopoulos

5/11/2007 9:43:00 AM

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 :) )

Cheers,
V.-
--
http://www.braveworl...

2 Answers

Tim Pease

5/11/2007 4:46:00 PM

0

On 5/11/07, Vassilis Rizopoulos <damphyr@freemail.gr> 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

Christian Neukirchen

5/13/2007 5:00:00 PM

0

"Tim Pease" <tim.pease@gmail.com> writes:

> On 5/11/07, Vassilis Rizopoulos <damphyr@freemail.gr> 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.

hoe.spec.dependencies.delete_if { |dep| dep.name == "hoe" }

Be careful.
--
Christian Neukirchen <chneukirchen@gmail.com> http://chneuk...