nokogiri 1.14.0.rc1-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 (46) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +14 -8
  3. data/LICENSE.md +1 -1
  4. data/ext/nokogiri/extconf.rb +3 -1
  5. data/ext/nokogiri/gumbo.c +1 -1
  6. data/ext/nokogiri/html4_document.c +1 -1
  7. data/ext/nokogiri/html4_element_description.c +1 -1
  8. data/ext/nokogiri/html4_entity_lookup.c +1 -1
  9. data/ext/nokogiri/html4_sax_parser_context.c +1 -1
  10. data/ext/nokogiri/html4_sax_push_parser.c +1 -1
  11. data/ext/nokogiri/nokogiri.c +8 -2
  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/css/xpath_visitor.rb +2 -2
  40. data/lib/nokogiri/decorators/slop.rb +1 -1
  41. data/lib/nokogiri/version/constant.rb +1 -1
  42. data/lib/nokogiri/xml/document.rb +2 -2
  43. data/lib/nokogiri/xml/node/save_options.rb +2 -2
  44. data/lib/nokogiri/xml/parse_options.rb +2 -2
  45. data/lib/xsd/xmlparser/nokogiri.rb +3 -1
  46. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c610b55a0a8d729fe2c0dda10a4fd40fc561958eba21bd23f8dd18a5d50eaf4
4
- data.tar.gz: 40ee250ca49c5be558fc3797186626d226de4ab7f0337ef291d7c1a242d00948
3
+ metadata.gz: e504df0c578e273298fe845c48ba87aa1274143f1df811cb6421002fcf4ef267
4
+ data.tar.gz: 40c2283cb02e3000c552681fffacac79d6d51d1c2a5f34421b05debb79898626
5
5
  SHA512:
6
- metadata.gz: 5a533b6b58c83269fc7c5aa82dd58e6b50a54316e3ab12795355f42f07aad6f426c67441f3205b00771b7ecb250a2b8fd7860a8146a423ad12a0fa2bf1d30ff3
7
- data.tar.gz: 6bdc1f1ce21f73da422a80558dac879186f827366fb785958e860451c71d5e57b89519309c26b63049f8eb88610596a79ab871166c4edcecb58c7aab37346dd7
6
+ metadata.gz: 267c609001ddc6cd840053c96b0b6ba85b100efa65712db322656638b6da2b99944c237e35fe9e42294428c0e46986084d9f00cf7ad8e3709e5306c44c57dfc2
7
+ data.tar.gz: 3c84f2bf8678684c6e3a7f272db6d0f88694fd025e92c49c5eef7dc761b82473305e906bd712f123fbb7f1f96c1c9f6a9ed7738b5555b2be6e0fc4f436772bfa
data/Gemfile CHANGED
@@ -11,28 +11,34 @@ group :development do
11
11
 
12
12
  # building extensions
13
13
  gem "rake-compiler", "= 1.2.1"
14
- gem "rake-compiler-dock", "= 1.2.2"
14
+ gem "rake-compiler-dock", "= 1.3.0"
15
15
 
16
16
  # documentation
17
17
  gem "hoe-markdown", "= 1.4.0"
18
- gem "rdoc", "6.5.0"
19
- gem "psych", "~> 4.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"
23
21
 
24
22
  # tests
25
- gem "minitest", "= 5.16.3"
23
+ gem "minitest", "5.17.0"
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.40.0"
33
- gem "rubocop-minitest", "0.25.0"
34
- gem "rubocop-performance", "1.15.1"
31
+ gem "rubocop", "1.44.1"
32
+ gem "rubocop-minitest", "0.27.0"
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
data/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License
2
2
 
3
- Copyright 2008 -- 2021 by Mike Dalessio, Aaron Patterson, Yoko Harada, Akinori MUSHA, John Shahid, Karol Bucek, Sam Ruby, Craig Barnes, Stephen Checkoway, Lars Kanis, Sergio Arbeo, Timothy Elliott, Nobuyoshi Nakada, Charles Nutter, Patrick Mahoney.
3
+ Copyright 2008 -- 2023 by Mike Dalessio, Aaron Patterson, Yoko Harada, Akinori MUSHA, John Shahid, Karol Bucek, Sam Ruby, Craig Barnes, Stephen Checkoway, Lars Kanis, Sergio Arbeo, Timothy Elliott, Nobuyoshi Nakada, Charles Nutter, Patrick Mahoney.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
6
 
@@ -619,7 +619,7 @@ do_help if arg_config("--help")
619
619
  do_clean if arg_config("--clean")
620
620
 
621
621
  if openbsd? && !config_system_libraries?
622
- if %x(#{ENV["CC"] || "/usr/bin/cc"} -v 2>&1) !~ /clang/
622
+ unless %x(#{ENV["CC"] || "/usr/bin/cc"} -v 2>&1).include?("clang")
623
623
  (ENV["CC"] ||= find_executable("egcc")) ||
624
624
  abort("Please install gcc 4.9+ from ports using `pkg_add -v gcc`")
625
625
  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);
@@ -112,7 +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
- rb_encoding *io_encoding = rb_to_encoding(rb_funcall(rb_io, id_external_encoding, 0));
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);
116
122
 
117
123
  rb_args[0] = rb_io;
118
124
  rb_args[1] = rb_enc_str_new(c_buffer, (long)c_buffer_len, io_encoding);
@@ -132,7 +138,7 @@ noko_io_close(void *io)
132
138
 
133
139
 
134
140
  void
135
- Init_nokogiri()
141
+ Init_nokogiri(void)
136
142
  {
137
143
  mNokogiri = rb_define_module("Nokogiri");
138
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
@@ -230,11 +230,11 @@ module Nokogiri
230
230
  "descendant_selector" => "//",
231
231
  "child_selector" => "/",
232
232
  }.each do |k, v|
233
- class_eval %{
233
+ class_eval <<~RUBY, __FILE__, __LINE__ + 1
234
234
  def visit_#{k} node
235
235
  "\#{node.value.first.accept(self) if node.value.first}#{v}\#{node.value.last.accept(self)}"
236
236
  end
237
- }
237
+ RUBY
238
238
  end
239
239
 
240
240
  def visit_conditional_selector(node)
@@ -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.rc1"
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
@@ -49,7 +49,7 @@ module Nokogiri
49
49
  end
50
50
 
51
51
  constants.each do |constant|
52
- class_eval %{
52
+ class_eval <<~RUBY, __FILE__, __LINE__ + 1
53
53
  def #{constant.downcase}
54
54
  @options |= #{constant}
55
55
  self
@@ -58,7 +58,7 @@ module Nokogiri
58
58
  def #{constant.downcase}?
59
59
  #{constant} & @options == #{constant}
60
60
  end
61
- }
61
+ RUBY
62
62
  end
63
63
 
64
64
  alias_method :to_i, :options
@@ -169,7 +169,7 @@ module Nokogiri
169
169
  constants.each do |constant|
170
170
  next if constant.to_sym == :STRICT
171
171
 
172
- class_eval %{
172
+ class_eval <<~RUBY, __FILE__, __LINE__ + 1
173
173
  def #{constant.downcase}
174
174
  @options |= #{constant}
175
175
  self
@@ -183,7 +183,7 @@ module Nokogiri
183
183
  def #{constant.downcase}?
184
184
  #{constant} & @options == #{constant}
185
185
  end
186
- }
186
+ RUBY
187
187
  end
188
188
 
189
189
  def strict
@@ -95,7 +95,9 @@ module XSD
95
95
  end
96
96
 
97
97
  ["xmldecl", "start_document", "end_document", "comment"].each do |name|
98
- class_eval %{ def #{name}(*args); end }
98
+ class_eval <<~RUBY, __FILE__, __LINE__ + 1
99
+ def #{name}(*args); end
100
+ RUBY
99
101
  end
100
102
 
101
103
  add_factory(self)
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.rc1
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: 2022-12-28 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
@@ -304,9 +304,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
304
304
  version: 3.3.dev
305
305
  required_rubygems_version: !ruby/object:Gem::Requirement
306
306
  requirements:
307
- - - ">"
307
+ - - ">="
308
308
  - !ruby/object:Gem::Version
309
- version: 1.3.1
309
+ version: '0'
310
310
  requirements: []
311
311
  rubygems_version: 3.3.26
312
312
  signing_key: