nokogiri 1.16.1 → 1.16.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/dependencies.yml +3 -3
- data/ext/nokogiri/xml_reader.c +1 -0
- data/lib/nokogiri/version/constant.rb +1 -1
- data/ports/archives/libxml2-2.12.6.tar.xz +0 -0
- metadata +6 -7
- data/patches/libxml2/0012-parser-Fix-crash-in-xmlParseInNodeContext-with-HTML.patch +0 -33
- data/ports/archives/libxml2-2.12.4.tar.xz +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ef19d0772f2a62254c22d720cd3f80d836a2c35dfc4c1a058246a728d90c8ab
|
4
|
+
data.tar.gz: 11027c7333fe1422cd7bdd010c4b628b762ea3f69ebf49261e257aca05f02a61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9a26cf7542ca01c5eda410145b3d1b7ee068aa870be5e7c29a427ac3a3d1a6d5fc1f79da3fb50a7a8a2e23c92403b758550e4e9adc95268f07fa39e4ec9f0ab
|
7
|
+
data.tar.gz: 877623b3e577979efb25270767859b6dcea6685bf70699d4be732d898dfd7aeb0ba3b31f285d7bcd95eec1e377f9aec5022104b5e6329753564540896dbbbaab
|
data/dependencies.yml
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
|
2
2
|
libxml2:
|
3
|
-
version: "2.12.
|
4
|
-
sha256: "
|
5
|
-
# sha-256 hash provided in https://download.gnome.org/sources/libxml2/2.12/libxml2-2.12.
|
3
|
+
version: "2.12.6"
|
4
|
+
sha256: "889c593a881a3db5fdd96cc9318c87df34eb648edfc458272ad46fd607353fbb"
|
5
|
+
# sha-256 hash provided in https://download.gnome.org/sources/libxml2/2.12/libxml2-2.12.6.sha256sum
|
6
6
|
|
7
7
|
libxslt:
|
8
8
|
version: "1.1.39"
|
data/ext/nokogiri/xml_reader.c
CHANGED
@@ -537,6 +537,7 @@ read_more(VALUE self)
|
|
537
537
|
if (RTEST(constructor_encoding)) {
|
538
538
|
c_document->encoding = xmlStrdup(BAD_CAST StringValueCStr(constructor_encoding));
|
539
539
|
} else {
|
540
|
+
rb_iv_set(self, "@encoding", NOKOGIRI_STR_NEW2("UTF-8"));
|
540
541
|
c_document->encoding = xmlStrdup(BAD_CAST "UTF-8");
|
541
542
|
}
|
542
543
|
}
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nokogiri
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.16.
|
4
|
+
version: 1.16.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Dalessio
|
@@ -17,10 +17,10 @@ authors:
|
|
17
17
|
- Sergio Arbeo
|
18
18
|
- Timothy Elliott
|
19
19
|
- Nobuyoshi Nakada
|
20
|
-
autorequire:
|
20
|
+
autorequire:
|
21
21
|
bindir: bin
|
22
22
|
cert_chain: []
|
23
|
-
date: 2024-
|
23
|
+
date: 2024-03-15 00:00:00.000000000 Z
|
24
24
|
dependencies:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: mini_portile2
|
@@ -271,9 +271,8 @@ files:
|
|
271
271
|
- patches/libxml2/0009-allow-wildcard-namespaces.patch
|
272
272
|
- patches/libxml2/0010-update-config.guess-and-config.sub-for-libxml2.patch
|
273
273
|
- patches/libxml2/0011-rip-out-libxml2-s-libc_single_threaded-support.patch
|
274
|
-
- patches/libxml2/0012-parser-Fix-crash-in-xmlParseInNodeContext-with-HTML.patch
|
275
274
|
- patches/libxslt/0001-update-config.guess-and-config.sub-for-libxslt.patch
|
276
|
-
- ports/archives/libxml2-2.12.
|
275
|
+
- ports/archives/libxml2-2.12.6.tar.xz
|
277
276
|
- ports/archives/libxslt-1.1.39.tar.xz
|
278
277
|
homepage: https://nokogiri.org
|
279
278
|
licenses:
|
@@ -285,7 +284,7 @@ metadata:
|
|
285
284
|
changelog_uri: https://nokogiri.org/CHANGELOG.html
|
286
285
|
source_code_uri: https://github.com/sparklemotion/nokogiri
|
287
286
|
rubygems_mfa_required: 'true'
|
288
|
-
post_install_message:
|
287
|
+
post_install_message:
|
289
288
|
rdoc_options:
|
290
289
|
- "--main"
|
291
290
|
- README.md
|
@@ -303,7 +302,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
303
302
|
version: '0'
|
304
303
|
requirements: []
|
305
304
|
rubygems_version: 3.4.19
|
306
|
-
signing_key:
|
305
|
+
signing_key:
|
307
306
|
specification_version: 4
|
308
307
|
summary: Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby.
|
309
308
|
test_files: []
|
@@ -1,33 +0,0 @@
|
|
1
|
-
From 95f2a17440568694a6df6a326c5b411e77597be2 Mon Sep 17 00:00:00 2001
|
2
|
-
From: Nick Wellnhofer <wellnhofer@aevum.de>
|
3
|
-
Date: Tue, 30 Jan 2024 13:25:17 +0100
|
4
|
-
Subject: [PATCH] parser: Fix crash in xmlParseInNodeContext with HTML
|
5
|
-
documents
|
6
|
-
|
7
|
-
Ignore namespaces if we have an HTML document with namespaces added
|
8
|
-
manually.
|
9
|
-
|
10
|
-
Fixes #672.
|
11
|
-
---
|
12
|
-
parser.c | 4 +++-
|
13
|
-
1 file changed, 3 insertions(+), 1 deletion(-)
|
14
|
-
|
15
|
-
diff --git a/parser.c b/parser.c
|
16
|
-
index 1038d71b..f7842ed1 100644
|
17
|
-
--- a/parser.c
|
18
|
-
+++ b/parser.c
|
19
|
-
@@ -12415,8 +12415,10 @@ xmlParseInNodeContext(xmlNodePtr node, const char *data, int datalen,
|
20
|
-
}
|
21
|
-
xmlAddChild(node, fake);
|
22
|
-
|
23
|
-
- if (node->type == XML_ELEMENT_NODE) {
|
24
|
-
+ if (node->type == XML_ELEMENT_NODE)
|
25
|
-
nodePush(ctxt, node);
|
26
|
-
+
|
27
|
-
+ if ((ctxt->html == 0) && (node->type == XML_ELEMENT_NODE)) {
|
28
|
-
/*
|
29
|
-
* initialize the SAX2 namespaces stack
|
30
|
-
*/
|
31
|
-
--
|
32
|
-
2.42.0
|
33
|
-
|
Binary file
|