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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f0fbd4706902b82c9a1fcc1924f68b6a5b9b805f
4
- data.tar.gz: aeef28c3236af992af9dff8cde459e59ead7b4b7
3
+ metadata.gz: 5a56bbf70fe5530b8c2903e35d16657dcc0a6ef1
4
+ data.tar.gz: bacb6b71b651b78e43ac8b6aee16cf5e9f9dbfbb
5
5
  SHA512:
6
- metadata.gz: 3be6d1b77ea5a0426bd7ab5f2d127632af4586ae48f67a415ba2526465934ca66f685c16d195eeabe3047d06a43e59886731c1a3e1f0e37a9c5ceb2fdc2913ec
7
- data.tar.gz: d29da0a404709c726fc296d7b929783400706135bbc32d13aec1ec5e2edc716996b9ce3c4816329dd4546fa73f234d407307ed14f56b3ba94d880c7f3f51e110
6
+ metadata.gz: 153eb27970aff8e5fd2ada7a2e954578bb1596f5ed7d59bd263cc61c77d7fa0b60375a5bdfae71dc54524ca0119c598abdb8120db7b71dc662fe5a953d39a4ec
7
+ data.tar.gz: e96032e02c813895c23e53642600f3083a4ebd2684dd0511e0b1f44ba7743da3e75516921af84f21f4885e0d0db859daf62818b039253b8500983b475a6b0a17
@@ -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) {
@@ -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 },
@@ -1,5 +1,5 @@
1
1
 
2
2
  module Ox
3
3
  # Current version of the module.
4
- VERSION = '2.4.8'
4
+ VERSION = '2.4.9'
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.4.8
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-15 00:00:00.000000000 Z
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