xmlhash 1.3.6 → 1.3.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 57b370bdc50c90e41133a4e21022f8fd6b5f5fc1
4
- data.tar.gz: b834afbf06b454a31617d5f4e798d5f15f11a2f1
3
+ metadata.gz: 73463ec5fefb712dcc460538b6ce8bfd1f8f3997
4
+ data.tar.gz: 130a50fad1c5ac6ce9926e8ad21e6dc702bf3b57
5
5
  SHA512:
6
- metadata.gz: 807cf8ecd2ad560ed1d302f5b4276acca584a9a85ac16bf12d8ef2b2464f78fd9e7e1379d7c351c190162d4a83c317a8dc91f994e7d43e5296d8a82b9dcf7893
7
- data.tar.gz: 163da7fe46fd438db9200e113f57a75f37cc6ecad11ebefdfe3401626a49f3822e38d68725350fc30ad947899cc79aa82c3aff0da73fe7fbc78b99f85b03509b
6
+ metadata.gz: dc044eb3f72bb781c81ffd1f1117e2cd49ca936ce7cc6eee81ea8884d8be1f7c6c4466c0d3a5c99090c4e773bfa66e72b1b1f4687836071c9db3c6958ed91697
7
+ data.tar.gz: 6a1355488594f5c9f0560b9a3a13a3c0b3e121efc6d03794f5b8b8a2984c9ebc9d57aec57283e13ac0bfaef588be23c21a43a69119c33c363bd2b0010a09c4d5
@@ -1,3 +1,7 @@
1
+ === 1.3.7 / 2016-07-04
2
+
3
+ * Fix XML parsing: ignore comments and parse huge TXT nodes
4
+
1
5
  === 1.3.6 / 2013-09-11
2
6
 
3
7
  * Wrap libxml2 parsing in a synchronize block - otherwise the stacking
@@ -150,6 +150,9 @@ void processNode(xmlTextReaderPtr reader)
150
150
 
151
151
  nodetype = xmlTextReaderNodeType(reader);
152
152
 
153
+ if (nodetype == XML_READER_TYPE_COMMENT)
154
+ return; // ignore
155
+
153
156
  if (nodetype == XML_READER_TYPE_END_ELEMENT) {
154
157
  xml_hash_end_element(name);
155
158
  assert(value == NULL);
@@ -209,7 +212,7 @@ static VALUE parse_xml_hash(VALUE self, VALUE rb_xml)
209
212
  memcpy(data, StringValuePtr(rb_xml), RSTRING_LEN(rb_xml));
210
213
 
211
214
  reader = xmlReaderForMemory(data, RSTRING_LEN(rb_xml),
212
- NULL, NULL, XML_PARSE_NOENT | XML_PARSE_NOERROR | XML_PARSE_NOWARNING );
215
+ NULL, NULL, XML_PARSE_NOENT | XML_PARSE_NOERROR | XML_PARSE_NOWARNING | XML_PARSE_HUGE );
213
216
  init_XmlhashParserData();
214
217
 
215
218
  if (reader != NULL) {
@@ -1,7 +1,7 @@
1
1
  require 'xmlhash/xmlhash'
2
2
 
3
3
  module Xmlhash
4
- VERSION = '1.3.6'
4
+ VERSION = '1.3.7'
5
5
 
6
6
  class XMLHash < Hash
7
7
 
metadata CHANGED
@@ -1,71 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xmlhash
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.6
4
+ version: 1.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephan Kulow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-11 00:00:00.000000000 Z
11
+ date: 2016-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pkg-config
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rdoc
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '4.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '4.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake-compiler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: hoe
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '3.7'
61
+ version: '3.15'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '3.7'
68
+ version: '3.15'
69
69
  description: |-
70
70
  A small C module that wraps libxml2's xmlreader to parse a XML
71
71
  string into a ruby hash
@@ -79,8 +79,8 @@ extra_rdoc_files:
79
79
  - Manifest.txt
80
80
  - README.txt
81
81
  files:
82
- - .autotest
83
- - .travis.yml
82
+ - ".autotest"
83
+ - ".travis.yml"
84
84
  - Gemfile
85
85
  - History.txt
86
86
  - Manifest.txt
@@ -90,33 +90,31 @@ files:
90
90
  - ext/xmlhash/xmlhash.c
91
91
  - lib/xmlhash.rb
92
92
  - test/test_xmlhash.rb
93
- - .gemtest
94
93
  homepage: https://github.com/coolo/xmlhash
95
94
  licenses:
96
95
  - MIT
97
96
  metadata: {}
98
97
  post_install_message:
99
98
  rdoc_options:
100
- - --main
99
+ - "--main"
101
100
  - README.txt
102
101
  require_paths:
103
102
  - lib
104
103
  required_ruby_version: !ruby/object:Gem::Requirement
105
104
  requirements:
106
- - - '>='
105
+ - - ">="
107
106
  - !ruby/object:Gem::Version
108
107
  version: '0'
109
108
  required_rubygems_version: !ruby/object:Gem::Requirement
110
109
  requirements:
111
- - - '>='
110
+ - - ">="
112
111
  - !ruby/object:Gem::Version
113
112
  version: '0'
114
113
  requirements: []
115
- rubyforge_project: xmlhash
116
- rubygems_version: 2.0.3
114
+ rubyforge_project:
115
+ rubygems_version: 2.4.5.1
117
116
  signing_key:
118
117
  specification_version: 4
119
118
  summary: A small C module that wraps libxml2's xmlreader to parse a XML string into
120
119
  a ruby hash
121
- test_files:
122
- - test/test_xmlhash.rb
120
+ test_files: []
data/.gemtest DELETED
File without changes