nokogiri 1.15.3 → 1.15.7
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.
Potentially problematic release.
This version of nokogiri might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/dependencies.yml +6 -6
- data/ext/nokogiri/xml_document.c +6 -2
- data/ext/nokogiri/xml_node.c +7 -1
- data/gumbo-parser/src/error.c +1 -1
- data/lib/nokogiri/version/constant.rb +1 -1
- data/lib/nokogiri/xml/document.rb +1 -2
- data/ports/archives/libxml2-2.11.7.tar.xz +0 -0
- data/ports/archives/libxslt-1.1.39.tar.xz +0 -0
- metadata +8 -10
- data/ports/archives/libxml2-2.11.4.tar.xz +0 -0
- data/ports/archives/libxslt-1.1.38.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: a72ad4b4ad23ae883ca2943d3be69958299a4e02500452efe4717a096dadaf20
|
4
|
+
data.tar.gz: 7243d71ca052e429837cee6f7c5f36fb056815e287aa74c17292443f7ddafc33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d322d5eb360f309c4711fdb2c60ebfd9430f8fd8959f9c9dbab15847df0d27ca53ef17890dedebc2afcdfedd1482152879260b7e84ccb8dd019952619b237449
|
7
|
+
data.tar.gz: e9d279e044ab827172901f8147c1751eed9a6e3ecd51088613802e1523bf68ede46a2b06b516258f6d989139268ee098b5b2446dba0d9bf71d7ee2ab24224df9
|
data/dependencies.yml
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
libxml2:
|
2
|
-
version: "2.11.
|
3
|
-
sha256: "
|
4
|
-
# sha-256 hash provided in https://download.gnome.org/sources/libxml2/2.11/libxml2-2.11.
|
2
|
+
version: "2.11.7"
|
3
|
+
sha256: "fb27720e25eaf457f94fd3d7189bcf2626c6dccf4201553bc8874d50e3560162"
|
4
|
+
# sha-256 hash provided in https://download.gnome.org/sources/libxml2/2.11/libxml2-2.11.7.sha256sum
|
5
5
|
|
6
6
|
libxslt:
|
7
|
-
version: "1.1.
|
8
|
-
sha256: "
|
9
|
-
# sha-256 hash provided in https://download.gnome.org/sources/libxslt/1.1/libxslt-1.1.
|
7
|
+
version: "1.1.39"
|
8
|
+
sha256: "2a20ad621148339b0759c4d4e96719362dee64c9a096dbba625ba053846349f0"
|
9
|
+
# sha-256 hash provided in https://download.gnome.org/sources/libxslt/1.1/libxslt-1.1.39.sha256sum
|
10
10
|
|
11
11
|
zlib:
|
12
12
|
version: "1.2.13"
|
data/ext/nokogiri/xml_document.c
CHANGED
@@ -100,11 +100,15 @@ memsize_node(const xmlNodePtr node)
|
|
100
100
|
{
|
101
101
|
/* note we don't count namespace definitions, just going for a good-enough number here */
|
102
102
|
xmlNodePtr child;
|
103
|
+
xmlAttrPtr property;
|
103
104
|
size_t memsize = 0;
|
104
105
|
|
105
106
|
memsize += xmlStrlen(node->name);
|
106
|
-
|
107
|
-
|
107
|
+
|
108
|
+
if (node->type == XML_ELEMENT_NODE) {
|
109
|
+
for (property = node->properties; property; property = property->next) {
|
110
|
+
memsize += sizeof(xmlAttr) + memsize_node((xmlNodePtr)property);
|
111
|
+
}
|
108
112
|
}
|
109
113
|
if (node->type == XML_TEXT_NODE) {
|
110
114
|
memsize += xmlStrlen(node->content);
|
data/ext/nokogiri/xml_node.c
CHANGED
@@ -1853,13 +1853,19 @@ is_one_of(xmlNodePtr node, char const *const *tagnames, size_t num_tagnames)
|
|
1853
1853
|
if (name == NULL) { // fragments don't have a name
|
1854
1854
|
return false;
|
1855
1855
|
}
|
1856
|
+
|
1857
|
+
if (node->ns != NULL) {
|
1858
|
+
// if the node has a namespace, it's in a foreign context and is not one of the HTML tags we're
|
1859
|
+
// matching against.
|
1860
|
+
return false;
|
1861
|
+
}
|
1862
|
+
|
1856
1863
|
for (size_t idx = 0; idx < num_tagnames; ++idx) {
|
1857
1864
|
if (!strcmp(name, tagnames[idx])) {
|
1858
1865
|
return true;
|
1859
1866
|
}
|
1860
1867
|
}
|
1861
1868
|
return false;
|
1862
|
-
|
1863
1869
|
}
|
1864
1870
|
|
1865
1871
|
static void
|
data/gumbo-parser/src/error.c
CHANGED
@@ -357,7 +357,7 @@ static void handle_parser_error (
|
|
357
357
|
print_tag_stack(error, output);
|
358
358
|
return;
|
359
359
|
case GUMBO_TOKEN_END_TAG:
|
360
|
-
print_message(output, "
|
360
|
+
print_message(output, "End tag '%s' isn't allowed here.",
|
361
361
|
gumbo_normalized_tagname(error->input_tag));
|
362
362
|
print_tag_stack(error, output);
|
363
363
|
return;
|
@@ -174,8 +174,7 @@ module Nokogiri
|
|
174
174
|
# Since v1.12.4
|
175
175
|
attr_accessor :namespace_inheritance
|
176
176
|
|
177
|
-
# :nodoc:
|
178
|
-
def initialize(*args) # rubocop:disable Lint/MissingSuper
|
177
|
+
def initialize(*args) # :nodoc: # rubocop:disable Lint/MissingSuper
|
179
178
|
@errors = []
|
180
179
|
@decorators = nil
|
181
180
|
@namespace_inheritance = false
|
Binary file
|
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.15.
|
4
|
+
version: 1.15.7
|
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:
|
23
|
+
date: 2024-12-02 00:00:00.000000000 Z
|
24
24
|
dependencies:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: mini_portile2
|
@@ -36,7 +36,6 @@ dependencies:
|
|
36
36
|
- - "~>"
|
37
37
|
- !ruby/object:Gem::Version
|
38
38
|
version: 2.8.2
|
39
|
-
force_ruby_platform: false
|
40
39
|
- !ruby/object:Gem::Dependency
|
41
40
|
name: racc
|
42
41
|
requirement: !ruby/object:Gem::Requirement
|
@@ -51,7 +50,6 @@ dependencies:
|
|
51
50
|
- - "~>"
|
52
51
|
- !ruby/object:Gem::Version
|
53
52
|
version: '1.4'
|
54
|
-
force_ruby_platform: false
|
55
53
|
description: |
|
56
54
|
Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby. It provides a
|
57
55
|
sensible, easy-to-understand API for reading, writing, modifying, and querying documents. It is
|
@@ -272,8 +270,8 @@ files:
|
|
272
270
|
- patches/libxml2/0010-update-config.guess-and-config.sub-for-libxml2.patch
|
273
271
|
- patches/libxml2/0011-rip-out-libxml2-s-libc_single_threaded-support.patch
|
274
272
|
- patches/libxslt/0001-update-config.guess-and-config.sub-for-libxslt.patch
|
275
|
-
- ports/archives/libxml2-2.11.
|
276
|
-
- ports/archives/libxslt-1.1.
|
273
|
+
- ports/archives/libxml2-2.11.7.tar.xz
|
274
|
+
- ports/archives/libxslt-1.1.39.tar.xz
|
277
275
|
homepage: https://nokogiri.org
|
278
276
|
licenses:
|
279
277
|
- MIT
|
@@ -284,7 +282,7 @@ metadata:
|
|
284
282
|
changelog_uri: https://nokogiri.org/CHANGELOG.html
|
285
283
|
source_code_uri: https://github.com/sparklemotion/nokogiri
|
286
284
|
rubygems_mfa_required: 'true'
|
287
|
-
post_install_message:
|
285
|
+
post_install_message:
|
288
286
|
rdoc_options:
|
289
287
|
- "--main"
|
290
288
|
- README.md
|
@@ -301,8 +299,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
301
299
|
- !ruby/object:Gem::Version
|
302
300
|
version: '0'
|
303
301
|
requirements: []
|
304
|
-
rubygems_version: 3.
|
305
|
-
signing_key:
|
302
|
+
rubygems_version: 3.5.22
|
303
|
+
signing_key:
|
306
304
|
specification_version: 4
|
307
305
|
summary: Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby.
|
308
306
|
test_files: []
|
Binary file
|
Binary file
|