How to start Tidy on WinXP?

Using the sample script that came with the Tidy library, I get the
following error:

ruby tidy.rb

../tidy.rb:2: uninitialized constant Tidy (NameError)
  from c:/program
files/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require__'
  from c:/program
files/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require'
  from tidy.rb:1

Exit code: 1

I just need tidy.dll, not tidy.exe, right? How do I reference tidy?

require 'tidy'
Tidy.path = 'C:/Progra~1/tidy/bin/tidy.dll'

html = gets
  xml = Tidy.open(:show_warnings=>true) do |tidy|
    tidy.options.output_xml = true
    puts tidy.options.show_warnings
    xml = tidy.clean(html)
    puts tidy.errors
    puts tidy.diagnostics
    xml
  end
  puts xml

Your Tidy.path statement looks okay. I'm wondering whether this might
be a problem of having your script named 'tidy.rb' foxing the require
'tidy'?

M

···

On 15/09/05, Dan Kohn <dan@dankohn.com> wrote:

Using the sample script that came with the Tidy library, I get the
following error:

--
Matt Mower :: http://matt.blogs.it/

That fixed it, thanks.