libxml-ruby 5.0.1-x64-mingw-ucrt → 5.0.2-x64-mingw-ucrt

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b7d18cd1b2da9ad060e5f82304c15c84d693234be8d51027e7070e8462687c60
4
- data.tar.gz: c7a0f7748c84bccdb11601fbd26934c1c26d5bdedfaa983908b9c796d559f472
3
+ metadata.gz: 79d7bc579d2e290cce414e539ee240f35b70c3a35fb9eaec8035aad4e7ed5c7f
4
+ data.tar.gz: c0ca3c3b26cc9f0dc0eddbf5b45808305f2676f9b1b440e09da74a65c77e9702
5
5
  SHA512:
6
- metadata.gz: 71b4750282d6ae545c0f72a478cc0c9ad9d29e00934934aa1693b8e6890610ef48ce50e644f0dc2a9ff56dddee99ce991cb58e582bdca70e8cb613f28c629747
7
- data.tar.gz: 3e967314278f64210a29f45cefae3ba7b2c139e3121b803cdbc6b1abd8d8831f7e65db184cd25708b6bf0e70d242e2a0dbe1dab6ac603ff5cfa5eaac1ed3f24f
6
+ metadata.gz: 715379b82daad34826ee49bf5122c01fa46bd44a6f8e82e10f37eabedc99747ff44cc487c3851e698f164c258cf7c884efd291f727a447ab7103ba2b0cd4ed3b
7
+ data.tar.gz: 1a73a86c1245951d5fcd5fe156c6e3cae1e97023ca814ad3ffcb47c3ed3dcb3735d899bd090eacdb44e3cbe4e3f94cd41002089186f8d7dabf8c9e3741be3513
data/HISTORY CHANGED
@@ -1,5 +1,9 @@
1
1
  = Release History
2
2
 
3
+ == 5.0.2 / 2024-01-08
4
+
5
+ * Fix broken DTD creation (DTD name is not required)
6
+
3
7
  == 5.0.1 / 2024-01-08
4
8
 
5
9
  * Fix broken Document#io method that was broken by switching Parsers to use keyword arguments
@@ -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 3 parameters and 2 optional parameters.
136
- * It then attaches the DTD to the specified document if it is not nil
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, "32", &external, &system, &name, &doc, &internal);
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
- Check_Type(name, T_STRING);
172
- xname = (const xmlChar*) StringValuePtr(name);
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
  {
@@ -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.1"
5
- #define RUBY_LIBXML_VERNUM 501
4
+ #define RUBY_LIBXML_VERSION "5.0.2"
5
+ #define RUBY_LIBXML_VERNUM 502
6
6
  #define RUBY_LIBXML_VER_MAJ 5
7
7
  #define RUBY_LIBXML_VER_MIN 0
8
- #define RUBY_LIBXML_VER_MIC 1
8
+ #define RUBY_LIBXML_VER_MIC 2
9
9
  #define RUBY_LIBXML_VER_PATCH 0
Binary file
Binary file
@@ -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 "-//W3C//DTD XHTML 1.0 Transitional//EN", "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd", nil, doc, true
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.1
4
+ version: 5.0.2
5
5
  platform: x64-mingw-ucrt
6
6
  authors:
7
7
  - Ross Bamform
@@ -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.4.21
279
+ rubygems_version: 3.5.3
280
280
  signing_key:
281
281
  specification_version: 4
282
282
  summary: Ruby Bindings for LibXML2