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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da609d95e9ec1de75acd8ff2b8ef217b23df9431a17c5d37d8968f90bcbd6f5b
4
- data.tar.gz: a9573dc8e6cbd63f97104651f38c9bfa06549eab4d77c602dedba2094adc320f
3
+ metadata.gz: 3ef19d0772f2a62254c22d720cd3f80d836a2c35dfc4c1a058246a728d90c8ab
4
+ data.tar.gz: 11027c7333fe1422cd7bdd010c4b628b762ea3f69ebf49261e257aca05f02a61
5
5
  SHA512:
6
- metadata.gz: ceb8cb32c790d4f3b9162bc86169373c8b7084e15e7ca9991712aed69f495e8a9e58480e94536fae3072d4b0bb9ee5e553367bb41e896087e24073e667650969
7
- data.tar.gz: '094a214ed1c7a5462a6ae2fbc73b0247496e1dd0dcc9542fd5db5cee87a5916776f1f1adb3c04af858fd8d7722cc19473dbde560f483ab3a0efcd9c881fe96ff'
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"
4
- sha256: "497360e423cf0bd99eacdb7c6215dea92e6d6e89ee940393c2bae0e77cb9b7d0"
5
- # sha-256 hash provided in https://download.gnome.org/sources/libxml2/2.12/libxml2-2.12.4.sha256sum
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"
@@ -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
  }
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Nokogiri
4
4
  # The version of Nokogiri you are using
5
- VERSION = "1.16.1"
5
+ VERSION = "1.16.3"
6
6
  end
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.1
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-02-03 00:00:00.000000000 Z
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.4.tar.xz
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