How to install, and use "tidy" gem

I

Ian Hobson

Hi,

Ruby newbie here.

I'm trying to install the gem tidy so that it can be used as a filter by
webby.

I thought it was "gem install tidy" - but this tells me it is
installed. - version 1.1.2!

There is a comment on the user maual
(http://webby.rubyforge.org/user-manual/) that reads "The HTML Tidy
application must be installed on your system, and the |tidy| executable
must be available on the path.".

What does that mean? I can find no tidy.exe or tidy,com.

However webby tells me that tidy is not installed. (and Tidy is unknown).

So after gem has failed to make the gem available, what do I have to
move where?

I tried copying C:/ruby/lib/ruby/gems/1.8/gems/tidy-1.1.2/lib/tidy.rb
<cid:p[email protected]> /ruby/bin/tidy.rb but that
hasn't sorted the problem

Thanks for your help.

Ian
 
I

Ian Hobson

Ian Hobson wrote

Darn message was munged by Thunderbird and yours truly!

The copy was from

C:/ruby/lib/ruby/gems/1.8/gems/tidy-1.1.2/lib/tidy.rb
to
/ruby/bin/tidy.rb

c:\ruby\bin is on my path.

Ian
 
R

Robert Klemme

I'm trying to install the gem tidy so that it can be used as a filter by
webby.

I thought it was "gem install tidy" - but this tells me it is
installed. - version 1.1.2!

There is a comment on the user maual
(http://webby.rubyforge.org/user-manual/) that reads "The HTML Tidy
application must be installed on your system, and the |tidy| executable
must be available on the path.".

What does that mean? I can find no tidy.exe or tidy,com.

I'd say you need http://tidy.sourceforge.net/ installed on your system -
as the documentation says.

Cheers

robert
 
M

Michael Fellinger

Thanks Robert,

All working now :) I guess I confused the tidy gem with html tidy.

Please watch out if you are using this in a long-running process, as
the tidy gem has a memory leak.

^ manveru
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
SterlingLa
Top