ox 2.4.8 → 2.4.9
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ox might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/ext/ox/sax.c +4 -2
- data/ext/ox/sax_hint.c +1 -0
- data/lib/ox/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a56bbf70fe5530b8c2903e35d16657dcc0a6ef1
|
4
|
+
data.tar.gz: bacb6b71b651b78e43ac8b6aee16cf5e9f9dbfbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 153eb27970aff8e5fd2ada7a2e954578bb1596f5ed7d59bd263cc61c77d7fa0b60375a5bdfae71dc54524ca0119c598abdb8120db7b71dc662fe5a953d39a4ec
|
7
|
+
data.tar.gz: e96032e02c813895c23e53642600f3083a4ebd2684dd0511e0b1f44ba7743da3e75516921af84f21f4885e0d0db859daf62818b039253b8500983b475a6b0a17
|
data/ext/ox/sax.c
CHANGED
@@ -818,12 +818,14 @@ read_comment(SaxDrive dr) {
|
|
818
818
|
}
|
819
819
|
}
|
820
820
|
CB:
|
821
|
-
// TBD check parent overlay
|
822
821
|
if (dr->has.comment && !dr->blocked) {
|
823
822
|
VALUE args[1];
|
824
823
|
Nv parent = stack_peek(&dr->stack);
|
824
|
+
Hint h = ox_hint_find(dr->options.hints, "!--");
|
825
|
+
|
826
|
+
if (NULL == parent || NULL == parent->hint || OffOverlay != parent->hint->overlay ||
|
827
|
+
(NULL != h && ActiveOverlay == h->overlay)) {
|
825
828
|
|
826
|
-
if (NULL == parent || NULL == parent->hint || OffOverlay != parent->hint->overlay) {
|
827
829
|
args[0] = rb_str_new2(dr->buf.str);
|
828
830
|
#if HAS_ENCODING_SUPPORT
|
829
831
|
if (0 != dr->encoding) {
|
data/ext/ox/sax_hint.c
CHANGED
@@ -29,6 +29,7 @@ static const char *table_0[] = { "table", 0 };
|
|
29
29
|
static const char *tr_0[] = { "tr", 0 };
|
30
30
|
|
31
31
|
static struct _Hint html_hint_array[] = {
|
32
|
+
{ "!--", false, false, false, ActiveOverlay, NULL }, // comment
|
32
33
|
{ "a", false, false, false, ActiveOverlay, NULL },
|
33
34
|
{ "abbr", false, false, false, ActiveOverlay, NULL },
|
34
35
|
{ "acronym", false, false, false, ActiveOverlay, NULL },
|
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.4.
|
4
|
+
version: 2.4.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Ohler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-25 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
|
14
14
|
\ \nOptimized XML (Ox), as the name implies was written to provide speed
|