rexml 3.2.5 → 3.3.8

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rexml might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc3edd128c37b7817a6db92dfa9d45add8328d9c5f6983652d24562cd6968672
4
- data.tar.gz: 1c604fe6aa4908d8c13134c8f0966bd1483a01ad2ccca0ad1a85057e39f36e54
3
+ metadata.gz: 84b42219a4278ab15e7ee7627951d0b94dddc707cbf9563799b3266d02ed32db
4
+ data.tar.gz: 4895e6f04d100a2affc8d5c6af4c6dfec5ec4d0d863f8d22de1c66da1d253c61
5
5
  SHA512:
6
- metadata.gz: 4b3f5f714c38e22ed05b53389e7d3950896f1da2675527c28ed6c7f91ef18bb49fec90e0120c2f2c911da85db34a3a99e9b6209ba4d5dc4876379c6302a01ace
7
- data.tar.gz: 9b11b1cfcdb9404574f35ad237b141c6d6fd97b34ead68401064228eb7562c2d13576e1b66a75fa1e3ddc70d937ff638c31de03eb9bc47274c01711eb8abcf3f
6
+ metadata.gz: 7729c31da310e2fb7c96cc3a5bd5b981fefdcdae6fe545bf2d113d91af5862fbb51789e9289b91e4247963169900b0cdccc373ffeea6ca3f935b2e32bab1e2e4
7
+ data.tar.gz: 542f689b7cd27b5c71aeb6845e5af2ac28186e31a98af8c45e984ce6ca563192b2a74e50b6acd95f1fde49ed6289bf9024bfd6612608455038a22e66c6b3a75b
data/NEWS.md CHANGED
@@ -1,15 +1,462 @@
1
1
  # News
2
2
 
3
+ ## 3.3.8 - 2024-09-29 {#version-3-3-8}
4
+
5
+ ### Improvements
6
+
7
+ * SAX2: Improve parse performance.
8
+ * GH-207
9
+ * Patch by NAITOH Jun.
10
+
11
+ ### Fixes
12
+
13
+ * Fixed a bug that unexpected attribute namespace conflict error for
14
+ the predefined "xml" namespace is reported.
15
+ * GH-208
16
+ * Patch by KITAITI Makoto
17
+
18
+ ### Thanks
19
+
20
+ * NAITOH Jun
21
+
22
+ * KITAITI Makoto
23
+
24
+ ## 3.3.7 - 2024-09-04 {#version-3-3-7}
25
+
26
+ ### Improvements
27
+
28
+ * Added local entity expansion limit methods
29
+ * GH-192
30
+ * GH-202
31
+ * Reported by takuya kodama.
32
+ * Patch by NAITOH Jun.
33
+
34
+ * Removed explicit strscan dependency
35
+ * GH-204
36
+ * Patch by Bo Anderson.
37
+
38
+ ### Thanks
39
+
40
+ * takuya kodama
41
+
42
+ * NAITOH Jun
43
+
44
+ * Bo Anderson
45
+
46
+ ## 3.3.6 - 2024-08-22 {#version-3-3-6}
47
+
48
+ ### Improvements
49
+
50
+ * Removed duplicated entity expansions for performance.
51
+ * GH-194
52
+ * Patch by Viktor Ivarsson.
53
+
54
+ * Improved namespace conflicted attribute check performance. It was
55
+ too slow for deep elements.
56
+ * Reported by l33thaxor.
57
+
58
+ ### Fixes
59
+
60
+ * Fixed a bug that default entity expansions are counted for
61
+ security check. Default entity expansions should not be counted
62
+ because they don't have a security risk.
63
+ * GH-198
64
+ * GH-199
65
+ * Patch Viktor Ivarsson
66
+
67
+ * Fixed a parser bug that parameter entity references in internal
68
+ subsets are expanded. It's not allowed in the XML specification.
69
+ * GH-191
70
+ * Patch by NAITOH Jun.
71
+
72
+ * Fixed a stream parser bug that user-defined entity references in
73
+ text aren't expanded.
74
+ * GH-200
75
+ * Patch by NAITOH Jun.
76
+
77
+ ### Thanks
78
+
79
+ * Viktor Ivarsson
80
+
81
+ * NAITOH Jun
82
+
83
+ * l33thaxor
84
+
85
+ ## 3.3.5 - 2024-08-12 {#version-3-3-5}
86
+
87
+ ### Fixes
88
+
89
+ * Fixed a bug that `REXML::Security.entity_expansion_text_limit`
90
+ check has wrong text size calculation in SAX and pull parsers.
91
+ * GH-193
92
+ * GH-195
93
+ * Reported by Viktor Ivarsson.
94
+ * Patch by NAITOH Jun.
95
+
96
+ ### Thanks
97
+
98
+ * Viktor Ivarsson
99
+
100
+ * NAITOH Jun
101
+
102
+ ## 3.3.4 - 2024-08-01 {#version-3-3-4}
103
+
104
+ ### Fixes
105
+
106
+ * Fixed a bug that `REXML::Security` isn't defined when
107
+ `REXML::Parsers::StreamParser` is used and
108
+ `rexml/parsers/streamparser` is only required.
109
+ * GH-189
110
+ * Patch by takuya kodama.
111
+
112
+ ### Thanks
113
+
114
+ * takuya kodama
115
+
116
+ ## 3.3.3 - 2024-08-01 {#version-3-3-3}
117
+
118
+ ### Improvements
119
+
120
+ * Added support for detecting invalid XML that has unsupported
121
+ content before root element
122
+ * GH-184
123
+ * Patch by NAITOH Jun.
124
+
125
+ * Added support for `REXML::Security.entity_expansion_limit=` and
126
+ `REXML::Security.entity_expansion_text_limit=` in SAX2 and pull
127
+ parsers
128
+ * GH-187
129
+ * Patch by NAITOH Jun.
130
+
131
+ * Added more tests for invalid XMLs.
132
+ * GH-183
133
+ * Patch by Watson.
134
+
135
+ * Added more performance tests.
136
+ * Patch by Watson.
137
+
138
+ * Improved parse performance.
139
+ * GH-186
140
+ * Patch by tomoya ishida.
141
+
142
+ ### Thanks
143
+
144
+ * NAITOH Jun
145
+
146
+ * Watson
147
+
148
+ * tomoya ishida
149
+
150
+ ## 3.3.2 - 2024-07-16 {#version-3-3-2}
151
+
152
+ ### Improvements
153
+
154
+ * Improved parse performance.
155
+ * GH-160
156
+ * Patch by NAITOH Jun.
157
+
158
+ * Improved parse performance.
159
+ * GH-169
160
+ * GH-170
161
+ * GH-171
162
+ * GH-172
163
+ * GH-173
164
+ * GH-174
165
+ * GH-175
166
+ * GH-176
167
+ * GH-177
168
+ * Patch by Watson.
169
+
170
+ * Added support for raising a parse exception when an XML has extra
171
+ content after the root element.
172
+ * GH-161
173
+ * Patch by NAITOH Jun.
174
+
175
+ * Added support for raising a parse exception when an XML
176
+ declaration exists in wrong position.
177
+ * GH-162
178
+ * Patch by NAITOH Jun.
179
+
180
+ * Removed needless a space after XML declaration in pretty print mode.
181
+ * GH-164
182
+ * Patch by NAITOH Jun.
183
+
184
+ * Stopped to emit `:text` event after the root element.
185
+ * GH-167
186
+ * Patch by NAITOH Jun.
187
+
188
+ ### Fixes
189
+
190
+ * Fixed a bug that SAX2 parser doesn't expand predefined entities for
191
+ `characters` callback.
192
+ * GH-168
193
+ * Patch by NAITOH Jun.
194
+
195
+ ### Thanks
196
+
197
+ * NAITOH Jun
198
+
199
+ * Watson
200
+
201
+ ## 3.3.1 - 2024-06-25 {#version-3-3-1}
202
+
203
+ ### Improvements
204
+
205
+ * Added support for detecting malformed top-level comments.
206
+ * GH-145
207
+ * Patch by Hiroya Fujinami.
208
+
209
+ * Improved `REXML::Element#attribute` performance.
210
+ * GH-146
211
+ * Patch by Hiroya Fujinami.
212
+
213
+ * Added support for detecting malformed `<!-->` comments.
214
+ * GH-147
215
+ * Patch by Hiroya Fujinami.
216
+
217
+ * Added support for detecting unclosed `DOCTYPE`.
218
+ * GH-152
219
+ * Patch by Hiroya Fujinami.
220
+
221
+ * Added `changlog_uri` metadata to gemspec.
222
+ * GH-156
223
+ * Patch by fynsta.
224
+
225
+ * Improved parse performance.
226
+ * GH-157
227
+ * GH-158
228
+ * Patch by NAITOH Jun.
229
+
230
+ ### Fixes
231
+
232
+ * Fixed a bug that large XML can't be parsed.
233
+ * GH-154
234
+ * Patch by NAITOH Jun.
235
+
236
+ * Fixed a bug that private constants are visible.
237
+ * GH-155
238
+ * Patch by NAITOH Jun.
239
+
240
+ ### Thanks
241
+
242
+ * Hiroya Fujinami
243
+
244
+ * NAITOH Jun
245
+
246
+ * fynsta
247
+
248
+ ## 3.3.0 - 2024-06-11 {#version-3-3-0}
249
+
250
+ ### Improvements
251
+
252
+ * Added support for strscan 0.7.0 installed with Ruby 2.6.
253
+ * GH-142
254
+ * Reported by Fernando Trigoso.
255
+
256
+ ### Thanks
257
+
258
+ * Fernando Trigoso
259
+
260
+ ## 3.2.9 - 2024-06-09 {#version-3-2-9}
261
+
262
+ ### Improvements
263
+
264
+ * Added support for old strscan.
265
+ * GH-132
266
+ * Reported by Adam.
267
+
268
+ * Improved attribute value parse performance.
269
+ * GH-135
270
+ * Patch by NAITOH Jun.
271
+
272
+ * Improved `REXML::Node#each_recursive` performance.
273
+ * GH-134
274
+ * GH-139
275
+ * Patch by Hiroya Fujinami.
276
+
277
+ * Improved text parse performance.
278
+ * Reported by mprogrammer.
279
+
280
+ ### Thanks
281
+
282
+ * Adam
283
+ * NAITOH Jun
284
+ * Hiroya Fujinami
285
+ * mprogrammer
286
+
287
+ ## 3.2.8 - 2024-05-16 {#version-3-2-8}
288
+
289
+ ### Fixes
290
+
291
+ * Suppressed a warning
292
+
293
+ ## 3.2.7 - 2024-05-16 {#version-3-2-7}
294
+
295
+ ### Improvements
296
+
297
+ * Improve parse performance by using `StringScanner`.
298
+
299
+ * GH-106
300
+ * GH-107
301
+ * GH-108
302
+ * GH-109
303
+ * GH-112
304
+ * GH-113
305
+ * GH-114
306
+ * GH-115
307
+ * GH-116
308
+ * GH-117
309
+ * GH-118
310
+ * GH-119
311
+ * GH-121
312
+
313
+ * Patch by NAITOH Jun.
314
+
315
+ * Improved parse performance when an attribute has many `<`s.
316
+
317
+ * GH-126
318
+
319
+ ### Fixes
320
+
321
+ * XPath: Fixed a bug of `normalize_space(array)`.
322
+
323
+ * GH-110
324
+ * GH-111
325
+
326
+ * Patch by flatisland.
327
+
328
+ * XPath: Fixed a bug that wrong position is used with nested path.
329
+
330
+ * GH-110
331
+ * GH-122
332
+
333
+ * Reported by jcavalieri.
334
+ * Patch by NAITOH Jun.
335
+
336
+ * Fixed a bug that an exception message can't be generated for
337
+ invalid encoding XML.
338
+
339
+ * GH-29
340
+ * GH-123
341
+
342
+ * Reported by DuKewu.
343
+ * Patch by NAITOH Jun.
344
+
345
+ ### Thanks
346
+
347
+ * NAITOH Jun
348
+ * flatisland
349
+ * jcavalieri
350
+ * DuKewu
351
+
352
+ ## 3.2.6 - 2023-07-27 {#version-3-2-6}
353
+
354
+ ### Improvements
355
+
356
+ * Required Ruby 2.5 or later explicitly.
357
+ [GH-69][gh-69]
358
+ [Patch by Ivo Anjo]
359
+
360
+ * Added documentation for maintenance cycle.
361
+ [GH-71][gh-71]
362
+ [Patch by Ivo Anjo]
363
+
364
+ * Added tutorial.
365
+ [GH-77][gh-77]
366
+ [GH-78][gh-78]
367
+ [Patch by Burdette Lamar]
368
+
369
+ * Improved performance and memory usage.
370
+ [GH-94][gh-94]
371
+ [Patch by fatkodima]
372
+
373
+ * `REXML::Parsers::XPathParser#abbreviate`: Added support for
374
+ function arguments.
375
+ [GH-95][gh-95]
376
+ [Reported by pulver]
377
+
378
+ * `REXML::Parsers::XPathParser#abbreviate`: Added support for string
379
+ literal that contains double-quote.
380
+ [GH-96][gh-96]
381
+ [Patch by pulver]
382
+
383
+ * `REXML::Parsers::XPathParser#abbreviate`: Added missing `/` to
384
+ `:descendant_or_self/:self/:parent`.
385
+ [GH-97][gh-97]
386
+ [Reported by pulver]
387
+
388
+ * `REXML::Parsers::XPathParser#abbreviate`: Added support for more patterns.
389
+ [GH-97][gh-97]
390
+ [Reported by pulver]
391
+
392
+ ### Fixes
393
+
394
+ * Fixed a typo in NEWS.
395
+ [GH-72][gh-72]
396
+ [Patch by Spencer Goodman]
397
+
398
+ * Fixed a typo in NEWS.
399
+ [GH-75][gh-75]
400
+ [Patch by Andrew Bromwich]
401
+
402
+ * Fixed documents.
403
+ [GH-87][gh-87]
404
+ [Patch by Alexander Ilyin]
405
+
406
+ * Fixed a bug that `Attriute` convert `'` and `&apos;` even when
407
+ `attribute_quote: :quote` is used.
408
+ [GH-92][gh-92]
409
+ [Reported by Edouard Brière]
410
+
411
+ * Fixed links in tutorial.
412
+ [GH-99][gh-99]
413
+ [Patch by gemmaro]
414
+
415
+
416
+ ### Thanks
417
+
418
+ * Ivo Anjo
419
+
420
+ * Spencer Goodman
421
+
422
+ * Andrew Bromwich
423
+
424
+ * Burdette Lamar
425
+
426
+ * Alexander Ilyin
427
+
428
+ * Edouard Brière
429
+
430
+ * fatkodima
431
+
432
+ * pulver
433
+
434
+ * gemmaro
435
+
436
+ [gh-69]:https://github.com/ruby/rexml/issues/69
437
+ [gh-71]:https://github.com/ruby/rexml/issues/71
438
+ [gh-72]:https://github.com/ruby/rexml/issues/72
439
+ [gh-75]:https://github.com/ruby/rexml/issues/75
440
+ [gh-77]:https://github.com/ruby/rexml/issues/77
441
+ [gh-87]:https://github.com/ruby/rexml/issues/87
442
+ [gh-92]:https://github.com/ruby/rexml/issues/92
443
+ [gh-94]:https://github.com/ruby/rexml/issues/94
444
+ [gh-95]:https://github.com/ruby/rexml/issues/95
445
+ [gh-96]:https://github.com/ruby/rexml/issues/96
446
+ [gh-97]:https://github.com/ruby/rexml/issues/97
447
+ [gh-98]:https://github.com/ruby/rexml/issues/98
448
+ [gh-99]:https://github.com/ruby/rexml/issues/99
449
+
3
450
  ## 3.2.5 - 2021-04-05 {#version-3-2-5}
4
451
 
5
452
  ### Improvements
6
453
 
7
454
  * Add more validations to XPath parser.
8
455
 
9
- * `require "rexml/docuemnt"` by default.
456
+ * `require "rexml/document"` by default.
10
457
  [GitHub#36][Patch by Koichi ITO]
11
458
 
12
- * Don't add `#dcloe` method to core classes globally.
459
+ * Don't add `#dclone` method to core classes globally.
13
460
  [GitHub#37][Patch by Akira Matsuda]
14
461
 
15
462
  * Add more documentations.
data/README.md CHANGED
@@ -6,7 +6,7 @@ REXML supports both tree and stream document parsing. Stream parsing is faster (
6
6
 
7
7
  ## API
8
8
 
9
- See the {API documentation}[https://ruby.github.io/rexml/]
9
+ See the [API documentation](https://ruby.github.io/rexml/).
10
10
 
11
11
  ## Usage
12
12
 
@@ -33,6 +33,15 @@ doc = Document.new string
33
33
 
34
34
  So parsing a string is just as easy as parsing a file.
35
35
 
36
+ ## Support
37
+
38
+ REXML support follows the same maintenance cycle as Ruby releases, as shown on <https://www.ruby-lang.org/en/downloads/branches/>.
39
+
40
+ If you are running on an end-of-life Ruby, do not expect modern REXML releases to be compatible with it; in fact, it's recommended that you DO NOT use this gem, and instead use the REXML version that came bundled with your end-of-life Ruby version.
41
+
42
+ The `required_ruby_version` on the gemspec is kept updated on a [best-effort basis](https://github.com/ruby/rexml/pull/70) by the community.
43
+ Up to version 3.2.5, this information was not set. That version [is known broken with at least Ruby < 2.3](https://github.com/ruby/rexml/issues/69).
44
+
36
45
  ## Development
37
46
 
38
47
  After checking out the repo, run `rake test` to run the tests.
@@ -369,7 +369,7 @@ to retrieve the first text node in a specified element:
369
369
 
370
370
  Use method
371
371
  {Element#has_text?}[../../../../REXML/Element.html#method-i-has_text-3F]
372
- to determine whethe the element has text:
372
+ to determine whether the element has text:
373
373
 
374
374
  e = REXML::Element.new('foo')
375
375
  e.has_text? # => false
@@ -486,7 +486,7 @@ to remove a specific namespace from the element:
486
486
 
487
487
  Use method
488
488
  {Element#namespace}[../../../../REXML/Element.html#method-i-namespace]
489
- to retrieve a speficic namespace URI for the element:
489
+ to retrieve a specific namespace URI for the element:
490
490
 
491
491
  xml_string = <<-EOT
492
492
  <root>