nokogiri 1.11.0.rc4 → 1.11.3
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 +3 -0
- data/LICENSE-DEPENDENCIES.md +12 -12
- data/LICENSE.md +1 -1
- data/README.md +168 -91
- data/ext/nokogiri/depend +34 -474
- data/ext/nokogiri/extconf.rb +270 -183
- data/ext/nokogiri/html_document.c +10 -15
- data/ext/nokogiri/html_element_description.c +84 -71
- data/ext/nokogiri/html_entity_lookup.c +21 -16
- data/ext/nokogiri/html_sax_parser_context.c +67 -64
- data/ext/nokogiri/html_sax_push_parser.c +42 -34
- data/ext/nokogiri/libxml2_backwards_compat.c +121 -0
- data/ext/nokogiri/nokogiri.c +171 -60
- data/ext/nokogiri/nokogiri.h +158 -75
- data/ext/nokogiri/test_global_handlers.c +40 -0
- data/ext/nokogiri/xml_attr.c +15 -15
- data/ext/nokogiri/xml_attribute_decl.c +18 -18
- data/ext/nokogiri/xml_cdata.c +13 -18
- data/ext/nokogiri/xml_comment.c +19 -26
- data/ext/nokogiri/xml_document.c +246 -188
- data/ext/nokogiri/xml_document_fragment.c +13 -15
- data/ext/nokogiri/xml_dtd.c +54 -48
- data/ext/nokogiri/xml_element_content.c +30 -27
- data/ext/nokogiri/xml_element_decl.c +22 -22
- data/ext/nokogiri/xml_encoding_handler.c +17 -11
- data/ext/nokogiri/xml_entity_decl.c +32 -30
- data/ext/nokogiri/xml_entity_reference.c +16 -18
- data/ext/nokogiri/xml_namespace.c +56 -49
- data/ext/nokogiri/xml_node.c +371 -320
- data/ext/nokogiri/xml_node_set.c +168 -156
- data/ext/nokogiri/xml_processing_instruction.c +17 -19
- data/ext/nokogiri/xml_reader.c +191 -157
- data/ext/nokogiri/xml_relax_ng.c +29 -23
- data/ext/nokogiri/xml_sax_parser.c +117 -112
- data/ext/nokogiri/xml_sax_parser_context.c +101 -84
- data/ext/nokogiri/xml_sax_push_parser.c +36 -27
- data/ext/nokogiri/xml_schema.c +48 -42
- data/ext/nokogiri/xml_syntax_error.c +42 -21
- data/ext/nokogiri/xml_text.c +13 -17
- data/ext/nokogiri/xml_xpath_context.c +134 -127
- data/ext/nokogiri/xslt_stylesheet.c +157 -157
- data/lib/nokogiri/css/parser.rb +1 -1
- data/lib/nokogiri/extension.rb +26 -0
- data/lib/nokogiri/html/document_fragment.rb +15 -15
- data/lib/nokogiri/version/constant.rb +1 -1
- data/lib/nokogiri/version/info.rb +31 -8
- data/lib/nokogiri/xml/document.rb +74 -28
- data/lib/nokogiri/xml/node.rb +39 -42
- data/lib/nokogiri/xml/reader.rb +2 -9
- data/lib/nokogiri/xml/xpath/syntax_error.rb +1 -1
- data/lib/nokogiri/xml/xpath.rb +1 -3
- data/lib/nokogiri.rb +2 -6
- data/patches/libxml2/0009-avoid-isnan-isinf.patch +81 -0
- data/patches/libxml2/0010-parser.c-shrink-the-input-buffer-when-appropriate.patch +70 -0
- data/patches/libxml2/0011-update-automake-files-for-arm64.patch +2511 -0
- data/patches/libxslt/0001-update-automake-files-for-arm64.patch +2511 -0
- metadata +66 -160
- data/ext/nokogiri/html_document.h +0 -10
- data/ext/nokogiri/html_element_description.h +0 -10
- data/ext/nokogiri/html_entity_lookup.h +0 -8
- data/ext/nokogiri/html_sax_parser_context.h +0 -11
- data/ext/nokogiri/html_sax_push_parser.h +0 -9
- data/ext/nokogiri/xml_attr.h +0 -9
- data/ext/nokogiri/xml_attribute_decl.h +0 -9
- data/ext/nokogiri/xml_cdata.h +0 -9
- data/ext/nokogiri/xml_comment.h +0 -9
- data/ext/nokogiri/xml_document.h +0 -23
- data/ext/nokogiri/xml_document_fragment.h +0 -10
- data/ext/nokogiri/xml_dtd.h +0 -10
- data/ext/nokogiri/xml_element_content.h +0 -10
- data/ext/nokogiri/xml_element_decl.h +0 -9
- data/ext/nokogiri/xml_encoding_handler.h +0 -8
- data/ext/nokogiri/xml_entity_decl.h +0 -10
- data/ext/nokogiri/xml_entity_reference.h +0 -9
- data/ext/nokogiri/xml_io.c +0 -63
- data/ext/nokogiri/xml_io.h +0 -11
- data/ext/nokogiri/xml_libxml2_hacks.c +0 -112
- data/ext/nokogiri/xml_libxml2_hacks.h +0 -12
- data/ext/nokogiri/xml_namespace.h +0 -14
- data/ext/nokogiri/xml_node.h +0 -13
- data/ext/nokogiri/xml_node_set.h +0 -12
- data/ext/nokogiri/xml_processing_instruction.h +0 -9
- data/ext/nokogiri/xml_reader.h +0 -10
- data/ext/nokogiri/xml_relax_ng.h +0 -9
- data/ext/nokogiri/xml_sax_parser.h +0 -39
- data/ext/nokogiri/xml_sax_parser_context.h +0 -10
- data/ext/nokogiri/xml_sax_push_parser.h +0 -9
- data/ext/nokogiri/xml_schema.h +0 -9
- data/ext/nokogiri/xml_syntax_error.h +0 -13
- data/ext/nokogiri/xml_text.h +0 -9
- data/ext/nokogiri/xml_xpath_context.h +0 -10
- data/ext/nokogiri/xslt_stylesheet.h +0 -14
metadata
CHANGED
@@ -1,20 +1,23 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nokogiri
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.11.
|
4
|
+
version: 1.11.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Dalessio
|
8
8
|
- Aaron Patterson
|
9
|
-
- John Shahid
|
10
9
|
- Yoko Harada
|
11
10
|
- Akinori MUSHA
|
11
|
+
- John Shahid
|
12
|
+
- Karol Bucek
|
12
13
|
- Lars Kanis
|
13
|
-
-
|
14
|
+
- Sergio Arbeo
|
15
|
+
- Timothy Elliott
|
16
|
+
- Nobuyoshi Nakada
|
14
17
|
autorequire:
|
15
18
|
bindir: bin
|
16
19
|
cert_chain: []
|
17
|
-
date:
|
20
|
+
date: 2021-04-07 00:00:00.000000000 Z
|
18
21
|
dependencies:
|
19
22
|
- !ruby/object:Gem::Dependency
|
20
23
|
name: racc
|
@@ -45,109 +48,47 @@ dependencies:
|
|
45
48
|
- !ruby/object:Gem::Version
|
46
49
|
version: 2.5.0
|
47
50
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
49
|
-
requirement: !ruby/object:Gem::Requirement
|
50
|
-
requirements:
|
51
|
-
- - "~>"
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: '0.41'
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
requirements:
|
58
|
-
- - "~>"
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: '0.41'
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: hoe
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - "~>"
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: '3.22'
|
68
|
-
- - ">="
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version: 3.22.1
|
71
|
-
type: :development
|
72
|
-
prerelease: false
|
73
|
-
version_requirements: !ruby/object:Gem::Requirement
|
74
|
-
requirements:
|
75
|
-
- - "~>"
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '3.22'
|
78
|
-
- - ">="
|
79
|
-
- !ruby/object:Gem::Version
|
80
|
-
version: 3.22.1
|
81
|
-
- !ruby/object:Gem::Dependency
|
82
|
-
name: hoe-bundler
|
51
|
+
name: bundler
|
83
52
|
requirement: !ruby/object:Gem::Requirement
|
84
53
|
requirements:
|
85
54
|
- - "~>"
|
86
55
|
- !ruby/object:Gem::Version
|
87
|
-
version: '
|
56
|
+
version: '2.2'
|
88
57
|
type: :development
|
89
58
|
prerelease: false
|
90
59
|
version_requirements: !ruby/object:Gem::Requirement
|
91
60
|
requirements:
|
92
61
|
- - "~>"
|
93
62
|
- !ruby/object:Gem::Version
|
94
|
-
version: '
|
63
|
+
version: '2.2'
|
95
64
|
- !ruby/object:Gem::Dependency
|
96
|
-
name:
|
97
|
-
requirement: !ruby/object:Gem::Requirement
|
98
|
-
requirements:
|
99
|
-
- - "~>"
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: '2.0'
|
102
|
-
type: :development
|
103
|
-
prerelease: false
|
104
|
-
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
requirements:
|
106
|
-
- - "~>"
|
107
|
-
- !ruby/object:Gem::Version
|
108
|
-
version: '2.0'
|
109
|
-
- !ruby/object:Gem::Dependency
|
110
|
-
name: hoe-gemspec
|
111
|
-
requirement: !ruby/object:Gem::Requirement
|
112
|
-
requirements:
|
113
|
-
- - "~>"
|
114
|
-
- !ruby/object:Gem::Version
|
115
|
-
version: '1.0'
|
116
|
-
type: :development
|
117
|
-
prerelease: false
|
118
|
-
version_requirements: !ruby/object:Gem::Requirement
|
119
|
-
requirements:
|
120
|
-
- - "~>"
|
121
|
-
- !ruby/object:Gem::Version
|
122
|
-
version: '1.0'
|
123
|
-
- !ruby/object:Gem::Dependency
|
124
|
-
name: hoe-git
|
65
|
+
name: concourse
|
125
66
|
requirement: !ruby/object:Gem::Requirement
|
126
67
|
requirements:
|
127
68
|
- - "~>"
|
128
69
|
- !ruby/object:Gem::Version
|
129
|
-
version: '
|
70
|
+
version: '0.41'
|
130
71
|
type: :development
|
131
72
|
prerelease: false
|
132
73
|
version_requirements: !ruby/object:Gem::Requirement
|
133
74
|
requirements:
|
134
75
|
- - "~>"
|
135
76
|
- !ruby/object:Gem::Version
|
136
|
-
version: '
|
77
|
+
version: '0.41'
|
137
78
|
- !ruby/object:Gem::Dependency
|
138
79
|
name: hoe-markdown
|
139
80
|
requirement: !ruby/object:Gem::Requirement
|
140
81
|
requirements:
|
141
82
|
- - "~>"
|
142
83
|
- !ruby/object:Gem::Version
|
143
|
-
version: '1.
|
84
|
+
version: '1.4'
|
144
85
|
type: :development
|
145
86
|
prerelease: false
|
146
87
|
version_requirements: !ruby/object:Gem::Requirement
|
147
88
|
requirements:
|
148
89
|
- - "~>"
|
149
90
|
- !ruby/object:Gem::Version
|
150
|
-
version: '1.
|
91
|
+
version: '1.4'
|
151
92
|
- !ruby/object:Gem::Dependency
|
152
93
|
name: minitest
|
153
94
|
requirement: !ruby/object:Gem::Requirement
|
@@ -238,96 +179,89 @@ dependencies:
|
|
238
179
|
requirements:
|
239
180
|
- - "~>"
|
240
181
|
- !ruby/object:Gem::Version
|
241
|
-
version: '
|
182
|
+
version: '1.7'
|
242
183
|
type: :development
|
243
184
|
prerelease: false
|
244
185
|
version_requirements: !ruby/object:Gem::Requirement
|
245
186
|
requirements:
|
246
187
|
- - "~>"
|
247
188
|
- !ruby/object:Gem::Version
|
248
|
-
version: '
|
189
|
+
version: '1.7'
|
249
190
|
- !ruby/object:Gem::Dependency
|
250
191
|
name: simplecov
|
251
192
|
requirement: !ruby/object:Gem::Requirement
|
252
193
|
requirements:
|
253
194
|
- - "~>"
|
254
195
|
- !ruby/object:Gem::Version
|
255
|
-
version: 0.
|
196
|
+
version: '0.20'
|
256
197
|
type: :development
|
257
198
|
prerelease: false
|
258
199
|
version_requirements: !ruby/object:Gem::Requirement
|
259
200
|
requirements:
|
260
201
|
- - "~>"
|
261
202
|
- !ruby/object:Gem::Version
|
262
|
-
version: 0.
|
203
|
+
version: '0.20'
|
263
204
|
- !ruby/object:Gem::Dependency
|
264
|
-
name:
|
205
|
+
name: yard
|
265
206
|
requirement: !ruby/object:Gem::Requirement
|
266
207
|
requirements:
|
267
|
-
- - "
|
268
|
-
- !ruby/object:Gem::Version
|
269
|
-
version: '4.0'
|
270
|
-
- - "<"
|
208
|
+
- - "~>"
|
271
209
|
- !ruby/object:Gem::Version
|
272
|
-
version: '
|
210
|
+
version: '0.9'
|
273
211
|
type: :development
|
274
212
|
prerelease: false
|
275
213
|
version_requirements: !ruby/object:Gem::Requirement
|
276
214
|
requirements:
|
277
|
-
- - "
|
278
|
-
- !ruby/object:Gem::Version
|
279
|
-
version: '4.0'
|
280
|
-
- - "<"
|
215
|
+
- - "~>"
|
281
216
|
- !ruby/object:Gem::Version
|
282
|
-
version: '
|
283
|
-
description:
|
284
|
-
Nokogiri (鋸)
|
285
|
-
|
286
|
-
|
217
|
+
version: '0.9'
|
218
|
+
description: |
|
219
|
+
Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby. It provides a
|
220
|
+
sensible, easy-to-understand API for reading, writing, modifying, and querying documents. It is
|
221
|
+
fast and standards-compliant by relying on native parsers like libxml2 (C) and xerces (Java).
|
287
222
|
email: nokogiri-talk@googlegroups.com
|
288
223
|
executables:
|
289
224
|
- nokogiri
|
290
225
|
extensions:
|
291
226
|
- ext/nokogiri/extconf.rb
|
292
227
|
extra_rdoc_files:
|
293
|
-
-
|
294
|
-
-
|
295
|
-
- README.md
|
296
|
-
- ext/nokogiri/html_document.c
|
297
|
-
- ext/nokogiri/html_element_description.c
|
298
|
-
- ext/nokogiri/html_entity_lookup.c
|
299
|
-
- ext/nokogiri/html_sax_parser_context.c
|
300
|
-
- ext/nokogiri/html_sax_push_parser.c
|
301
|
-
- ext/nokogiri/nokogiri.c
|
228
|
+
- ext/nokogiri/xml_dtd.c
|
229
|
+
- ext/nokogiri/xml_xpath_context.c
|
302
230
|
- ext/nokogiri/xml_attr.c
|
303
|
-
- ext/nokogiri/
|
304
|
-
- ext/nokogiri/xml_cdata.c
|
231
|
+
- ext/nokogiri/libxml2_backwards_compat.c
|
305
232
|
- ext/nokogiri/xml_comment.c
|
306
|
-
- ext/nokogiri/
|
307
|
-
- ext/nokogiri/
|
308
|
-
- ext/nokogiri/
|
233
|
+
- ext/nokogiri/nokogiri.c
|
234
|
+
- ext/nokogiri/xml_sax_parser_context.c
|
235
|
+
- ext/nokogiri/xml_node_set.c
|
236
|
+
- ext/nokogiri/xml_reader.c
|
237
|
+
- ext/nokogiri/xml_cdata.c
|
309
238
|
- ext/nokogiri/xml_element_content.c
|
239
|
+
- ext/nokogiri/html_entity_lookup.c
|
240
|
+
- ext/nokogiri/xml_namespace.c
|
241
|
+
- ext/nokogiri/xml_document.c
|
310
242
|
- ext/nokogiri/xml_element_decl.c
|
243
|
+
- ext/nokogiri/xml_schema.c
|
244
|
+
- ext/nokogiri/html_document.c
|
245
|
+
- ext/nokogiri/xml_processing_instruction.c
|
246
|
+
- ext/nokogiri/xml_text.c
|
247
|
+
- ext/nokogiri/xml_syntax_error.c
|
248
|
+
- ext/nokogiri/xml_document_fragment.c
|
249
|
+
- ext/nokogiri/xml_sax_push_parser.c
|
311
250
|
- ext/nokogiri/xml_encoding_handler.c
|
251
|
+
- ext/nokogiri/html_sax_push_parser.c
|
252
|
+
- ext/nokogiri/xml_relax_ng.c
|
312
253
|
- ext/nokogiri/xml_entity_decl.c
|
313
|
-
- ext/nokogiri/
|
314
|
-
- ext/nokogiri/xml_io.c
|
315
|
-
- ext/nokogiri/xml_libxml2_hacks.c
|
316
|
-
- ext/nokogiri/xml_namespace.c
|
254
|
+
- ext/nokogiri/test_global_handlers.c
|
317
255
|
- ext/nokogiri/xml_node.c
|
318
|
-
- ext/nokogiri/
|
319
|
-
- ext/nokogiri/xml_processing_instruction.c
|
320
|
-
- ext/nokogiri/xml_reader.c
|
321
|
-
- ext/nokogiri/xml_relax_ng.c
|
322
|
-
- ext/nokogiri/xml_sax_parser.c
|
323
|
-
- ext/nokogiri/xml_sax_parser_context.c
|
324
|
-
- ext/nokogiri/xml_sax_push_parser.c
|
325
|
-
- ext/nokogiri/xml_schema.c
|
326
|
-
- ext/nokogiri/xml_syntax_error.c
|
327
|
-
- ext/nokogiri/xml_text.c
|
328
|
-
- ext/nokogiri/xml_xpath_context.c
|
256
|
+
- ext/nokogiri/xml_entity_reference.c
|
329
257
|
- ext/nokogiri/xslt_stylesheet.c
|
258
|
+
- ext/nokogiri/html_sax_parser_context.c
|
259
|
+
- ext/nokogiri/xml_sax_parser.c
|
260
|
+
- ext/nokogiri/xml_attribute_decl.c
|
261
|
+
- ext/nokogiri/html_element_description.c
|
262
|
+
- README.md
|
330
263
|
files:
|
264
|
+
- Gemfile
|
331
265
|
- LICENSE-DEPENDENCIES.md
|
332
266
|
- LICENSE.md
|
333
267
|
- README.md
|
@@ -336,73 +270,40 @@ files:
|
|
336
270
|
- ext/nokogiri/depend
|
337
271
|
- ext/nokogiri/extconf.rb
|
338
272
|
- ext/nokogiri/html_document.c
|
339
|
-
- ext/nokogiri/html_document.h
|
340
273
|
- ext/nokogiri/html_element_description.c
|
341
|
-
- ext/nokogiri/html_element_description.h
|
342
274
|
- ext/nokogiri/html_entity_lookup.c
|
343
|
-
- ext/nokogiri/html_entity_lookup.h
|
344
275
|
- ext/nokogiri/html_sax_parser_context.c
|
345
|
-
- ext/nokogiri/html_sax_parser_context.h
|
346
276
|
- ext/nokogiri/html_sax_push_parser.c
|
347
|
-
- ext/nokogiri/
|
277
|
+
- ext/nokogiri/libxml2_backwards_compat.c
|
348
278
|
- ext/nokogiri/nokogiri.c
|
349
279
|
- ext/nokogiri/nokogiri.h
|
280
|
+
- ext/nokogiri/test_global_handlers.c
|
350
281
|
- ext/nokogiri/xml_attr.c
|
351
|
-
- ext/nokogiri/xml_attr.h
|
352
282
|
- ext/nokogiri/xml_attribute_decl.c
|
353
|
-
- ext/nokogiri/xml_attribute_decl.h
|
354
283
|
- ext/nokogiri/xml_cdata.c
|
355
|
-
- ext/nokogiri/xml_cdata.h
|
356
284
|
- ext/nokogiri/xml_comment.c
|
357
|
-
- ext/nokogiri/xml_comment.h
|
358
285
|
- ext/nokogiri/xml_document.c
|
359
|
-
- ext/nokogiri/xml_document.h
|
360
286
|
- ext/nokogiri/xml_document_fragment.c
|
361
|
-
- ext/nokogiri/xml_document_fragment.h
|
362
287
|
- ext/nokogiri/xml_dtd.c
|
363
|
-
- ext/nokogiri/xml_dtd.h
|
364
288
|
- ext/nokogiri/xml_element_content.c
|
365
|
-
- ext/nokogiri/xml_element_content.h
|
366
289
|
- ext/nokogiri/xml_element_decl.c
|
367
|
-
- ext/nokogiri/xml_element_decl.h
|
368
290
|
- ext/nokogiri/xml_encoding_handler.c
|
369
|
-
- ext/nokogiri/xml_encoding_handler.h
|
370
291
|
- ext/nokogiri/xml_entity_decl.c
|
371
|
-
- ext/nokogiri/xml_entity_decl.h
|
372
292
|
- ext/nokogiri/xml_entity_reference.c
|
373
|
-
- ext/nokogiri/xml_entity_reference.h
|
374
|
-
- ext/nokogiri/xml_io.c
|
375
|
-
- ext/nokogiri/xml_io.h
|
376
|
-
- ext/nokogiri/xml_libxml2_hacks.c
|
377
|
-
- ext/nokogiri/xml_libxml2_hacks.h
|
378
293
|
- ext/nokogiri/xml_namespace.c
|
379
|
-
- ext/nokogiri/xml_namespace.h
|
380
294
|
- ext/nokogiri/xml_node.c
|
381
|
-
- ext/nokogiri/xml_node.h
|
382
295
|
- ext/nokogiri/xml_node_set.c
|
383
|
-
- ext/nokogiri/xml_node_set.h
|
384
296
|
- ext/nokogiri/xml_processing_instruction.c
|
385
|
-
- ext/nokogiri/xml_processing_instruction.h
|
386
297
|
- ext/nokogiri/xml_reader.c
|
387
|
-
- ext/nokogiri/xml_reader.h
|
388
298
|
- ext/nokogiri/xml_relax_ng.c
|
389
|
-
- ext/nokogiri/xml_relax_ng.h
|
390
299
|
- ext/nokogiri/xml_sax_parser.c
|
391
|
-
- ext/nokogiri/xml_sax_parser.h
|
392
300
|
- ext/nokogiri/xml_sax_parser_context.c
|
393
|
-
- ext/nokogiri/xml_sax_parser_context.h
|
394
301
|
- ext/nokogiri/xml_sax_push_parser.c
|
395
|
-
- ext/nokogiri/xml_sax_push_parser.h
|
396
302
|
- ext/nokogiri/xml_schema.c
|
397
|
-
- ext/nokogiri/xml_schema.h
|
398
303
|
- ext/nokogiri/xml_syntax_error.c
|
399
|
-
- ext/nokogiri/xml_syntax_error.h
|
400
304
|
- ext/nokogiri/xml_text.c
|
401
|
-
- ext/nokogiri/xml_text.h
|
402
305
|
- ext/nokogiri/xml_xpath_context.c
|
403
|
-
- ext/nokogiri/xml_xpath_context.h
|
404
306
|
- ext/nokogiri/xslt_stylesheet.c
|
405
|
-
- ext/nokogiri/xslt_stylesheet.h
|
406
307
|
- lib/nokogiri.rb
|
407
308
|
- lib/nokogiri/css.rb
|
408
309
|
- lib/nokogiri/css/node.rb
|
@@ -414,6 +315,7 @@ files:
|
|
414
315
|
- lib/nokogiri/css/tokenizer.rex
|
415
316
|
- lib/nokogiri/css/xpath_visitor.rb
|
416
317
|
- lib/nokogiri/decorators/slop.rb
|
318
|
+
- lib/nokogiri/extension.rb
|
417
319
|
- lib/nokogiri/html.rb
|
418
320
|
- lib/nokogiri/html/builder.rb
|
419
321
|
- lib/nokogiri/html/document.rb
|
@@ -477,6 +379,10 @@ files:
|
|
477
379
|
- patches/libxml2/0006-htmlParseComment-treat-as-if-it-closed-the-comment.patch
|
478
380
|
- patches/libxml2/0007-use-new-htmlParseLookupCommentEnd-to-find-comment-en.patch
|
479
381
|
- patches/libxml2/0008-use-glibc-strlen.patch
|
382
|
+
- patches/libxml2/0009-avoid-isnan-isinf.patch
|
383
|
+
- patches/libxml2/0010-parser.c-shrink-the-input-buffer-when-appropriate.patch
|
384
|
+
- patches/libxml2/0011-update-automake-files-for-arm64.patch
|
385
|
+
- patches/libxslt/0001-update-automake-files-for-arm64.patch
|
480
386
|
- ports/archives/libxml2-2.9.10.tar.gz
|
481
387
|
- ports/archives/libxslt-1.1.34.tar.gz
|
482
388
|
homepage: https://nokogiri.org
|
@@ -501,12 +407,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
501
407
|
version: 2.5.0
|
502
408
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
503
409
|
requirements:
|
504
|
-
- - "
|
410
|
+
- - ">="
|
505
411
|
- !ruby/object:Gem::Version
|
506
|
-
version:
|
412
|
+
version: '0'
|
507
413
|
requirements: []
|
508
414
|
rubygems_version: 3.1.4
|
509
415
|
signing_key:
|
510
416
|
specification_version: 4
|
511
|
-
summary: Nokogiri (鋸)
|
417
|
+
summary: Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby.
|
512
418
|
test_files: []
|
data/ext/nokogiri/xml_attr.h
DELETED
data/ext/nokogiri/xml_cdata.h
DELETED
data/ext/nokogiri/xml_comment.h
DELETED
data/ext/nokogiri/xml_document.h
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
#ifndef NOKOGIRI_XML_DOCUMENT
|
2
|
-
#define NOKOGIRI_XML_DOCUMENT
|
3
|
-
|
4
|
-
#include <nokogiri.h>
|
5
|
-
|
6
|
-
struct _nokogiriTuple {
|
7
|
-
VALUE doc;
|
8
|
-
st_table *unlinkedNodes;
|
9
|
-
VALUE node_cache;
|
10
|
-
};
|
11
|
-
typedef struct _nokogiriTuple nokogiriTuple;
|
12
|
-
typedef nokogiriTuple * nokogiriTuplePtr;
|
13
|
-
|
14
|
-
void init_xml_document();
|
15
|
-
VALUE Nokogiri_wrap_xml_document(VALUE klass, xmlDocPtr doc);
|
16
|
-
|
17
|
-
#define DOC_RUBY_OBJECT_TEST(x) ((nokogiriTuplePtr)(x->_private))
|
18
|
-
#define DOC_RUBY_OBJECT(x) (((nokogiriTuplePtr)(x->_private))->doc)
|
19
|
-
#define DOC_UNLINKED_NODE_HASH(x) (((nokogiriTuplePtr)(x->_private))->unlinkedNodes)
|
20
|
-
#define DOC_NODE_CACHE(x) (((nokogiriTuplePtr)(x->_private))->node_cache)
|
21
|
-
|
22
|
-
extern VALUE cNokogiriXmlDocument ;
|
23
|
-
#endif
|
data/ext/nokogiri/xml_dtd.h
DELETED
data/ext/nokogiri/xml_io.c
DELETED
@@ -1,63 +0,0 @@
|
|
1
|
-
#include <xml_io.h>
|
2
|
-
|
3
|
-
static ID id_read, id_write;
|
4
|
-
|
5
|
-
VALUE read_check(VALUE val) {
|
6
|
-
VALUE *args = (VALUE *)val;
|
7
|
-
return rb_funcall(args[0], id_read, 1, args[1]);
|
8
|
-
}
|
9
|
-
|
10
|
-
VALUE read_failed(VALUE arg, VALUE exc) {
|
11
|
-
return Qundef;
|
12
|
-
}
|
13
|
-
|
14
|
-
int io_read_callback(void * ctx, char * buffer, int len) {
|
15
|
-
VALUE string, args[2];
|
16
|
-
size_t str_len, safe_len;
|
17
|
-
|
18
|
-
args[0] = (VALUE)ctx;
|
19
|
-
args[1] = INT2NUM(len);
|
20
|
-
|
21
|
-
string = rb_rescue(read_check, (VALUE)args, read_failed, 0);
|
22
|
-
|
23
|
-
if (NIL_P(string)) return 0;
|
24
|
-
if (string == Qundef) return -1;
|
25
|
-
if (TYPE(string) != T_STRING) return -1;
|
26
|
-
|
27
|
-
str_len = (size_t)RSTRING_LEN(string);
|
28
|
-
safe_len = str_len > (size_t)len ? (size_t)len : str_len;
|
29
|
-
memcpy(buffer, StringValuePtr(string), safe_len);
|
30
|
-
|
31
|
-
return (int)safe_len;
|
32
|
-
}
|
33
|
-
|
34
|
-
VALUE write_check(VALUE val) {
|
35
|
-
VALUE *args = (VALUE *)val;
|
36
|
-
return rb_funcall(args[0], id_write, 1, args[1]);
|
37
|
-
}
|
38
|
-
|
39
|
-
VALUE write_failed(VALUE arg, VALUE exc) {
|
40
|
-
return Qundef;
|
41
|
-
}
|
42
|
-
|
43
|
-
int io_write_callback(void * ctx, char * buffer, int len) {
|
44
|
-
VALUE args[2], size;
|
45
|
-
|
46
|
-
args[0] = (VALUE)ctx;
|
47
|
-
args[1] = rb_str_new(buffer, (long)len);
|
48
|
-
|
49
|
-
size = rb_rescue(write_check, (VALUE)args, write_failed, 0);
|
50
|
-
|
51
|
-
if (size == Qundef) return -1;
|
52
|
-
|
53
|
-
return NUM2INT(size);
|
54
|
-
}
|
55
|
-
|
56
|
-
int io_close_callback(void * ctx) {
|
57
|
-
return 0;
|
58
|
-
}
|
59
|
-
|
60
|
-
void init_nokogiri_io() {
|
61
|
-
id_read = rb_intern("read");
|
62
|
-
id_write = rb_intern("write");
|
63
|
-
}
|
data/ext/nokogiri/xml_io.h
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
#ifndef NOKOGIRI_XML_IO
|
2
|
-
#define NOKOGIRI_XML_IO
|
3
|
-
|
4
|
-
#include <nokogiri.h>
|
5
|
-
|
6
|
-
int io_read_callback(void * ctx, char * buffer, int len);
|
7
|
-
int io_write_callback(void * ctx, char * buffer, int len);
|
8
|
-
int io_close_callback(void * ctx);
|
9
|
-
void init_nokogiri_io();
|
10
|
-
|
11
|
-
#endif
|