nokogiri 1.10.10-java → 1.11.0-java
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of nokogiri might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile +3 -0
- data/LICENSE-DEPENDENCIES.md +1015 -947
- data/README.md +165 -91
- data/ext/java/nokogiri/HtmlDocument.java +34 -46
- data/ext/java/nokogiri/HtmlSaxParserContext.java +88 -58
- data/ext/java/nokogiri/HtmlSaxPushParser.java +1 -1
- data/ext/java/nokogiri/NokogiriService.java +1 -1
- data/ext/java/nokogiri/XmlAttr.java +13 -20
- data/ext/java/nokogiri/XmlAttributeDecl.java +11 -12
- data/ext/java/nokogiri/XmlCdata.java +3 -4
- data/ext/java/nokogiri/XmlComment.java +1 -1
- data/ext/java/nokogiri/XmlDocument.java +148 -175
- data/ext/java/nokogiri/XmlDocumentFragment.java +13 -31
- data/ext/java/nokogiri/XmlDtd.java +5 -8
- data/ext/java/nokogiri/XmlElement.java +1 -20
- data/ext/java/nokogiri/XmlElementDecl.java +23 -28
- data/ext/java/nokogiri/XmlEntityDecl.java +23 -27
- data/ext/java/nokogiri/XmlEntityReference.java +2 -2
- data/ext/java/nokogiri/XmlNamespace.java +72 -89
- data/ext/java/nokogiri/XmlNode.java +303 -406
- data/ext/java/nokogiri/XmlNodeSet.java +70 -76
- data/ext/java/nokogiri/XmlReader.java +12 -13
- data/ext/java/nokogiri/XmlRelaxng.java +10 -3
- data/ext/java/nokogiri/XmlSaxParserContext.java +15 -10
- data/ext/java/nokogiri/XmlSchema.java +87 -27
- data/ext/java/nokogiri/XmlSyntaxError.java +2 -6
- data/ext/java/nokogiri/XmlText.java +12 -9
- data/ext/java/nokogiri/XmlXpathContext.java +55 -25
- data/ext/java/nokogiri/XsltStylesheet.java +7 -15
- data/ext/java/nokogiri/internals/HtmlDomParserContext.java +52 -46
- data/ext/java/nokogiri/internals/NokogiriHandler.java +1 -1
- data/ext/java/nokogiri/internals/NokogiriHelpers.java +71 -135
- data/ext/java/nokogiri/internals/NokogiriNamespaceCache.java +90 -58
- data/ext/java/nokogiri/internals/NokogiriNamespaceContext.java +9 -2
- data/ext/java/nokogiri/internals/NokogiriXPathFunction.java +67 -10
- data/ext/java/nokogiri/internals/NokogiriXPathFunctionResolver.java +4 -2
- data/ext/java/nokogiri/internals/ParserContext.java +27 -73
- data/ext/java/nokogiri/internals/ReaderNode.java +2 -4
- data/ext/java/nokogiri/internals/XmlDomParserContext.java +18 -33
- data/ext/nokogiri/depend +476 -357
- data/ext/nokogiri/extconf.rb +507 -357
- data/ext/nokogiri/html_document.c +79 -78
- data/ext/nokogiri/html_sax_parser_context.c +2 -2
- data/ext/nokogiri/nokogiri.c +34 -40
- data/ext/nokogiri/xml_document.c +18 -4
- data/ext/nokogiri/xml_io.c +8 -6
- data/ext/nokogiri/xml_node.c +21 -1
- data/ext/nokogiri/xml_node_set.c +1 -1
- data/ext/nokogiri/xml_reader.c +6 -17
- data/ext/nokogiri/xml_relax_ng.c +29 -11
- data/ext/nokogiri/xml_sax_parser.c +2 -7
- data/ext/nokogiri/xml_sax_parser_context.c +2 -2
- data/ext/nokogiri/xml_schema.c +55 -13
- data/ext/nokogiri/xml_xpath_context.c +80 -4
- data/ext/nokogiri/xslt_stylesheet.c +1 -8
- data/lib/nokogiri.rb +22 -22
- data/lib/nokogiri/css.rb +1 -0
- data/lib/nokogiri/css/node.rb +1 -0
- data/lib/nokogiri/css/parser.rb +63 -62
- data/lib/nokogiri/css/parser.y +2 -2
- data/lib/nokogiri/css/parser_extras.rb +39 -36
- data/lib/nokogiri/css/syntax_error.rb +1 -0
- data/lib/nokogiri/css/tokenizer.rb +1 -0
- data/lib/nokogiri/css/xpath_visitor.rb +73 -43
- data/lib/nokogiri/decorators/slop.rb +1 -0
- data/lib/nokogiri/html.rb +1 -0
- data/lib/nokogiri/html/builder.rb +1 -0
- data/lib/nokogiri/html/document.rb +13 -26
- data/lib/nokogiri/html/document_fragment.rb +1 -0
- data/lib/nokogiri/html/element_description.rb +1 -0
- data/lib/nokogiri/html/element_description_defaults.rb +1 -0
- data/lib/nokogiri/html/entity_lookup.rb +1 -0
- data/lib/nokogiri/html/sax/parser.rb +1 -0
- data/lib/nokogiri/html/sax/parser_context.rb +1 -0
- data/lib/nokogiri/html/sax/push_parser.rb +1 -0
- data/lib/nokogiri/jruby/dependencies.rb +20 -0
- data/lib/nokogiri/nokogiri.jar +0 -0
- data/lib/nokogiri/syntax_error.rb +1 -0
- data/lib/nokogiri/version.rb +3 -109
- data/lib/nokogiri/version/constant.rb +5 -0
- data/lib/nokogiri/version/info.rb +182 -0
- data/lib/nokogiri/xml.rb +1 -0
- data/lib/nokogiri/xml/attr.rb +1 -0
- data/lib/nokogiri/xml/attribute_decl.rb +1 -0
- data/lib/nokogiri/xml/builder.rb +3 -2
- data/lib/nokogiri/xml/cdata.rb +1 -0
- data/lib/nokogiri/xml/character_data.rb +1 -0
- data/lib/nokogiri/xml/document.rb +20 -15
- data/lib/nokogiri/xml/document_fragment.rb +5 -6
- data/lib/nokogiri/xml/dtd.rb +1 -0
- data/lib/nokogiri/xml/element_content.rb +1 -0
- data/lib/nokogiri/xml/element_decl.rb +1 -0
- data/lib/nokogiri/xml/entity_decl.rb +1 -0
- data/lib/nokogiri/xml/entity_reference.rb +1 -0
- data/lib/nokogiri/xml/namespace.rb +1 -0
- data/lib/nokogiri/xml/node.rb +587 -249
- data/lib/nokogiri/xml/node/save_options.rb +1 -0
- data/lib/nokogiri/xml/node_set.rb +1 -0
- data/lib/nokogiri/xml/notation.rb +1 -0
- data/lib/nokogiri/xml/parse_options.rb +10 -3
- data/lib/nokogiri/xml/pp.rb +1 -0
- data/lib/nokogiri/xml/pp/character_data.rb +1 -0
- data/lib/nokogiri/xml/pp/node.rb +1 -0
- data/lib/nokogiri/xml/processing_instruction.rb +1 -0
- data/lib/nokogiri/xml/reader.rb +7 -3
- data/lib/nokogiri/xml/relax_ng.rb +7 -2
- data/lib/nokogiri/xml/sax.rb +1 -0
- data/lib/nokogiri/xml/sax/document.rb +1 -0
- data/lib/nokogiri/xml/sax/parser.rb +1 -0
- data/lib/nokogiri/xml/sax/parser_context.rb +1 -0
- data/lib/nokogiri/xml/sax/push_parser.rb +1 -0
- data/lib/nokogiri/xml/schema.rb +13 -4
- data/lib/nokogiri/xml/searchable.rb +25 -16
- data/lib/nokogiri/xml/syntax_error.rb +1 -0
- data/lib/nokogiri/xml/text.rb +1 -0
- data/lib/nokogiri/xml/xpath.rb +1 -0
- data/lib/nokogiri/xml/xpath/syntax_error.rb +1 -0
- data/lib/nokogiri/xml/xpath_context.rb +1 -0
- data/lib/nokogiri/xslt.rb +1 -0
- data/lib/nokogiri/xslt/stylesheet.rb +1 -0
- data/lib/xsd/xmlparser/nokogiri.rb +1 -0
- metadata +86 -159
- data/ext/java/nokogiri/internals/NokogiriEncodingReaderWrapper.java +0 -107
- data/ext/java/nokogiri/internals/UncloseableInputStream.java +0 -102
- data/ext/nokogiri/html_document.h +0 -10
- data/ext/nokogiri/html_element_description.h +0 -10
- data/ext/nokogiri/html_entity_lookup.h +0 -8
- data/ext/nokogiri/html_sax_parser_context.h +0 -11
- data/ext/nokogiri/html_sax_push_parser.h +0 -9
- data/ext/nokogiri/nokogiri.h +0 -121
- data/ext/nokogiri/xml_attr.h +0 -9
- data/ext/nokogiri/xml_attribute_decl.h +0 -9
- data/ext/nokogiri/xml_cdata.h +0 -9
- data/ext/nokogiri/xml_comment.h +0 -9
- data/ext/nokogiri/xml_document.h +0 -23
- data/ext/nokogiri/xml_document_fragment.h +0 -10
- data/ext/nokogiri/xml_dtd.h +0 -10
- data/ext/nokogiri/xml_element_content.h +0 -10
- data/ext/nokogiri/xml_element_decl.h +0 -9
- data/ext/nokogiri/xml_encoding_handler.h +0 -8
- data/ext/nokogiri/xml_entity_decl.h +0 -10
- data/ext/nokogiri/xml_entity_reference.h +0 -9
- data/ext/nokogiri/xml_io.h +0 -11
- data/ext/nokogiri/xml_libxml2_hacks.h +0 -12
- data/ext/nokogiri/xml_namespace.h +0 -14
- data/ext/nokogiri/xml_node.h +0 -13
- data/ext/nokogiri/xml_node_set.h +0 -12
- data/ext/nokogiri/xml_processing_instruction.h +0 -9
- data/ext/nokogiri/xml_reader.h +0 -10
- data/ext/nokogiri/xml_relax_ng.h +0 -9
- data/ext/nokogiri/xml_sax_parser.h +0 -39
- data/ext/nokogiri/xml_sax_parser_context.h +0 -10
- data/ext/nokogiri/xml_sax_push_parser.h +0 -9
- data/ext/nokogiri/xml_schema.h +0 -9
- data/ext/nokogiri/xml_syntax_error.h +0 -13
- data/ext/nokogiri/xml_text.h +0 -9
- data/ext/nokogiri/xml_xpath_context.h +0 -10
- data/ext/nokogiri/xslt_stylesheet.h +0 -14
data/ext/nokogiri/xml_dtd.h
DELETED
data/ext/nokogiri/xml_io.h
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
#ifndef NOKOGIRI_XML_IO
|
2
|
-
#define NOKOGIRI_XML_IO
|
3
|
-
|
4
|
-
#include <nokogiri.h>
|
5
|
-
|
6
|
-
int io_read_callback(void * ctx, char * buffer, int len);
|
7
|
-
int io_write_callback(void * ctx, char * buffer, int len);
|
8
|
-
int io_close_callback(void * ctx);
|
9
|
-
void init_nokogiri_io();
|
10
|
-
|
11
|
-
#endif
|
@@ -1,12 +0,0 @@
|
|
1
|
-
#ifndef HAVE_XMLFIRSTELEMENTCHILD
|
2
|
-
|
3
|
-
#ifndef XML_LIBXML2_HACKS
|
4
|
-
#define XML_LIBXML2_HACKS
|
5
|
-
|
6
|
-
xmlNodePtr xmlFirstElementChild(xmlNodePtr parent);
|
7
|
-
xmlNodePtr xmlNextElementSibling(xmlNodePtr node);
|
8
|
-
xmlNodePtr xmlLastElementChild(xmlNodePtr parent);
|
9
|
-
|
10
|
-
#endif
|
11
|
-
|
12
|
-
#endif
|
@@ -1,14 +0,0 @@
|
|
1
|
-
#ifndef NOKOGIRI_XML_NAMESPACE
|
2
|
-
#define NOKOGIRI_XML_NAMESPACE
|
3
|
-
|
4
|
-
#include <nokogiri.h>
|
5
|
-
|
6
|
-
void init_xml_namespace();
|
7
|
-
|
8
|
-
extern VALUE cNokogiriXmlNamespace ;
|
9
|
-
|
10
|
-
VALUE Nokogiri_wrap_xml_namespace(xmlDocPtr doc, xmlNsPtr node);
|
11
|
-
|
12
|
-
#define NOKOGIRI_NAMESPACE_EH(node) ((node)->type == XML_NAMESPACE_DECL)
|
13
|
-
|
14
|
-
#endif
|
data/ext/nokogiri/xml_node.h
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
#ifndef NOKOGIRI_XML_NODE
|
2
|
-
#define NOKOGIRI_XML_NODE
|
3
|
-
|
4
|
-
#include <nokogiri.h>
|
5
|
-
|
6
|
-
void init_xml_node();
|
7
|
-
|
8
|
-
extern VALUE cNokogiriXmlNode ;
|
9
|
-
extern VALUE cNokogiriXmlElement ;
|
10
|
-
|
11
|
-
VALUE Nokogiri_wrap_xml_node(VALUE klass, xmlNodePtr node) ;
|
12
|
-
void Nokogiri_xml_node_properties(xmlNodePtr node, VALUE attr_hash) ;
|
13
|
-
#endif
|
data/ext/nokogiri/xml_node_set.h
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
#ifndef NOKOGIRI_XML_NODE_SET
|
2
|
-
#define NOKOGIRI_XML_NODE_SET
|
3
|
-
|
4
|
-
#include <nokogiri.h>
|
5
|
-
void init_xml_node_set();
|
6
|
-
|
7
|
-
extern VALUE cNokogiriXmlNodeSet ;
|
8
|
-
VALUE Nokogiri_wrap_xml_node_set(xmlNodeSetPtr node_set, VALUE document) ;
|
9
|
-
VALUE Nokogiri_wrap_xml_node_set_node(xmlNodePtr node, VALUE node_set) ;
|
10
|
-
VALUE Nokogiri_wrap_xml_node_set_namespace(xmlNsPtr node, VALUE node_set) ;
|
11
|
-
|
12
|
-
#endif
|
data/ext/nokogiri/xml_reader.h
DELETED
data/ext/nokogiri/xml_relax_ng.h
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
#ifndef NOKOGIRI_XML_SAX_PARSER
|
2
|
-
#define NOKOGIRI_XML_SAX_PARSER
|
3
|
-
|
4
|
-
#include <nokogiri.h>
|
5
|
-
|
6
|
-
void init_xml_sax_parser();
|
7
|
-
|
8
|
-
extern VALUE cNokogiriXmlSaxParser ;
|
9
|
-
|
10
|
-
typedef struct _nokogiriSAXTuple {
|
11
|
-
xmlParserCtxtPtr ctxt;
|
12
|
-
VALUE self;
|
13
|
-
} nokogiriSAXTuple;
|
14
|
-
|
15
|
-
typedef nokogiriSAXTuple * nokogiriSAXTuplePtr;
|
16
|
-
|
17
|
-
#define NOKOGIRI_SAX_SELF(_ctxt) \
|
18
|
-
((nokogiriSAXTuplePtr)(_ctxt))->self
|
19
|
-
|
20
|
-
#define NOKOGIRI_SAX_CTXT(_ctxt) \
|
21
|
-
((nokogiriSAXTuplePtr)(_ctxt))->ctxt
|
22
|
-
|
23
|
-
#define NOKOGIRI_SAX_TUPLE_NEW(_ctxt, _self) \
|
24
|
-
nokogiri_sax_tuple_new(_ctxt, _self)
|
25
|
-
|
26
|
-
static inline nokogiriSAXTuplePtr
|
27
|
-
nokogiri_sax_tuple_new(xmlParserCtxtPtr ctxt, VALUE self)
|
28
|
-
{
|
29
|
-
nokogiriSAXTuplePtr tuple = malloc(sizeof(nokogiriSAXTuple));
|
30
|
-
tuple->self = self;
|
31
|
-
tuple->ctxt = ctxt;
|
32
|
-
return tuple;
|
33
|
-
}
|
34
|
-
|
35
|
-
#define NOKOGIRI_SAX_TUPLE_DESTROY(_tuple) \
|
36
|
-
free(_tuple) \
|
37
|
-
|
38
|
-
#endif
|
39
|
-
|
data/ext/nokogiri/xml_schema.h
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
#ifndef NOKOGIRI_XML_SYNTAX_ERROR
|
2
|
-
#define NOKOGIRI_XML_SYNTAX_ERROR
|
3
|
-
|
4
|
-
#include <nokogiri.h>
|
5
|
-
|
6
|
-
void init_xml_syntax_error();
|
7
|
-
VALUE Nokogiri_wrap_xml_syntax_error(xmlErrorPtr error);
|
8
|
-
void Nokogiri_error_array_pusher(void * ctx, xmlErrorPtr error);
|
9
|
-
NORETURN(void Nokogiri_error_raise(void * ctx, xmlErrorPtr error));
|
10
|
-
|
11
|
-
extern VALUE cNokogiriXmlSyntaxError;
|
12
|
-
#endif
|
13
|
-
|
data/ext/nokogiri/xml_text.h
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
#ifndef NOKOGIRI_XML_XPATH_CONTEXT
|
2
|
-
#define NOKOGIRI_XML_XPATH_CONTEXT
|
3
|
-
|
4
|
-
#include <nokogiri.h>
|
5
|
-
|
6
|
-
void init_xml_xpath_context();
|
7
|
-
void Nokogiri_marshal_xpath_funcall_and_return_values(xmlXPathParserContextPtr ctx, int nargs, VALUE handler, const char* function_name) ;
|
8
|
-
|
9
|
-
extern VALUE cNokogiriXmlXpathContext;
|
10
|
-
#endif
|
@@ -1,14 +0,0 @@
|
|
1
|
-
#ifndef NOKOGIRI_XSLT_STYLESHEET
|
2
|
-
#define NOKOGIRI_XSLT_STYLESHEET
|
3
|
-
|
4
|
-
#include <nokogiri.h>
|
5
|
-
|
6
|
-
void init_xslt_stylesheet();
|
7
|
-
|
8
|
-
extern VALUE cNokogiriXsltStylesheet ;
|
9
|
-
|
10
|
-
typedef struct _nokogiriXsltStylesheetTuple {
|
11
|
-
xsltStylesheetPtr ss;
|
12
|
-
VALUE func_instances;
|
13
|
-
} nokogiriXsltStylesheetTuple;
|
14
|
-
#endif
|