Skip to content

Commit

Permalink
rails3 is fussing with git :)
Browse files Browse the repository at this point in the history
  • Loading branch information
invernizzi committed Jun 22, 2011
1 parent 9ef6dd7 commit b963d6f
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions lib/relevance/tarantula/tidy_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,24 @@
end

if defined? Tidy
Tidy.path = ENV['TIDY_PATH'] if ENV['TIDY_PATH']
if ENV['TIDY_PATH']
#we trust the user
Tidy.path = ENV['TIDY_PATH']
else
begin
#linux
Tidy.path = '/usr/lib/libtidy.so'
rescue LoadError
#I'm a mac
Tidy.path = '/usr/lib/libtidy.dylib'
end
end

class Relevance::Tarantula::TidyHandler
include Relevance::Tarantula
def initialize(options = {})
@options = {:show_warnings=>true,
:char_encoding=>"utf-8"}.merge(options)
:char_encoding=>'utf-8'}.merge(options)
end
def handle(result)
response = result.response
Expand Down

0 comments on commit b963d6f

Please sign in to comment.