ox 2.13.1 → 2.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/ext/ox/parse.c +6 -0
- data/ext/ox/special.c +4 -3
- data/lib/ox/element.rb +1 -0
- data/lib/ox/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b9169ce6c85abf39460754b0c28af8a286c55c5f3a76e61f9a8e6de823d991c
|
4
|
+
data.tar.gz: 7f9a4a3f8a27fe0e44e116fb76e8b754f76bec0de43e1fec4c12c42780f68a7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7903498e8e8f64232ffc168959b7f8d4ffdcfdbb7bd93407a7d35d575ad3f25dc20ce598c942e38dc8d7dd433d84e6957db48721b5c737fa0dc5f0144bd6556e
|
7
|
+
data.tar.gz: ccb0187833dd6c33ba0dfa4a486d9deb4d1f0628ff3ede133f2d85f365c96a8ec98a52af72d364d8f8a3beb46de4ac077af404ffe8e019978ef039bf60762128
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,16 @@ All changes to the Ox gem are documented here. Releases follow semantic versioni
|
|
4
4
|
|
5
5
|
## [Unreleased]
|
6
6
|
|
7
|
+
## [2.13.2] - 2020-02-05
|
8
|
+
|
9
|
+
Skip and missed sequence
|
10
|
+
|
11
|
+
### Fixed
|
12
|
+
|
13
|
+
- Add ' sequence.
|
14
|
+
|
15
|
+
- `:skip_off` no longer misses spaces between elements.
|
16
|
+
|
7
17
|
## [2.13.1] - 2020-01-30
|
8
18
|
|
9
19
|
HTML Sequences
|
data/ext/ox/parse.c
CHANGED
@@ -544,6 +544,12 @@ read_element(PInfo pi) {
|
|
544
544
|
while (!done) {
|
545
545
|
start = pi->s;
|
546
546
|
next_non_white(pi);
|
547
|
+
if (OffSkip == pi->options->skip && start < pi->s && '<' == *pi->s) {
|
548
|
+
c = *pi->s;
|
549
|
+
*pi->s = '\0';
|
550
|
+
pi->pcb->add_text(pi, start, 1);
|
551
|
+
*pi->s = c;
|
552
|
+
}
|
547
553
|
c = *pi->s++;
|
548
554
|
if ('\0' == c) {
|
549
555
|
attr_stack_cleanup(&attrs);
|
data/ext/ox/special.c
CHANGED
@@ -70,7 +70,7 @@ typedef struct _cache {
|
|
70
70
|
static struct _cache entity_cache;
|
71
71
|
static bool inited = false;
|
72
72
|
|
73
|
-
// HTML entities such as &. This is a complete list from the HTML
|
73
|
+
// HTML entities such as &. This is a complete list from the HTML 5 spec.
|
74
74
|
static struct _slot entities[] = {
|
75
75
|
{ "AElig", 198 }, // latin capital letter AE
|
76
76
|
{ "Aacute", 193 }, // latin capital letter A with acute
|
@@ -136,11 +136,12 @@ static struct _slot entities[] = {
|
|
136
136
|
{ "acute", 180 }, // acute accent = spacing acute
|
137
137
|
{ "aelig", 230 }, // latin small letter ae
|
138
138
|
{ "agrave", 224 }, // latin small letter a with grave
|
139
|
-
{ "alefsym", 8501 }
|
139
|
+
{ "alefsym", 8501 },// alef symbol = first transfinite cardinal
|
140
140
|
{ "alpha", 945 }, // greek small letter alpha
|
141
141
|
{ "amp", 38 }, // -- ampersand, U+0026 ISOnum
|
142
142
|
{ "and", 8743 }, // logical and = wedge, U+2227 ISOtech
|
143
143
|
{ "ang", 8736 }, // angle, U+2220 ISOamso
|
144
|
+
{ "apos", 39 }, // -- single quote
|
144
145
|
{ "aring", 229 }, // latin small letter a with ring above
|
145
146
|
{ "asymp", 8776 }, // almost equal to = asymptotic to
|
146
147
|
{ "atilde", 227 }, // latin small letter a with tilde
|
@@ -301,7 +302,7 @@ static struct _slot entities[] = {
|
|
301
302
|
{ "tau", 964 }, // greek small letter tau, U+03C4 ISOgrk3
|
302
303
|
{ "there4", 8756 }, // therefore, U+2234 ISOtech
|
303
304
|
{ "theta", 952 }, // greek small letter theta
|
304
|
-
{ "thetasym", 977 }
|
305
|
+
{ "thetasym", 977 },// greek small letter theta symbol
|
305
306
|
{ "thinsp", 8201 }, // thin space, U+2009 ISOpub
|
306
307
|
{ "thorn", 254 }, // latin small letter thorn
|
307
308
|
{ "tilde", 732 }, // - small tilde, U+02DC ISOdia
|
data/lib/ox/element.rb
CHANGED
data/lib/ox/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.13.
|
4
|
+
version: 2.13.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Ohler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: "A fast XML parser and object serializer that uses only standard C lib.\n\nOptimized
|
14
14
|
XML (Ox), as the name implies was written to provide speed optimized\nXML handling.
|