nokogiri 1.14.0-x86-mingw32 → 1.14.2-x86-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 +4 -4
- data/Gemfile +11 -5
- data/ext/nokogiri/extconf.rb +2 -0
- data/ext/nokogiri/gumbo.c +1 -1
- data/ext/nokogiri/html4_document.c +1 -1
- data/ext/nokogiri/html4_element_description.c +1 -1
- data/ext/nokogiri/html4_entity_lookup.c +1 -1
- data/ext/nokogiri/html4_sax_parser_context.c +1 -1
- data/ext/nokogiri/html4_sax_push_parser.c +1 -1
- data/ext/nokogiri/nokogiri.c +8 -3
- data/ext/nokogiri/test_global_handlers.c +1 -1
- data/ext/nokogiri/xml_attr.c +1 -1
- data/ext/nokogiri/xml_attribute_decl.c +1 -1
- data/ext/nokogiri/xml_cdata.c +1 -1
- data/ext/nokogiri/xml_comment.c +1 -1
- data/ext/nokogiri/xml_document.c +1 -1
- data/ext/nokogiri/xml_document_fragment.c +1 -1
- data/ext/nokogiri/xml_dtd.c +1 -1
- data/ext/nokogiri/xml_element_content.c +1 -1
- data/ext/nokogiri/xml_element_decl.c +1 -1
- data/ext/nokogiri/xml_encoding_handler.c +1 -1
- data/ext/nokogiri/xml_entity_decl.c +1 -1
- data/ext/nokogiri/xml_entity_reference.c +1 -1
- data/ext/nokogiri/xml_namespace.c +1 -1
- data/ext/nokogiri/xml_node.c +1 -1
- data/ext/nokogiri/xml_processing_instruction.c +1 -1
- data/ext/nokogiri/xml_reader.c +1 -1
- data/ext/nokogiri/xml_relax_ng.c +1 -1
- data/ext/nokogiri/xml_sax_parser.c +1 -1
- data/ext/nokogiri/xml_sax_parser_context.c +1 -1
- data/ext/nokogiri/xml_sax_push_parser.c +1 -1
- data/ext/nokogiri/xml_schema.c +1 -1
- data/ext/nokogiri/xml_syntax_error.c +1 -1
- data/ext/nokogiri/xml_text.c +1 -1
- data/ext/nokogiri/xslt_stylesheet.c +1 -1
- data/lib/nokogiri/2.7/nokogiri.so +0 -0
- data/lib/nokogiri/3.0/nokogiri.so +0 -0
- data/lib/nokogiri/3.1/nokogiri.so +0 -0
- data/lib/nokogiri/3.2/nokogiri.so +0 -0
- data/lib/nokogiri/decorators/slop.rb +1 -1
- data/lib/nokogiri/version/constant.rb +1 -1
- data/lib/nokogiri/xml/document.rb +2 -2
- data/lib/nokogiri/xml/node_set.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbd1ed4553ca8ac63190bc671d3189815034ea201abdc74fa3e1c1e869fa93b3
|
4
|
+
data.tar.gz: 520621bb1e11c20af10d8f5c04feb3d1e4834675cd47ab93825709cf5b64de77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 100db5818c36d8fb28eab8a9b46cf39bf262a3e32405bb8f532fe30f0bb697fb7deb8a6d364494e5c949967fa803f8e235ca6c9c73425e3230c4bac79f91df01
|
7
|
+
data.tar.gz: 7c4491cfd09bbbf739d1f0e506927082f73aae81513a4c4b61f6f54af59dd919ecee1a7aa9f672791431e6cf9254b83a6426d5f2a1c1576ea96283f0cc255fba
|
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.
|
33
|
-
gem "rubocop-minitest", "0.
|
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", "
|
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/ext/nokogiri/extconf.rb
CHANGED
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
|
|
@@ -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);
|
data/ext/nokogiri/nokogiri.c
CHANGED
@@ -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 =
|
116
|
-
rb_encoding *io_encoding
|
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
|
|
data/ext/nokogiri/xml_attr.c
CHANGED
data/ext/nokogiri/xml_cdata.c
CHANGED
data/ext/nokogiri/xml_comment.c
CHANGED
data/ext/nokogiri/xml_document.c
CHANGED
data/ext/nokogiri/xml_dtd.c
CHANGED
@@ -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
|
|
data/ext/nokogiri/xml_node.c
CHANGED
data/ext/nokogiri/xml_reader.c
CHANGED
data/ext/nokogiri/xml_relax_ng.c
CHANGED
@@ -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);
|
data/ext/nokogiri/xml_schema.c
CHANGED
data/ext/nokogiri/xml_text.c
CHANGED
@@ -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
|
Binary file
|
Binary file
|
@@ -174,8 +174,8 @@ module Nokogiri
|
|
174
174
|
# Since v1.12.4
|
175
175
|
attr_accessor :namespace_inheritance
|
176
176
|
|
177
|
-
#
|
178
|
-
def initialize(*args) # :
|
177
|
+
# :nodoc:
|
178
|
+
def initialize(*args) # rubocop:disable Lint/MissingSuper
|
179
179
|
@errors = []
|
180
180
|
@decorators = nil
|
181
181
|
@namespace_inheritance = false
|
@@ -345,8 +345,9 @@ module Nokogiri
|
|
345
345
|
args.insert(0, options)
|
346
346
|
end
|
347
347
|
if empty?
|
348
|
-
encoding = (args.first.is_a?(Hash) ? args.first[:encoding] : nil)
|
349
|
-
|
348
|
+
encoding = (args.first.is_a?(Hash) ? args.first[:encoding] : nil)
|
349
|
+
encoding ||= document.encoding
|
350
|
+
encoding.nil? ? "" : "".encode(encoding)
|
350
351
|
else
|
351
352
|
map { |x| x.to_html(*args) }.join
|
352
353
|
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.14.
|
4
|
+
version: 1.14.2
|
5
5
|
platform: x86-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: 2023-
|
23
|
+
date: 2023-02-13 00:00:00.000000000 Z
|
24
24
|
dependencies:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: racc
|