rexml 3.2.5 → 3.3.2

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: 70ccd1465a05dba3d53dcfc4a98e76dec865a4f6ac833b954aff4234bce6c255
4
+ data.tar.gz: 53f43fab8f531e0ba7461ce091e5eae6bec27b12e9139450c7b3e748b4eeacdc
5
5
  SHA512:
6
- metadata.gz: 4b3f5f714c38e22ed05b53389e7d3950896f1da2675527c28ed6c7f91ef18bb49fec90e0120c2f2c911da85db34a3a99e9b6209ba4d5dc4876379c6302a01ace
7
- data.tar.gz: 9b11b1cfcdb9404574f35ad237b141c6d6fd97b34ead68401064228eb7562c2d13576e1b66a75fa1e3ddc70d937ff638c31de03eb9bc47274c01711eb8abcf3f
6
+ metadata.gz: b46818d79ae57075c4e0bd620802e82c6958dddc7da1b182504c3fdc16685c887ac0ddd6a4838a080483abba330839e9ef4b2db22cc81b9eae3eac71ac14c965
7
+ data.tar.gz: 1e5205905eb435c02038dd0539de22472f5364ffc47635f13a1752cb79a423dcca558fb47394ac5d624b358e779b07cbcafedfd06b99742026856f9988109976
data/NEWS.md CHANGED
@@ -1,15 +1,312 @@
1
1
  # News
2
2
 
3
+ ## 3.3.2 - 2024-07-16 {#version-3-3-2}
4
+
5
+ ### Improvements
6
+
7
+ * Improved parse performance.
8
+ * GH-160
9
+ * Patch by NAITOH Jun.
10
+
11
+ * Improved parse performance.
12
+ * GH-169
13
+ * GH-170
14
+ * GH-171
15
+ * GH-172
16
+ * GH-173
17
+ * GH-174
18
+ * Patch by Watson.
19
+
20
+ * Added support for raising a parse exception when an XML has extra
21
+ content after the root element.
22
+ * GH-161
23
+ * Patch by NAITOH Jun.
24
+
25
+ * Added support for raising a parse exception when an XML
26
+ declaration exists in wrong position.
27
+ * GH-162
28
+ * Patch by NAITOH Jun.
29
+
30
+ * Removed needless a space after XML declaration in pretty print mode.
31
+ * GH-164
32
+ * Patch by NAITOH Jun.
33
+
34
+ * Stopped to emit `:text` event after the root element.
35
+ * GH-167
36
+ * Patch by NAITOH Jun.
37
+
38
+ ### Fixes
39
+
40
+ * Fixed a bug that SAX2 parser doesn't expand predefined entities for
41
+ `characters` callback.
42
+ * GH-168
43
+ * Patch by NAITOH Jun.
44
+
45
+ ### Thanks
46
+
47
+ * NAITOH Jun
48
+
49
+ * Watson
50
+
51
+ ## 3.3.1 - 2024-06-25 {#version-3-3-1}
52
+
53
+ ### Improvements
54
+
55
+ * Added support for detecting malformed top-level comments.
56
+ * GH-145
57
+ * Patch by Hiroya Fujinami.
58
+
59
+ * Improved `REXML::Element#attribute` performance.
60
+ * GH-146
61
+ * Patch by Hiroya Fujinami.
62
+
63
+ * Added support for detecting malformed `<!-->` comments.
64
+ * GH-147
65
+ * Patch by Hiroya Fujinami.
66
+
67
+ * Added support for detecting unclosed `DOCTYPE`.
68
+ * GH-152
69
+ * Patch by Hiroya Fujinami.
70
+
71
+ * Added `changlog_uri` metadata to gemspec.
72
+ * GH-156
73
+ * Patch by fynsta.
74
+
75
+ * Improved parse performance.
76
+ * GH-157
77
+ * GH-158
78
+ * Patch by NAITOH Jun.
79
+
80
+ ### Fixes
81
+
82
+ * Fixed a bug that large XML can't be parsed.
83
+ * GH-154
84
+ * Patch by NAITOH Jun.
85
+
86
+ * Fixed a bug that private constants are visible.
87
+ * GH-155
88
+ * Patch by NAITOH Jun.
89
+
90
+ ### Thanks
91
+
92
+ * Hiroya Fujinami
93
+
94
+ * NAITOH Jun
95
+
96
+ * fynsta
97
+
98
+ ## 3.3.0 - 2024-06-11 {#version-3-3-0}
99
+
100
+ ### Improvements
101
+
102
+ * Added support for strscan 0.7.0 installed with Ruby 2.6.
103
+ * GH-142
104
+ * Reported by Fernando Trigoso.
105
+
106
+ ### Thanks
107
+
108
+ * Fernando Trigoso
109
+
110
+ ## 3.2.9 - 2024-06-09 {#version-3-2-9}
111
+
112
+ ### Improvements
113
+
114
+ * Added support for old strscan.
115
+ * GH-132
116
+ * Reported by Adam.
117
+
118
+ * Improved attribute value parse performance.
119
+ * GH-135
120
+ * Patch by NAITOH Jun.
121
+
122
+ * Improved `REXML::Node#each_recursive` performance.
123
+ * GH-134
124
+ * GH-139
125
+ * Patch by Hiroya Fujinami.
126
+
127
+ * Improved text parse performance.
128
+ * Reported by mprogrammer.
129
+
130
+ ### Thanks
131
+
132
+ * Adam
133
+ * NAITOH Jun
134
+ * Hiroya Fujinami
135
+ * mprogrammer
136
+
137
+ ## 3.2.8 - 2024-05-16 {#version-3-2-8}
138
+
139
+ ### Fixes
140
+
141
+ * Suppressed a warning
142
+
143
+ ## 3.2.7 - 2024-05-16 {#version-3-2-7}
144
+
145
+ ### Improvements
146
+
147
+ * Improve parse performance by using `StringScanner`.
148
+
149
+ * GH-106
150
+ * GH-107
151
+ * GH-108
152
+ * GH-109
153
+ * GH-112
154
+ * GH-113
155
+ * GH-114
156
+ * GH-115
157
+ * GH-116
158
+ * GH-117
159
+ * GH-118
160
+ * GH-119
161
+ * GH-121
162
+
163
+ * Patch by NAITOH Jun.
164
+
165
+ * Improved parse performance when an attribute has many `<`s.
166
+
167
+ * GH-126
168
+
169
+ ### Fixes
170
+
171
+ * XPath: Fixed a bug of `normalize_space(array)`.
172
+
173
+ * GH-110
174
+ * GH-111
175
+
176
+ * Patch by flatisland.
177
+
178
+ * XPath: Fixed a bug that wrong position is used with nested path.
179
+
180
+ * GH-110
181
+ * GH-122
182
+
183
+ * Reported by jcavalieri.
184
+ * Patch by NAITOH Jun.
185
+
186
+ * Fixed a bug that an exception message can't be generated for
187
+ invalid encoding XML.
188
+
189
+ * GH-29
190
+ * GH-123
191
+
192
+ * Reported by DuKewu.
193
+ * Patch by NAITOH Jun.
194
+
195
+ ### Thanks
196
+
197
+ * NAITOH Jun
198
+ * flatisland
199
+ * jcavalieri
200
+ * DuKewu
201
+
202
+ ## 3.2.6 - 2023-07-27 {#version-3-2-6}
203
+
204
+ ### Improvements
205
+
206
+ * Required Ruby 2.5 or later explicitly.
207
+ [GH-69][gh-69]
208
+ [Patch by Ivo Anjo]
209
+
210
+ * Added documentation for maintenance cycle.
211
+ [GH-71][gh-71]
212
+ [Patch by Ivo Anjo]
213
+
214
+ * Added tutorial.
215
+ [GH-77][gh-77]
216
+ [GH-78][gh-78]
217
+ [Patch by Burdette Lamar]
218
+
219
+ * Improved performance and memory usage.
220
+ [GH-94][gh-94]
221
+ [Patch by fatkodima]
222
+
223
+ * `REXML::Parsers::XPathParser#abbreviate`: Added support for
224
+ function arguments.
225
+ [GH-95][gh-95]
226
+ [Reported by pulver]
227
+
228
+ * `REXML::Parsers::XPathParser#abbreviate`: Added support for string
229
+ literal that contains double-quote.
230
+ [GH-96][gh-96]
231
+ [Patch by pulver]
232
+
233
+ * `REXML::Parsers::XPathParser#abbreviate`: Added missing `/` to
234
+ `:descendant_or_self/:self/:parent`.
235
+ [GH-97][gh-97]
236
+ [Reported by pulver]
237
+
238
+ * `REXML::Parsers::XPathParser#abbreviate`: Added support for more patterns.
239
+ [GH-97][gh-97]
240
+ [Reported by pulver]
241
+
242
+ ### Fixes
243
+
244
+ * Fixed a typo in NEWS.
245
+ [GH-72][gh-72]
246
+ [Patch by Spencer Goodman]
247
+
248
+ * Fixed a typo in NEWS.
249
+ [GH-75][gh-75]
250
+ [Patch by Andrew Bromwich]
251
+
252
+ * Fixed documents.
253
+ [GH-87][gh-87]
254
+ [Patch by Alexander Ilyin]
255
+
256
+ * Fixed a bug that `Attriute` convert `'` and `&apos;` even when
257
+ `attribute_quote: :quote` is used.
258
+ [GH-92][gh-92]
259
+ [Reported by Edouard Brière]
260
+
261
+ * Fixed links in tutorial.
262
+ [GH-99][gh-99]
263
+ [Patch by gemmaro]
264
+
265
+
266
+ ### Thanks
267
+
268
+ * Ivo Anjo
269
+
270
+ * Spencer Goodman
271
+
272
+ * Andrew Bromwich
273
+
274
+ * Burdette Lamar
275
+
276
+ * Alexander Ilyin
277
+
278
+ * Edouard Brière
279
+
280
+ * fatkodima
281
+
282
+ * pulver
283
+
284
+ * gemmaro
285
+
286
+ [gh-69]:https://github.com/ruby/rexml/issues/69
287
+ [gh-71]:https://github.com/ruby/rexml/issues/71
288
+ [gh-72]:https://github.com/ruby/rexml/issues/72
289
+ [gh-75]:https://github.com/ruby/rexml/issues/75
290
+ [gh-77]:https://github.com/ruby/rexml/issues/77
291
+ [gh-87]:https://github.com/ruby/rexml/issues/87
292
+ [gh-92]:https://github.com/ruby/rexml/issues/92
293
+ [gh-94]:https://github.com/ruby/rexml/issues/94
294
+ [gh-95]:https://github.com/ruby/rexml/issues/95
295
+ [gh-96]:https://github.com/ruby/rexml/issues/96
296
+ [gh-97]:https://github.com/ruby/rexml/issues/97
297
+ [gh-98]:https://github.com/ruby/rexml/issues/98
298
+ [gh-99]:https://github.com/ruby/rexml/issues/99
299
+
3
300
  ## 3.2.5 - 2021-04-05 {#version-3-2-5}
4
301
 
5
302
  ### Improvements
6
303
 
7
304
  * Add more validations to XPath parser.
8
305
 
9
- * `require "rexml/docuemnt"` by default.
306
+ * `require "rexml/document"` by default.
10
307
  [GitHub#36][Patch by Koichi ITO]
11
308
 
12
- * Don't add `#dcloe` method to core classes globally.
309
+ * Don't add `#dclone` method to core classes globally.
13
310
  [GitHub#37][Patch by Akira Matsuda]
14
311
 
15
312
  * 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>