nokogiri 1.15.3 → 1.15.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of nokogiri might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c52a7557a0ff635d8635257504bf1d3f8832995dfdb8b9a91645b20ecb71c7a
4
- data.tar.gz: b217b18d1ebc0f8d6e0a91e13bafdfc024c7dea9af4978124819a06d9f6c8228
3
+ metadata.gz: f2b6f75dd2cc0925d41d9519f195ce582ee3031f33cd3f43c57219d94e307099
4
+ data.tar.gz: 52e7221f969d92a0fed43797f7d5a20de29f2a14343d409c806ff563d6a328b7
5
5
  SHA512:
6
- metadata.gz: 4658b96bc5da62317f70bd22f06e12c8cc8ff7c3bc2ae69b6f29854b77d3139874c606919d38cf122a2f58f6017d5618787c8d763bc08297cb41cbf972da05ea
7
- data.tar.gz: 4ca0853aa3c5af8b22a78166203dfe9f767cf2c972f9a402f382470e6fe3484f199277632a336991e8f55fdd584f02983823eab6bf489320d786dead06353059
6
+ metadata.gz: 6c7292970b65b5f8efc0016af4656f27a1a70649f2f27843538cbb47935ef858718eb6c018b2199b83c4cf75e902518851347e7f233acfd518c493a3e07fa08c
7
+ data.tar.gz: '091fc8854922c5fdccb6032ae4c04a90fe247e44da59aceaf9abf17a766d06df92dda6ec1de2e56d1eac2520173bad936a1bc87b29f1b7c5ff896af9f9489145'
data/dependencies.yml CHANGED
@@ -1,12 +1,13 @@
1
+
1
2
  libxml2:
2
- version: "2.11.4"
3
- sha256: "737e1d7f8ab3f139729ca13a2494fd17bf30ddb4b7a427cf336252cab57f57f7"
4
- # sha-256 hash provided in https://download.gnome.org/sources/libxml2/2.11/libxml2-2.11.4.sha256sum
3
+ version: "2.11.6"
4
+ sha256: "c90eee7506764abbe07bb616b82da452529609815aefef423d66ef080eb0c300"
5
+ # sha-256 hash provided in https://download.gnome.org/sources/libxml2/2.11/libxml2-2.11.6.sha256sum
5
6
 
6
7
  libxslt:
7
- version: "1.1.38"
8
- sha256: "1f32450425819a09acaff2ab7a5a7f8a2ec7956e505d7beeb45e843d0e1ecab1"
9
- # sha-256 hash provided in https://download.gnome.org/sources/libxslt/1.1/libxslt-1.1.38.sha256sum
8
+ version: "1.1.39"
9
+ sha256: "2a20ad621148339b0759c4d4e96719362dee64c9a096dbba625ba053846349f0"
10
+ # sha-256 hash provided in https://download.gnome.org/sources/libxslt/1.1/libxslt-1.1.39.sha256sum
10
11
 
11
12
  zlib:
12
13
  version: "1.2.13"
@@ -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
- for (child = (xmlNodePtr)node->properties; child; child = child->next) {
107
- memsize += sizeof(xmlAttr) + memsize_node(child);
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);
@@ -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, "Eng tag '%s' isn't allowed here.",
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;
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Nokogiri
4
4
  # The version of Nokogiri you are using
5
- VERSION = "1.15.3"
5
+ VERSION = "1.15.5"
6
6
  end
@@ -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
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.3
4
+ version: 1.15.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Dalessio
@@ -20,7 +20,7 @@ authors:
20
20
  autorequire:
21
21
  bindir: bin
22
22
  cert_chain: []
23
- date: 2023-07-05 00:00:00.000000000 Z
23
+ date: 2023-11-17 00:00:00.000000000 Z
24
24
  dependencies:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: mini_portile2
@@ -272,8 +272,8 @@ files:
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
274
  - patches/libxslt/0001-update-config.guess-and-config.sub-for-libxslt.patch
275
- - ports/archives/libxml2-2.11.4.tar.xz
276
- - ports/archives/libxslt-1.1.38.tar.xz
275
+ - ports/archives/libxml2-2.11.6.tar.xz
276
+ - ports/archives/libxslt-1.1.39.tar.xz
277
277
  homepage: https://nokogiri.org
278
278
  licenses:
279
279
  - MIT
@@ -301,7 +301,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
301
301
  - !ruby/object:Gem::Version
302
302
  version: '0'
303
303
  requirements: []
304
- rubygems_version: 3.4.10
304
+ rubygems_version: 3.4.19
305
305
  signing_key:
306
306
  specification_version: 4
307
307
  summary: Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby.
Binary file
Binary file