ox 2.13.1 → 2.13.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ec1cf99d4e2684029f06dbf745c239ab00335d87017a4bd44fc792d908b9f33
4
- data.tar.gz: 9f69f9506a7d83644c33b2c6658515fd0e1cfb8b4ce63e128fc8509a40fb31a0
3
+ metadata.gz: 2b9169ce6c85abf39460754b0c28af8a286c55c5f3a76e61f9a8e6de823d991c
4
+ data.tar.gz: 7f9a4a3f8a27fe0e44e116fb76e8b754f76bec0de43e1fec4c12c42780f68a7a
5
5
  SHA512:
6
- metadata.gz: f296b41ddf11021ed71a4d61acd68a78741ef4cd0c7f23efa5be9ebef6254dbe60b749df0d4a9377d80d94d0ba46fff36fd283ae4111a58deea32ed0062a4cdc
7
- data.tar.gz: c31bcbfc3271f92000c16e357a5aef34fbc105aa3afbc608d9a934f7d2c1c1f6d8af32de02250edf48032f5262bfd0f9b17316031a43f41e6ce5e10c8e1024a9
6
+ metadata.gz: 7903498e8e8f64232ffc168959b7f8d4ffdcfdbb7bd93407a7d35d575ad3f25dc20ce598c942e38dc8d7dd433d84e6957db48721b5c737fa0dc5f0144bd6556e
7
+ data.tar.gz: ccb0187833dd6c33ba0dfa4a486d9deb4d1f0628ff3ede133f2d85f365c96a8ec98a52af72d364d8f8a3beb46de4ac077af404ffe8e019978ef039bf60762128
@@ -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
@@ -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);
@@ -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 &amp;. This is a complete list from the HTML 4 spec.
73
+ // HTML entities such as &amp;. 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 }, // alef symbol = first transfinite cardinal
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 }, // greek small letter theta symbol
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
@@ -44,6 +44,7 @@ module Ox
44
44
  @nodes = []
45
45
  end
46
46
  alias name value
47
+ alias name= value=
47
48
 
48
49
  # Returns the Element's nodes array. These are the sub-elements of this
49
50
  # Element.
@@ -1,5 +1,5 @@
1
1
 
2
2
  module Ox
3
3
  # Current version of the module.
4
- VERSION = '2.13.1'
4
+ VERSION = '2.13.2'
5
5
  end
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.1
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-01-30 00:00:00.000000000 Z
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.