nokogiri 1.12.0.rc1-x64-mingw32 → 1.12.0-x64-mingw32

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: 29b2fc2ab796504a17533779e9ba8a40ffe6854231ffb41b3b9610bcb86db641
4
- data.tar.gz: 8c11fda7922974f884c84df31faf14f1233796b917da5b1f321c4df11db33817
3
+ metadata.gz: b0363736da878c05e535034fcfe28b3888e7a7bb5c0d59fac277ed75b27a138f
4
+ data.tar.gz: 70ba1b79db937ab1cc58d931259e628f00b3447315354c9ea61c911321ad1c95
5
5
  SHA512:
6
- metadata.gz: 2220da25a74cf7a6ca086120e4b9b3eea1cfc2ad3de996185d32cb15b0843bf14a2b46edd323fc3f7ec982a0cc49fc7a497331082fa94fddd0ca56299648eae7
7
- data.tar.gz: ff02a7ab3dcd2683b54f7bed672f12bb67888fb7c61757d2a02d0785f9ff54c9071df882c7c42810edf1b11bf1cf0b55f98462c95e10f54ad698021cb1cca26f
6
+ metadata.gz: 904eb39d86e9d25a9134ac81ca341c09a87d391a50ce2f26f2c7916457c0eb6fcda5c9fb39de62cdc0ee1e1f08666d52e7f72d1b341ea37c1198d0c3a0145454
7
+ data.tar.gz: 783e3f78b9de0f697f21254bc9d8d4c7b2abcdac27d8b467df3dd0e81cae82689f52349dfba74a7d92a26ce7d75dcf186784a74a8d3f6a689f9d5414dd3ae33d
data/ext/nokogiri/gumbo.c CHANGED
@@ -300,35 +300,10 @@ typedef struct {
300
300
  xmlDocPtr doc;
301
301
  } ParseArgs;
302
302
 
303
- static void
304
- parse_args_mark(void *parse_args)
305
- {
306
- ParseArgs *args = parse_args;
307
- rb_gc_mark_maybe(args->input);
308
- rb_gc_mark_maybe(args->url_or_frag);
309
- }
310
-
311
- // Wrap a ParseArgs pointer. The underlying ParseArgs must outlive the
312
- // wrapper.
313
- static VALUE
314
- wrap_parse_args(ParseArgs *args)
315
- {
316
- return Data_Wrap_Struct(rb_cObject, parse_args_mark, RUBY_NEVER_FREE, args);
317
- }
318
-
319
- // Returnsd the underlying ParseArgs wrapped by wrap_parse_args.
320
- static ParseArgs *
321
- unwrap_parse_args(VALUE obj)
322
- {
323
- ParseArgs *args;
324
- Data_Get_Struct(obj, ParseArgs, args);
325
- return args;
326
- }
327
-
328
303
  static VALUE
329
304
  parse_cleanup(VALUE parse_args)
330
305
  {
331
- ParseArgs *args = unwrap_parse_args(parse_args);
306
+ ParseArgs *args = (ParseArgs*)parse_args;
332
307
  gumbo_destroy_output(args->output);
333
308
  // Make sure garbage collection doesn't mark the objects as being live based
334
309
  // on references from the ParseArgs. This may be unnecessary.
@@ -360,15 +335,14 @@ parse(VALUE self, VALUE input, VALUE url, VALUE max_attributes, VALUE max_errors
360
335
  .url_or_frag = url,
361
336
  .doc = NULL,
362
337
  };
363
- VALUE parse_args = wrap_parse_args(&args);
364
338
 
365
- return rb_ensure(parse_continue, parse_args, parse_cleanup, parse_args);
339
+ return rb_ensure(parse_continue, (VALUE)(&args), parse_cleanup, (VALUE)(&args));
366
340
  }
367
341
 
368
342
  static VALUE
369
343
  parse_continue(VALUE parse_args)
370
344
  {
371
- ParseArgs *args = unwrap_parse_args(parse_args);
345
+ ParseArgs *args = (ParseArgs*)parse_args;
372
346
  GumboOutput *output = args->output;
373
347
  xmlDocPtr doc;
374
348
  if (output->document->v.document.has_doctype) {
@@ -571,15 +545,14 @@ error:
571
545
  .url_or_frag = doc_fragment,
572
546
  .doc = (xmlDocPtr)extract_xml_node(doc),
573
547
  };
574
- VALUE parse_args = wrap_parse_args(&args);
575
- rb_ensure(fragment_continue, parse_args, parse_cleanup, parse_args);
548
+ rb_ensure(fragment_continue, (VALUE)(&args), parse_cleanup, (VALUE)(&args));
576
549
  return Qnil;
577
550
  }
578
551
 
579
552
  static VALUE
580
553
  fragment_continue(VALUE parse_args)
581
554
  {
582
- ParseArgs *args = unwrap_parse_args(parse_args);
555
+ ParseArgs *args = (ParseArgs*)parse_args;
583
556
  GumboOutput *output = args->output;
584
557
  VALUE doc_fragment = args->url_or_frag;
585
558
  xmlDocPtr xml_doc = args->doc;
Binary file
Binary file
Binary file
Binary file
@@ -53,9 +53,9 @@ module Nokogiri
53
53
  #
54
54
  # === Error reporting
55
55
  #
56
- # Nokogumbo contains an experimental parse error reporting facility. By default, no parse errors
57
- # are reported but this can be configured by passing the +:max_errors+ option to {HTML5.parse} or
58
- # {HTML5.fragment}.
56
+ # Nokogiri contains an experimental HTML5 parse error reporting facility. By default, no parse
57
+ # errors are reported but this can be configured by passing the +:max_errors+ option to
58
+ # {HTML5.parse} or {HTML5.fragment}.
59
59
  #
60
60
  # For example, this script:
61
61
  #
@@ -88,7 +88,7 @@ module Nokogiri
88
88
  # parsing HTML. The parse errors in the "tree construction" stage do not have standardized error
89
89
  # codes (yet).
90
90
  #
91
- # As a convenience to Nokogumbo users, the defined error codes are available via
91
+ # As a convenience to Nokogiri users, the defined error codes are available via
92
92
  # {Nokogiri::XML::SyntaxError#str1} method.
93
93
  #
94
94
  # doc = Nokogiri::HTML5.parse('<span/>Hi there!</span foo=bar />', max_errors: 10)
@@ -104,7 +104,7 @@ module Nokogiri
104
104
  # stage and doesn't have a standardized error code.
105
105
  #
106
106
  # For the purposes of semantic versioning, the error messages, error locations, and error codes
107
- # are not part of Nokogumbo's public API. That is, these are subject to change without Nokogumbo's
107
+ # are not part of Nokogiri's public API. That is, these are subject to change without Nokogiri's
108
108
  # major version number changing. These may be stabilized in the future.
109
109
  #
110
110
  # === Maximum tree depth
@@ -113,8 +113,8 @@ module Nokogiri
113
113
  # +:max_tree_depth+ option. If the depth of the tree would exceed this limit, then an
114
114
  # {::ArgumentError} is thrown.
115
115
  #
116
- # This limit (which defaults to <tt>Nokogumbo::DEFAULT_MAX_TREE_DEPTH = 400</tt>) can be removed
117
- # by giving the option <tt>max_tree_depth: -1</tt>.
116
+ # This limit (which defaults to <tt>Nokogiri::Gumbo::DEFAULT_MAX_TREE_DEPTH = 400</tt>) can be
117
+ # removed by giving the option <tt>max_tree_depth: -1</tt>.
118
118
  #
119
119
  # html = '<!DOCTYPE html>' + '<div>' * 1000
120
120
  # doc = Nokogiri.HTML5(html)
@@ -126,8 +126,8 @@ module Nokogiri
126
126
  # The maximum number of attributes per DOM element is configurable by the +:max_attributes+
127
127
  # option. If a given element would exceed this limit, then an {::ArgumentError} is thrown.
128
128
  #
129
- # This limit (which defaults to <tt>Nokogumbo::DEFAULT_MAX_ATTRIBUTES = 400</tt>) can be removed
130
- # by giving the option <tt>max_attributes: -1</tt>.
129
+ # This limit (which defaults to <tt>Nokogiri::Gumbo::DEFAULT_MAX_ATTRIBUTES = 400</tt>) can be
130
+ # removed by giving the option <tt>max_attributes: -1</tt>.
131
131
  #
132
132
  # html = '<!DOCTYPE html><div ' + (1..1000).map { |x| "attr-#{x}" }.join(' ') + '>'
133
133
  # # "<!DOCTYPE html><div attr-1 attr-2 attr-3 ... attr-1000>"
@@ -182,7 +182,7 @@ module Nokogiri
182
182
  #
183
183
  # == Encodings
184
184
  #
185
- # Nokogumbo always parses HTML using {https://en.wikipedia.org/wiki/UTF-8 UTF-8}; however, the
185
+ # Nokogiri always parses HTML5 using {https://en.wikipedia.org/wiki/UTF-8 UTF-8}; however, the
186
186
  # encoding of the input can be explicitly selected via the optional +encoding+ parameter. This is
187
187
  # most useful when the input comes not from a string but from an IO object.
188
188
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module Nokogiri
3
3
  # The version of Nokogiri you are using
4
- VERSION = "1.12.0.rc1"
4
+ VERSION = "1.12.0"
5
5
  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.12.0.rc1
4
+ version: 1.12.0
5
5
  platform: x64-mingw32
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: 2021-07-09 00:00:00.000000000 Z
23
+ date: 2021-08-02 00:00:00.000000000 Z
24
24
  dependencies:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: racc
@@ -456,9 +456,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
456
456
  version: 3.1.dev
457
457
  required_rubygems_version: !ruby/object:Gem::Requirement
458
458
  requirements:
459
- - - ">"
459
+ - - ">="
460
460
  - !ruby/object:Gem::Version
461
- version: 1.3.1
461
+ version: '0'
462
462
  requirements: []
463
463
  rubygems_version: 3.2.3
464
464
  signing_key: