nokogiri 1.13.0-aarch64-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 +7 -0
- data/Gemfile +5 -0
- data/LICENSE-DEPENDENCIES.md +1903 -0
- data/LICENSE.md +9 -0
- data/README.md +280 -0
- data/bin/nokogiri +131 -0
- data/dependencies.yml +73 -0
- data/ext/nokogiri/depend +38 -0
- data/ext/nokogiri/extconf.rb +1000 -0
- data/ext/nokogiri/gumbo.c +584 -0
- data/ext/nokogiri/html4_document.c +166 -0
- data/ext/nokogiri/html4_element_description.c +294 -0
- data/ext/nokogiri/html4_entity_lookup.c +37 -0
- data/ext/nokogiri/html4_sax_parser_context.c +120 -0
- data/ext/nokogiri/html4_sax_push_parser.c +95 -0
- data/ext/nokogiri/include/libexslt/exslt.h +102 -0
- data/ext/nokogiri/include/libexslt/exsltconfig.h +70 -0
- data/ext/nokogiri/include/libexslt/exsltexports.h +140 -0
- data/ext/nokogiri/include/libxml2/libxml/DOCBparser.h +96 -0
- data/ext/nokogiri/include/libxml2/libxml/HTMLparser.h +306 -0
- data/ext/nokogiri/include/libxml2/libxml/HTMLtree.h +147 -0
- data/ext/nokogiri/include/libxml2/libxml/SAX.h +173 -0
- data/ext/nokogiri/include/libxml2/libxml/SAX2.h +178 -0
- data/ext/nokogiri/include/libxml2/libxml/c14n.h +128 -0
- data/ext/nokogiri/include/libxml2/libxml/catalog.h +182 -0
- data/ext/nokogiri/include/libxml2/libxml/chvalid.h +230 -0
- data/ext/nokogiri/include/libxml2/libxml/debugXML.h +217 -0
- data/ext/nokogiri/include/libxml2/libxml/dict.h +79 -0
- data/ext/nokogiri/include/libxml2/libxml/encoding.h +245 -0
- data/ext/nokogiri/include/libxml2/libxml/entities.h +151 -0
- data/ext/nokogiri/include/libxml2/libxml/globals.h +508 -0
- data/ext/nokogiri/include/libxml2/libxml/hash.h +236 -0
- data/ext/nokogiri/include/libxml2/libxml/list.h +137 -0
- data/ext/nokogiri/include/libxml2/libxml/nanoftp.h +163 -0
- data/ext/nokogiri/include/libxml2/libxml/nanohttp.h +81 -0
- data/ext/nokogiri/include/libxml2/libxml/parser.h +1243 -0
- data/ext/nokogiri/include/libxml2/libxml/parserInternals.h +644 -0
- data/ext/nokogiri/include/libxml2/libxml/pattern.h +100 -0
- data/ext/nokogiri/include/libxml2/libxml/relaxng.h +217 -0
- data/ext/nokogiri/include/libxml2/libxml/schemasInternals.h +958 -0
- data/ext/nokogiri/include/libxml2/libxml/schematron.h +142 -0
- data/ext/nokogiri/include/libxml2/libxml/threads.h +89 -0
- data/ext/nokogiri/include/libxml2/libxml/tree.h +1311 -0
- data/ext/nokogiri/include/libxml2/libxml/uri.h +94 -0
- data/ext/nokogiri/include/libxml2/libxml/valid.h +458 -0
- data/ext/nokogiri/include/libxml2/libxml/xinclude.h +129 -0
- data/ext/nokogiri/include/libxml2/libxml/xlink.h +189 -0
- data/ext/nokogiri/include/libxml2/libxml/xmlIO.h +368 -0
- data/ext/nokogiri/include/libxml2/libxml/xmlautomata.h +146 -0
- data/ext/nokogiri/include/libxml2/libxml/xmlerror.h +946 -0
- data/ext/nokogiri/include/libxml2/libxml/xmlexports.h +77 -0
- data/ext/nokogiri/include/libxml2/libxml/xmlmemory.h +224 -0
- data/ext/nokogiri/include/libxml2/libxml/xmlmodule.h +57 -0
- data/ext/nokogiri/include/libxml2/libxml/xmlreader.h +428 -0
- data/ext/nokogiri/include/libxml2/libxml/xmlregexp.h +222 -0
- data/ext/nokogiri/include/libxml2/libxml/xmlsave.h +88 -0
- data/ext/nokogiri/include/libxml2/libxml/xmlschemas.h +246 -0
- data/ext/nokogiri/include/libxml2/libxml/xmlschemastypes.h +151 -0
- data/ext/nokogiri/include/libxml2/libxml/xmlstring.h +140 -0
- data/ext/nokogiri/include/libxml2/libxml/xmlunicode.h +202 -0
- data/ext/nokogiri/include/libxml2/libxml/xmlversion.h +485 -0
- data/ext/nokogiri/include/libxml2/libxml/xmlwriter.h +488 -0
- data/ext/nokogiri/include/libxml2/libxml/xpath.h +564 -0
- data/ext/nokogiri/include/libxml2/libxml/xpathInternals.h +632 -0
- data/ext/nokogiri/include/libxml2/libxml/xpointer.h +114 -0
- data/ext/nokogiri/include/libxslt/attributes.h +38 -0
- data/ext/nokogiri/include/libxslt/documents.h +93 -0
- data/ext/nokogiri/include/libxslt/extensions.h +262 -0
- data/ext/nokogiri/include/libxslt/extra.h +72 -0
- data/ext/nokogiri/include/libxslt/functions.h +78 -0
- data/ext/nokogiri/include/libxslt/imports.h +75 -0
- data/ext/nokogiri/include/libxslt/keys.h +53 -0
- data/ext/nokogiri/include/libxslt/namespaces.h +68 -0
- data/ext/nokogiri/include/libxslt/numbersInternals.h +73 -0
- data/ext/nokogiri/include/libxslt/pattern.h +84 -0
- data/ext/nokogiri/include/libxslt/preproc.h +43 -0
- data/ext/nokogiri/include/libxslt/security.h +104 -0
- data/ext/nokogiri/include/libxslt/templates.h +77 -0
- data/ext/nokogiri/include/libxslt/transform.h +207 -0
- data/ext/nokogiri/include/libxslt/variables.h +118 -0
- data/ext/nokogiri/include/libxslt/xslt.h +110 -0
- data/ext/nokogiri/include/libxslt/xsltInternals.h +1978 -0
- data/ext/nokogiri/include/libxslt/xsltconfig.h +180 -0
- data/ext/nokogiri/include/libxslt/xsltexports.h +142 -0
- data/ext/nokogiri/include/libxslt/xsltlocale.h +76 -0
- data/ext/nokogiri/include/libxslt/xsltutils.h +313 -0
- data/ext/nokogiri/libxml2_backwards_compat.c +121 -0
- data/ext/nokogiri/nokogiri.c +278 -0
- data/ext/nokogiri/nokogiri.h +223 -0
- data/ext/nokogiri/test_global_handlers.c +40 -0
- data/ext/nokogiri/xml_attr.c +103 -0
- data/ext/nokogiri/xml_attribute_decl.c +70 -0
- data/ext/nokogiri/xml_cdata.c +57 -0
- data/ext/nokogiri/xml_comment.c +62 -0
- data/ext/nokogiri/xml_document.c +680 -0
- data/ext/nokogiri/xml_document_fragment.c +44 -0
- data/ext/nokogiri/xml_dtd.c +208 -0
- data/ext/nokogiri/xml_element_content.c +128 -0
- data/ext/nokogiri/xml_element_decl.c +69 -0
- data/ext/nokogiri/xml_encoding_handler.c +104 -0
- data/ext/nokogiri/xml_entity_decl.c +112 -0
- data/ext/nokogiri/xml_entity_reference.c +50 -0
- data/ext/nokogiri/xml_namespace.c +120 -0
- data/ext/nokogiri/xml_node.c +2144 -0
- data/ext/nokogiri/xml_node_set.c +498 -0
- data/ext/nokogiri/xml_processing_instruction.c +54 -0
- data/ext/nokogiri/xml_reader.c +719 -0
- data/ext/nokogiri/xml_relax_ng.c +185 -0
- data/ext/nokogiri/xml_sax_parser.c +310 -0
- data/ext/nokogiri/xml_sax_parser_context.c +281 -0
- data/ext/nokogiri/xml_sax_push_parser.c +168 -0
- data/ext/nokogiri/xml_schema.c +284 -0
- data/ext/nokogiri/xml_syntax_error.c +85 -0
- data/ext/nokogiri/xml_text.c +48 -0
- data/ext/nokogiri/xml_xpath_context.c +406 -0
- data/ext/nokogiri/xslt_stylesheet.c +264 -0
- data/gumbo-parser/CHANGES.md +63 -0
- data/gumbo-parser/Makefile +101 -0
- data/gumbo-parser/THANKS +27 -0
- data/lib/nokogiri/2.6/nokogiri.so +0 -0
- 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/class_resolver.rb +67 -0
- data/lib/nokogiri/css/node.rb +54 -0
- data/lib/nokogiri/css/parser.rb +759 -0
- data/lib/nokogiri/css/parser.y +280 -0
- data/lib/nokogiri/css/parser_extras.rb +94 -0
- data/lib/nokogiri/css/syntax_error.rb +9 -0
- data/lib/nokogiri/css/tokenizer.rb +155 -0
- data/lib/nokogiri/css/tokenizer.rex +56 -0
- data/lib/nokogiri/css/xpath_visitor.rb +359 -0
- data/lib/nokogiri/css.rb +60 -0
- data/lib/nokogiri/decorators/slop.rb +44 -0
- data/lib/nokogiri/extension.rb +31 -0
- data/lib/nokogiri/gumbo.rb +15 -0
- data/lib/nokogiri/html.rb +48 -0
- data/lib/nokogiri/html4/builder.rb +37 -0
- data/lib/nokogiri/html4/document.rb +331 -0
- data/lib/nokogiri/html4/document_fragment.rb +54 -0
- data/lib/nokogiri/html4/element_description.rb +25 -0
- data/lib/nokogiri/html4/element_description_defaults.rb +578 -0
- data/lib/nokogiri/html4/entity_lookup.rb +15 -0
- data/lib/nokogiri/html4/sax/parser.rb +61 -0
- data/lib/nokogiri/html4/sax/parser_context.rb +20 -0
- data/lib/nokogiri/html4/sax/push_parser.rb +37 -0
- data/lib/nokogiri/html4.rb +46 -0
- data/lib/nokogiri/html5/document.rb +88 -0
- data/lib/nokogiri/html5/document_fragment.rb +83 -0
- data/lib/nokogiri/html5/node.rb +96 -0
- data/lib/nokogiri/html5.rb +477 -0
- data/lib/nokogiri/jruby/dependencies.rb +21 -0
- data/lib/nokogiri/syntax_error.rb +6 -0
- data/lib/nokogiri/version/constant.rb +6 -0
- data/lib/nokogiri/version/info.rb +221 -0
- data/lib/nokogiri/version.rb +4 -0
- data/lib/nokogiri/xml/attr.rb +17 -0
- data/lib/nokogiri/xml/attribute_decl.rb +20 -0
- data/lib/nokogiri/xml/builder.rb +485 -0
- data/lib/nokogiri/xml/cdata.rb +13 -0
- data/lib/nokogiri/xml/character_data.rb +9 -0
- data/lib/nokogiri/xml/document.rb +418 -0
- data/lib/nokogiri/xml/document_fragment.rb +162 -0
- data/lib/nokogiri/xml/dtd.rb +34 -0
- data/lib/nokogiri/xml/element_content.rb +38 -0
- data/lib/nokogiri/xml/element_decl.rb +15 -0
- data/lib/nokogiri/xml/entity_decl.rb +21 -0
- data/lib/nokogiri/xml/entity_reference.rb +20 -0
- data/lib/nokogiri/xml/namespace.rb +16 -0
- data/lib/nokogiri/xml/node/save_options.rb +65 -0
- data/lib/nokogiri/xml/node.rb +1402 -0
- data/lib/nokogiri/xml/node_set.rb +364 -0
- data/lib/nokogiri/xml/notation.rb +19 -0
- data/lib/nokogiri/xml/parse_options.rb +133 -0
- data/lib/nokogiri/xml/pp/character_data.rb +21 -0
- data/lib/nokogiri/xml/pp/node.rb +55 -0
- data/lib/nokogiri/xml/pp.rb +4 -0
- data/lib/nokogiri/xml/processing_instruction.rb +10 -0
- data/lib/nokogiri/xml/reader.rb +107 -0
- data/lib/nokogiri/xml/relax_ng.rb +38 -0
- data/lib/nokogiri/xml/sax/document.rb +167 -0
- data/lib/nokogiri/xml/sax/parser.rb +125 -0
- data/lib/nokogiri/xml/sax/parser_context.rb +21 -0
- data/lib/nokogiri/xml/sax/push_parser.rb +61 -0
- data/lib/nokogiri/xml/sax.rb +6 -0
- data/lib/nokogiri/xml/schema.rb +73 -0
- data/lib/nokogiri/xml/searchable.rb +259 -0
- data/lib/nokogiri/xml/syntax_error.rb +71 -0
- data/lib/nokogiri/xml/text.rb +11 -0
- data/lib/nokogiri/xml/xpath/syntax_error.rb +13 -0
- data/lib/nokogiri/xml/xpath.rb +21 -0
- data/lib/nokogiri/xml/xpath_context.rb +16 -0
- data/lib/nokogiri/xml.rb +75 -0
- data/lib/nokogiri/xslt/stylesheet.rb +27 -0
- data/lib/nokogiri/xslt.rb +58 -0
- data/lib/nokogiri.rb +128 -0
- data/lib/xsd/xmlparser/nokogiri.rb +104 -0
- metadata +539 -0
@@ -0,0 +1,221 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "singleton"
|
4
|
+
require "shellwords"
|
5
|
+
|
6
|
+
module Nokogiri
|
7
|
+
class VersionInfo # :nodoc:
|
8
|
+
include Singleton
|
9
|
+
|
10
|
+
def jruby?
|
11
|
+
::JRUBY_VERSION if ::RUBY_PLATFORM == "java"
|
12
|
+
end
|
13
|
+
|
14
|
+
def windows?
|
15
|
+
::RUBY_PLATFORM =~ /mingw|mswin/
|
16
|
+
end
|
17
|
+
|
18
|
+
def ruby_minor
|
19
|
+
Gem::Version.new(::RUBY_VERSION).segments[0..1].join(".")
|
20
|
+
end
|
21
|
+
|
22
|
+
def engine
|
23
|
+
defined?(::RUBY_ENGINE) ? ::RUBY_ENGINE : "mri"
|
24
|
+
end
|
25
|
+
|
26
|
+
def loaded_libxml_version
|
27
|
+
Gem::Version.new(Nokogiri::LIBXML_LOADED_VERSION
|
28
|
+
.scan(/^(\d+)(\d\d)(\d\d)(?!\d)/).first
|
29
|
+
.collect(&:to_i)
|
30
|
+
.join("."))
|
31
|
+
end
|
32
|
+
|
33
|
+
def compiled_libxml_version
|
34
|
+
Gem::Version.new(Nokogiri::LIBXML_COMPILED_VERSION)
|
35
|
+
end
|
36
|
+
|
37
|
+
def loaded_libxslt_version
|
38
|
+
Gem::Version.new(Nokogiri::LIBXSLT_LOADED_VERSION
|
39
|
+
.scan(/^(\d+)(\d\d)(\d\d)(?!\d)/).first
|
40
|
+
.collect(&:to_i)
|
41
|
+
.join("."))
|
42
|
+
end
|
43
|
+
|
44
|
+
def compiled_libxslt_version
|
45
|
+
Gem::Version.new(Nokogiri::LIBXSLT_COMPILED_VERSION)
|
46
|
+
end
|
47
|
+
|
48
|
+
def libxml2?
|
49
|
+
defined?(Nokogiri::LIBXML_COMPILED_VERSION)
|
50
|
+
end
|
51
|
+
|
52
|
+
def libxml2_has_iconv?
|
53
|
+
defined?(Nokogiri::LIBXML_ICONV_ENABLED) && Nokogiri::LIBXML_ICONV_ENABLED
|
54
|
+
end
|
55
|
+
|
56
|
+
def libxslt_has_datetime?
|
57
|
+
defined?(Nokogiri::LIBXSLT_DATETIME_ENABLED) && Nokogiri::LIBXSLT_DATETIME_ENABLED
|
58
|
+
end
|
59
|
+
|
60
|
+
def libxml2_using_packaged?
|
61
|
+
libxml2? && Nokogiri::PACKAGED_LIBRARIES
|
62
|
+
end
|
63
|
+
|
64
|
+
def libxml2_using_system?
|
65
|
+
libxml2? && !libxml2_using_packaged?
|
66
|
+
end
|
67
|
+
|
68
|
+
def libxml2_precompiled?
|
69
|
+
libxml2_using_packaged? && Nokogiri::PRECOMPILED_LIBRARIES
|
70
|
+
end
|
71
|
+
|
72
|
+
def warnings
|
73
|
+
warnings = []
|
74
|
+
|
75
|
+
if libxml2?
|
76
|
+
if compiled_libxml_version != loaded_libxml_version
|
77
|
+
warnings << "Nokogiri was built against libxml version #{compiled_libxml_version}, but has dynamically loaded #{loaded_libxml_version}"
|
78
|
+
end
|
79
|
+
|
80
|
+
if compiled_libxslt_version != loaded_libxslt_version
|
81
|
+
warnings << "Nokogiri was built against libxslt version #{compiled_libxslt_version}, but has dynamically loaded #{loaded_libxslt_version}"
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
warnings
|
86
|
+
end
|
87
|
+
|
88
|
+
def to_hash
|
89
|
+
header_directory = File.expand_path(File.join(File.dirname(__FILE__), "../../../ext/nokogiri"))
|
90
|
+
|
91
|
+
{}.tap do |vi|
|
92
|
+
vi["warnings"] = []
|
93
|
+
vi["nokogiri"] = {}.tap do |nokogiri|
|
94
|
+
nokogiri["version"] = Nokogiri::VERSION
|
95
|
+
|
96
|
+
unless jruby?
|
97
|
+
# enable gems like nokogumbo to build with the following in their extconf.rb:
|
98
|
+
#
|
99
|
+
# append_cflags(Nokogiri::VERSION_INFO["nokogiri"]["cppflags"])
|
100
|
+
# append_ldflags(Nokogiri::VERSION_INFO["nokogiri"]["ldflags"])
|
101
|
+
#
|
102
|
+
cppflags = ["-I#{header_directory.shellescape}"]
|
103
|
+
ldflags = []
|
104
|
+
|
105
|
+
if libxml2_using_packaged?
|
106
|
+
cppflags << "-I#{File.join(header_directory, "include").shellescape}"
|
107
|
+
cppflags << "-I#{File.join(header_directory, "include/libxml2").shellescape}"
|
108
|
+
|
109
|
+
if windows?
|
110
|
+
# on windows, nokogumbo needs to link against nokogiri.so to resolve symbols. see #2167
|
111
|
+
lib_directory = File.expand_path(File.join(File.dirname(__FILE__), "../#{ruby_minor}"))
|
112
|
+
unless File.exist?(lib_directory)
|
113
|
+
lib_directory = File.expand_path(File.join(File.dirname(__FILE__), ".."))
|
114
|
+
end
|
115
|
+
ldflags << "-L#{lib_directory.shellescape}"
|
116
|
+
ldflags << "-l:nokogiri.so"
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
nokogiri["cppflags"] = cppflags
|
121
|
+
nokogiri["ldflags"] = ldflags
|
122
|
+
end
|
123
|
+
end
|
124
|
+
vi["ruby"] = {}.tap do |ruby|
|
125
|
+
ruby["version"] = ::RUBY_VERSION
|
126
|
+
ruby["platform"] = ::RUBY_PLATFORM
|
127
|
+
ruby["gem_platform"] = ::Gem::Platform.local.to_s
|
128
|
+
ruby["description"] = ::RUBY_DESCRIPTION
|
129
|
+
ruby["engine"] = engine
|
130
|
+
ruby["jruby"] = jruby? if jruby?
|
131
|
+
end
|
132
|
+
|
133
|
+
if libxml2?
|
134
|
+
vi["libxml"] = {}.tap do |libxml|
|
135
|
+
if libxml2_using_packaged?
|
136
|
+
libxml["source"] = "packaged"
|
137
|
+
libxml["precompiled"] = libxml2_precompiled?
|
138
|
+
libxml["patches"] = Nokogiri::LIBXML2_PATCHES
|
139
|
+
|
140
|
+
# this is for nokogumbo and shouldn't be forever
|
141
|
+
libxml["libxml2_path"] = header_directory
|
142
|
+
else
|
143
|
+
libxml["source"] = "system"
|
144
|
+
end
|
145
|
+
libxml["memory_management"] = Nokogiri::LIBXML_MEMORY_MANAGEMENT
|
146
|
+
libxml["iconv_enabled"] = libxml2_has_iconv?
|
147
|
+
libxml["compiled"] = compiled_libxml_version.to_s
|
148
|
+
libxml["loaded"] = loaded_libxml_version.to_s
|
149
|
+
end
|
150
|
+
|
151
|
+
vi["libxslt"] = {}.tap do |libxslt|
|
152
|
+
if libxml2_using_packaged?
|
153
|
+
libxslt["source"] = "packaged"
|
154
|
+
libxslt["precompiled"] = libxml2_precompiled?
|
155
|
+
libxslt["patches"] = Nokogiri::LIBXSLT_PATCHES
|
156
|
+
else
|
157
|
+
libxslt["source"] = "system"
|
158
|
+
end
|
159
|
+
libxslt["datetime_enabled"] = libxslt_has_datetime?
|
160
|
+
libxslt["compiled"] = compiled_libxslt_version.to_s
|
161
|
+
libxslt["loaded"] = loaded_libxslt_version.to_s
|
162
|
+
end
|
163
|
+
|
164
|
+
vi["warnings"] = warnings
|
165
|
+
end
|
166
|
+
|
167
|
+
if defined?(Nokogiri::OTHER_LIBRARY_VERSIONS)
|
168
|
+
# see extconf for how this string is assembled: "lib1name:lib1version,lib2name:lib2version"
|
169
|
+
vi["other_libraries"] = Hash[*Nokogiri::OTHER_LIBRARY_VERSIONS.split(/[,:]/)]
|
170
|
+
elsif jruby?
|
171
|
+
vi["other_libraries"] = {}.tap do |ol|
|
172
|
+
ol["xerces"] = Nokogiri::XERCES_VERSION
|
173
|
+
ol["nekohtml"] = Nokogiri::NEKO_VERSION
|
174
|
+
end
|
175
|
+
end
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
179
|
+
def to_markdown
|
180
|
+
require "yaml"
|
181
|
+
"# Nokogiri (#{Nokogiri::VERSION})\n" +
|
182
|
+
YAML.dump(to_hash).each_line.map { |line| " #{line}" }.join
|
183
|
+
end
|
184
|
+
|
185
|
+
instance.warnings.each do |warning|
|
186
|
+
warn "WARNING: #{warning}"
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
# :nodoc:
|
191
|
+
def self.uses_libxml?(requirement = nil)
|
192
|
+
return false unless VersionInfo.instance.libxml2?
|
193
|
+
return true unless requirement
|
194
|
+
Gem::Requirement.new(requirement).satisfied_by?(VersionInfo.instance.loaded_libxml_version)
|
195
|
+
end
|
196
|
+
|
197
|
+
# :nodoc:
|
198
|
+
def self.uses_gumbo?
|
199
|
+
uses_libxml? # TODO: replace with Gumbo functionality
|
200
|
+
end
|
201
|
+
|
202
|
+
# :nodoc:
|
203
|
+
def self.jruby?
|
204
|
+
VersionInfo.instance.jruby?
|
205
|
+
end
|
206
|
+
|
207
|
+
# :nodoc:
|
208
|
+
def self.libxml2_patches
|
209
|
+
if VersionInfo.instance.libxml2_using_packaged?
|
210
|
+
Nokogiri::VERSION_INFO["libxml"]["patches"]
|
211
|
+
else
|
212
|
+
[]
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
216
|
+
require_relative "../jruby/dependencies" if Nokogiri.jruby?
|
217
|
+
require_relative "../extension"
|
218
|
+
|
219
|
+
# Detailed version info about Nokogiri and the installed extension dependencies.
|
220
|
+
VERSION_INFO = VersionInfo.instance.to_hash
|
221
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Nokogiri
|
4
|
+
module XML
|
5
|
+
class Attr < Node
|
6
|
+
alias_method :value, :content
|
7
|
+
alias_method :to_s, :content
|
8
|
+
alias_method :content=, :value=
|
9
|
+
|
10
|
+
private
|
11
|
+
|
12
|
+
def inspect_attributes
|
13
|
+
[:name, :namespace, :value]
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Nokogiri
|
4
|
+
module XML
|
5
|
+
###
|
6
|
+
# Represents an attribute declaration in a DTD
|
7
|
+
class AttributeDecl < Nokogiri::XML::Node
|
8
|
+
undef_method :attribute_nodes
|
9
|
+
undef_method :attributes
|
10
|
+
undef_method :content
|
11
|
+
undef_method :namespace
|
12
|
+
undef_method :namespace_definitions
|
13
|
+
undef_method :line if method_defined?(:line)
|
14
|
+
|
15
|
+
def inspect
|
16
|
+
"#<#{self.class.name}:#{format("0x%x", object_id)} #{to_s.inspect}>"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|