rexml 3.2.5 → 3.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/NEWS.md +100 -2
- data/README.md +10 -1
- data/doc/rexml/tasks/rdoc/element.rdoc +2 -2
- data/doc/rexml/tutorial.rdoc +1358 -0
- data/lib/rexml/attribute.rb +14 -9
- data/lib/rexml/document.rb +1 -1
- data/lib/rexml/element.rb +3 -3
- data/lib/rexml/entity.rb +25 -15
- data/lib/rexml/formatters/pretty.rb +2 -2
- data/lib/rexml/namespace.rb +8 -4
- data/lib/rexml/parsers/xpathparser.rb +136 -86
- data/lib/rexml/rexml.rb +3 -1
- data/lib/rexml/text.rb +6 -4
- metadata +10 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2583ae302aa5e698f0887a689c416e5debe0533ac472a9f96fce6a8912040fd8
|
4
|
+
data.tar.gz: b0ffa6301fd899969a78e060ccaeafebfc2169e3c63ff499ebc6170468866475
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f63fb0b84ef51e790cc6310244f2106d8c47ec9a00687c58c743afda82b60be9986d503c6f56f947db06f6758707facccd03405c4d1009376e856080aa26d0e4
|
7
|
+
data.tar.gz: db62bea7391837a7ab4cfc5cb5a412ed4deb8d232653ca66d93a323a5a76383eed520cd4ced5b20204f29b04e84678791cd6f807195868f5d4a5e519a73d2aaf
|
data/NEWS.md
CHANGED
@@ -1,15 +1,113 @@
|
|
1
1
|
# News
|
2
2
|
|
3
|
+
## 3.2.6 - 2023-07-27 {#version-3-2-6}
|
4
|
+
|
5
|
+
### Improvements
|
6
|
+
|
7
|
+
* Required Ruby 2.5 or later explicitly.
|
8
|
+
[GH-69][gh-69]
|
9
|
+
[Patch by Ivo Anjo]
|
10
|
+
|
11
|
+
* Added documentation for maintenance cycle.
|
12
|
+
[GH-71][gh-71]
|
13
|
+
[Patch by Ivo Anjo]
|
14
|
+
|
15
|
+
* Added tutorial.
|
16
|
+
[GH-77][gh-77]
|
17
|
+
[GH-78][gh-78]
|
18
|
+
[Patch by Burdette Lamar]
|
19
|
+
|
20
|
+
* Improved performance and memory usage.
|
21
|
+
[GH-94][gh-94]
|
22
|
+
[Patch by fatkodima]
|
23
|
+
|
24
|
+
* `REXML::Parsers::XPathParser#abbreviate`: Added support for
|
25
|
+
function arguments.
|
26
|
+
[GH-95][gh-95]
|
27
|
+
[Reported by pulver]
|
28
|
+
|
29
|
+
* `REXML::Parsers::XPathParser#abbreviate`: Added support for string
|
30
|
+
literal that contains double-quote.
|
31
|
+
[GH-96][gh-96]
|
32
|
+
[Patch by pulver]
|
33
|
+
|
34
|
+
* `REXML::Parsers::XPathParser#abbreviate`: Added missing `/` to
|
35
|
+
`:descendant_or_self/:self/:parent`.
|
36
|
+
[GH-97][gh-97]
|
37
|
+
[Reported by pulver]
|
38
|
+
|
39
|
+
* `REXML::Parsers::XPathParser#abbreviate`: Added support for more patterns.
|
40
|
+
[GH-97][gh-97]
|
41
|
+
[Reported by pulver]
|
42
|
+
|
43
|
+
### Fixes
|
44
|
+
|
45
|
+
* Fixed a typo in NEWS.
|
46
|
+
[GH-72][gh-72]
|
47
|
+
[Patch by Spencer Goodman]
|
48
|
+
|
49
|
+
* Fixed a typo in NEWS.
|
50
|
+
[GH-75][gh-75]
|
51
|
+
[Patch by Andrew Bromwich]
|
52
|
+
|
53
|
+
* Fixed documents.
|
54
|
+
[GH-87][gh-87]
|
55
|
+
[Patch by Alexander Ilyin]
|
56
|
+
|
57
|
+
* Fixed a bug that `Attriute` convert `'` and `'` even when
|
58
|
+
`attribute_quote: :quote` is used.
|
59
|
+
[GH-92][gh-92]
|
60
|
+
[Reported by Edouard Brière]
|
61
|
+
|
62
|
+
* Fixed links in tutorial.
|
63
|
+
[GH-99][gh-99]
|
64
|
+
[Patch by gemmaro]
|
65
|
+
|
66
|
+
|
67
|
+
### Thanks
|
68
|
+
|
69
|
+
* Ivo Anjo
|
70
|
+
|
71
|
+
* Spencer Goodman
|
72
|
+
|
73
|
+
* Andrew Bromwich
|
74
|
+
|
75
|
+
* Burdette Lamar
|
76
|
+
|
77
|
+
* Alexander Ilyin
|
78
|
+
|
79
|
+
* Edouard Brière
|
80
|
+
|
81
|
+
* fatkodima
|
82
|
+
|
83
|
+
* pulver
|
84
|
+
|
85
|
+
* gemmaro
|
86
|
+
|
87
|
+
[gh-69]:https://github.com/ruby/rexml/issues/69
|
88
|
+
[gh-71]:https://github.com/ruby/rexml/issues/71
|
89
|
+
[gh-72]:https://github.com/ruby/rexml/issues/72
|
90
|
+
[gh-75]:https://github.com/ruby/rexml/issues/75
|
91
|
+
[gh-77]:https://github.com/ruby/rexml/issues/77
|
92
|
+
[gh-87]:https://github.com/ruby/rexml/issues/87
|
93
|
+
[gh-92]:https://github.com/ruby/rexml/issues/92
|
94
|
+
[gh-94]:https://github.com/ruby/rexml/issues/94
|
95
|
+
[gh-95]:https://github.com/ruby/rexml/issues/95
|
96
|
+
[gh-96]:https://github.com/ruby/rexml/issues/96
|
97
|
+
[gh-97]:https://github.com/ruby/rexml/issues/97
|
98
|
+
[gh-98]:https://github.com/ruby/rexml/issues/98
|
99
|
+
[gh-99]:https://github.com/ruby/rexml/issues/99
|
100
|
+
|
3
101
|
## 3.2.5 - 2021-04-05 {#version-3-2-5}
|
4
102
|
|
5
103
|
### Improvements
|
6
104
|
|
7
105
|
* Add more validations to XPath parser.
|
8
106
|
|
9
|
-
* `require "rexml/
|
107
|
+
* `require "rexml/document"` by default.
|
10
108
|
[GitHub#36][Patch by Koichi ITO]
|
11
109
|
|
12
|
-
* Don't add `#
|
110
|
+
* Don't add `#dclone` method to core classes globally.
|
13
111
|
[GitHub#37][Patch by Akira Matsuda]
|
14
112
|
|
15
113
|
* 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
|
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
|
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
|
489
|
+
to retrieve a specific namespace URI for the element:
|
490
490
|
|
491
491
|
xml_string = <<-EOT
|
492
492
|
<root>
|