Skip to content

Commit

Permalink
entity decl works in jruby
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Sep 12, 2009
1 parent d9b9c9e commit 5f5dbfa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Manifest.txt
Expand Up @@ -101,6 +101,7 @@ lib/nokogiri/ffi/structs/xml_buffer.rb
lib/nokogiri/ffi/structs/xml_document.rb
lib/nokogiri/ffi/structs/xml_dtd.rb
lib/nokogiri/ffi/structs/xml_element.rb
lib/nokogiri/ffi/structs/xml_entity.rb
lib/nokogiri/ffi/structs/xml_enumeration.rb
lib/nokogiri/ffi/structs/xml_node.rb
lib/nokogiri/ffi/structs/xml_node_set.rb
Expand All @@ -125,6 +126,7 @@ lib/nokogiri/ffi/xml/document.rb
lib/nokogiri/ffi/xml/document_fragment.rb
lib/nokogiri/ffi/xml/dtd.rb
lib/nokogiri/ffi/xml/element_decl.rb
lib/nokogiri/ffi/xml/entity_decl.rb
lib/nokogiri/ffi/xml/entity_reference.rb
lib/nokogiri/ffi/xml/namespace.rb
lib/nokogiri/ffi/xml/node.rb
Expand Down Expand Up @@ -160,7 +162,7 @@ lib/nokogiri/xml/document.rb
lib/nokogiri/xml/document_fragment.rb
lib/nokogiri/xml/dtd.rb
lib/nokogiri/xml/element_decl.rb
lib/nokogiri/xml/entity_declaration.rb
lib/nokogiri/xml/entity_decl.rb
lib/nokogiri/xml/fragment_handler.rb
lib/nokogiri/xml/namespace.rb
lib/nokogiri/xml/node.rb
Expand Down
2 changes: 2 additions & 0 deletions lib/nokogiri/ffi/libxml.rb
Expand Up @@ -298,12 +298,14 @@ def self.pointer_offset(n)
"structs/xml_parser_context",
"structs/xml_attribute",
"structs/xml_element",
"structs/xml_entity",
"xml/node",
"xml/namespace",
"xml/dtd",
"xml/attr",
"xml/attribute_decl",
"xml/element_decl",
"xml/entity_decl",
"xml/document",
"xml/document_fragment",
"xml/schema",
Expand Down
2 changes: 1 addition & 1 deletion lib/nokogiri/ffi/xml/node.rb
Expand Up @@ -272,7 +272,7 @@ def self.wrap(node_struct, klass=nil)
when DOCUMENT_FRAG_NODE then [XML::DocumentFragment]
when PI_NODE then [XML::ProcessingInstruction]
when ATTRIBUTE_NODE then [XML::Attr]
when ENTITY_DECL then [XML::EntityDeclaration]
when ENTITY_DECL then [XML::EntityDecl, LibXML::XmlEntity]
when CDATA_SECTION_NODE then [XML::CDATA]
when DTD_NODE then [XML::DTD, LibXML::XmlDtd]
else [XML::Node]
Expand Down

0 comments on commit 5f5dbfa

Please sign in to comment.