libxml-ruby 5.0.1-x64-mingw-ucrt → 5.0.3-x64-mingw-ucrt
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY +8 -0
- data/ext/libxml/ruby_xml_dtd.c +8 -5
- data/ext/libxml/ruby_xml_error.c +4 -0
- data/ext/libxml/ruby_xml_version.h +3 -3
- data/lib/3.2/libxml_ruby.so +0 -0
- data/lib/3.3/libxml_ruby.so +0 -0
- data/test/test_document.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 454f91a9bf4d282d23ed20adbc34b5d9c8f44968ea4fbfccb570a545ea93c2b1
|
4
|
+
data.tar.gz: 1f286df484126efbb7eae6e784fcc8c7a94c13a0711efbf56b3cdc473d667180
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13bbef8d413f9bbfacf5072a19331e3ae377e06bf536e0f23496caae5add0de44eef60e85cfa537df1fd7c6de123a443e0e134b0bc068800896202eb392282cf
|
7
|
+
data.tar.gz: 4771ca6511b1104e4af8a08f5c495de03bcb18aa99ab95124b2c3936d1c6f302fd7565a127310b951ce8e593048752a12cb25b71027e2338b839e300bd7d8b16
|
data/HISTORY
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
= Release History
|
2
2
|
|
3
|
+
== 5.0.3 / 2024-03-11
|
4
|
+
|
5
|
+
* Update xmlStructuredErrorFunc to be backwards compatible
|
6
|
+
|
7
|
+
== 5.0.2 / 2024-01-08
|
8
|
+
|
9
|
+
* Fix broken DTD creation (DTD name is not required)
|
10
|
+
|
3
11
|
== 5.0.1 / 2024-01-08
|
4
12
|
|
5
13
|
* Fix broken Document#io method that was broken by switching Parsers to use keyword arguments
|
data/ext/libxml/ruby_xml_dtd.c
CHANGED
@@ -132,8 +132,8 @@ static VALUE rxml_dtd_type(VALUE self)
|
|
132
132
|
*
|
133
133
|
* * The first usage creates a DTD from a string and requires 1 parameter.
|
134
134
|
* * The second usage loads and parses an external DTD and requires 2 parameters.
|
135
|
-
* * The third usage creates a new internal or external DTD and requires
|
136
|
-
*
|
135
|
+
* * The third usage creates a new internal or external DTD and requires 2 parameters and 3 optional parameters.
|
136
|
+
* The DTD is then attached to the specified document if it is not nil.
|
137
137
|
*
|
138
138
|
* Parameters:
|
139
139
|
*
|
@@ -160,7 +160,7 @@ static VALUE rxml_dtd_initialize(int argc, VALUE *argv, VALUE self)
|
|
160
160
|
xmlDocPtr xdoc = NULL;
|
161
161
|
|
162
162
|
VALUE name, doc, internal;
|
163
|
-
rb_scan_args(argc, argv, "
|
163
|
+
rb_scan_args(argc, argv, "23", &external, &system, &name, &doc, &internal);
|
164
164
|
|
165
165
|
Check_Type(external, T_STRING);
|
166
166
|
xpublic = (const xmlChar*) StringValuePtr(external);
|
@@ -168,8 +168,11 @@ static VALUE rxml_dtd_initialize(int argc, VALUE *argv, VALUE self)
|
|
168
168
|
Check_Type(system, T_STRING);
|
169
169
|
xsystem = (const xmlChar*) StringValuePtr(system);
|
170
170
|
|
171
|
-
|
172
|
-
|
171
|
+
if (name != Qnil)
|
172
|
+
{
|
173
|
+
Check_Type(name, T_STRING);
|
174
|
+
xname = (const xmlChar*)StringValuePtr(name);
|
175
|
+
}
|
173
176
|
|
174
177
|
if (doc != Qnil)
|
175
178
|
{
|
data/ext/libxml/ruby_xml_error.c
CHANGED
@@ -97,7 +97,11 @@ VALUE rxml_error_wrap(const xmlError *xerror)
|
|
97
97
|
}
|
98
98
|
|
99
99
|
/* Hook that receives xml error message */
|
100
|
+
#if LIBXML_VERSION >= 21200
|
100
101
|
static void structuredErrorFunc(void *userData, const xmlError *xerror)
|
102
|
+
#else
|
103
|
+
static void structuredErrorFunc(void *userData, xmlErrorPtr xerror)
|
104
|
+
#endif
|
101
105
|
{
|
102
106
|
VALUE error = rxml_error_wrap(xerror);
|
103
107
|
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/* Don't nuke this block! It is used for automatically updating the
|
2
2
|
* versions below. VERSION = string formatting, VERNUM = numbered
|
3
3
|
* version for inline testing: increment both or none at all.*/
|
4
|
-
#define RUBY_LIBXML_VERSION "5.0.
|
5
|
-
#define RUBY_LIBXML_VERNUM
|
4
|
+
#define RUBY_LIBXML_VERSION "5.0.3"
|
5
|
+
#define RUBY_LIBXML_VERNUM 503
|
6
6
|
#define RUBY_LIBXML_VER_MAJ 5
|
7
7
|
#define RUBY_LIBXML_VER_MIN 0
|
8
|
-
#define RUBY_LIBXML_VER_MIC
|
8
|
+
#define RUBY_LIBXML_VER_MIC 3
|
9
9
|
#define RUBY_LIBXML_VER_PATCH 0
|
data/lib/3.2/libxml_ruby.so
CHANGED
Binary file
|
data/lib/3.3/libxml_ruby.so
CHANGED
Binary file
|
data/test/test_document.rb
CHANGED
@@ -82,7 +82,7 @@ class TestDocument < Minitest::Test
|
|
82
82
|
def test_xhtml
|
83
83
|
doc = LibXML::XML::Document.new
|
84
84
|
assert(!doc.xhtml?)
|
85
|
-
LibXML::XML::Dtd.new
|
85
|
+
LibXML::XML::Dtd.new("-//W3C//DTD XHTML 1.0 Transitional//EN", "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd", nil, doc, true)
|
86
86
|
assert(doc.xhtml?)
|
87
87
|
end
|
88
88
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libxml-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.3
|
5
5
|
platform: x64-mingw-ucrt
|
6
6
|
authors:
|
7
7
|
- Ross Bamform
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2024-
|
17
|
+
date: 2024-03-11 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: rake-compiler
|
@@ -276,7 +276,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
276
276
|
- !ruby/object:Gem::Version
|
277
277
|
version: '0'
|
278
278
|
requirements: []
|
279
|
-
rubygems_version: 3.
|
279
|
+
rubygems_version: 3.5.6
|
280
280
|
signing_key:
|
281
281
|
specification_version: 4
|
282
282
|
summary: Ruby Bindings for LibXML2
|