libxml-ruby 5.0.5 → 5.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/HISTORY +7 -0
- data/Rakefile +98 -98
- data/ext/libxml/extconf.h +1 -0
- data/ext/libxml/libxml.c +79 -79
- data/ext/libxml/ruby_xml_attr.c +333 -333
- data/ext/libxml/ruby_xml_attr.h +12 -12
- data/ext/libxml/ruby_xml_attr_decl.h +11 -11
- data/ext/libxml/ruby_xml_cbg.c +85 -85
- data/ext/libxml/ruby_xml_dtd.h +9 -9
- data/ext/libxml/ruby_xml_html_parser.c +91 -91
- data/ext/libxml/ruby_xml_html_parser.h +10 -10
- data/ext/libxml/ruby_xml_html_parser_context.h +10 -10
- data/ext/libxml/ruby_xml_html_parser_options.c +48 -48
- data/ext/libxml/ruby_xml_html_parser_options.h +10 -10
- data/ext/libxml/ruby_xml_input_cbg.h +20 -20
- data/ext/libxml/ruby_xml_io.c +47 -47
- data/ext/libxml/ruby_xml_io.h +10 -10
- data/ext/libxml/ruby_xml_namespace.h +10 -10
- data/ext/libxml/ruby_xml_namespaces.c +293 -293
- data/ext/libxml/ruby_xml_namespaces.h +9 -9
- data/ext/libxml/ruby_xml_node.h +13 -13
- data/ext/libxml/ruby_xml_parser.c +91 -91
- data/ext/libxml/ruby_xml_parser_context.h +10 -10
- data/ext/libxml/ruby_xml_reader.h +14 -14
- data/ext/libxml/ruby_xml_relaxng.h +8 -8
- data/ext/libxml/ruby_xml_sax2_handler.h +10 -10
- data/ext/libxml/ruby_xml_sax_parser.h +10 -10
- data/ext/libxml/ruby_xml_schema.h +25 -25
- data/ext/libxml/ruby_xml_schema_attribute.h +37 -37
- data/ext/libxml/ruby_xml_schema_element.h +11 -11
- data/ext/libxml/ruby_xml_schema_facet.c +50 -50
- data/ext/libxml/ruby_xml_schema_facet.h +9 -9
- data/ext/libxml/ruby_xml_schema_type.h +9 -9
- data/ext/libxml/ruby_xml_version.h +2 -2
- data/ext/libxml/ruby_xml_writer.c +1124 -1124
- data/ext/libxml/ruby_xml_writer.h +6 -6
- data/ext/libxml/ruby_xml_xinclude.c +20 -20
- data/ext/libxml/ruby_xml_xinclude.h +11 -11
- data/ext/libxml/ruby_xml_xpath.c +195 -195
- data/ext/libxml/ruby_xml_xpath.h +15 -15
- data/ext/libxml/ruby_xml_xpath_context.c +362 -362
- data/ext/libxml/ruby_xml_xpath_context.h +9 -9
- data/ext/libxml/ruby_xml_xpath_expression.h +10 -10
- data/ext/libxml/ruby_xml_xpath_object.h +17 -17
- data/lib/libxml-ruby.rb +2 -2
- data/test/test_error.rb +5 -2
- data/test/test_helper.rb +1 -0
- data/test/test_writer.rb +500 -468
- metadata +3 -4
- data/test/test.rb +0 -5
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/* Please see the LICENSE file for copyright and distribution information */
|
|
2
|
-
|
|
3
|
-
#ifndef __RXML_XPATH_CONTEXT__
|
|
4
|
-
#define __RXML_XPATH_CONTEXT__
|
|
5
|
-
|
|
6
|
-
extern VALUE cXMLXPathContext;
|
|
7
|
-
void rxml_init_xpath_context(void);
|
|
8
|
-
|
|
9
|
-
#endif
|
|
1
|
+
/* Please see the LICENSE file for copyright and distribution information */
|
|
2
|
+
|
|
3
|
+
#ifndef __RXML_XPATH_CONTEXT__
|
|
4
|
+
#define __RXML_XPATH_CONTEXT__
|
|
5
|
+
|
|
6
|
+
extern VALUE cXMLXPathContext;
|
|
7
|
+
void rxml_init_xpath_context(void);
|
|
8
|
+
|
|
9
|
+
#endif
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/* Please see the LICENSE file for copyright and distribution information */
|
|
2
|
-
|
|
3
|
-
#ifndef __RXML_XPATH_EXPRESSION__
|
|
4
|
-
#define __RXML_XPATH_EXPRESSION__
|
|
5
|
-
|
|
6
|
-
extern VALUE cXMLXPathExpression;
|
|
7
|
-
|
|
8
|
-
void rxml_init_xpath_expression(void);
|
|
9
|
-
|
|
10
|
-
#endif
|
|
1
|
+
/* Please see the LICENSE file for copyright and distribution information */
|
|
2
|
+
|
|
3
|
+
#ifndef __RXML_XPATH_EXPRESSION__
|
|
4
|
+
#define __RXML_XPATH_EXPRESSION__
|
|
5
|
+
|
|
6
|
+
extern VALUE cXMLXPathExpression;
|
|
7
|
+
|
|
8
|
+
void rxml_init_xpath_expression(void);
|
|
9
|
+
|
|
10
|
+
#endif
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
#ifndef __RXML_XPATH_OBJECT__
|
|
2
|
-
#define __RXML_XPATH_OBJECT__
|
|
3
|
-
|
|
4
|
-
extern VALUE cXMLXPathObject;
|
|
5
|
-
|
|
6
|
-
typedef struct rxml_xpath_object
|
|
7
|
-
{
|
|
8
|
-
xmlDocPtr xdoc;
|
|
9
|
-
xmlXPathObjectPtr xpop;
|
|
10
|
-
VALUE nsnodes;
|
|
11
|
-
} rxml_xpath_object;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
void rxml_init_xpath_object(void);
|
|
15
|
-
VALUE rxml_xpath_object_wrap(xmlDocPtr xdoc, xmlXPathObjectPtr xpop);
|
|
16
|
-
|
|
17
|
-
#endif
|
|
1
|
+
#ifndef __RXML_XPATH_OBJECT__
|
|
2
|
+
#define __RXML_XPATH_OBJECT__
|
|
3
|
+
|
|
4
|
+
extern VALUE cXMLXPathObject;
|
|
5
|
+
|
|
6
|
+
typedef struct rxml_xpath_object
|
|
7
|
+
{
|
|
8
|
+
xmlDocPtr xdoc;
|
|
9
|
+
xmlXPathObjectPtr xpop;
|
|
10
|
+
VALUE nsnodes;
|
|
11
|
+
} rxml_xpath_object;
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
void rxml_init_xpath_object(void);
|
|
15
|
+
VALUE rxml_xpath_object_wrap(xmlDocPtr xdoc, xmlXPathObjectPtr xpop);
|
|
16
|
+
|
|
17
|
+
#endif
|
data/lib/libxml-ruby.rb
CHANGED
data/test/test_error.rb
CHANGED
|
@@ -71,8 +71,11 @@ class TestError < Minitest::Test
|
|
|
71
71
|
else
|
|
72
72
|
LibXML::XML::Error.reset_handler
|
|
73
73
|
end
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
if saved_handler.nil?
|
|
75
|
+
assert_nil(LibXML::XML::Error.get_handler)
|
|
76
|
+
else
|
|
77
|
+
assert_equal(LibXML::XML::Error.get_handler, saved_handler)
|
|
78
|
+
end
|
|
76
79
|
end
|
|
77
80
|
|
|
78
81
|
def test_verbose_handler
|