Forum: Ruby How to install, and use "tidy" gem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
B2215101abb1261b9bee5cdda89e7316?d=identicon&s=25 Ian Hobson (Guest)
on 2009-02-01 20:07
(Received via mailing list)
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:part1.04090403.08070006@ntlworld.com>  /ruby/bin/tidy.rb  but that
hasn't sorted the problem

Thanks for your help.

Ian
B2215101abb1261b9bee5cdda89e7316?d=identicon&s=25 Ian Hobson (Guest)
on 2009-02-01 20:13
(Received via mailing list)
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
E0d864d9677f3c1482a20152b7cac0e2?d=identicon&s=25 Robert Klemme (Guest)
on 2009-02-01 20:55
(Received via mailing list)
On 01.02.2009 20:06, Ian Hobson wrote:
>
> 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
B2215101abb1261b9bee5cdda89e7316?d=identicon&s=25 Ian Hobson (Guest)
on 2009-02-02 11:57
(Received via mailing list)
Robert Klemme wrote:
>
>     robert
>
Thanks Robert,

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

Regards

Ian
86e33dee4a89a8879a26487051c216a8?d=identicon&s=25 Michael Fellinger (Guest)
on 2009-02-02 13:44
(Received via mailing list)
On Mon, Feb 2, 2009 at 7:56 PM, Ian Hobson <ian.hobson@ntlworld.com>
wrote:
>> as the documentation says.
>>
>> Cheers
>>
>>    robert
>>
> 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
This topic is locked and can not be replied to.