nokogiri 1.14.0.rc1-x86_64-linux → 1.14.1-x86_64-linux
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 +14 -8
- data/LICENSE.md +1 -1
- data/ext/nokogiri/extconf.rb +3 -1
- 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/include/libxslt/xsltconfig.h +1 -1
- data/ext/nokogiri/nokogiri.c +8 -2
- 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/css/xpath_visitor.rb +2 -2
- 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/save_options.rb +2 -2
- data/lib/nokogiri/xml/parse_options.rb +2 -2
- data/lib/xsd/xmlparser/nokogiri.rb +3 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13769f79d7159235320c89c23d84c00ffbe7264548cda9f6eccd0ebf96e3d2c3
|
4
|
+
data.tar.gz: b4f8bdfba1c2cf451ccdd6ce74e338954f42f83b20f1e424154f6006d6c2268a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f514f54de8490bb4176c6bf4a3cdcffe970916ac2d1d5c661a168995e949d760ae37d61e04ccdeaa93af48df3122fc6a266332adf81c869c447801ddc53d250
|
7
|
+
data.tar.gz: 1f7839d010e83c56a5a015bd2ff4e0b47ae697bf52379fbb1a0cf739d47bad46966f388d68ca14e8b26a94ad4ae7d6d84bb33b296cb1dd0a42be563653e08a21
|
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.
|
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", "
|
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.
|
33
|
-
gem "rubocop-minitest", "0.
|
34
|
-
gem "rubocop-performance", "1.15.
|
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", "
|
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 --
|
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
|
|
data/ext/nokogiri/extconf.rb
CHANGED
@@ -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
|
-
|
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
|
|
@@ -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/
|
135
|
+
#define LIBXSLT_DEFAULT_PLUGINS_PATH() "/home/flavorjones/code/oss/nokogiri/ports/x86_64-linux/libxslt/1.1.37/lib/libxslt-plugins"
|
136
136
|
#endif
|
137
137
|
|
138
138
|
/**
|
data/ext/nokogiri/nokogiri.c
CHANGED
@@ -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
|
-
|
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
|
|
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
|
@@ -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)
|
@@ -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
|
@@ -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
|
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.
|
4
|
+
version: 1.14.1
|
5
5
|
platform: x86_64-linux
|
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:
|
23
|
+
date: 2023-01-30 00:00:00.000000000 Z
|
24
24
|
dependencies:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: racc
|
@@ -306,9 +306,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
306
306
|
version: 3.3.dev
|
307
307
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
308
308
|
requirements:
|
309
|
-
- - "
|
309
|
+
- - ">="
|
310
310
|
- !ruby/object:Gem::Version
|
311
|
-
version:
|
311
|
+
version: '0'
|
312
312
|
requirements: []
|
313
313
|
rubygems_version: 3.3.26
|
314
314
|
signing_key:
|