Docdiff syntax error

Hello,

I have downloaded docdiff-0-3-2 and installed it on RedHat Enterprise
Linux 5.5

When I run docdiff.rb, I get the following error:

docdiff/docdiff.rb --help
docdiff/docdiff.rb:202: syntax error, unexpected ‘[’, expecting ‘|’
){|clo[:resolution]| clo[:resolution] ||= “word”}
^
docdiff/docdiff.rb:212: syntax error, unexpected ‘[’, expecting ‘|’
){|clo[:encoding]| clo[:encoding] ||= “auto”}
^
docdiff/docdiff.rb:212: syntax error, unexpected ‘}’, expecting
keyword_end
docdiff/docdiff.rb:222: syntax error, unexpected ‘[’, expecting ‘|’
){|clo[:eol]| clo[:eol] ||= “auto”}
^
docdiff/docdiff.rb:222: syntax error, unexpected ‘}’, expecting
keyword_end
docdiff/docdiff.rb:233: syntax error, unexpected ‘[’, expecting ‘|’
){|clo[:format]| clo[:format] ||= “manued”}
^
docdiff/docdiff.rb:233: syntax error, unexpected ‘}’, expecting
keyword_end
docdiff/docdiff.rb:256: syntax error, unexpected ‘}’, expecting
keyword_end
} or exit(1)
^
Any help appreciated,
Regards,
Chris

On Dec 2, 2011, at 01:41 , christophe thiebot wrote:

docdiff/docdiff.rb:202: syntax error, unexpected ‘[’, expecting ‘|’
){|clo[:resolution]| clo[:resolution] ||= “word”}
^

That’s just gross. You should probably just have “|clo|”.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs