nokogumbo 1.4.4 → 1.4.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/ext/nokogumboc/nokogumbo.c +2 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c9b785e621546a6250bcaa6b2c538a5d5fd73c4f
4
- data.tar.gz: 99b2f45bd6178ad0b1d4b4f249884e849f296fbe
3
+ metadata.gz: 112d45149d1a8ffaceaa724e3fe529b17abe591e
4
+ data.tar.gz: 287313d4d86dd36246c98fe97f4e7b58f82f9300
5
5
  SHA512:
6
- metadata.gz: d6fa6e1dee3a419cde35d11d64cd61d4fdcb0e0ab594810a110b92b7ad8ce9afc52b40e7555c5e7334e42a70b55d72a461c791a8d5ec0c0815a48ba7c3cdce62
7
- data.tar.gz: 0beec6b9664eead77d4a86e0775811d84f0dccf472e262f32f1202b5a1fb70de9a8a80070b938ac933c62bf74537eeb1fec93a6a48a90497bb7bd0b0927d3b53
6
+ metadata.gz: dd230904c14df3092fbdd50f31f1693384fc5618a83210eff66884033aca5ccd3674900d26d9a34a031f764e09efdd5e8773392e826130961038fda13328b95f
7
+ data.tar.gz: c585a635126ec82d8b15c8195d2bf9a0e8893add3153f09b64d82179e3dbf33921b9c3eac24bf949b6b49a67e7d5f13c635f156a22bcedee6d794414c54d8e0e
@@ -189,7 +189,9 @@ static VALUE parse(VALUE self, VALUE string) {
189
189
  (size_t) RSTRING_LEN(string)
190
190
  );
191
191
  xmlDocPtr doc = xmlNewDoc(CONST_CAST "1.0");
192
+ #ifdef NGLIB
192
193
  doc->type = XML_HTML_DOCUMENT_NODE;
194
+ #endif
193
195
  xmlNodePtr root = walk_tree(doc, &output->root->v.element);
194
196
  xmlDocSetRootElement(doc, root);
195
197
  if (output->document->v.document.has_doctype) {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nokogumbo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.4
4
+ version: 1.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Ruby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-29 00:00:00.000000000 Z
11
+ date: 2015-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri