Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Rob Morris
Major bug - #clean! broken with hpricot 0.8.1 [ reply ]  
2009-06-05 19:02
Seems like hpricot internals have changed?

Loaded the feed here: http://mountainschool.blogspot.com/feeds/posts/default

And got...
>> feed.entries.first.clean!
NoMethodError: undefined method `raw_string=' for #<Hpricot::Text:0xb6c30ddc>
from /usr/lib/ruby/gems/1.8/gems/feed-normalizer-1.5.1/lib/html-cleaner.rb:187:in `set'
from /usr/lib/ruby/gems/1.8/gems/feed-normalizer-1.5.1/lib/html-cleaner.rb:84:in `clean'
from /usr/lib/ruby/gems/1.8/gems/hpricot-0.8.1/lib/hpricot/traverse.rb:699:in `traverse_text_internal'
from /usr/lib/ruby/gems/1.8/gems/hpricot-0.8.1/lib/hpricot/traverse.rb:688:in `traverse_text_internal'
from /usr/lib/ruby/gems/1.8/gems/hpricot-0.8.1/lib/hpricot/traverse.rb:498:in `each'
from /usr/lib/ruby/gems/1.8/gems/hpricot-0.8.1/lib/hpricot/traverse.rb:498:in `each_child'
from /usr/lib/ruby/gems/1.8/gems/hpricot-0.8.1/lib/hpricot/traverse.rb:688:in `traverse_text_internal'
from /usr/lib/ruby/gems/1.8/gems/hpricot-0.8.1/lib/hpricot/traverse.rb:680:in `traverse_text'
from /usr/lib/ruby/gems/1.8/gems/feed-normalizer-1.5.1/lib/html-cleaner.rb:84:in `clean'
from /usr/lib/ruby/gems/1.8/gems/feed-normalizer-1.5.1/lib/structures.rb:109:in `clean!'
from /usr/lib/ruby/gems/1.8/gems/feed-normalizer-1.5.1/lib/structures.rb:108:in `each'
from /usr/lib/ruby/gems/1.8/gems/feed-normalizer-1.5.1/lib/structures.rb:108:in `clean!'
from (irb):5