w3c-validators/w3c_validators

Truncated error messages on 1.1.1

jaimeiniesta opened this issue · 2 comments

While on 1.0.2 it works fine, now with 1.1.1 I can't see the full error messages, they get truncated. For example:

MarkupValidator.new.validate_uri('http://ryanair.com').errors.first.to_s

this will output on 1.1.1:

"ERROR; URI: http://www.ryanair.com/en; line " 

while on 1.0.2 it will be fine:

"ERROR; URI: http://www.ryanair.com/en; line 98: general entity \"Bs\" not defined and no default entity"

I've tried this on ruby 1.8.6 and ruby 1.9.2, same results.

Thanks!

It's been fixed in commit 9f8b519 but a gem has not yet been released.

mkb commented

If you are using Bundler, you can run the corrected version of the code by placing this in your Gemfile:

gem 'nokogiri'
gem 'w3c_validators', "1.1.1", :git => 'git://github.com/alexdunae/w3c_validators.git'

More detail here: http://bit.ly/jBOOQ7