ruby-rdf / rdf-rdfxml

Ruby RDF/XML reader/writer for RDF.rb.
http://rubygems.org/gems/rdf-rdfxml
The Unlicense
17 stars 7 forks source link

Coping with null FFI Pointers in JRuby. #9

Closed ezodude closed 13 years ago

ezodude commented 13 years ago

This patch allows the rdfxml library to deal with nil values that are returned as Null Pointers from FFI when running on JRuby (tested with version 1.5.2).

All the specs should continue to run correctly. I created a Gem that reflects the change here: https://rubygems.org/gems/the-experimenters-rdf-rdfxml.

Thanks for a helpful gem!

Cheers, Abdel

gkellogg commented 13 years ago

See commit ddbc3efbe5b386b7ccb13a4e9870467c30aa81fa

ezodude commented 13 years ago

That's probably the best thing to do indeed (monkey patching nokogiri), I should've just thought of that!