nokogiri 1.13.9-java → 1.14.0.rc1-java

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 (117) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +33 -0
  3. data/LICENSE-DEPENDENCIES.md +830 -509
  4. data/README.md +18 -11
  5. data/dependencies.yml +25 -7
  6. data/ext/java/nokogiri/Html4Document.java +2 -0
  7. data/ext/java/nokogiri/Html4ElementDescription.java +9 -9
  8. data/ext/java/nokogiri/Html4EntityLookup.java +14 -3
  9. data/ext/java/nokogiri/Html4SaxParserContext.java +2 -2
  10. data/ext/java/nokogiri/Html4SaxPushParser.java +3 -0
  11. data/ext/java/nokogiri/NokogiriService.java +1 -24
  12. data/ext/java/nokogiri/XmlAttr.java +1 -1
  13. data/ext/java/nokogiri/XmlAttributeDecl.java +2 -1
  14. data/ext/java/nokogiri/XmlCdata.java +2 -1
  15. data/ext/java/nokogiri/XmlComment.java +2 -1
  16. data/ext/java/nokogiri/XmlDocument.java +5 -6
  17. data/ext/java/nokogiri/XmlDocumentFragment.java +2 -1
  18. data/ext/java/nokogiri/XmlDtd.java +4 -3
  19. data/ext/java/nokogiri/XmlElement.java +1 -0
  20. data/ext/java/nokogiri/XmlElementContent.java +4 -1
  21. data/ext/java/nokogiri/XmlElementDecl.java +3 -1
  22. data/ext/java/nokogiri/XmlEntityDecl.java +2 -0
  23. data/ext/java/nokogiri/XmlEntityReference.java +1 -0
  24. data/ext/java/nokogiri/XmlNamespace.java +2 -0
  25. data/ext/java/nokogiri/XmlNode.java +39 -24
  26. data/ext/java/nokogiri/XmlNodeSet.java +10 -7
  27. data/ext/java/nokogiri/XmlProcessingInstruction.java +1 -0
  28. data/ext/java/nokogiri/XmlReader.java +4 -3
  29. data/ext/java/nokogiri/XmlRelaxng.java +1 -0
  30. data/ext/java/nokogiri/XmlSaxParserContext.java +1 -0
  31. data/ext/java/nokogiri/XmlSaxPushParser.java +3 -0
  32. data/ext/java/nokogiri/XmlSchema.java +4 -2
  33. data/ext/java/nokogiri/XmlSyntaxError.java +1 -0
  34. data/ext/java/nokogiri/XmlText.java +1 -0
  35. data/ext/java/nokogiri/XmlXpathContext.java +2 -0
  36. data/ext/java/nokogiri/XsltStylesheet.java +16 -13
  37. data/ext/java/nokogiri/internals/HtmlDomParserContext.java +3 -2
  38. data/ext/java/nokogiri/internals/NokogiriHandler.java +2 -2
  39. data/ext/java/nokogiri/internals/NokogiriHelpers.java +4 -5
  40. data/ext/java/nokogiri/internals/NokogiriXPathFunction.java +3 -3
  41. data/ext/java/nokogiri/internals/ParserContext.java +2 -0
  42. data/ext/java/nokogiri/internals/ReaderNode.java +1 -1
  43. data/ext/java/nokogiri/internals/SaveContextVisitor.java +4 -2
  44. data/ext/java/nokogiri/internals/SchemaErrorHandler.java +2 -2
  45. data/ext/java/nokogiri/internals/XmlDomParserContext.java +2 -1
  46. data/ext/java/nokogiri/internals/c14n/Canonicalizer.java +1 -0
  47. data/ext/java/nokogiri/internals/dom2dtm/DOM2DTM.java +5 -4
  48. data/ext/nokogiri/extconf.rb +79 -20
  49. data/ext/nokogiri/gumbo.c +19 -9
  50. data/ext/nokogiri/html4_document.c +1 -1
  51. data/ext/nokogiri/html4_entity_lookup.c +1 -1
  52. data/ext/nokogiri/html4_sax_parser_context.c +0 -5
  53. data/ext/nokogiri/nokogiri.c +32 -51
  54. data/ext/nokogiri/xml_attribute_decl.c +1 -1
  55. data/ext/nokogiri/xml_cdata.c +1 -1
  56. data/ext/nokogiri/xml_document.c +16 -11
  57. data/ext/nokogiri/xml_element_content.c +2 -2
  58. data/ext/nokogiri/xml_element_decl.c +1 -1
  59. data/ext/nokogiri/xml_encoding_handler.c +2 -2
  60. data/ext/nokogiri/xml_namespace.c +38 -8
  61. data/ext/nokogiri/xml_node.c +286 -26
  62. data/ext/nokogiri/xml_node_set.c +0 -2
  63. data/ext/nokogiri/xml_reader.c +44 -20
  64. data/ext/nokogiri/xml_relax_ng.c +0 -2
  65. data/ext/nokogiri/xml_sax_parser.c +22 -16
  66. data/ext/nokogiri/xml_sax_parser_context.c +0 -5
  67. data/ext/nokogiri/xml_sax_push_parser.c +0 -2
  68. data/ext/nokogiri/xml_schema.c +0 -2
  69. data/ext/nokogiri/xml_xpath_context.c +87 -83
  70. data/ext/nokogiri/xslt_stylesheet.c +14 -13
  71. data/gumbo-parser/Makefile +10 -0
  72. data/lib/nokogiri/css/node.rb +2 -2
  73. data/lib/nokogiri/css/xpath_visitor.rb +3 -1
  74. data/lib/nokogiri/css.rb +6 -0
  75. data/lib/nokogiri/encoding_handler.rb +57 -0
  76. data/lib/nokogiri/extension.rb +3 -2
  77. data/lib/nokogiri/html4/document.rb +2 -121
  78. data/lib/nokogiri/html4/element_description_defaults.rb +6 -12
  79. data/lib/nokogiri/html4/encoding_reader.rb +121 -0
  80. data/lib/nokogiri/html4.rb +1 -0
  81. data/lib/nokogiri/html5/document.rb +113 -36
  82. data/lib/nokogiri/html5/document_fragment.rb +9 -2
  83. data/lib/nokogiri/html5/node.rb +3 -5
  84. data/lib/nokogiri/html5.rb +127 -216
  85. data/lib/nokogiri/jruby/dependencies.rb +1 -19
  86. data/lib/{isorelax.jar → nokogiri/jruby/isorelax/isorelax/20030108/isorelax-20030108.jar} +0 -0
  87. data/lib/nokogiri/jruby/net/sf/saxon/Saxon-HE/9.6.0-4/Saxon-HE-9.6.0-4.jar +0 -0
  88. data/lib/nokogiri/jruby/net/sourceforge/htmlunit/neko-htmlunit/2.63.0/neko-htmlunit-2.63.0.jar +0 -0
  89. data/lib/nokogiri/jruby/nokogiri_jars.rb +43 -0
  90. data/lib/nokogiri/jruby/nu/validator/jing/20200702VNU/jing-20200702VNU.jar +0 -0
  91. data/lib/nokogiri/jruby/org/nokogiri/nekodtd/0.1.11.noko1/nekodtd-0.1.11.noko1.jar +0 -0
  92. data/lib/{serializer.jar → nokogiri/jruby/xalan/serializer/2.7.2/serializer-2.7.2.jar} +0 -0
  93. data/lib/{xalan.jar → nokogiri/jruby/xalan/xalan/2.7.2/xalan-2.7.2.jar} +0 -0
  94. data/lib/{xercesImpl.jar → nokogiri/jruby/xerces/xercesImpl/2.12.2/xercesImpl-2.12.2.jar} +0 -0
  95. data/lib/{xml-apis.jar → nokogiri/jruby/xml-apis/xml-apis/1.4.01/xml-apis-1.4.01.jar} +0 -0
  96. data/lib/nokogiri/nokogiri.jar +0 -0
  97. data/lib/nokogiri/version/constant.rb +1 -1
  98. data/lib/nokogiri/version/info.rb +11 -10
  99. data/lib/nokogiri/xml/attr.rb +49 -0
  100. data/lib/nokogiri/xml/builder.rb +1 -1
  101. data/lib/nokogiri/xml/document.rb +102 -54
  102. data/lib/nokogiri/xml/document_fragment.rb +49 -6
  103. data/lib/nokogiri/xml/namespace.rb +42 -0
  104. data/lib/nokogiri/xml/node/save_options.rb +4 -2
  105. data/lib/nokogiri/xml/node.rb +190 -35
  106. data/lib/nokogiri/xml/node_set.rb +87 -9
  107. data/lib/nokogiri/xml/parse_options.rb +127 -48
  108. data/lib/nokogiri/xml/pp/node.rb +6 -4
  109. data/lib/nokogiri/xml/processing_instruction.rb +2 -1
  110. data/lib/nokogiri/xml/sax/parser.rb +2 -3
  111. data/lib/nokogiri/xslt.rb +1 -1
  112. data/lib/nokogiri.rb +3 -11
  113. metadata +62 -260
  114. data/ext/java/nokogiri/EncodingHandler.java +0 -111
  115. data/lib/jing.jar +0 -0
  116. data/lib/nekodtd.jar +0 -0
  117. 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.13.9
4
+ version: 1.14.0.rc1
5
5
  platform: java
6
6
  authors:
7
7
  - Mike Dalessio
@@ -20,290 +20,80 @@ authors:
20
20
  autorequire:
21
21
  bindir: bin
22
22
  cert_chain: []
23
- date: 2022-10-18 00:00:00.000000000 Z
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: '13.0'
101
- name: rake
102
- prerelease: false
103
- type: :development
104
- version_requirements: !ruby/object:Gem::Requirement
105
- requirements:
106
- - - "~>"
107
- - !ruby/object:Gem::Version
108
- version: '13.0'
109
- - !ruby/object:Gem::Dependency
110
- requirement: !ruby/object:Gem::Requirement
111
- requirements:
112
- - - '='
113
- - !ruby/object:Gem::Version
114
- version: 1.1.7
115
- name: rake-compiler
116
- prerelease: false
117
- type: :development
118
- version_requirements: !ruby/object:Gem::Requirement
119
- requirements:
120
- - - '='
121
- - !ruby/object:Gem::Version
122
- version: 1.1.7
123
- - !ruby/object:Gem::Dependency
124
- requirement: !ruby/object:Gem::Requirement
125
- requirements:
126
- - - '='
127
- - !ruby/object:Gem::Version
128
- version: 1.2.2
129
- name: rake-compiler-dock
130
- prerelease: false
131
- type: :development
132
- version_requirements: !ruby/object:Gem::Requirement
133
- requirements:
134
- - - '='
135
- - !ruby/object:Gem::Version
136
- version: 1.2.2
137
- - !ruby/object:Gem::Dependency
138
- requirement: !ruby/object:Gem::Requirement
139
- requirements:
140
- - - "~>"
141
- - !ruby/object:Gem::Version
142
- version: '6.3'
143
- name: rdoc
144
- prerelease: false
145
- type: :development
146
- version_requirements: !ruby/object:Gem::Requirement
147
- requirements:
148
- - - "~>"
149
- - !ruby/object:Gem::Version
150
- version: '6.3'
151
- - !ruby/object:Gem::Dependency
152
- requirement: !ruby/object:Gem::Requirement
153
- requirements:
154
- - - "~>"
155
- - !ruby/object:Gem::Version
156
- version: 1.0.7
157
- name: rexical
158
- prerelease: false
159
- type: :development
160
- version_requirements: !ruby/object:Gem::Requirement
161
- requirements:
162
- - - "~>"
163
- - !ruby/object:Gem::Version
164
- version: 1.0.7
165
- - !ruby/object:Gem::Dependency
166
- requirement: !ruby/object:Gem::Requirement
167
- requirements:
168
- - - "~>"
169
- - !ruby/object:Gem::Version
170
- version: 1.30.1
171
- name: rubocop
172
- prerelease: false
173
- type: :development
174
- version_requirements: !ruby/object:Gem::Requirement
175
- requirements:
176
- - - "~>"
177
- - !ruby/object:Gem::Version
178
- version: 1.30.1
179
- - !ruby/object:Gem::Dependency
180
- requirement: !ruby/object:Gem::Requirement
181
- requirements:
182
- - - "~>"
183
- - !ruby/object:Gem::Version
184
- version: '0.17'
185
- name: rubocop-minitest
186
- prerelease: false
187
- type: :development
188
- version_requirements: !ruby/object:Gem::Requirement
189
- requirements:
190
- - - "~>"
191
- - !ruby/object:Gem::Version
192
- version: '0.17'
193
- - !ruby/object:Gem::Dependency
194
- requirement: !ruby/object:Gem::Requirement
195
- requirements:
196
- - - "~>"
197
- - !ruby/object:Gem::Version
198
- version: '1.12'
199
- name: rubocop-performance
200
- prerelease: false
201
- type: :development
202
- version_requirements: !ruby/object:Gem::Requirement
203
- requirements:
204
- - - "~>"
205
- - !ruby/object:Gem::Version
206
- version: '1.12'
207
- - !ruby/object:Gem::Dependency
208
- requirement: !ruby/object:Gem::Requirement
209
- requirements:
210
- - - "~>"
211
- - !ruby/object:Gem::Version
212
- version: '0.6'
213
- name: rubocop-rake
214
- prerelease: false
215
- type: :development
216
- version_requirements: !ruby/object:Gem::Requirement
217
- requirements:
218
- - - "~>"
219
- - !ruby/object:Gem::Version
220
- version: '0.6'
221
25
  - !ruby/object:Gem::Dependency
222
26
  requirement: !ruby/object:Gem::Requirement
223
27
  requirements:
224
28
  - - '='
225
29
  - !ruby/object:Gem::Version
226
- version: 2.5.0
227
- name: rubocop-shopify
30
+ version: 0.4.1
31
+ name: jar-dependencies
228
32
  prerelease: false
229
33
  type: :development
230
34
  version_requirements: !ruby/object:Gem::Requirement
231
35
  requirements:
232
36
  - - '='
233
37
  - !ruby/object:Gem::Version
234
- version: 2.5.0
235
- - !ruby/object:Gem::Dependency
236
- requirement: !ruby/object:Gem::Requirement
237
- requirements:
238
- - - "~>"
239
- - !ruby/object:Gem::Version
240
- version: '1.0'
241
- name: ruby_memcheck
242
- prerelease: false
243
- type: :development
244
- version_requirements: !ruby/object:Gem::Requirement
245
- requirements:
246
- - - "~>"
247
- - !ruby/object:Gem::Version
248
- version: '1.0'
38
+ version: 0.4.1
249
39
  - !ruby/object:Gem::Dependency
250
40
  requirement: !ruby/object:Gem::Requirement
251
41
  requirements:
252
42
  - - "~>"
253
43
  - !ruby/object:Gem::Version
254
- version: '0.21'
255
- name: simplecov
44
+ version: '1.4'
45
+ name: racc
256
46
  prerelease: false
257
- type: :development
47
+ type: :runtime
258
48
  version_requirements: !ruby/object:Gem::Requirement
259
49
  requirements:
260
50
  - - "~>"
261
51
  - !ruby/object:Gem::Version
262
- version: '0.21'
52
+ version: '1.4'
263
53
  description: |
264
54
  Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby. It provides a
265
55
  sensible, easy-to-understand API for reading, writing, modifying, and querying documents. It is
266
- fast and standards-compliant by relying on native parsers like libxml2 (C) and xerces (Java).
56
+ fast and standards-compliant by relying on native parsers like libxml2, libgumbo, or xerces.
267
57
  email: nokogiri-talk@googlegroups.com
268
58
  executables:
269
59
  - nokogiri
270
60
  extensions: []
271
61
  extra_rdoc_files:
272
- - ext/nokogiri/xml_dtd.c
273
- - ext/nokogiri/xml_xpath_context.c
274
- - ext/nokogiri/xml_attr.c
275
- - ext/nokogiri/libxml2_backwards_compat.c
276
- - ext/nokogiri/xml_comment.c
277
- - ext/nokogiri/nokogiri.c
278
- - ext/nokogiri/xml_sax_parser_context.c
279
- - ext/nokogiri/xml_node_set.c
280
- - ext/nokogiri/xml_reader.c
62
+ - ext/nokogiri/gumbo.c
281
63
  - ext/nokogiri/html4_document.c
282
- - ext/nokogiri/xml_cdata.c
64
+ - ext/nokogiri/html4_element_description.c
283
65
  - ext/nokogiri/html4_entity_lookup.c
284
- - ext/nokogiri/xml_element_content.c
285
- - ext/nokogiri/html4_sax_push_parser.c
286
- - ext/nokogiri/xml_namespace.c
287
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
288
75
  - ext/nokogiri/xml_document.c
289
- - ext/nokogiri/xml_element_decl.c
290
- - ext/nokogiri/xml_schema.c
291
- - ext/nokogiri/xml_processing_instruction.c
292
- - ext/nokogiri/xml_text.c
293
- - ext/nokogiri/xml_syntax_error.c
294
76
  - ext/nokogiri/xml_document_fragment.c
295
- - ext/nokogiri/xml_sax_push_parser.c
77
+ - ext/nokogiri/xml_dtd.c
78
+ - ext/nokogiri/xml_element_content.c
79
+ - ext/nokogiri/xml_element_decl.c
296
80
  - ext/nokogiri/xml_encoding_handler.c
297
- - ext/nokogiri/xml_relax_ng.c
298
81
  - ext/nokogiri/xml_entity_decl.c
299
- - ext/nokogiri/test_global_handlers.c
300
- - ext/nokogiri/xml_node.c
301
82
  - ext/nokogiri/xml_entity_reference.c
302
- - ext/nokogiri/xslt_stylesheet.c
303
- - ext/nokogiri/html4_element_description.c
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
304
89
  - ext/nokogiri/xml_sax_parser.c
305
- - ext/nokogiri/xml_attribute_decl.c
306
- - ext/nokogiri/gumbo.c
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
307
97
  - README.md
308
98
  files:
309
99
  - Gemfile
@@ -312,7 +102,6 @@ files:
312
102
  - README.md
313
103
  - bin/nokogiri
314
104
  - dependencies.yml
315
- - ext/java/nokogiri/EncodingHandler.java
316
105
  - ext/java/nokogiri/Html4Document.java
317
106
  - ext/java/nokogiri/Html4ElementDescription.java
318
107
  - ext/java/nokogiri/Html4EntityLookup.java
@@ -439,10 +228,6 @@ files:
439
228
  - gumbo-parser/CHANGES.md
440
229
  - gumbo-parser/Makefile
441
230
  - gumbo-parser/THANKS
442
- - lib/isorelax.jar
443
- - lib/jing.jar
444
- - lib/nekodtd.jar
445
- - lib/nekohtml.jar
446
231
  - lib/nokogiri.rb
447
232
  - lib/nokogiri/class_resolver.rb
448
233
  - lib/nokogiri/css.rb
@@ -455,6 +240,7 @@ files:
455
240
  - lib/nokogiri/css/tokenizer.rex
456
241
  - lib/nokogiri/css/xpath_visitor.rb
457
242
  - lib/nokogiri/decorators/slop.rb
243
+ - lib/nokogiri/encoding_handler.rb
458
244
  - lib/nokogiri/extension.rb
459
245
  - lib/nokogiri/gumbo.rb
460
246
  - lib/nokogiri/html.rb
@@ -464,6 +250,7 @@ files:
464
250
  - lib/nokogiri/html4/document_fragment.rb
465
251
  - lib/nokogiri/html4/element_description.rb
466
252
  - lib/nokogiri/html4/element_description_defaults.rb
253
+ - lib/nokogiri/html4/encoding_reader.rb
467
254
  - lib/nokogiri/html4/entity_lookup.rb
468
255
  - lib/nokogiri/html4/sax/parser.rb
469
256
  - lib/nokogiri/html4/sax/parser_context.rb
@@ -473,6 +260,16 @@ files:
473
260
  - lib/nokogiri/html5/document_fragment.rb
474
261
  - lib/nokogiri/html5/node.rb
475
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
476
273
  - lib/nokogiri/nokogiri.jar
477
274
  - lib/nokogiri/syntax_error.rb
478
275
  - lib/nokogiri/version.rb
@@ -517,10 +314,6 @@ files:
517
314
  - lib/nokogiri/xml/xpath_context.rb
518
315
  - lib/nokogiri/xslt.rb
519
316
  - lib/nokogiri/xslt/stylesheet.rb
520
- - lib/serializer.jar
521
- - lib/xalan.jar
522
- - lib/xercesImpl.jar
523
- - lib/xml-apis.jar
524
317
  - lib/xsd/xmlparser/nokogiri.rb
525
318
  homepage: https://nokogiri.org
526
319
  licenses:
@@ -538,18 +331,27 @@ rdoc_options:
538
331
  - README.md
539
332
  require_paths:
540
333
  - lib
334
+ - lib/nokogiri/jruby
541
335
  required_ruby_version: !ruby/object:Gem::Requirement
542
336
  requirements:
543
337
  - - ">="
544
338
  - !ruby/object:Gem::Version
545
- version: 2.6.0
339
+ version: 2.7.0
546
340
  required_rubygems_version: !ruby/object:Gem::Requirement
547
341
  requirements:
548
- - - ">="
342
+ - - ">"
549
343
  - !ruby/object:Gem::Version
550
- version: '0'
551
- requirements: []
552
- rubygems_version: 3.2.29
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
553
355
  signing_key:
554
356
  specification_version: 4
555
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