nokogiri 1.13.10-java → 1.14.0.rc1-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of nokogiri might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile +33 -0
- data/LICENSE-DEPENDENCIES.md +830 -509
- data/README.md +18 -11
- data/dependencies.yml +25 -7
- data/ext/java/nokogiri/Html4Document.java +2 -0
- data/ext/java/nokogiri/Html4ElementDescription.java +9 -9
- data/ext/java/nokogiri/Html4EntityLookup.java +14 -3
- data/ext/java/nokogiri/Html4SaxParserContext.java +2 -2
- data/ext/java/nokogiri/Html4SaxPushParser.java +3 -0
- data/ext/java/nokogiri/NokogiriService.java +1 -24
- data/ext/java/nokogiri/XmlAttr.java +1 -1
- data/ext/java/nokogiri/XmlAttributeDecl.java +2 -1
- data/ext/java/nokogiri/XmlCdata.java +2 -1
- data/ext/java/nokogiri/XmlComment.java +2 -1
- data/ext/java/nokogiri/XmlDocument.java +5 -6
- data/ext/java/nokogiri/XmlDocumentFragment.java +2 -1
- data/ext/java/nokogiri/XmlDtd.java +4 -3
- data/ext/java/nokogiri/XmlElement.java +1 -0
- data/ext/java/nokogiri/XmlElementContent.java +4 -1
- data/ext/java/nokogiri/XmlElementDecl.java +3 -1
- data/ext/java/nokogiri/XmlEntityDecl.java +2 -0
- data/ext/java/nokogiri/XmlEntityReference.java +1 -0
- data/ext/java/nokogiri/XmlNamespace.java +2 -0
- data/ext/java/nokogiri/XmlNode.java +39 -24
- data/ext/java/nokogiri/XmlNodeSet.java +10 -7
- data/ext/java/nokogiri/XmlProcessingInstruction.java +1 -0
- data/ext/java/nokogiri/XmlReader.java +4 -3
- data/ext/java/nokogiri/XmlRelaxng.java +1 -0
- data/ext/java/nokogiri/XmlSaxParserContext.java +1 -0
- data/ext/java/nokogiri/XmlSaxPushParser.java +3 -0
- data/ext/java/nokogiri/XmlSchema.java +4 -2
- data/ext/java/nokogiri/XmlSyntaxError.java +1 -0
- data/ext/java/nokogiri/XmlText.java +1 -0
- data/ext/java/nokogiri/XmlXpathContext.java +2 -0
- data/ext/java/nokogiri/XsltStylesheet.java +16 -13
- data/ext/java/nokogiri/internals/HtmlDomParserContext.java +3 -2
- data/ext/java/nokogiri/internals/NokogiriHandler.java +2 -2
- data/ext/java/nokogiri/internals/NokogiriHelpers.java +4 -5
- data/ext/java/nokogiri/internals/NokogiriXPathFunction.java +3 -3
- data/ext/java/nokogiri/internals/ParserContext.java +2 -0
- data/ext/java/nokogiri/internals/ReaderNode.java +1 -1
- data/ext/java/nokogiri/internals/SaveContextVisitor.java +4 -2
- data/ext/java/nokogiri/internals/SchemaErrorHandler.java +2 -2
- data/ext/java/nokogiri/internals/XmlDomParserContext.java +2 -1
- data/ext/java/nokogiri/internals/c14n/Canonicalizer.java +1 -0
- data/ext/java/nokogiri/internals/dom2dtm/DOM2DTM.java +5 -4
- data/ext/nokogiri/extconf.rb +79 -20
- data/ext/nokogiri/gumbo.c +19 -9
- data/ext/nokogiri/html4_document.c +1 -1
- data/ext/nokogiri/html4_entity_lookup.c +1 -1
- data/ext/nokogiri/html4_sax_parser_context.c +0 -5
- data/ext/nokogiri/nokogiri.c +32 -51
- data/ext/nokogiri/xml_attribute_decl.c +1 -1
- data/ext/nokogiri/xml_cdata.c +1 -1
- data/ext/nokogiri/xml_document.c +16 -11
- data/ext/nokogiri/xml_element_content.c +2 -2
- data/ext/nokogiri/xml_element_decl.c +1 -1
- data/ext/nokogiri/xml_encoding_handler.c +2 -2
- data/ext/nokogiri/xml_namespace.c +38 -8
- data/ext/nokogiri/xml_node.c +286 -26
- data/ext/nokogiri/xml_node_set.c +0 -2
- data/ext/nokogiri/xml_reader.c +40 -20
- data/ext/nokogiri/xml_relax_ng.c +0 -2
- data/ext/nokogiri/xml_sax_parser.c +22 -16
- data/ext/nokogiri/xml_sax_parser_context.c +0 -5
- data/ext/nokogiri/xml_sax_push_parser.c +0 -2
- data/ext/nokogiri/xml_schema.c +0 -2
- data/ext/nokogiri/xml_xpath_context.c +87 -83
- data/ext/nokogiri/xslt_stylesheet.c +14 -13
- data/gumbo-parser/Makefile +10 -0
- data/lib/nokogiri/css/node.rb +2 -2
- data/lib/nokogiri/css/xpath_visitor.rb +3 -1
- data/lib/nokogiri/css.rb +6 -0
- data/lib/nokogiri/encoding_handler.rb +57 -0
- data/lib/nokogiri/extension.rb +3 -2
- data/lib/nokogiri/html4/document.rb +2 -121
- data/lib/nokogiri/html4/element_description_defaults.rb +6 -12
- data/lib/nokogiri/html4/encoding_reader.rb +121 -0
- data/lib/nokogiri/html4.rb +1 -0
- data/lib/nokogiri/html5/document.rb +113 -36
- data/lib/nokogiri/html5/document_fragment.rb +9 -2
- data/lib/nokogiri/html5/node.rb +3 -5
- data/lib/nokogiri/html5.rb +127 -216
- data/lib/nokogiri/jruby/dependencies.rb +1 -19
- data/lib/{isorelax.jar → nokogiri/jruby/isorelax/isorelax/20030108/isorelax-20030108.jar} +0 -0
- data/lib/nokogiri/jruby/net/sf/saxon/Saxon-HE/9.6.0-4/Saxon-HE-9.6.0-4.jar +0 -0
- data/lib/nokogiri/jruby/net/sourceforge/htmlunit/neko-htmlunit/2.63.0/neko-htmlunit-2.63.0.jar +0 -0
- data/lib/nokogiri/jruby/nokogiri_jars.rb +43 -0
- data/lib/nokogiri/jruby/nu/validator/jing/20200702VNU/jing-20200702VNU.jar +0 -0
- data/lib/nokogiri/jruby/org/nokogiri/nekodtd/0.1.11.noko1/nekodtd-0.1.11.noko1.jar +0 -0
- data/lib/{serializer.jar → nokogiri/jruby/xalan/serializer/2.7.2/serializer-2.7.2.jar} +0 -0
- data/lib/{xalan.jar → nokogiri/jruby/xalan/xalan/2.7.2/xalan-2.7.2.jar} +0 -0
- data/lib/{xercesImpl.jar → nokogiri/jruby/xerces/xercesImpl/2.12.2/xercesImpl-2.12.2.jar} +0 -0
- data/lib/{xml-apis.jar → nokogiri/jruby/xml-apis/xml-apis/1.4.01/xml-apis-1.4.01.jar} +0 -0
- data/lib/nokogiri/nokogiri.jar +0 -0
- data/lib/nokogiri/version/constant.rb +1 -1
- data/lib/nokogiri/version/info.rb +11 -10
- data/lib/nokogiri/xml/attr.rb +49 -0
- data/lib/nokogiri/xml/builder.rb +1 -1
- data/lib/nokogiri/xml/document.rb +102 -54
- data/lib/nokogiri/xml/document_fragment.rb +49 -6
- data/lib/nokogiri/xml/namespace.rb +42 -0
- data/lib/nokogiri/xml/node/save_options.rb +4 -2
- data/lib/nokogiri/xml/node.rb +190 -35
- data/lib/nokogiri/xml/node_set.rb +87 -9
- data/lib/nokogiri/xml/parse_options.rb +127 -48
- data/lib/nokogiri/xml/pp/node.rb +6 -4
- data/lib/nokogiri/xml/processing_instruction.rb +2 -1
- data/lib/nokogiri/xml/sax/parser.rb +2 -3
- data/lib/nokogiri/xslt.rb +1 -1
- data/lib/nokogiri.rb +3 -11
- metadata +62 -274
- data/ext/java/nokogiri/EncodingHandler.java +0 -111
- data/lib/jing.jar +0 -0
- data/lib/nekodtd.jar +0 -0
- data/lib/nekohtml.jar +0 -0
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.
|
4
|
+
version: 1.14.0.rc1
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Mike Dalessio
|
@@ -20,304 +20,80 @@ authors:
|
|
20
20
|
autorequire:
|
21
21
|
bindir: bin
|
22
22
|
cert_chain: []
|
23
|
-
date: 2022-12-
|
23
|
+
date: 2022-12-28 00:00:00.000000000 Z
|
24
24
|
dependencies:
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
requirement: !ruby/object:Gem::Requirement
|
27
|
-
requirements:
|
28
|
-
- - "~>"
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
version: '1.4'
|
31
|
-
name: racc
|
32
|
-
prerelease: false
|
33
|
-
type: :runtime
|
34
|
-
version_requirements: !ruby/object:Gem::Requirement
|
35
|
-
requirements:
|
36
|
-
- - "~>"
|
37
|
-
- !ruby/object:Gem::Version
|
38
|
-
version: '1.4'
|
39
|
-
- !ruby/object:Gem::Dependency
|
40
|
-
requirement: !ruby/object:Gem::Requirement
|
41
|
-
requirements:
|
42
|
-
- - "~>"
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
version: '2.2'
|
45
|
-
name: bundler
|
46
|
-
prerelease: false
|
47
|
-
type: :development
|
48
|
-
version_requirements: !ruby/object:Gem::Requirement
|
49
|
-
requirements:
|
50
|
-
- - "~>"
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: '2.2'
|
53
|
-
- !ruby/object:Gem::Dependency
|
54
|
-
requirement: !ruby/object:Gem::Requirement
|
55
|
-
requirements:
|
56
|
-
- - "~>"
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
version: '1.4'
|
59
|
-
name: hoe-markdown
|
60
|
-
prerelease: false
|
61
|
-
type: :development
|
62
|
-
version_requirements: !ruby/object:Gem::Requirement
|
63
|
-
requirements:
|
64
|
-
- - "~>"
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
version: '1.4'
|
67
|
-
- !ruby/object:Gem::Dependency
|
68
|
-
requirement: !ruby/object:Gem::Requirement
|
69
|
-
requirements:
|
70
|
-
- - "~>"
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
version: '5.15'
|
73
|
-
name: minitest
|
74
|
-
prerelease: false
|
75
|
-
type: :development
|
76
|
-
version_requirements: !ruby/object:Gem::Requirement
|
77
|
-
requirements:
|
78
|
-
- - "~>"
|
79
|
-
- !ruby/object:Gem::Version
|
80
|
-
version: '5.15'
|
81
|
-
- !ruby/object:Gem::Dependency
|
82
|
-
requirement: !ruby/object:Gem::Requirement
|
83
|
-
requirements:
|
84
|
-
- - "~>"
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
version: '1.4'
|
87
|
-
name: minitest-reporters
|
88
|
-
prerelease: false
|
89
|
-
type: :development
|
90
|
-
version_requirements: !ruby/object:Gem::Requirement
|
91
|
-
requirements:
|
92
|
-
- - "~>"
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
version: '1.4'
|
95
|
-
- !ruby/object:Gem::Dependency
|
96
|
-
requirement: !ruby/object:Gem::Requirement
|
97
|
-
requirements:
|
98
|
-
- - "~>"
|
99
|
-
- !ruby/object:Gem::Version
|
100
|
-
version: '4.0'
|
101
|
-
name: psych
|
102
|
-
prerelease: false
|
103
|
-
type: :development
|
104
|
-
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
requirements:
|
106
|
-
- - "~>"
|
107
|
-
- !ruby/object:Gem::Version
|
108
|
-
version: '4.0'
|
109
|
-
- !ruby/object:Gem::Dependency
|
110
|
-
requirement: !ruby/object:Gem::Requirement
|
111
|
-
requirements:
|
112
|
-
- - "~>"
|
113
|
-
- !ruby/object:Gem::Version
|
114
|
-
version: '13.0'
|
115
|
-
name: rake
|
116
|
-
prerelease: false
|
117
|
-
type: :development
|
118
|
-
version_requirements: !ruby/object:Gem::Requirement
|
119
|
-
requirements:
|
120
|
-
- - "~>"
|
121
|
-
- !ruby/object:Gem::Version
|
122
|
-
version: '13.0'
|
123
|
-
- !ruby/object:Gem::Dependency
|
124
|
-
requirement: !ruby/object:Gem::Requirement
|
125
|
-
requirements:
|
126
|
-
- - '='
|
127
|
-
- !ruby/object:Gem::Version
|
128
|
-
version: 1.1.7
|
129
|
-
name: rake-compiler
|
130
|
-
prerelease: false
|
131
|
-
type: :development
|
132
|
-
version_requirements: !ruby/object:Gem::Requirement
|
133
|
-
requirements:
|
134
|
-
- - '='
|
135
|
-
- !ruby/object:Gem::Version
|
136
|
-
version: 1.1.7
|
137
25
|
- !ruby/object:Gem::Dependency
|
138
26
|
requirement: !ruby/object:Gem::Requirement
|
139
27
|
requirements:
|
140
28
|
- - '='
|
141
29
|
- !ruby/object:Gem::Version
|
142
|
-
version:
|
143
|
-
name:
|
30
|
+
version: 0.4.1
|
31
|
+
name: jar-dependencies
|
144
32
|
prerelease: false
|
145
33
|
type: :development
|
146
34
|
version_requirements: !ruby/object:Gem::Requirement
|
147
35
|
requirements:
|
148
36
|
- - '='
|
149
37
|
- !ruby/object:Gem::Version
|
150
|
-
version:
|
151
|
-
- !ruby/object:Gem::Dependency
|
152
|
-
requirement: !ruby/object:Gem::Requirement
|
153
|
-
requirements:
|
154
|
-
- - "~>"
|
155
|
-
- !ruby/object:Gem::Version
|
156
|
-
version: '6.3'
|
157
|
-
name: rdoc
|
158
|
-
prerelease: false
|
159
|
-
type: :development
|
160
|
-
version_requirements: !ruby/object:Gem::Requirement
|
161
|
-
requirements:
|
162
|
-
- - "~>"
|
163
|
-
- !ruby/object:Gem::Version
|
164
|
-
version: '6.3'
|
38
|
+
version: 0.4.1
|
165
39
|
- !ruby/object:Gem::Dependency
|
166
40
|
requirement: !ruby/object:Gem::Requirement
|
167
41
|
requirements:
|
168
42
|
- - "~>"
|
169
43
|
- !ruby/object:Gem::Version
|
170
|
-
version: 1.
|
171
|
-
name:
|
172
|
-
prerelease: false
|
173
|
-
type: :development
|
174
|
-
version_requirements: !ruby/object:Gem::Requirement
|
175
|
-
requirements:
|
176
|
-
- - "~>"
|
177
|
-
- !ruby/object:Gem::Version
|
178
|
-
version: 1.0.7
|
179
|
-
- !ruby/object:Gem::Dependency
|
180
|
-
requirement: !ruby/object:Gem::Requirement
|
181
|
-
requirements:
|
182
|
-
- - "~>"
|
183
|
-
- !ruby/object:Gem::Version
|
184
|
-
version: 1.30.1
|
185
|
-
name: rubocop
|
186
|
-
prerelease: false
|
187
|
-
type: :development
|
188
|
-
version_requirements: !ruby/object:Gem::Requirement
|
189
|
-
requirements:
|
190
|
-
- - "~>"
|
191
|
-
- !ruby/object:Gem::Version
|
192
|
-
version: 1.30.1
|
193
|
-
- !ruby/object:Gem::Dependency
|
194
|
-
requirement: !ruby/object:Gem::Requirement
|
195
|
-
requirements:
|
196
|
-
- - "~>"
|
197
|
-
- !ruby/object:Gem::Version
|
198
|
-
version: '0.17'
|
199
|
-
name: rubocop-minitest
|
200
|
-
prerelease: false
|
201
|
-
type: :development
|
202
|
-
version_requirements: !ruby/object:Gem::Requirement
|
203
|
-
requirements:
|
204
|
-
- - "~>"
|
205
|
-
- !ruby/object:Gem::Version
|
206
|
-
version: '0.17'
|
207
|
-
- !ruby/object:Gem::Dependency
|
208
|
-
requirement: !ruby/object:Gem::Requirement
|
209
|
-
requirements:
|
210
|
-
- - "~>"
|
211
|
-
- !ruby/object:Gem::Version
|
212
|
-
version: '1.12'
|
213
|
-
name: rubocop-performance
|
214
|
-
prerelease: false
|
215
|
-
type: :development
|
216
|
-
version_requirements: !ruby/object:Gem::Requirement
|
217
|
-
requirements:
|
218
|
-
- - "~>"
|
219
|
-
- !ruby/object:Gem::Version
|
220
|
-
version: '1.12'
|
221
|
-
- !ruby/object:Gem::Dependency
|
222
|
-
requirement: !ruby/object:Gem::Requirement
|
223
|
-
requirements:
|
224
|
-
- - "~>"
|
225
|
-
- !ruby/object:Gem::Version
|
226
|
-
version: '0.6'
|
227
|
-
name: rubocop-rake
|
228
|
-
prerelease: false
|
229
|
-
type: :development
|
230
|
-
version_requirements: !ruby/object:Gem::Requirement
|
231
|
-
requirements:
|
232
|
-
- - "~>"
|
233
|
-
- !ruby/object:Gem::Version
|
234
|
-
version: '0.6'
|
235
|
-
- !ruby/object:Gem::Dependency
|
236
|
-
requirement: !ruby/object:Gem::Requirement
|
237
|
-
requirements:
|
238
|
-
- - '='
|
239
|
-
- !ruby/object:Gem::Version
|
240
|
-
version: 2.5.0
|
241
|
-
name: rubocop-shopify
|
242
|
-
prerelease: false
|
243
|
-
type: :development
|
244
|
-
version_requirements: !ruby/object:Gem::Requirement
|
245
|
-
requirements:
|
246
|
-
- - '='
|
247
|
-
- !ruby/object:Gem::Version
|
248
|
-
version: 2.5.0
|
249
|
-
- !ruby/object:Gem::Dependency
|
250
|
-
requirement: !ruby/object:Gem::Requirement
|
251
|
-
requirements:
|
252
|
-
- - "~>"
|
253
|
-
- !ruby/object:Gem::Version
|
254
|
-
version: '1.0'
|
255
|
-
name: ruby_memcheck
|
256
|
-
prerelease: false
|
257
|
-
type: :development
|
258
|
-
version_requirements: !ruby/object:Gem::Requirement
|
259
|
-
requirements:
|
260
|
-
- - "~>"
|
261
|
-
- !ruby/object:Gem::Version
|
262
|
-
version: '1.0'
|
263
|
-
- !ruby/object:Gem::Dependency
|
264
|
-
requirement: !ruby/object:Gem::Requirement
|
265
|
-
requirements:
|
266
|
-
- - "~>"
|
267
|
-
- !ruby/object:Gem::Version
|
268
|
-
version: '0.21'
|
269
|
-
name: simplecov
|
44
|
+
version: '1.4'
|
45
|
+
name: racc
|
270
46
|
prerelease: false
|
271
|
-
type: :
|
47
|
+
type: :runtime
|
272
48
|
version_requirements: !ruby/object:Gem::Requirement
|
273
49
|
requirements:
|
274
50
|
- - "~>"
|
275
51
|
- !ruby/object:Gem::Version
|
276
|
-
version: '
|
52
|
+
version: '1.4'
|
277
53
|
description: |
|
278
54
|
Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby. It provides a
|
279
55
|
sensible, easy-to-understand API for reading, writing, modifying, and querying documents. It is
|
280
|
-
fast and standards-compliant by relying on native parsers like libxml2
|
56
|
+
fast and standards-compliant by relying on native parsers like libxml2, libgumbo, or xerces.
|
281
57
|
email: nokogiri-talk@googlegroups.com
|
282
58
|
executables:
|
283
59
|
- nokogiri
|
284
60
|
extensions: []
|
285
61
|
extra_rdoc_files:
|
286
|
-
- ext/nokogiri/
|
287
|
-
- ext/nokogiri/xml_xpath_context.c
|
288
|
-
- ext/nokogiri/xml_attr.c
|
289
|
-
- ext/nokogiri/libxml2_backwards_compat.c
|
290
|
-
- ext/nokogiri/xml_comment.c
|
291
|
-
- ext/nokogiri/nokogiri.c
|
292
|
-
- ext/nokogiri/xml_sax_parser_context.c
|
293
|
-
- ext/nokogiri/xml_node_set.c
|
294
|
-
- ext/nokogiri/xml_reader.c
|
62
|
+
- ext/nokogiri/gumbo.c
|
295
63
|
- ext/nokogiri/html4_document.c
|
296
|
-
- ext/nokogiri/
|
64
|
+
- ext/nokogiri/html4_element_description.c
|
297
65
|
- ext/nokogiri/html4_entity_lookup.c
|
298
|
-
- ext/nokogiri/xml_element_content.c
|
299
|
-
- ext/nokogiri/html4_sax_push_parser.c
|
300
|
-
- ext/nokogiri/xml_namespace.c
|
301
66
|
- ext/nokogiri/html4_sax_parser_context.c
|
67
|
+
- ext/nokogiri/html4_sax_push_parser.c
|
68
|
+
- ext/nokogiri/libxml2_backwards_compat.c
|
69
|
+
- ext/nokogiri/nokogiri.c
|
70
|
+
- ext/nokogiri/test_global_handlers.c
|
71
|
+
- ext/nokogiri/xml_attr.c
|
72
|
+
- ext/nokogiri/xml_attribute_decl.c
|
73
|
+
- ext/nokogiri/xml_cdata.c
|
74
|
+
- ext/nokogiri/xml_comment.c
|
302
75
|
- ext/nokogiri/xml_document.c
|
303
|
-
- ext/nokogiri/xml_element_decl.c
|
304
|
-
- ext/nokogiri/xml_schema.c
|
305
|
-
- ext/nokogiri/xml_processing_instruction.c
|
306
|
-
- ext/nokogiri/xml_text.c
|
307
|
-
- ext/nokogiri/xml_syntax_error.c
|
308
76
|
- ext/nokogiri/xml_document_fragment.c
|
309
|
-
- ext/nokogiri/
|
77
|
+
- ext/nokogiri/xml_dtd.c
|
78
|
+
- ext/nokogiri/xml_element_content.c
|
79
|
+
- ext/nokogiri/xml_element_decl.c
|
310
80
|
- ext/nokogiri/xml_encoding_handler.c
|
311
|
-
- ext/nokogiri/xml_relax_ng.c
|
312
81
|
- ext/nokogiri/xml_entity_decl.c
|
313
|
-
- ext/nokogiri/test_global_handlers.c
|
314
|
-
- ext/nokogiri/xml_node.c
|
315
82
|
- ext/nokogiri/xml_entity_reference.c
|
316
|
-
- ext/nokogiri/
|
317
|
-
- ext/nokogiri/
|
83
|
+
- ext/nokogiri/xml_namespace.c
|
84
|
+
- ext/nokogiri/xml_node.c
|
85
|
+
- ext/nokogiri/xml_node_set.c
|
86
|
+
- ext/nokogiri/xml_processing_instruction.c
|
87
|
+
- ext/nokogiri/xml_reader.c
|
88
|
+
- ext/nokogiri/xml_relax_ng.c
|
318
89
|
- ext/nokogiri/xml_sax_parser.c
|
319
|
-
- ext/nokogiri/
|
320
|
-
- ext/nokogiri/
|
90
|
+
- ext/nokogiri/xml_sax_parser_context.c
|
91
|
+
- ext/nokogiri/xml_sax_push_parser.c
|
92
|
+
- ext/nokogiri/xml_schema.c
|
93
|
+
- ext/nokogiri/xml_syntax_error.c
|
94
|
+
- ext/nokogiri/xml_text.c
|
95
|
+
- ext/nokogiri/xml_xpath_context.c
|
96
|
+
- ext/nokogiri/xslt_stylesheet.c
|
321
97
|
- README.md
|
322
98
|
files:
|
323
99
|
- Gemfile
|
@@ -326,7 +102,6 @@ files:
|
|
326
102
|
- README.md
|
327
103
|
- bin/nokogiri
|
328
104
|
- dependencies.yml
|
329
|
-
- ext/java/nokogiri/EncodingHandler.java
|
330
105
|
- ext/java/nokogiri/Html4Document.java
|
331
106
|
- ext/java/nokogiri/Html4ElementDescription.java
|
332
107
|
- ext/java/nokogiri/Html4EntityLookup.java
|
@@ -453,10 +228,6 @@ files:
|
|
453
228
|
- gumbo-parser/CHANGES.md
|
454
229
|
- gumbo-parser/Makefile
|
455
230
|
- gumbo-parser/THANKS
|
456
|
-
- lib/isorelax.jar
|
457
|
-
- lib/jing.jar
|
458
|
-
- lib/nekodtd.jar
|
459
|
-
- lib/nekohtml.jar
|
460
231
|
- lib/nokogiri.rb
|
461
232
|
- lib/nokogiri/class_resolver.rb
|
462
233
|
- lib/nokogiri/css.rb
|
@@ -469,6 +240,7 @@ files:
|
|
469
240
|
- lib/nokogiri/css/tokenizer.rex
|
470
241
|
- lib/nokogiri/css/xpath_visitor.rb
|
471
242
|
- lib/nokogiri/decorators/slop.rb
|
243
|
+
- lib/nokogiri/encoding_handler.rb
|
472
244
|
- lib/nokogiri/extension.rb
|
473
245
|
- lib/nokogiri/gumbo.rb
|
474
246
|
- lib/nokogiri/html.rb
|
@@ -478,6 +250,7 @@ files:
|
|
478
250
|
- lib/nokogiri/html4/document_fragment.rb
|
479
251
|
- lib/nokogiri/html4/element_description.rb
|
480
252
|
- lib/nokogiri/html4/element_description_defaults.rb
|
253
|
+
- lib/nokogiri/html4/encoding_reader.rb
|
481
254
|
- lib/nokogiri/html4/entity_lookup.rb
|
482
255
|
- lib/nokogiri/html4/sax/parser.rb
|
483
256
|
- lib/nokogiri/html4/sax/parser_context.rb
|
@@ -487,6 +260,16 @@ files:
|
|
487
260
|
- lib/nokogiri/html5/document_fragment.rb
|
488
261
|
- lib/nokogiri/html5/node.rb
|
489
262
|
- lib/nokogiri/jruby/dependencies.rb
|
263
|
+
- lib/nokogiri/jruby/isorelax/isorelax/20030108/isorelax-20030108.jar
|
264
|
+
- lib/nokogiri/jruby/net/sf/saxon/Saxon-HE/9.6.0-4/Saxon-HE-9.6.0-4.jar
|
265
|
+
- lib/nokogiri/jruby/net/sourceforge/htmlunit/neko-htmlunit/2.63.0/neko-htmlunit-2.63.0.jar
|
266
|
+
- lib/nokogiri/jruby/nokogiri_jars.rb
|
267
|
+
- lib/nokogiri/jruby/nu/validator/jing/20200702VNU/jing-20200702VNU.jar
|
268
|
+
- lib/nokogiri/jruby/org/nokogiri/nekodtd/0.1.11.noko1/nekodtd-0.1.11.noko1.jar
|
269
|
+
- lib/nokogiri/jruby/xalan/serializer/2.7.2/serializer-2.7.2.jar
|
270
|
+
- lib/nokogiri/jruby/xalan/xalan/2.7.2/xalan-2.7.2.jar
|
271
|
+
- lib/nokogiri/jruby/xerces/xercesImpl/2.12.2/xercesImpl-2.12.2.jar
|
272
|
+
- lib/nokogiri/jruby/xml-apis/xml-apis/1.4.01/xml-apis-1.4.01.jar
|
490
273
|
- lib/nokogiri/nokogiri.jar
|
491
274
|
- lib/nokogiri/syntax_error.rb
|
492
275
|
- lib/nokogiri/version.rb
|
@@ -531,10 +314,6 @@ files:
|
|
531
314
|
- lib/nokogiri/xml/xpath_context.rb
|
532
315
|
- lib/nokogiri/xslt.rb
|
533
316
|
- lib/nokogiri/xslt/stylesheet.rb
|
534
|
-
- lib/serializer.jar
|
535
|
-
- lib/xalan.jar
|
536
|
-
- lib/xercesImpl.jar
|
537
|
-
- lib/xml-apis.jar
|
538
317
|
- lib/xsd/xmlparser/nokogiri.rb
|
539
318
|
homepage: https://nokogiri.org
|
540
319
|
licenses:
|
@@ -552,18 +331,27 @@ rdoc_options:
|
|
552
331
|
- README.md
|
553
332
|
require_paths:
|
554
333
|
- lib
|
334
|
+
- lib/nokogiri/jruby
|
555
335
|
required_ruby_version: !ruby/object:Gem::Requirement
|
556
336
|
requirements:
|
557
337
|
- - ">="
|
558
338
|
- !ruby/object:Gem::Version
|
559
|
-
version: 2.
|
339
|
+
version: 2.7.0
|
560
340
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
561
341
|
requirements:
|
562
|
-
- - "
|
342
|
+
- - ">"
|
563
343
|
- !ruby/object:Gem::Version
|
564
|
-
version:
|
565
|
-
requirements:
|
566
|
-
|
344
|
+
version: 1.3.1
|
345
|
+
requirements:
|
346
|
+
- jar isorelax, isorelax, 20030108
|
347
|
+
- jar org.nokogiri, nekodtd, 0.1.11.noko1
|
348
|
+
- jar net.sourceforge.htmlunit, neko-htmlunit, 2.63.0
|
349
|
+
- jar nu.validator, jing, 20200702VNU
|
350
|
+
- jar xalan, serializer, 2.7.2
|
351
|
+
- jar xalan, xalan, 2.7.2
|
352
|
+
- jar xerces, xercesImpl, 2.12.2
|
353
|
+
- jar xml-apis, xml-apis, 1.4.01
|
354
|
+
rubygems_version: 3.3.25
|
567
355
|
signing_key:
|
568
356
|
specification_version: 4
|
569
357
|
summary: Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby.
|
@@ -1,111 +0,0 @@
|
|
1
|
-
package nokogiri;
|
2
|
-
|
3
|
-
import static nokogiri.internals.NokogiriHelpers.getNokogiriClass;
|
4
|
-
|
5
|
-
import java.util.HashMap;
|
6
|
-
|
7
|
-
import org.jruby.Ruby;
|
8
|
-
import org.jruby.RubyClass;
|
9
|
-
import org.jruby.RubyObject;
|
10
|
-
import org.jruby.anno.JRubyClass;
|
11
|
-
import org.jruby.anno.JRubyMethod;
|
12
|
-
import org.jruby.runtime.ThreadContext;
|
13
|
-
import org.jruby.runtime.builtin.IRubyObject;
|
14
|
-
|
15
|
-
/**
|
16
|
-
* Stub class to satisfy unit tests. I'm not sure where this class is
|
17
|
-
* meant to be used. As coded it won't really interact with any other
|
18
|
-
* classes and will have no effect on character encodings reported by
|
19
|
-
* documents being parsed.
|
20
|
-
*
|
21
|
-
* @author Patrick Mahoney <pat@polycrstal.org>
|
22
|
-
*/
|
23
|
-
@JRubyClass(name = "Nokogiri::EncodingHandler")
|
24
|
-
public class EncodingHandler extends RubyObject
|
25
|
-
{
|
26
|
-
protected static HashMap<String, String> map = new HashMap<String, String>();
|
27
|
-
static
|
28
|
-
{
|
29
|
-
addInitial();
|
30
|
-
}
|
31
|
-
|
32
|
-
protected String name;
|
33
|
-
|
34
|
-
protected static void
|
35
|
-
addInitial()
|
36
|
-
{
|
37
|
-
map.put("UTF-8", "UTF-8");
|
38
|
-
}
|
39
|
-
|
40
|
-
public
|
41
|
-
EncodingHandler(Ruby ruby, RubyClass klass, String value)
|
42
|
-
{
|
43
|
-
super(ruby, klass);
|
44
|
-
name = value;
|
45
|
-
}
|
46
|
-
|
47
|
-
@JRubyMethod(name = "[]", meta = true)
|
48
|
-
public static IRubyObject
|
49
|
-
get(ThreadContext context,
|
50
|
-
IRubyObject _klass,
|
51
|
-
IRubyObject keyObj)
|
52
|
-
{
|
53
|
-
Ruby ruby = context.getRuntime();
|
54
|
-
String key = keyObj.toString();
|
55
|
-
String value = map.get(key);
|
56
|
-
if (value == null) {
|
57
|
-
return ruby.getNil();
|
58
|
-
}
|
59
|
-
|
60
|
-
return new EncodingHandler(
|
61
|
-
ruby,
|
62
|
-
getNokogiriClass(ruby, "Nokogiri::EncodingHandler"),
|
63
|
-
value);
|
64
|
-
}
|
65
|
-
|
66
|
-
@JRubyMethod(meta = true)
|
67
|
-
public static IRubyObject
|
68
|
-
delete (ThreadContext context,
|
69
|
-
IRubyObject _klass,
|
70
|
-
IRubyObject keyObj)
|
71
|
-
{
|
72
|
-
String key = keyObj.toString();
|
73
|
-
String value = map.remove(key);
|
74
|
-
if (value == null) {
|
75
|
-
return context.getRuntime().getNil();
|
76
|
-
}
|
77
|
-
return context.getRuntime().newString(value);
|
78
|
-
}
|
79
|
-
|
80
|
-
@JRubyMethod(name = "clear_aliases!", meta = true)
|
81
|
-
public static IRubyObject
|
82
|
-
clear_aliases(ThreadContext context,
|
83
|
-
IRubyObject _klass)
|
84
|
-
{
|
85
|
-
map.clear();
|
86
|
-
addInitial();
|
87
|
-
return context.getRuntime().getNil();
|
88
|
-
}
|
89
|
-
|
90
|
-
@JRubyMethod(meta = true)
|
91
|
-
public static IRubyObject
|
92
|
-
alias(ThreadContext context,
|
93
|
-
IRubyObject _klass,
|
94
|
-
IRubyObject orig,
|
95
|
-
IRubyObject alias)
|
96
|
-
{
|
97
|
-
String value = map.get(orig.toString());
|
98
|
-
if (value != null) {
|
99
|
-
map.put(alias.toString(), value);
|
100
|
-
}
|
101
|
-
|
102
|
-
return context.getRuntime().getNil();
|
103
|
-
}
|
104
|
-
|
105
|
-
@JRubyMethod
|
106
|
-
public IRubyObject
|
107
|
-
name(ThreadContext context)
|
108
|
-
{
|
109
|
-
return context.getRuntime().newString(name);
|
110
|
-
}
|
111
|
-
}
|
data/lib/jing.jar
DELETED
Binary file
|
data/lib/nekodtd.jar
DELETED
Binary file
|
data/lib/nekohtml.jar
DELETED
Binary file
|