nokogiri 1.14.0-x64-mingw-ucrt → 1.14.1-x64-mingw-ucrt

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.

Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +11 -5
  3. data/ext/nokogiri/extconf.rb +2 -0
  4. data/ext/nokogiri/gumbo.c +1 -1
  5. data/ext/nokogiri/html4_document.c +1 -1
  6. data/ext/nokogiri/html4_element_description.c +1 -1
  7. data/ext/nokogiri/html4_entity_lookup.c +1 -1
  8. data/ext/nokogiri/html4_sax_parser_context.c +1 -1
  9. data/ext/nokogiri/html4_sax_push_parser.c +1 -1
  10. data/ext/nokogiri/include/libxslt/xsltconfig.h +1 -1
  11. data/ext/nokogiri/nokogiri.c +8 -3
  12. data/ext/nokogiri/test_global_handlers.c +1 -1
  13. data/ext/nokogiri/xml_attr.c +1 -1
  14. data/ext/nokogiri/xml_attribute_decl.c +1 -1
  15. data/ext/nokogiri/xml_cdata.c +1 -1
  16. data/ext/nokogiri/xml_comment.c +1 -1
  17. data/ext/nokogiri/xml_document.c +1 -1
  18. data/ext/nokogiri/xml_document_fragment.c +1 -1
  19. data/ext/nokogiri/xml_dtd.c +1 -1
  20. data/ext/nokogiri/xml_element_content.c +1 -1
  21. data/ext/nokogiri/xml_element_decl.c +1 -1
  22. data/ext/nokogiri/xml_encoding_handler.c +1 -1
  23. data/ext/nokogiri/xml_entity_decl.c +1 -1
  24. data/ext/nokogiri/xml_entity_reference.c +1 -1
  25. data/ext/nokogiri/xml_namespace.c +1 -1
  26. data/ext/nokogiri/xml_node.c +1 -1
  27. data/ext/nokogiri/xml_processing_instruction.c +1 -1
  28. data/ext/nokogiri/xml_reader.c +1 -1
  29. data/ext/nokogiri/xml_relax_ng.c +1 -1
  30. data/ext/nokogiri/xml_sax_parser.c +1 -1
  31. data/ext/nokogiri/xml_sax_parser_context.c +1 -1
  32. data/ext/nokogiri/xml_sax_push_parser.c +1 -1
  33. data/ext/nokogiri/xml_schema.c +1 -1
  34. data/ext/nokogiri/xml_syntax_error.c +1 -1
  35. data/ext/nokogiri/xml_text.c +1 -1
  36. data/ext/nokogiri/xslt_stylesheet.c +1 -1
  37. data/lib/nokogiri/3.1/nokogiri.so +0 -0
  38. data/lib/nokogiri/3.2/nokogiri.so +0 -0
  39. data/lib/nokogiri/decorators/slop.rb +1 -1
  40. data/lib/nokogiri/version/constant.rb +1 -1
  41. data/lib/nokogiri/xml/document.rb +2 -2
  42. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1427d740db88cce8b3ec63beda789a108800d7d139945d73cfaceb547397f603
4
- data.tar.gz: 1d0d83e5547bb52dcffaa64a91b9f37b635fb680962d70d8a6930bab6ab242fe
3
+ metadata.gz: e504df0c578e273298fe845c48ba87aa1274143f1df811cb6421002fcf4ef267
4
+ data.tar.gz: 40c2283cb02e3000c552681fffacac79d6d51d1c2a5f34421b05debb79898626
5
5
  SHA512:
6
- metadata.gz: e12bb17638c52d621c51d40bccebbc60826e3c2d812e92067f320ee5540ec09a3390682738ee75062a8e69fcb9bdc773226fc77cfcf0d1839793aa9983008c72
7
- data.tar.gz: 0f655f6e9a1ff6e9426fc91bfa5969d9aebc33ed78ccb819e1b5e555f5ba4d333b5ed88a599a8f32309900c4de6bea2719465e1b7e61364f2153d17a3a7a0f73
6
+ metadata.gz: 267c609001ddc6cd840053c96b0b6ba85b100efa65712db322656638b6da2b99944c237e35fe9e42294428c0e46986084d9f00cf7ad8e3709e5306c44c57dfc2
7
+ data.tar.gz: 3c84f2bf8678684c6e3a7f272db6d0f88694fd025e92c49c5eef7dc761b82473305e906bd712f123fbb7f1f96c1c9f6a9ed7738b5555b2be6e0fc4f436772bfa
data/Gemfile CHANGED
@@ -15,8 +15,6 @@ group :development do
15
15
 
16
16
  # documentation
17
17
  gem "hoe-markdown", "= 1.4.0"
18
- gem "rdoc", "6.5.0"
19
- gem "psych", "~> 5.0" # psych 5 isn't building in places yet https://github.com/ruby/setup-ruby/issues/409
20
18
 
21
19
  # parser generator
22
20
  gem "rexical", "= 1.0.7"
@@ -26,13 +24,21 @@ group :development do
26
24
  gem "minitest-reporters", "= 1.5.0"
27
25
  gem "ruby_memcheck", "1.2.0" unless RUBY_PLATFORM == "java"
28
26
  gem "simplecov", "= 0.21.2"
27
+ gem "rubyzip", "~> 2.3.2"
29
28
 
30
29
  # rubocop
31
30
  if Gem::Requirement.new("~> 3.0").satisfied_by?(Gem::Version.new(RUBY_VERSION))
32
- gem "rubocop", "1.41.1"
33
- gem "rubocop-minitest", "0.25.1"
31
+ gem "rubocop", "1.44.1"
32
+ gem "rubocop-minitest", "0.27.0"
34
33
  gem "rubocop-performance", "1.15.2"
35
34
  gem "rubocop-rake", "= 0.6.0"
36
- gem "rubocop-shopify", "= 2.9.0"
35
+ gem "rubocop-shopify", "2.10.1"
37
36
  end
38
37
  end
38
+
39
+ # If Psych doesn't build, you can disable this group locally by running
40
+ # `bundle config set --local without rdoc`
41
+ # Then re-run `bundle install`.
42
+ group :rdoc do
43
+ gem "rdoc", "6.5.0"
44
+ end
@@ -1080,3 +1080,5 @@ if config_clean?
1080
1080
  EOF
1081
1081
  end
1082
1082
  end
1083
+
1084
+ # rubocop:enable Style/GlobalVars
data/ext/nokogiri/gumbo.c CHANGED
@@ -576,7 +576,7 @@ fragment_continue(VALUE parse_args)
576
576
 
577
577
  // Initialize the Nokogumbo class and fetch constants we will use later.
578
578
  void
579
- noko_init_gumbo()
579
+ noko_init_gumbo(void)
580
580
  {
581
581
  // Class constants.
582
582
  cNokogiriHtml5Document = rb_define_class_under(mNokogiriHtml5, "Document", cNokogiriHtml4Document);
@@ -150,7 +150,7 @@ rb_html_document_type(VALUE self)
150
150
  }
151
151
 
152
152
  void
153
- noko_init_html_document()
153
+ noko_init_html_document(void)
154
154
  {
155
155
  assert(cNokogiriXmlDocument);
156
156
  cNokogiriHtml4Document = rb_define_class_under(mNokogiriHtml4, "Document", cNokogiriXmlDocument);
@@ -270,7 +270,7 @@ get_description(VALUE klass, VALUE tag_name)
270
270
  }
271
271
 
272
272
  void
273
- noko_init_html_element_description()
273
+ noko_init_html_element_description(void)
274
274
  {
275
275
  cNokogiriHtml4ElementDescription = rb_define_class_under(mNokogiriHtml4, "ElementDescription", rb_cObject);
276
276
 
@@ -29,7 +29,7 @@ get(VALUE _, VALUE rb_entity_name)
29
29
  }
30
30
 
31
31
  void
32
- noko_init_html_entity_lookup()
32
+ noko_init_html_entity_lookup(void)
33
33
  {
34
34
  cNokogiriHtml4EntityLookup = rb_define_class_under(mNokogiriHtml4, "EntityLookup", rb_cObject);
35
35
 
@@ -101,7 +101,7 @@ parse_with(VALUE self, VALUE sax_handler)
101
101
  }
102
102
 
103
103
  void
104
- noko_init_html_sax_parser_context()
104
+ noko_init_html_sax_parser_context(void)
105
105
  {
106
106
  assert(cNokogiriXmlSaxParserContext);
107
107
  cNokogiriHtml4SaxParserContext = rb_define_class_under(mNokogiriHtml4Sax, "ParserContext",
@@ -85,7 +85,7 @@ initialize_native(VALUE self, VALUE _xml_sax, VALUE _filename,
85
85
  }
86
86
 
87
87
  void
88
- noko_init_html_sax_push_parser()
88
+ noko_init_html_sax_push_parser(void)
89
89
  {
90
90
  assert(cNokogiriXmlSaxPushParser);
91
91
  cNokogiriHtml4SaxPushParser = rb_define_class_under(mNokogiriHtml4Sax, "PushParser", cNokogiriXmlSaxPushParser);
@@ -132,7 +132,7 @@ extern "C" {
132
132
  #ifndef WITH_MODULES
133
133
  #define WITH_MODULES
134
134
  #endif
135
- #define LIBXSLT_DEFAULT_PLUGINS_PATH() "/home/flavorjones/code/oss/nokogiri/ports/x86-mingw32/libxslt/1.1.37/lib/libxslt-plugins"
135
+ #define LIBXSLT_DEFAULT_PLUGINS_PATH() "/home/flavorjones/code/oss/nokogiri/ports/x64-mingw-ucrt/libxslt/1.1.37/lib/libxslt-plugins"
136
136
  #endif
137
137
 
138
138
  /**
@@ -112,8 +112,13 @@ noko_io_write(void *io, char *c_buffer, int c_buffer_len)
112
112
  {
113
113
  VALUE rb_args[2], rb_n_bytes_written;
114
114
  VALUE rb_io = (VALUE)io;
115
- VALUE rb_enc = rb_funcall(rb_io, id_external_encoding, 0);
116
- rb_encoding *io_encoding = RB_NIL_P(rb_enc) ? rb_ascii8bit_encoding() : rb_to_encoding(rb_enc);
115
+ VALUE rb_enc = Qnil;
116
+ rb_encoding *io_encoding;
117
+
118
+ if (rb_respond_to(rb_io, id_external_encoding)) {
119
+ rb_enc = rb_funcall(rb_io, id_external_encoding, 0);
120
+ }
121
+ io_encoding = RB_NIL_P(rb_enc) ? rb_ascii8bit_encoding() : rb_to_encoding(rb_enc);
117
122
 
118
123
  rb_args[0] = rb_io;
119
124
  rb_args[1] = rb_enc_str_new(c_buffer, (long)c_buffer_len, io_encoding);
@@ -133,7 +138,7 @@ noko_io_close(void *io)
133
138
 
134
139
 
135
140
  void
136
- Init_nokogiri()
141
+ Init_nokogiri(void)
137
142
  {
138
143
  mNokogiri = rb_define_module("Nokogiri");
139
144
  mNokogiriGumbo = rb_define_module_under(mNokogiri, "Gumbo");
@@ -32,7 +32,7 @@ rb_foreign_error_handler(VALUE klass)
32
32
  * Do NOT use this outside of the Nokogiri test suite.
33
33
  */
34
34
  void
35
- noko_init_test_global_handlers()
35
+ noko_init_test_global_handlers(void)
36
36
  {
37
37
  VALUE mNokogiriTest = rb_define_module_under(mNokogiri, "Test");
38
38
 
@@ -89,7 +89,7 @@ new (int argc, VALUE *argv, VALUE klass)
89
89
  }
90
90
 
91
91
  void
92
- noko_init_xml_attr()
92
+ noko_init_xml_attr(void)
93
93
  {
94
94
  assert(cNokogiriXmlNode);
95
95
  /*
@@ -59,7 +59,7 @@ enumeration(VALUE self)
59
59
  }
60
60
 
61
61
  void
62
- noko_init_xml_attribute_decl()
62
+ noko_init_xml_attribute_decl(void)
63
63
  {
64
64
  assert(cNokogiriXmlNode);
65
65
  cNokogiriXmlAttributeDecl = rb_define_class_under(mNokogiriXml, "AttributeDecl", cNokogiriXmlNode);
@@ -45,7 +45,7 @@ new (int argc, VALUE *argv, VALUE klass)
45
45
  }
46
46
 
47
47
  void
48
- noko_init_xml_cdata()
48
+ noko_init_xml_cdata(void)
49
49
  {
50
50
  assert(cNokogiriXmlText);
51
51
  /*
@@ -48,7 +48,7 @@ new (int argc, VALUE *argv, VALUE klass)
48
48
  }
49
49
 
50
50
  void
51
- noko_init_xml_comment()
51
+ noko_init_xml_comment(void)
52
52
  {
53
53
  assert(cNokogiriXmlCharacterData);
54
54
  /*
@@ -664,7 +664,7 @@ noko_xml_document_pin_namespace(xmlNsPtr ns, xmlDocPtr doc)
664
664
 
665
665
 
666
666
  void
667
- noko_init_xml_document()
667
+ noko_init_xml_document(void)
668
668
  {
669
669
  assert(cNokogiriXmlNode);
670
670
  /*
@@ -32,7 +32,7 @@ new (int argc, VALUE *argv, VALUE klass)
32
32
  }
33
33
 
34
34
  void
35
- noko_init_xml_document_fragment()
35
+ noko_init_xml_document_fragment(void)
36
36
  {
37
37
  assert(cNokogiriXmlNode);
38
38
  /*
@@ -190,7 +190,7 @@ external_id(VALUE self)
190
190
  }
191
191
 
192
192
  void
193
- noko_init_xml_dtd()
193
+ noko_init_xml_dtd(void)
194
194
  {
195
195
  assert(cNokogiriXmlNode);
196
196
  /*
@@ -112,7 +112,7 @@ noko_xml_element_content_wrap(VALUE doc, xmlElementContentPtr element)
112
112
  }
113
113
 
114
114
  void
115
- noko_init_xml_element_content()
115
+ noko_init_xml_element_content(void)
116
116
  {
117
117
  cNokogiriXmlElementContent = rb_define_class_under(mNokogiriXml, "ElementContent", rb_cObject);
118
118
 
@@ -56,7 +56,7 @@ prefix(VALUE self)
56
56
  }
57
57
 
58
58
  void
59
- noko_init_xml_element_decl()
59
+ noko_init_xml_element_decl(void)
60
60
  {
61
61
  assert(cNokogiriXmlNode);
62
62
  cNokogiriXmlElementDecl = rb_define_class_under(mNokogiriXml, "ElementDecl", cNokogiriXmlNode);
@@ -89,7 +89,7 @@ rb_xml_encoding_handler_name(VALUE self)
89
89
 
90
90
 
91
91
  void
92
- noko_init_xml_encoding_handler()
92
+ noko_init_xml_encoding_handler(void)
93
93
  {
94
94
  cNokogiriEncodingHandler = rb_define_class_under(mNokogiri, "EncodingHandler", rb_cObject);
95
95
 
@@ -86,7 +86,7 @@ system_id(VALUE self)
86
86
  }
87
87
 
88
88
  void
89
- noko_init_xml_entity_decl()
89
+ noko_init_xml_entity_decl(void)
90
90
  {
91
91
  assert(cNokogiriXmlNode);
92
92
  cNokogiriXmlEntityDecl = rb_define_class_under(mNokogiriXml, "EntityDecl", cNokogiriXmlNode);
@@ -38,7 +38,7 @@ new (int argc, VALUE *argv, VALUE klass)
38
38
  }
39
39
 
40
40
  void
41
- noko_init_xml_entity_reference()
41
+ noko_init_xml_entity_reference(void)
42
42
  {
43
43
  assert(cNokogiriXmlNode);
44
44
  /*
@@ -175,7 +175,7 @@ noko_xml_namespace_wrap_xpath_copy(xmlNsPtr c_namespace)
175
175
  }
176
176
 
177
177
  void
178
- noko_init_xml_namespace()
178
+ noko_init_xml_namespace(void)
179
179
  {
180
180
  cNokogiriXmlNamespace = rb_define_class_under(mNokogiriXml, "Namespace", rb_cObject);
181
181
 
@@ -2357,7 +2357,7 @@ noko_xml_node_attrs(xmlNodePtr c_node)
2357
2357
  }
2358
2358
 
2359
2359
  void
2360
- noko_init_xml_node()
2360
+ noko_init_xml_node(void)
2361
2361
  {
2362
2362
  cNokogiriXmlNode = rb_define_class_under(mNokogiriXml, "Node", rb_cObject);
2363
2363
 
@@ -41,7 +41,7 @@ new (int argc, VALUE *argv, VALUE klass)
41
41
  }
42
42
 
43
43
  void
44
- noko_init_xml_processing_instruction()
44
+ noko_init_xml_processing_instruction(void)
45
45
  {
46
46
  assert(cNokogiriXmlNode);
47
47
  /*
@@ -752,7 +752,7 @@ rb_xml_reader_encoding(VALUE rb_reader)
752
752
  }
753
753
 
754
754
  void
755
- noko_init_xml_reader()
755
+ noko_init_xml_reader(void)
756
756
  {
757
757
  /*
758
758
  * The Reader parser allows you to effectively pull parse an XML document.
@@ -171,7 +171,7 @@ from_document(int argc, VALUE *argv, VALUE klass)
171
171
  }
172
172
 
173
173
  void
174
- noko_init_xml_relax_ng()
174
+ noko_init_xml_relax_ng(void)
175
175
  {
176
176
  assert(cNokogiriXmlSchema);
177
177
  cNokogiriXmlRelaxNG = rb_define_class_under(mNokogiriXml, "RelaxNG", cNokogiriXmlSchema);
@@ -294,7 +294,7 @@ allocate(VALUE klass)
294
294
  }
295
295
 
296
296
  void
297
- noko_init_xml_sax_parser()
297
+ noko_init_xml_sax_parser(void)
298
298
  {
299
299
  cNokogiriXmlSaxParser = rb_define_class_under(mNokogiriXmlSax, "Parser", rb_cObject);
300
300
 
@@ -261,7 +261,7 @@ get_recovery(VALUE self)
261
261
  }
262
262
 
263
263
  void
264
- noko_init_xml_sax_parser_context()
264
+ noko_init_xml_sax_parser_context(void)
265
265
  {
266
266
  cNokogiriXmlSaxParserContext = rb_define_class_under(mNokogiriXmlSax, "ParserContext", rb_cObject);
267
267
 
@@ -150,7 +150,7 @@ set_replace_entities(VALUE self, VALUE value)
150
150
  }
151
151
 
152
152
  void
153
- noko_init_xml_sax_push_parser()
153
+ noko_init_xml_sax_push_parser(void)
154
154
  {
155
155
  cNokogiriXmlSaxPushParser = rb_define_class_under(mNokogiriXmlSax, "PushParser", rb_cObject);
156
156
 
@@ -268,7 +268,7 @@ from_document(int argc, VALUE *argv, VALUE klass)
268
268
  }
269
269
 
270
270
  void
271
- noko_init_xml_schema()
271
+ noko_init_xml_schema(void)
272
272
  {
273
273
  cNokogiriXmlSchema = rb_define_class_under(mNokogiriXml, "Schema", rb_cObject);
274
274
 
@@ -75,7 +75,7 @@ Nokogiri_wrap_xml_syntax_error(xmlErrorPtr error)
75
75
  }
76
76
 
77
77
  void
78
- noko_init_xml_syntax_error()
78
+ noko_init_xml_syntax_error(void)
79
79
  {
80
80
  assert(cNokogiriSyntaxError);
81
81
  /*
@@ -36,7 +36,7 @@ new (int argc, VALUE *argv, VALUE klass)
36
36
  }
37
37
 
38
38
  void
39
- noko_init_xml_text()
39
+ noko_init_xml_text(void)
40
40
  {
41
41
  assert(cNokogiriXmlCharacterData);
42
42
  /*
@@ -348,7 +348,7 @@ registr(VALUE self, VALUE uri, VALUE obj)
348
348
  }
349
349
 
350
350
  void
351
- noko_init_xslt_stylesheet()
351
+ noko_init_xslt_stylesheet(void)
352
352
  {
353
353
  rb_define_singleton_method(mNokogiriXslt, "register", registr, 2);
354
354
  rb_iv_set(mNokogiriXslt, "@modules", rb_hash_new());
Binary file
Binary file
@@ -25,7 +25,7 @@ module Nokogiri
25
25
  else
26
26
  CSS::Parser.without_cache do
27
27
  list = xpath(
28
- *CSS.xpath_for("#{name}#{args.first}", prefix: XPATH_PREFIX)
28
+ *CSS.xpath_for("#{name}#{args.first}", prefix: XPATH_PREFIX),
29
29
  )
30
30
  end
31
31
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Nokogiri
4
4
  # The version of Nokogiri you are using
5
- VERSION = "1.14.0"
5
+ VERSION = "1.14.1"
6
6
  end
@@ -174,8 +174,8 @@ module Nokogiri
174
174
  # Since v1.12.4
175
175
  attr_accessor :namespace_inheritance
176
176
 
177
- # rubocop:disable Lint/MissingSuper
178
- def initialize(*args) # :nodoc:
177
+ # :nodoc:
178
+ def initialize(*args) # rubocop:disable Lint/MissingSuper
179
179
  @errors = []
180
180
  @decorators = nil
181
181
  @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.14.0
4
+ version: 1.14.1
5
5
  platform: x64-mingw-ucrt
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-01-12 00:00:00.000000000 Z
23
+ date: 2023-01-30 00:00:00.000000000 Z
24
24
  dependencies:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: racc