libxml-ruby 2.8.0 → 3.2.3

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.
Files changed (205) hide show
  1. checksums.yaml +5 -5
  2. data/HISTORY +859 -775
  3. data/LICENSE +20 -20
  4. data/MANIFEST +166 -166
  5. data/README.rdoc +217 -184
  6. data/Rakefile +98 -78
  7. data/ext/libxml/extconf.rb +61 -116
  8. data/ext/libxml/libxml.c +80 -76
  9. data/ext/libxml/ruby_libxml.h +67 -75
  10. data/ext/libxml/ruby_xml.c +937 -893
  11. data/ext/libxml/ruby_xml.h +10 -10
  12. data/ext/libxml/ruby_xml_attr.c +333 -333
  13. data/ext/libxml/ruby_xml_attr.h +12 -12
  14. data/ext/libxml/ruby_xml_attr_decl.c +153 -153
  15. data/ext/libxml/ruby_xml_attr_decl.h +11 -11
  16. data/ext/libxml/ruby_xml_attributes.c +275 -275
  17. data/ext/libxml/ruby_xml_attributes.h +15 -15
  18. data/ext/libxml/ruby_xml_cbg.c +85 -85
  19. data/ext/libxml/ruby_xml_document.c +1123 -1147
  20. data/ext/libxml/ruby_xml_document.h +11 -11
  21. data/ext/libxml/ruby_xml_dtd.c +248 -268
  22. data/ext/libxml/ruby_xml_dtd.h +9 -9
  23. data/ext/libxml/ruby_xml_encoding.c +250 -260
  24. data/ext/libxml/ruby_xml_encoding.h +16 -19
  25. data/ext/libxml/ruby_xml_error.c +996 -996
  26. data/ext/libxml/ruby_xml_error.h +12 -12
  27. data/ext/libxml/ruby_xml_html_parser.c +89 -92
  28. data/ext/libxml/ruby_xml_html_parser.h +10 -10
  29. data/ext/libxml/ruby_xml_html_parser_context.c +337 -338
  30. data/ext/libxml/ruby_xml_html_parser_context.h +10 -10
  31. data/ext/libxml/ruby_xml_html_parser_options.c +46 -46
  32. data/ext/libxml/ruby_xml_html_parser_options.h +10 -10
  33. data/ext/libxml/ruby_xml_input_cbg.c +191 -191
  34. data/ext/libxml/ruby_xml_input_cbg.h +20 -20
  35. data/ext/libxml/ruby_xml_io.c +47 -50
  36. data/ext/libxml/ruby_xml_io.h +10 -10
  37. data/ext/libxml/ruby_xml_namespace.c +154 -153
  38. data/ext/libxml/ruby_xml_namespace.h +10 -10
  39. data/ext/libxml/ruby_xml_namespaces.c +293 -293
  40. data/ext/libxml/ruby_xml_namespaces.h +9 -9
  41. data/ext/libxml/ruby_xml_node.c +1406 -1452
  42. data/ext/libxml/ruby_xml_node.h +13 -11
  43. data/ext/libxml/ruby_xml_parser.c +91 -94
  44. data/ext/libxml/ruby_xml_parser.h +12 -12
  45. data/ext/libxml/ruby_xml_parser_context.c +999 -1001
  46. data/ext/libxml/ruby_xml_parser_context.h +10 -10
  47. data/ext/libxml/ruby_xml_parser_options.c +66 -66
  48. data/ext/libxml/ruby_xml_parser_options.h +12 -12
  49. data/ext/libxml/ruby_xml_reader.c +1239 -1228
  50. data/ext/libxml/ruby_xml_reader.h +17 -17
  51. data/ext/libxml/ruby_xml_relaxng.c +110 -111
  52. data/ext/libxml/ruby_xml_relaxng.h +10 -10
  53. data/ext/libxml/ruby_xml_sax2_handler.c +326 -328
  54. data/ext/libxml/ruby_xml_sax2_handler.h +10 -10
  55. data/ext/libxml/ruby_xml_sax_parser.c +116 -120
  56. data/ext/libxml/ruby_xml_sax_parser.h +10 -10
  57. data/ext/libxml/ruby_xml_schema.c +350 -301
  58. data/ext/libxml/ruby_xml_schema.h +806 -809
  59. data/ext/libxml/ruby_xml_schema_attribute.c +61 -109
  60. data/ext/libxml/ruby_xml_schema_attribute.h +15 -15
  61. data/ext/libxml/ruby_xml_schema_element.c +69 -94
  62. data/ext/libxml/ruby_xml_schema_element.h +14 -14
  63. data/ext/libxml/ruby_xml_schema_facet.c +46 -52
  64. data/ext/libxml/ruby_xml_schema_facet.h +13 -13
  65. data/ext/libxml/ruby_xml_schema_type.c +214 -259
  66. data/ext/libxml/ruby_xml_schema_type.h +9 -9
  67. data/ext/libxml/ruby_xml_version.h +9 -9
  68. data/ext/libxml/ruby_xml_writer.c +1133 -1137
  69. data/ext/libxml/ruby_xml_writer.h +10 -10
  70. data/ext/libxml/ruby_xml_xinclude.c +16 -16
  71. data/ext/libxml/ruby_xml_xinclude.h +11 -11
  72. data/ext/libxml/ruby_xml_xpath.c +194 -188
  73. data/ext/libxml/ruby_xml_xpath.h +13 -13
  74. data/ext/libxml/ruby_xml_xpath_context.c +360 -361
  75. data/ext/libxml/ruby_xml_xpath_context.h +9 -9
  76. data/ext/libxml/ruby_xml_xpath_expression.c +81 -81
  77. data/ext/libxml/ruby_xml_xpath_expression.h +10 -10
  78. data/ext/libxml/ruby_xml_xpath_object.c +338 -335
  79. data/ext/libxml/ruby_xml_xpath_object.h +17 -17
  80. data/ext/libxml/ruby_xml_xpointer.c +99 -99
  81. data/ext/libxml/ruby_xml_xpointer.h +11 -11
  82. data/ext/vc/libxml_ruby.sln +17 -15
  83. data/lib/libxml/node.rb +2 -78
  84. data/lib/libxml/parser.rb +0 -266
  85. data/lib/libxml/sax_parser.rb +0 -17
  86. data/lib/libxml/schema/attribute.rb +19 -19
  87. data/lib/libxml/schema/element.rb +19 -27
  88. data/lib/libxml/schema/type.rb +21 -29
  89. data/lib/libxml/schema.rb +47 -66
  90. data/lib/libxml-ruby.rb +30 -0
  91. data/lib/libxml.rb +3 -33
  92. data/libxml-ruby.gemspec +48 -44
  93. data/script/benchmark/depixelate +634 -634
  94. data/script/benchmark/hamlet.xml +9054 -9054
  95. data/script/benchmark/parsecount +170 -170
  96. data/script/benchmark/throughput +41 -41
  97. data/script/test +6 -6
  98. data/setup.rb +0 -1
  99. data/test/c14n/given/example-1.xml +14 -14
  100. data/test/c14n/given/example-2.xml +11 -11
  101. data/test/c14n/given/example-3.xml +18 -18
  102. data/test/c14n/given/example-4.xml +9 -9
  103. data/test/c14n/given/example-5.xml +12 -12
  104. data/test/c14n/given/example-6.xml +2 -2
  105. data/test/c14n/given/example-7.xml +11 -11
  106. data/test/c14n/given/example-8.xml +11 -11
  107. data/test/c14n/given/example-8.xpath +9 -9
  108. data/test/c14n/result/1-1-without-comments/example-1 +3 -3
  109. data/test/c14n/result/1-1-without-comments/example-2 +10 -10
  110. data/test/c14n/result/1-1-without-comments/example-3 +13 -13
  111. data/test/c14n/result/1-1-without-comments/example-4 +8 -8
  112. data/test/c14n/result/1-1-without-comments/example-5 +2 -2
  113. data/test/c14n/result/with-comments/example-1 +5 -5
  114. data/test/c14n/result/with-comments/example-2 +10 -10
  115. data/test/c14n/result/with-comments/example-3 +13 -13
  116. data/test/c14n/result/with-comments/example-4 +8 -8
  117. data/test/c14n/result/with-comments/example-5 +3 -3
  118. data/test/c14n/result/without-comments/example-1 +3 -3
  119. data/test/c14n/result/without-comments/example-2 +10 -10
  120. data/test/c14n/result/without-comments/example-3 +13 -13
  121. data/test/c14n/result/without-comments/example-4 +8 -8
  122. data/test/c14n/result/without-comments/example-5 +2 -2
  123. data/test/model/atom.xml +12 -12
  124. data/test/model/bands.iso-8859-1.xml +4 -4
  125. data/test/model/bands.utf-8.xml +4 -4
  126. data/test/model/bands.xml +4 -4
  127. data/test/model/books.xml +153 -153
  128. data/test/model/cwm_1_0.xml +11336 -0
  129. data/test/model/merge_bug_data.xml +58 -58
  130. data/test/model/ruby-lang.html +238 -238
  131. data/test/model/rubynet.xml +79 -79
  132. data/test/model/shiporder.rnc +28 -28
  133. data/test/model/shiporder.rng +86 -86
  134. data/test/model/shiporder.xml +22 -22
  135. data/test/model/shiporder.xsd +44 -40
  136. data/test/model/shiporder_bad.xsd +40 -0
  137. data/test/model/shiporder_import.xsd +45 -0
  138. data/test/model/soap.xml +27 -27
  139. data/test/model/xinclude.xml +4 -4
  140. data/test/{tc_attr.rb → test_attr.rb} +23 -25
  141. data/test/{tc_attr_decl.rb → test_attr_decl.rb} +13 -14
  142. data/test/{tc_attributes.rb → test_attributes.rb} +11 -18
  143. data/test/{tc_canonicalize.rb → test_canonicalize.rb} +36 -41
  144. data/test/test_deprecated_require.rb +12 -0
  145. data/test/{tc_document.rb → test_document.rb} +33 -27
  146. data/test/test_document_write.rb +146 -0
  147. data/test/{tc_dtd.rb → test_dtd.rb} +29 -29
  148. data/test/{tc_encoding.rb → test_encoding.rb} +129 -126
  149. data/test/{tc_encoding_sax.rb → test_encoding_sax.rb} +7 -6
  150. data/test/test_error.rb +178 -0
  151. data/test/test_helper.rb +4 -9
  152. data/test/test_html_parser.rb +162 -0
  153. data/test/test_html_parser_context.rb +23 -0
  154. data/test/test_namespace.rb +60 -0
  155. data/test/{tc_namespaces.rb → test_namespaces.rb} +34 -44
  156. data/test/{tc_node.rb → test_node.rb} +68 -47
  157. data/test/{tc_node_cdata.rb → test_node_cdata.rb} +12 -13
  158. data/test/{tc_node_comment.rb → test_node_comment.rb} +7 -8
  159. data/test/{tc_node_copy.rb → test_node_copy.rb} +4 -6
  160. data/test/{tc_node_edit.rb → test_node_edit.rb} +23 -41
  161. data/test/{tc_node_pi.rb → test_node_pi.rb} +37 -40
  162. data/test/{tc_node_text.rb → test_node_text.rb} +10 -12
  163. data/test/{tc_node_write.rb → test_node_write.rb} +18 -29
  164. data/test/test_node_xlink.rb +28 -0
  165. data/test/test_parser.rb +324 -0
  166. data/test/{tc_parser_context.rb → test_parser_context.rb} +42 -49
  167. data/test/{tc_properties.rb → test_properties.rb} +6 -7
  168. data/test/test_reader.rb +364 -0
  169. data/test/test_relaxng.rb +53 -0
  170. data/test/{tc_sax_parser.rb → test_sax_parser.rb} +44 -38
  171. data/test/test_schema.rb +231 -0
  172. data/test/test_suite.rb +38 -40
  173. data/test/{tc_traversal.rb → test_traversal.rb} +5 -6
  174. data/test/{tc_writer.rb → test_writer.rb} +468 -448
  175. data/test/{tc_xinclude.rb → test_xinclude.rb} +4 -5
  176. data/test/test_xml.rb +263 -0
  177. data/test/{tc_xpath.rb → test_xpath.rb} +31 -32
  178. data/test/{tc_xpath_context.rb → test_xpath_context.rb} +8 -9
  179. data/test/test_xpath_expression.rb +37 -0
  180. data/test/{tc_xpointer.rb → test_xpointer.rb} +16 -18
  181. metadata +122 -100
  182. data/lib/libxml/ns.rb +0 -22
  183. data/lib/libxml/properties.rb +0 -23
  184. data/lib/libxml/reader.rb +0 -29
  185. data/lib/libxml/xpath_object.rb +0 -16
  186. data/test/etc_doc_to_s.rb +0 -21
  187. data/test/ets_doc_file.rb +0 -17
  188. data/test/ets_doc_to_s.rb +0 -23
  189. data/test/ets_gpx.rb +0 -28
  190. data/test/ets_node_gc.rb +0 -23
  191. data/test/ets_test.xml +0 -2
  192. data/test/ets_tsr.rb +0 -11
  193. data/test/tc_deprecated_require.rb +0 -13
  194. data/test/tc_document_write.rb +0 -196
  195. data/test/tc_error.rb +0 -180
  196. data/test/tc_html_parser.rb +0 -153
  197. data/test/tc_html_parser_context.rb +0 -24
  198. data/test/tc_namespace.rb +0 -62
  199. data/test/tc_node_xlink.rb +0 -29
  200. data/test/tc_parser.rb +0 -381
  201. data/test/tc_reader.rb +0 -400
  202. data/test/tc_relaxng.rb +0 -54
  203. data/test/tc_schema.rb +0 -162
  204. data/test/tc_xml.rb +0 -226
  205. data/test/tc_xpath_expression.rb +0 -38
data/HISTORY CHANGED
@@ -1,775 +1,859 @@
1
- = Release History
2
-
3
- == 2.8.0 / 2015-01-09 Charlie Savage
4
-
5
- * Use RbConfig instead of Config in extconf.rb (Robert Haines)
6
- * Correct xpath documentation XML (Bill Mill)
7
- * Correct from_string method documentation (Bill Mill)
8
- * Fix compile error with debug not enabled in libxml (Patrick Ziegler)
9
- * Update gemspec to include license (Charlie Savage)
10
- * In XML::Writer prevent writing to io while being GCed (Brett Gibson)
11
-
12
- == 2.7.0 / 2013-08-13 Charlie Savage
13
-
14
- * Don't call rb_warning in GC mark function (Dirkjan Bussink)
15
- * Set libxml error handler when a libxml-ruby error handler is set (Geoffrey Giesemann)
16
- * Fix tests for nil TypeErrors for ruby 2.0=< (Geoffrey Giesemann)
17
- * Fix segmentation fault for issue #62 (Charlie Savage)
18
- * Add #node_type method to dtd (Charlie Savage)
19
- * Fixing equality check of LibXML::XML::Error against other objects (Michał Szajbe)
20
- * Fix #63, XML::Writer.set_quote_char UT, wrong expected string (julp)
21
- * Fix potential segfault when GC occurs while creating ns from xpath (Timothy Elliott)
22
- * Fix for #59, segmentation fault after failure to load external schema (Clifford Heath)
23
-
24
- == 2.6.0 / 2013-02-16 Charlie Savage
25
-
26
- * Fix uninitialized constant LibXML::XML::Error::I18N (NameError) that occurred
27
- with older versions of libxml.
28
- * Various updates/fixes to new XML::Writer class and update how flushing works (julp)
29
-
30
- == 2.5.0 / 2013-01-27 Charlie Savage
31
-
32
- * Compatibility with older versions for IO::write (rb_io_bufwrite is specific to ruby >= 1.9.3?)
33
- and symbols are VALUE not ID (julp).
34
- * Fix version for xmlTextWriterSetQuoteChar, it appeared in libxml2 2.9.0, last version (julp)
35
- * Update use of LIBXML_VERSION (julp).
36
- * Fix misuse of rb_scan_args (julp).
37
- * Update documentation, including DTD docs and added XML Writer (julp).
38
- * Added a new XML::Writer class (julp).
39
- * Improved xml reader api and add namespace support. Note that passing a numeric value
40
- to XML::Reader::move_to_attribute has been deprecated. Instead you should now
41
- use #move_to_attribute_no. (julp).
42
- * Improve error handling and messages (Jarl Friis)
43
-
44
- == 2.4.0 / 2012-12-14 Charlie Savage
45
-
46
- * Support libxml 2.9.0 (Daniel Veillard)
47
-
48
- * Extensive new interfaces for xml schema functionality including suppor for
49
- schemal elements, types, facets and attributes (Anton Sozontov)
50
-
51
- * Fix Encoding#from_s bug and update docs (Nikita Afanasenko)
52
-
53
- * Node#content= encoding (Nikita Afanasenko)
54
-
55
- == 2.3.3 / 2012-07-01 Charlie Savage
56
-
57
- * Add LibXML::XML::Error.get_handler (Carsten Zimmermann)
58
- * Fix variable name in example (Marcus)
59
-
60
- == 2.3.2 / 2012-03-20 Charlie Savage
61
-
62
- * Define various canonicalize constants to support libxml2 versions
63
- older than 1.1.25 (thanks Apple!)
64
-
65
- == 2.3.1 / 2012-03-20 Charlie Savage
66
-
67
- * Yanked - didn't fix the OSX canonicalize issue
68
-
69
- == 2.3.0 / 2012-03-18 Charlie Savage
70
-
71
- * Add ability to insert new PI-nodes into the xmltree (Axel Struebing).
72
-
73
- * Added full pass-through access to libxml2 xmlC14NDocDumpMemory method via
74
- LibXML::XML::Document#canonicalize method with optional arguments.
75
-
76
- * Added full test data for C14N based off of W3C spec.
77
- (http://www.w3.org/TR/xml-c14n#Examples)
78
-
79
- * Update sax handler to support encodings on Ruby 1.9 and higher.
80
-
81
- == 2.2.2 / 2011-08-29 Charlie Savage
82
-
83
- * ++API CHANGE+++
84
-
85
- Reader#relax_ng_validate now takes a RelaxNG object. This is
86
- what the documentation has always said it takes, but it previously
87
- took a string. In addition, it now returns true or false instead of 0 or -1.
88
-
89
- Reader#schema_validate now takes a Schema object. This is
90
- what the documentation has always said it takes, but it previously
91
- took a string. In addition, it now returns true or false instead of 0 or -1.
92
-
93
- Fixes GitHub issue #30.
94
-
95
- * Added Parser::Context#close and HTMLParser::Context#close methods that
96
- allow the underlying io stream (file, string, etc) to be closed. Once a
97
- parser is done parsing its data, it now calls one of these methods.
98
- This means that if you parse thousands of files at the same time,
99
- without running Ruby's garbage colllector, you won't get a too
100
- many files open error. Fixes GitHub issue #29.
101
-
102
- * Fixed bug where Node#inner_xml caused an error when it had no child nodes.
103
- Fixes GitHub issues #31
104
-
105
- * Don't require 'rake' in the gemspec to avoid annoying Bundler bugs
106
-
107
- == 2.2.1 / 2011-08-13 Charlie Savage
108
-
109
- * Packaging fix - include the custom .def file in the gem.
110
-
111
- == 2.2.0 / 2011-08-09 Charlie Savage
112
-
113
- * Update encoding support for Ruby 1.9 so that libxml-ruby returns
114
- strings encoded in UTF-8. This change was required since libxml internally
115
- stores strings in UTF-8. The exceptions to this rule are the #to_s methods
116
- which return UTF-8 by default but can return other encodings if requested.
117
-
118
- == 2.1.2 / 2011-08-03 Charlie Savage
119
-
120
- * Fix segmentation fault that could occur when an XPathContext was marked
121
- before it was fully initialized (Charlie Savage).
122
-
123
- * Add mark method to document to mark all nodes currently being accessed
124
- by ruby. This make Ruby Enterprise Edition happy (Charlie Savage).
125
-
126
- == 2.1.1 / 2011-07-31 Charlie Savage
127
-
128
- * Switch to using def files to control library exports (Charlie Savage).
129
-
130
- == 2.1.0 / 2011-07-31 Charlie Savage
131
-
132
- * Ruby 1.9.3 compatability (Charlie Savage).
133
-
134
- * Added XPath expression <-> Ruby value conversion methods (Jens Wille).
135
-
136
- * Extracted rxml_xpath_to_value from rxml_xpath_context_find (Jens Wille).
137
-
138
- * Adapted rxml_xpath_from_value from Gregoire Lejeune's ruby-xslt
139
- library, see https://github.com/glejeune/ruby-xslt (Jens Wille).
140
-
141
- * Allow calling #find on nodes returned from Reader (Charlie Savage).
142
-
143
- * Change document handling in XPath::Context to address segmentation fault on
144
- Ruby Enterprise Edition (Charlie Savage).
145
-
146
- * Update gemspec file to work directly with bundler thereby allowing git
147
- repository to be used as gem (Charlie Savage).
148
-
149
- * Support gem buld (Charlie Savage).
150
-
151
- * Simplify memory management of attributes namespaces to fix
152
- segmentation faults that occurred when using Ruby 1.9.3 (Charlie Savage).
153
-
154
-
155
- == 2.0.8 / 2011-06-23 Charlie Savage
156
-
157
- * Add in 2 new HTML Parser constants - NODEFDTD and NOIMPLIED.
158
-
159
- * Fix compile issue on Ruby 1.9.3
160
-
161
- == 2.0.6 / 2011-05-23 Charlie Savage
162
-
163
- * Fix segfault that sometimes occurred when looking up encodings on 1.9.
164
- In some cases the Ruby encoding infrastructure was not properly
165
- initialized (nkriege).
166
-
167
- == 2.0.5 / 2011-05-05 Charlie Savage
168
-
169
- * Document#validate_dtd would sometimes cause segmentation faults due to
170
- an improperly initialized data structure (Charlie Savage)
171
-
172
- == 2.0.4 / 2011-05-02 Charlie Savage
173
-
174
- * Fix compile issues on platforms using older versions of libxml2.
175
- The problem as using a C14N constants that was added to libxml2
176
- in July 2009 (Charlie Savage).
177
-
178
- == 2.0.3 / 2011-05-01 Charlie Savage
179
-
180
- * The biggest change in this release is supporting the use of libxml-ruby in
181
- native background Ruby threads. Previously, the use of libxml-ruby in
182
- background threads in Ruby 1.9.x and higher would often cause
183
- segmentation faults. This has now been fixed (Charlie Savage).
184
-
185
- * Update Reader#expand so that returned node correctly remembers its
186
- encoding in Ruby 1.9.x (zerebubuth).
187
-
188
- * Add check to verify a node has not been deleted. This can happen when
189
- a ruby variable holds a reference to a child node that gets freed
190
- when its parent gets freed. Previously when this happened a
191
- segmentation fault would occur, now an exception is raised (Charlie Savage, fixes
192
- RubyForge #26839.
193
-
194
- * Do not unlink nodes before internal validations have run - avoids
195
- segmentation faults caused by freeing a node twice (Charlie Savage).
196
-
197
- * Add support for Document#canonicalization (Victor Lin).
198
-
199
- * Fix memory leak in Reader#lookup_namespace (Charlie Savage).
200
-
201
- * Fix memory leak in Reader#[] (Nathan Kriege).
202
-
203
- * Fix usage of @io instance variable (Jeffrey Taylor)
204
-
205
- * Removed old sax error handling code that has been fixed in newer
206
- versions of libxml (Charlie Savage).
207
-
208
- * Code cleanup - remove unused variables and commented out code (Charlie Savage)
209
-
210
- * Minor text changes and documentation fixes (Charlie Savage).
211
-
212
- * Fix documentation error (fixes RubyForge #26888).
213
-
214
- * Update documentation for Document#validation* methods (fixes RubyForge #24833).
215
-
216
- * Update documentation and test (fixes Ruby Forge Issue #28770).
217
-
218
- * Updated documentation in README (Anurag Priyam):
219
- 1. rake doc does not work; use rake rdoc.
220
- 2. gem mislav-hanna does not exist; use hanna.
221
- 3. rake rdoc 'depends' on hanna; no need of RDOCOPTS
222
- 4. Point to the github issue tracker instead of Ruby Forge
223
- 5. Point to the github (gh-pages) site for docs
224
-
225
- * Add tc_error to test suite (Charlie Savage).
226
-
227
- * Add sax test (Stanislav O.Pogrebnyak).
228
-
229
- == 2.0.2 / 2011-04-17 Charlie Savage
230
-
231
- * Added binaries for windows (Charlie Savage).
232
-
233
- * Update Ruby 1.9 encoding handling to support libxml versions older than
234
- version 2.6.26 which was released on June 6, 2006 (Charlie Savage).
235
-
236
- * Add publish_with_docs rake task - combines publishing the
237
- website and docs (Anurag Priyam).
238
-
239
- * Correctly copy the documentation directory (Anurag Priyam)
240
-
241
- * Use relative link for rdoc so the links are correct on
242
- both rubyforge and github (Anurag Priyam).
243
-
244
- * Update Rakefile to use Hanna RDco template (Charlie Savage).
245
-
246
- * Update dates on license file (Charlie Savage).
247
-
248
- * Add api to allow setting of attribute namespaces. Fixes issue #10 (Charlie Savage).
249
-
250
- * Remove old hack to call the on_error method. This hack isn't needed anymore
251
- since a better workaround was put in place in the parser context. Fixes
252
- This fixes issue #12 (Charlie Savage).
253
-
254
- * Remove references to passing blocks to validation functions. The blocks are no
255
- longer called since the bindings use libxml's structured error handling. See
256
- issue #6 (Charlie Savage).
257
-
258
- * Fix up comment in Document and Node. See issue #8 (Charlie Savage).
259
-
260
- * Update website text (Charlie Savage).
261
-
262
- == 2.0.0 / 2011-04-16 Charlie Savage
263
-
264
- * Ruby 1.9.2 support. The biggest addition is encoding support.
265
- Strings returned by the libxml bindings are now set to the encoding
266
- of the underlying xml document (Charlie Savage).
267
-
268
- * Rubinius compatability. Removed unnecessary use of RHASH_TBL (Aman Gupta)
269
-
270
- * Added .gemspec file (Dudley Flanders).
271
-
272
- * Updated Windows checks to take into account mingw32 (Yaohan Chen).
273
-
274
- * Fix memory leak in Reader#Expand (Szymon Nowak).
275
-
276
- * Fix memory leaks in Reader#read_string, Reader#read_inner_xml
277
- and Reader#read_outer_xml (Sean Geoghegan).
278
-
279
- * Node#space_preserve= was backwards (Dudley Flanders)
280
-
281
- * Fixed typo in readme, added rdoc extension (Loren Sands-Ramshaw).
282
-
283
- * Switched to Rake Compiler (Charlie Savage).
284
-
285
- * Use xmlMalloc() memory for ctxt->sax structure. Sometimes the ctxt->sax pointer
286
- may not be zeroed in rxml_sax_parser_parse(), for example when exception is raised
287
- in one of callbacks. This lets xmlFreeParserCtxt() clean this up (Alexey I. Froloff).
288
-
289
- * Added a rake task to publish the website to github. Moved the jekyll website to
290
- web directory (Anurag Priyam).
291
-
292
- * Modernize project metadata and layout (7rans)
293
-
294
-
295
- == 1.1.3 / 2009-03-18 Charlie Savage
296
-
297
- * Improve performance 10 to 20% by turning on libxml2's dictionary
298
- feature that allows parsers to reuse previously parsed strings.
299
-
300
- * Fix XML::Node#remove! to work correctly with libxml's dictionary feature.
301
-
302
- * Correctly set up parser context options.
303
-
304
- * Simplify DOM modification code (Node#next=, Node#prev=, Node#sibling=) and
305
- update documentation.
306
-
307
- * Deprecated Node#add_child and Node#child=, use Node#<< instead
308
-
309
- * Fix documentation for Node#<<
310
-
311
- * Added Document#import to enable moving nodes from one document
312
- to another document.
313
-
314
-
315
- == 1.1.2 / 2009-03-12 Charlie Savage
316
-
317
- * Added XML::Node#inner_xml helper method.
318
-
319
- * Fix segmentation that could occur when calling the mark function on a
320
- previously freed node.
321
-
322
- == 1.1.1 / 2009-03-10 Charlie Savage
323
-
324
- * Fix - Only include extra html parser context methods for versions of libxml
325
- older than 2.6.27.
326
-
327
- == 1.1.0 / 2009-03-09 Charlie Savage
328
-
329
- * Fix bug caused by the mark function being called on partially initialized
330
- attributes.
331
-
332
- * Revert back to libxml2's internal memory manager.
333
-
334
- == 1.0.0 / 2009-03-05 Charlie Savage
335
-
336
- * OS X (Charlie Savage). Update bindings to support the default installed
337
- version of libxml2 (2.6.16) on OS X 10.5 and the latest version available
338
- via MacPorts.
339
-
340
- == 0.9.9 / 2009-03-05 Charlie Savage
341
-
342
- * Ruby 1.9.1 support (Charlie Savage). libxml-ruby now compiles and runs on either
343
- 1.8.6 and 1.9.1. With 1.8.6 all tests should pass while on 1.9.1 all but
344
- for encoding tests pass. The port to Ruby 1.9.1 revealed two memory
345
- allocation bugs (one with dtds, one with nodes) which are now fixed.
346
-
347
- * Better OS X support (Joe Khoobyar). The default version of libxml2
348
- on OS X 10.5 is fairly old, resulting in this link error:
349
-
350
- NSLinkModule() error
351
- dyld: Symbol not found: _htmlNewParserCtxt
352
-
353
- This can be fixed by using MacPorts to get a newer version of libxml2.
354
- To make use of MacPorts, the build script has been updated to use xml2-config.
355
- This can be fine-tuned using the new --with-xml2-config / --without-xml2-config
356
- options to extconf.rb (default is --without-xml2-config to match existing behavior).
357
-
358
- * Greatly reduced memory usage (Joe Khoobyar).
359
- See http://rubyforge.org/pipermail/libxml-devel/2009-February/001375.html.
360
-
361
- * Add Document#xhtml? and document#node_type methods (Joe Khoobyar)
362
-
363
- * Add XPath::Object#last (Joe Khoobyar)
364
-
365
- * Provide finer control over CDATA nodes on a parser by parser basis (Joe Khoobyar).
366
-
367
- * Bug fix - Namespaces were incorrectly merged with attributes in the new sax2
368
- handler (Charlie Savage).
369
-
370
- * Bug fix - Support iterating over nodes and attributes even with blocks
371
- that call remove! (Charlie Savage)
372
-
373
- * Bug fix - If reader.node is NULL, return nil instead of crashing (Charlie Savage)
374
-
375
- * Bug fix - Dtd's owned by documents were freed twice in some circumstances (Joe Khoobyar).
376
-
377
- * Bug fix - Fix output escaping on attributes nodes (Joe Khoobyar).
378
-
379
- * Bug fix - Make sure IO objects are not garbage collected when used
380
- as parser sources (Charlie Savage).
381
-
382
- == 0.9.8 / 2009-1-24 Charlie Savage
383
-
384
- * Refactored XML::Parser, XML::HTMLParser, XML::SaxParser and
385
- XML::Reader to have consistent APIs. All the parsers
386
- now take a context object in their constructors, allowing fine
387
- grained control over the parsers for advanced use cases. These
388
- API changes are backwards compatible except
389
- for XML::Reader, which now takes an optional hash table as a
390
- second parameter in its various constructors versus an optional
391
- boolean value.
392
-
393
- * Updated all APIs to use the encoding constants defined
394
- in XML::Encoding versus string values. This API change
395
- is not backwards compatible.
396
-
397
- * Added support for attribute declarations in DTD's via the new
398
- XML::AttrDecl class (Len Lattanzi)
399
-
400
- * Support libxml's content escaping capabilities for text nodes by
401
- wrapping libxml's "xmlStringText" and "xmlStringTextNoenc"
402
- (Joe Khoobyar).
403
-
404
- * Updated XML::Reader#read API to return true if a node was read,
405
- false if node was not read and raises an exception on an error.
406
- Previously #read returned 1 if a node was read, 0 if a node was
407
- not read and -1 for an error. This change is not backwards
408
- compatible, but provides a more natural interface for Ruby by
409
- allowing code like this:
410
-
411
- while reader.read
412
- # do stuff
413
- end
414
-
415
- * Changed XML::Error exception objects to return copies of nodes that
416
- cause parse errors instead of the original node. This prevents
417
- segmentation faults when the error is reraised.
418
-
419
- * Added XML::Reader#node method.
420
-
421
- * Fixed compile errors on OS X which uses an older version of libxml.
422
-
423
- * Fixed memory leak when performing XPath searches.
424
-
425
- * Fixed rdocs.
426
-
427
- * Don't override libxml's default settings for entity substitution and
428
- loading external DTDs. This may break some code - you may need to
429
- add in a call to XML.default_substitute_entities = true or
430
- XML.default_load_external_dtd = true.
431
-
432
-
433
- == 0.9.7 / 2008-12-08 Charlie Savage
434
-
435
- * Added SAX2 support. SAX handlers now define two new callbacks,
436
- on_start_element_ns and on_end_element_ns methods. These
437
- new callbacks support namespaces, making them superior to the older
438
- callbacks on_start_element and on_end_element methods. The old callbacks
439
- are still supported, but may be deprecated in the future depending
440
- on community feedback.
441
-
442
- * Added SAX support for libxml's structured error handling.
443
- That menas sax handlers now define a new callback, on_error,
444
- which takes one parameter, an instance of XML::Error. The older
445
- on_parser_error, on_parser_warning and on_parser_fatal_error
446
- callbacks are no longer suported so you must port your code.
447
- Note that the older callbacks took one string parameter, instead of
448
- an XML::Error object.
449
-
450
- * Experimental work-around for libxml error handling bug - see
451
- http://mail.gnome.org/archives/xml/2008-December/msg00014.html
452
- for more information.
453
-
454
- * Fix compilation bugs on Solaris.
455
-
456
- * Fix Rdoc compilation bug.
457
-
458
-
459
- == 0.9.6 / 2008-12-08 Charlie Savage
460
-
461
- * Refactored namespace handling. The existing, and inconsistent,
462
- namespace methods defined on XML::Node have been deprecated.
463
- They have been replaced by a the new XML::Namespaces class.
464
- Use this class to inspect a node's namespace, its default
465
- namespace, its namespace definitions and which namespaces
466
- are in scope. It can be accessed via the the
467
- XML::Node#namespaces method.
468
-
469
- * Rationalized XML::Document#save, XML::Document#to_s and
470
- XML::Node#to_s to take an optional hash table of parameters
471
- that control how output is generated. Supported parameters
472
- include setting indentation on or off, the indentation level
473
- and the output encoding. This is an API change and may break
474
- existing calls to XML::Document#save. However, the previous
475
- API was broken - setting the encoding resulted in an error so
476
- its unlikely anyone is using it.
477
-
478
- * Rationalized XML::Document#debug, XML::Node#debug, XML::XPath::XPathObject#Debug.
479
-
480
- * Deprecated a number of duplicate dump* and debug_* methods in
481
- XML::Document and XML::Node.
482
-
483
- * Additional Ruby 1.9.1 compatability fixes.
484
-
485
- * Cleaned up header file guards.
486
-
487
- == 0.9.5 / 2008-11-29 Charlie Savage
488
-
489
- * Ruby 1.9.1 preview release compatability (Felipe Contreras)
490
-
491
- * Update Node#remove! to return the removed node and to set
492
- its document to nil. This allows the node to be either
493
- moved to another document, another part of the same document
494
- or to be freed on the next garbage collection once its
495
- references have gone out of scope.
496
-
497
- * Fix bug where XPathExpression#compile mistakenly overwrote
498
- RegExp#compile.
499
-
500
- * Update Node to use standard ruby allocators and initializers.
501
-
502
- * Update HTML parser to be more forgiving of invalid documents.
503
-
504
- * Update include paths for Darwin Ports on OS X.
505
-
506
- * Updated C code base to use BSD/Allman style
507
-
508
-
509
- == 0.9.4 / 2008-11-24 Charlie Savage
510
-
511
- * Update HTML parser so that it can read files, strings and io
512
- streams.
513
-
514
- * Update HTML parser to support user specified encodings.
515
-
516
- * Additional C code cleanup.
517
-
518
- == 0.9.3 / 2008-11-22 Charlie Savage
519
-
520
- * Fixed segmentation fault caused by documents being freed
521
- before xpath results that referenced the document (take 2).
522
-
523
- * Allowed sax parser to use io stream
524
-
525
- * Combined encoding and input classes
526
-
527
- * Cleaned up C code - removed remaining legacy structures,
528
- added static to most methods, changed C namespace from ruby_xml
529
- to rxml
530
-
531
- == 0.9.2 / 2008-11-19 Charlie Savage
532
-
533
- * Add support for compiled XPath expressions (donated by Pavel Valodzka)
534
-
535
- * Fixes for compiling on OS X 10.5.4 and 10.5.5
536
-
537
- == 0.9.1 / 2008-11-18 Charlie Savage
538
-
539
- * Expose LibXML's encoding support via a new Encoding object.
540
-
541
- * Revamp error handling to be much easier to use. Errors are now
542
- wrapped by the new XML::Error class and are thrown as exceptions
543
- when it is appropriate.
544
-
545
- * Fixed segmentation fault caused by documents being freed
546
- before xpath results that referenced the document.
547
-
548
- * Add Node#register_default_namespace to simplify default namespace handling.
549
-
550
- * Significantly improve documentation
551
-
552
- * A number of bug fixes and patches.
553
-
554
- == 0.9.0 / 2008-11-18 Charlie Savage
555
-
556
- * Version 0.9.0 was removed due to packaging errors.
557
-
558
-
559
- == 0.8.3 / 2008-07-21 Charlie Savage
560
-
561
- * Missed several files in last release
562
-
563
- == 0.8.2 / 2008-07-21 Charlie Savage
564
-
565
- * To use LibXML you can either require 'xml' or require 'libxml'.
566
- The differences is that require 'xml' mixes the LibXML module into
567
- the global namespace, thereby allowing you to write code such
568
- as document = XML::Document.new. Note that this is different
569
- from 0.8.0 and 0.8.1 and may require updating your code.
570
-
571
- * Support RelaxNG validation (thanks to Morus Walter)
572
-
573
- * Support passing IO objects to XmlReaders (thanks to Tom Hughes)
574
-
575
- * Fix segmentation fault caused by adding an attribute to a CDATA node
576
-
577
- * Moved node checking functions from C to Ruby
578
-
579
- * Improved Windows support - libxml-ruby should now work out of the box.
580
-
581
- * Improved Windows support - turned on libxml's zlib and iconv support.
582
-
583
-
584
- == 0.8.1 / 2008-07-09 Charlie Savage
585
-
586
- * Reimplmented Node#each_attr for backwards compatability
587
-
588
- * Moved node type test to Ruby.
589
-
590
-
591
- == 0.8.0 / 2008-07-09 Charlie Savage
592
-
593
- * Fixed bug in returning attributes from XPath results
594
-
595
- * Fixed DOM traversal methods
596
-
597
- * Changed Node#children to return an array of nodes
598
-
599
- * Fixed bug in returning attributes from XPath results
600
-
601
- * Refactored XPath support, providing more user hooks in the XPath::Context class
602
-
603
- * Added Node#properties for backwards compatibility
604
-
605
- * Updated setup.rb
606
-
607
- * Added more tests
608
-
609
- * Updated rdocs and README file
610
-
611
- * Moved libxml into LibXML namespace
612
-
613
-
614
- == 0.7.0 / 2008-07-09 Charlie Savage
615
-
616
- * Added new attributes class to provide a more natural way of working with attributes
617
-
618
- * Fixed XML::Attr to better support namespaces
619
-
620
- * Added documentation on how to use namespaces with XPath
621
-
622
- * Removed allocation of extraneous structures used to wrap nodes, namespaces and attributes
623
-
624
- * Cleaned up tests and added new test suite
625
-
626
- * Updated rdocs and README file
627
-
628
- * Cleaned out most of the bug list
629
-
630
-
631
- == 0.6.0 / 2008-07-01 Charlie Savage
632
-
633
- * Fixed memory allocation errors in Windows. On Windows, it is essential that the same library that allocates memory must free it. Thus ALLOC calls must be matched to ruby_xfree calls, which they were not. In addition, in one case Ruby was allocating memory to be freed by libxml. On Windows, that's a segmentation fault. On Linux it might fly, but still seems like a bad idea.
634
-
635
- * Fixed segmentation fault in xml reader expand (same xml tree freed twice)
636
-
637
- * Applied a number of patches from Tom Bagby, including fixes for xpath segmentation faults and fixes for various memory leaks
638
-
639
- * Cleaned up a number of compiler warnings
640
-
641
- * Renamed libxml_so.so to libxml_ruby.so (same for xslt). That wasn't actually my original intention, but um, it kind of sort of happened. It should not be noticeable from an end-user perspective.
642
-
643
- * Added rake files for building with MingW
644
-
645
- * Added rake files for packing gems. Note that I did this outside the existing rake tasks because I didn't see how they were actually building the gems.
646
-
647
- * Cleaned up the tests and added a few more based on bug reports from the Tracker and mailing list.
648
-
649
- * Cleaned out the patch queue and went through about 1/2 the bug list
650
-
651
-
652
- === 2007-11-16 "Dan Janowski" <danj at 3skel.com>
653
-
654
- * Merged Dan's MEM2 branch to trunk.
655
-
656
- == 0.5.3 /
657
-
658
- === 2007-11-16 "Dan Janowski" <danj at 3skel.com>
659
-
660
- * Merged Dan's MEM2 branch to trunk.
661
-
662
-
663
- == 0.5.2 / 2007-10-10
664
-
665
- === 2007-10-10 "Dan Janowski" <danj at 3skel.com>
666
-
667
- * (Dan, fill in the major points of the changes you made up to here -thanks)
668
-
669
- === 2007-01-14 "Laurent Sansonetti" <lrz at chopine.be>
670
-
671
- * Added some preliminary RDoc comments for XML::Reader.
672
-
673
- === 2006-12-05 "Laurent Sansonetti" <lrz at chopine.be>
674
-
675
- * Added XML::Reader, a set of bindings to the xmlTextReader API.
676
-
677
-
678
- == 0.3.8.4 / 2006-12-02
679
-
680
- === 2006-04-15 "Ross Bamform" <rosco at roscopeco.co.uk>
681
-
682
- * Implemented SAX parser callback handling.
683
-
684
- === 2006-04-12 "Ross Bamford" <rosco at roscopeco.co.uk>
685
-
686
- * Integrated and tested community patches.
687
- * Defined XML::Node (hash) equality in terms of XML representation.
688
-
689
- === 2006-04-12 "Tim Yamin" <plasmaroo at gentoo.org>
690
-
691
- * Fixed XML::Node#content inoperable bug (plasmaroo) [patch]
692
- * Fixed memory leak in same
693
-
694
- === 2006-04-12 "Mark Van Holstyn" <mvette13 at gmail.com>
695
-
696
- * Added XML::Node::Set#first (mvette13) [patch]
697
- * Added XML::Node::Set#empty?
698
- * Fixed XML::Node::Set#to_a
699
- * Added XML::Node#find_first
700
- * Added XML::Node#remove!
701
-
702
- === 2006-03-27 "Ross Bamford" <rosco at roscopeco.co.uk>
703
-
704
- * Integrated contributed XML::Parser.register_error_handler patch (rosco)
705
-
706
- === 2006-02-27 "Ross Bamford" <rosco at roscopeco.co.uk>
707
-
708
- * Fixed all multiple symbol definitions for -fno-common.
709
- * Removed OSX -fno-common workaround.
710
-
711
-
712
- == 0.3.6 / 2006-02-23
713
-
714
- === 2006-02-21 "Ross Bamford" <rosco at roscopeco.co.uk>
715
-
716
- * Patched extconf.rb with OSX -fno-common workaround
717
- * Added gem and packaging support to Rakefile
718
- * Moved version update to Rakefile
719
- * Removed legacy project utility scripts
720
-
721
- === 2005-02-19 "Ross Bamford" <rosco at roscopeco.co.uk>
722
-
723
- * Fixed doublefree bug in ruby_xml_attr.
724
- * Fixed small leak in parser
725
-
726
- === 2005-12-18 "Ross Bamford" <rosco at roscopeco.co.uk>
727
-
728
- * Updated for GCC 4.0 (community patches)
729
- * Fixed default validation bug
730
- * Refactored project, removed outdated files, cleaned up tests.
731
- * Added RDoc documentation across .c files.
732
- * Fixed up a few strings.
733
-
734
- === 2004-04-04 "Mangler Jurgen" <et@wkv.at>
735
-
736
- * ruby_xml_node.cz: fixed ruby_xml_node_property_set. The ill-behaviour
737
- was, that there was added a second attribute of the same
738
- name, when you were setting the value of an already existing
739
- attribute.
740
-
741
- === 2004-03-17 "Lukas Svoboda" <luks@fi.muni.cz>
742
-
743
- * ruby_xml_node.c: ruby_xml_node_to_s now returns XML subtree dump.
744
-
745
- === 2004-02-27 "Martin Povolny" <martin@solnet.cz>
746
-
747
- * ruby_xml_node.c: added XML::Node.copy, this makes possible building
748
- of xml documents from nodes taken from other xml documents
749
- without making ruby SIGSEGV (see tests/copy_bug.rb).
750
-
751
- === 2004-02-26 "Martin Povolny" <martin@solnet.cz>
752
-
753
- * ruby_xml_dtd.c, ruby_xml_dtd.h, ruby_xml_schema.c, ruby_xml_schema.h:
754
- more work on validation, now you can actually validate
755
- document using dtd or xml schema, also solved warning and
756
- error propagation (see tests/{dtd|schema}-test.rb).
757
-
758
- === 2003-12-30 "Martin Povolny" <martin@solnet.cz>
759
-
760
- * ruby_xml_dtd.c, ruby_xml_dtd.h, ruby_xml_schema.c, ruby_xml_schema.h:
761
- prelimitary support for dtd and schema validation
762
-
763
- === 2003-09-15 "Martin Povolny" <martin@solnet.cz>
764
-
765
- * ruby_xml_input_cbg.c, libxml.c: added class InputCallbacks to make
766
- possible registering custom input callbacks
767
- handlers (xmlRegisterInputCallbacks) written in ruby
768
-
769
- === 2003-08-01 "Martin Povolny" <martin@solnet.cz>
770
-
771
- * ruby_xml_document.c: corrected argument handling in ruby_xml_document_find
772
- * ruby_xml_node.c: corrected argument handling in ruby_xml_node_find
773
-
774
-
775
-
1
+ = Release History
2
+
3
+ == 3.2.3 / 2022-05-22
4
+
5
+ * Change some getter methods to instance variables with attr_accessors for easier debuggability (David Hansen)
6
+ * Add a number of tests related to schemas (David Hansen)
7
+ * Add schema.imported_elements so we can find imported elements (David Hansen)
8
+ * Fix segfault under windows when dereferencing a pre-existing error where the node has already been freed (David Hansen)
9
+ * Update to change name from imported_elements to imported_ns_elements and return a hash of hashes for namespaced elements (David Hansen)
10
+ * Only call xmlGetFeaturesList if LIBXML_LEGACY_ENABLED is defined. Most distros still ship libxml2 with legacy features enabled, but this will change (Nick Wellnhofer)
11
+ * Update GitHub Actions to use ruby/setup-ruby (Greg)
12
+ * Fix memory leak in rxml_node_path, node.path (vovanmozg)
13
+
14
+ == 3.2.2 / 2022-01-15
15
+ * Switch to Github actions for CI/CD (Greg)
16
+ * Test fixes (Greg, Sergio Durigan Junior)
17
+ * Fix typo on test/test_sax_parser.rb (Sergio Durigan Junior)
18
+ * Update homepage in gemspec (Pirate Praveen Arimbrathodiyil)
19
+
20
+ == 3.2.1 / 2020-11-05
21
+
22
+ * Fix incorrect handling of encodings when using XMLWriter.io (Charlie Savage)
23
+ * Clean up README (Richard Michael)
24
+
25
+ == 3.2.0 / 2020-05-09 Charlie Savage
26
+
27
+ * Fix crash when creating an empty DTD
28
+ * Modernize tests to use Bundler to load gem
29
+ * Add libxml-ruby.rb file so gem loads in expected way.
30
+ * Add support for xmlSaveNoEmptyTags.
31
+ * Clean up extconf.rb file
32
+
33
+ == 3.1.0 / 2018-02-03 Charlie Savage
34
+
35
+ * Fix segmentation fault when adding one node to another node (Charlie Savage)
36
+ * Fix deprecated "assert_equal(nil, expected)" calls. #148 and #151. (utilum)
37
+ * Remove assigned but unused variables. #150 (utilum)
38
+ * Add Gemfile. #146. (Dorian Marié)
39
+ * Remove duplicate hash key in setup.rb. #147. (Dorian Marié)
40
+ * Fix gemspec by requiring Date. #149 (utilum)
41
+ * Restore default internal encoding after tests are completed. #123 (Charlie Savage)
42
+ * Remove duplicate method definitions. #145. (Charlie Savage)
43
+ * Remove SchemaElement#minOccurs and SchemaElement#maxOccurs since they actually did not work (Charlie Savage)
44
+ * Rename test files to follow Ruby conventions (Charlie Savage)
45
+ * Fix handling of node returned by Reader#expand. #142. (Charlie Savage)
46
+ * Add Travis Build support (Charlie Savage)
47
+ * Fix Fixnum deprecation (Charlie Savage)
48
+ * Cleanup schema code (Charlie Savage)
49
+ * Update Visual Studio project to 2017 (Charlie Savage)
50
+
51
+ == 3.0.0 / 2017-02-07 Charlie Savage
52
+
53
+ * Revamp how libxml-ruby manages memory. Instead of trying to return the same ruby object for each xmlnode,
54
+ the bindings now create wrapper ruby objects as needed which are then freed at the end of use.
55
+ This allows most memory management to be handled by libxml itself. Ruby only manages the lifespan of
56
+ documents and parent xml nodes. When those go out of scope, the underlying libxml objects are also freed.
57
+ This implementation requires almost no overhead, plays nicely with Nokogiri and appears to work much
58
+ better (Charlie Savage).
59
+
60
+ * Change XML::Node#eql? API. Nodes are now considered equal only if they wrap the same underlying
61
+ libxml node. Previously, they would also be considered equal if they contained the same content
62
+ (Charlie Savage)
63
+
64
+ * Change XML::Reader.expand API. Previously it would automatically instantiate a reader document so
65
+ the an xpath expression could be used to search the returned node. Now you should first call
66
+ reader.doc (Charlie Savage)
67
+
68
+ * Update Visual Studio project for Visual Studio 15 - requires ruby 2.4+ (Charlie Savage)
69
+
70
+ * Remove APIs that have been deprecated for several years (Charlie Savage)
71
+
72
+ == 2.9.0 / 2016-06-13 Charlie Savage
73
+
74
+ * Revamp libxml-ruby's memory management to not cause crashes when used with Nokogiri (James Laird-Wah)
75
+ * Fix garbage collection issue that sometimes caused the library to hang (Charlie Savage)
76
+ * Improved multi-threading support (Charlie Savage)
77
+ * Fix crash sometimes caused by a xml node being being freed twice (Charlie Savage)
78
+ * Fix memory leak when setting the text content of a node (Charlie Savage)
79
+ * Set a default task in the Rakefile - use "test" (Robert Haines)
80
+ * Add "hanna_gudao" gem and add "rake-compiler" to develpoment dependencies (Robert Haines)
81
+ * Use Process.getrlimit instead of `ulimit` in the tests (Robert Haines)
82
+ * Build on smartos (Steven Williamson)
83
+ * Fix compiler warnings (Charlie Savage)
84
+ * Add Xcode project for easier debugging on OSX (Charlie Savage)
85
+ * Switch from unit test to minitest (Charlie Savage)
86
+
87
+ == 2.8.0 / 2015-01-09 Charlie Savage
88
+
89
+ * Use RbConfig instead of Config in extconf.rb (Robert Haines)
90
+ * Correct xpath documentation XML (Bill Mill)
91
+ * Correct from_string method documentation (Bill Mill)
92
+ * Fix compile error with debug not enabled in libxml (Patrick Ziegler)
93
+ * Update gemspec to include license (Charlie Savage)
94
+ * In XML::Writer prevent writing to io while being GCed (Brett Gibson)
95
+
96
+ == 2.7.0 / 2013-08-13 Charlie Savage
97
+
98
+ * Don't call rb_warning in GC mark function (Dirkjan Bussink)
99
+ * Set libxml error handler when a libxml-ruby error handler is set (Geoffrey Giesemann)
100
+ * Fix tests for nil TypeErrors for ruby 2.0=< (Geoffrey Giesemann)
101
+ * Fix segmentation fault for issue #62 (Charlie Savage)
102
+ * Add #node_type method to dtd (Charlie Savage)
103
+ * Fixing equality check of LibXML::XML::Error against other objects (Michał Szajbe)
104
+ * Fix #63, XML::Writer.set_quote_char UT, wrong expected string (julp)
105
+ * Fix potential segfault when GC occurs while creating ns from xpath (Timothy Elliott)
106
+ * Fix for #59, segmentation fault after failure to load external schema (Clifford Heath)
107
+
108
+ == 2.6.0 / 2013-02-16 Charlie Savage
109
+
110
+ * Fix uninitialized constant LibXML::XML::Error::I18N (NameError) that occurred
111
+ with older versions of libxml.
112
+ * Various updates/fixes to new XML::Writer class and update how flushing works (julp)
113
+
114
+ == 2.5.0 / 2013-01-27 Charlie Savage
115
+
116
+ * Compatibility with older versions for IO::write (rb_io_bufwrite is specific to ruby >= 1.9.3?)
117
+ and symbols are VALUE not ID (julp).
118
+ * Fix version for xmlTextWriterSetQuoteChar, it appeared in libxml2 2.9.0, last version (julp)
119
+ * Update use of LIBXML_VERSION (julp).
120
+ * Fix misuse of rb_scan_args (julp).
121
+ * Update documentation, including DTD docs and added XML Writer (julp).
122
+ * Added a new XML::Writer class (julp).
123
+ * Improved xml reader api and add namespace support. Note that passing a numeric value
124
+ to XML::Reader::move_to_attribute has been deprecated. Instead you should now
125
+ use #move_to_attribute_no. (julp).
126
+ * Improve error handling and messages (Jarl Friis)
127
+
128
+ == 2.4.0 / 2012-12-14 Charlie Savage
129
+
130
+ * Support libxml 2.9.0 (Daniel Veillard)
131
+
132
+ * Extensive new interfaces for xml schema functionality including suppor for
133
+ schemal elements, types, facets and attributes (Anton Sozontov)
134
+
135
+ * Fix Encoding#from_s bug and update docs (Nikita Afanasenko)
136
+
137
+ * Node#content= encoding (Nikita Afanasenko)
138
+
139
+ == 2.3.3 / 2012-07-01 Charlie Savage
140
+
141
+ * Add LibXML::XML::Error.get_handler (Carsten Zimmermann)
142
+ * Fix variable name in example (Marcus)
143
+
144
+ == 2.3.2 / 2012-03-20 Charlie Savage
145
+
146
+ * Define various canonicalize constants to support libxml2 versions
147
+ older than 1.1.25 (thanks Apple!)
148
+
149
+ == 2.3.1 / 2012-03-20 Charlie Savage
150
+
151
+ * Yanked - didn't fix the OSX canonicalize issue
152
+
153
+ == 2.3.0 / 2012-03-18 Charlie Savage
154
+
155
+ * Add ability to insert new PI-nodes into the xmltree (Axel Struebing).
156
+
157
+ * Added full pass-through access to libxml2 xmlC14NDocDumpMemory method via
158
+ LibXML::XML::Document#canonicalize method with optional arguments.
159
+
160
+ * Added full test data for C14N based off of W3C spec.
161
+ (http://www.w3.org/TR/xml-c14n#Examples)
162
+
163
+ * Update sax handler to support encodings on Ruby 1.9 and higher.
164
+
165
+ == 2.2.2 / 2011-08-29 Charlie Savage
166
+
167
+ * ++API CHANGE+++
168
+
169
+ Reader#relax_ng_validate now takes a RelaxNG object. This is
170
+ what the documentation has always said it takes, but it previously
171
+ took a string. In addition, it now returns true or false instead of 0 or -1.
172
+
173
+ Reader#schema_validate now takes a Schema object. This is
174
+ what the documentation has always said it takes, but it previously
175
+ took a string. In addition, it now returns true or false instead of 0 or -1.
176
+
177
+ Fixes GitHub issue #30.
178
+
179
+ * Added Parser::Context#close and HTMLParser::Context#close methods that
180
+ allow the underlying io stream (file, string, etc) to be closed. Once a
181
+ parser is done parsing its data, it now calls one of these methods.
182
+ This means that if you parse thousands of files at the same time,
183
+ without running Ruby's garbage colllector, you won't get a too
184
+ many files open error. Fixes GitHub issue #29.
185
+
186
+ * Fixed bug where Node#inner_xml caused an error when it had no child nodes.
187
+ Fixes GitHub issues #31
188
+
189
+ * Don't require 'rake' in the gemspec to avoid annoying Bundler bugs
190
+
191
+ == 2.2.1 / 2011-08-13 Charlie Savage
192
+
193
+ * Packaging fix - include the custom .def file in the gem.
194
+
195
+ == 2.2.0 / 2011-08-09 Charlie Savage
196
+
197
+ * Update encoding support for Ruby 1.9 so that libxml-ruby returns
198
+ strings encoded in UTF-8. This change was required since libxml internally
199
+ stores strings in UTF-8. The exceptions to this rule are the #to_s methods
200
+ which return UTF-8 by default but can return other encodings if requested.
201
+
202
+ == 2.1.2 / 2011-08-03 Charlie Savage
203
+
204
+ * Fix segmentation fault that could occur when an XPathContext was marked
205
+ before it was fully initialized (Charlie Savage).
206
+
207
+ * Add mark method to document to mark all nodes currently being accessed
208
+ by ruby. This make Ruby Enterprise Edition happy (Charlie Savage).
209
+
210
+ == 2.1.1 / 2011-07-31 Charlie Savage
211
+
212
+ * Switch to using def files to control library exports (Charlie Savage).
213
+
214
+ == 2.1.0 / 2011-07-31 Charlie Savage
215
+
216
+ * Ruby 1.9.3 compatability (Charlie Savage).
217
+
218
+ * Added XPath expression <-> Ruby value conversion methods (Jens Wille).
219
+
220
+ * Extracted rxml_xpath_to_value from rxml_xpath_context_find (Jens Wille).
221
+
222
+ * Adapted rxml_xpath_from_value from Gregoire Lejeune's ruby-xslt
223
+ library, see https://github.com/glejeune/ruby-xslt (Jens Wille).
224
+
225
+ * Allow calling #find on nodes returned from Reader (Charlie Savage).
226
+
227
+ * Change document handling in XPath::Context to address segmentation fault on
228
+ Ruby Enterprise Edition (Charlie Savage).
229
+
230
+ * Update gemspec file to work directly with bundler thereby allowing git
231
+ repository to be used as gem (Charlie Savage).
232
+
233
+ * Support gem buld (Charlie Savage).
234
+
235
+ * Simplify memory management of attributes namespaces to fix
236
+ segmentation faults that occurred when using Ruby 1.9.3 (Charlie Savage).
237
+
238
+
239
+ == 2.0.8 / 2011-06-23 Charlie Savage
240
+
241
+ * Add in 2 new HTML Parser constants - NODEFDTD and NOIMPLIED.
242
+
243
+ * Fix compile issue on Ruby 1.9.3
244
+
245
+ == 2.0.6 / 2011-05-23 Charlie Savage
246
+
247
+ * Fix segfault that sometimes occurred when looking up encodings on 1.9.
248
+ In some cases the Ruby encoding infrastructure was not properly
249
+ initialized (nkriege).
250
+
251
+ == 2.0.5 / 2011-05-05 Charlie Savage
252
+
253
+ * Document#validate_dtd would sometimes cause segmentation faults due to
254
+ an improperly initialized data structure (Charlie Savage)
255
+
256
+ == 2.0.4 / 2011-05-02 Charlie Savage
257
+
258
+ * Fix compile issues on platforms using older versions of libxml2.
259
+ The problem as using a C14N constants that was added to libxml2
260
+ in July 2009 (Charlie Savage).
261
+
262
+ == 2.0.3 / 2011-05-01 Charlie Savage
263
+
264
+ * The biggest change in this release is supporting the use of libxml-ruby in
265
+ native background Ruby threads. Previously, the use of libxml-ruby in
266
+ background threads in Ruby 1.9.x and higher would often cause
267
+ segmentation faults. This has now been fixed (Charlie Savage).
268
+
269
+ * Update Reader#expand so that returned node correctly remembers its
270
+ encoding in Ruby 1.9.x (zerebubuth).
271
+
272
+ * Add check to verify a node has not been deleted. This can happen when
273
+ a ruby variable holds a reference to a child node that gets freed
274
+ when its parent gets freed. Previously when this happened a
275
+ segmentation fault would occur, now an exception is raised (Charlie Savage, fixes
276
+ RubyForge #26839.
277
+
278
+ * Do not unlink nodes before internal validations have run - avoids
279
+ segmentation faults caused by freeing a node twice (Charlie Savage).
280
+
281
+ * Add support for Document#canonicalization (Victor Lin).
282
+
283
+ * Fix memory leak in Reader#lookup_namespace (Charlie Savage).
284
+
285
+ * Fix memory leak in Reader#[] (Nathan Kriege).
286
+
287
+ * Fix usage of @io instance variable (Jeffrey Taylor)
288
+
289
+ * Removed old sax error handling code that has been fixed in newer
290
+ versions of libxml (Charlie Savage).
291
+
292
+ * Code cleanup - remove unused variables and commented out code (Charlie Savage)
293
+
294
+ * Minor text changes and documentation fixes (Charlie Savage).
295
+
296
+ * Fix documentation error (fixes RubyForge #26888).
297
+
298
+ * Update documentation for Document#validation* methods (fixes RubyForge #24833).
299
+
300
+ * Update documentation and test (fixes Ruby Forge Issue #28770).
301
+
302
+ * Updated documentation in README (Anurag Priyam):
303
+ 1. rake doc does not work; use rake rdoc.
304
+ 2. gem mislav-hanna does not exist; use hanna.
305
+ 3. rake rdoc 'depends' on hanna; no need of RDOCOPTS
306
+ 4. Point to the github issue tracker instead of Ruby Forge
307
+ 5. Point to the github (gh-pages) site for docs
308
+
309
+ * Add tc_error to test suite (Charlie Savage).
310
+
311
+ * Add sax test (Stanislav O.Pogrebnyak).
312
+
313
+ == 2.0.2 / 2011-04-17 Charlie Savage
314
+
315
+ * Added binaries for windows (Charlie Savage).
316
+
317
+ * Update Ruby 1.9 encoding handling to support libxml versions older than
318
+ version 2.6.26 which was released on June 6, 2006 (Charlie Savage).
319
+
320
+ * Add publish_with_docs rake task - combines publishing the
321
+ website and docs (Anurag Priyam).
322
+
323
+ * Correctly copy the documentation directory (Anurag Priyam)
324
+
325
+ * Use relative link for rdoc so the links are correct on
326
+ both rubyforge and github (Anurag Priyam).
327
+
328
+ * Update Rakefile to use Hanna RDco template (Charlie Savage).
329
+
330
+ * Update dates on license file (Charlie Savage).
331
+
332
+ * Add api to allow setting of attribute namespaces. Fixes issue #10 (Charlie Savage).
333
+
334
+ * Remove old hack to call the on_error method. This hack isn't needed anymore
335
+ since a better workaround was put in place in the parser context. Fixes
336
+ This fixes issue #12 (Charlie Savage).
337
+
338
+ * Remove references to passing blocks to validation functions. The blocks are no
339
+ longer called since the bindings use libxml's structured error handling. See
340
+ issue #6 (Charlie Savage).
341
+
342
+ * Fix up comment in Document and Node. See issue #8 (Charlie Savage).
343
+
344
+ * Update website text (Charlie Savage).
345
+
346
+ == 2.0.0 / 2011-04-16 Charlie Savage
347
+
348
+ * Ruby 1.9.2 support. The biggest addition is encoding support.
349
+ Strings returned by the libxml bindings are now set to the encoding
350
+ of the underlying xml document (Charlie Savage).
351
+
352
+ * Rubinius compatability. Removed unnecessary use of RHASH_TBL (Aman Gupta)
353
+
354
+ * Added .gemspec file (Dudley Flanders).
355
+
356
+ * Updated Windows checks to take into account mingw32 (Yaohan Chen).
357
+
358
+ * Fix memory leak in Reader#Expand (Szymon Nowak).
359
+
360
+ * Fix memory leaks in Reader#read_string, Reader#read_inner_xml
361
+ and Reader#read_outer_xml (Sean Geoghegan).
362
+
363
+ * Node#space_preserve= was backwards (Dudley Flanders)
364
+
365
+ * Fixed typo in readme, added rdoc extension (Loren Sands-Ramshaw).
366
+
367
+ * Switched to Rake Compiler (Charlie Savage).
368
+
369
+ * Use xmlMalloc() memory for ctxt->sax structure. Sometimes the ctxt->sax pointer
370
+ may not be zeroed in rxml_sax_parser_parse(), for example when exception is raised
371
+ in one of callbacks. This lets xmlFreeParserCtxt() clean this up (Alexey I. Froloff).
372
+
373
+ * Added a rake task to publish the website to github. Moved the jekyll website to
374
+ web directory (Anurag Priyam).
375
+
376
+ * Modernize project metadata and layout (7rans)
377
+
378
+
379
+ == 1.1.3 / 2009-03-18 Charlie Savage
380
+
381
+ * Improve performance 10 to 20% by turning on libxml2's dictionary
382
+ feature that allows parsers to reuse previously parsed strings.
383
+
384
+ * Fix XML::Node#remove! to work correctly with libxml's dictionary feature.
385
+
386
+ * Correctly set up parser context options.
387
+
388
+ * Simplify DOM modification code (Node#next=, Node#prev=, Node#sibling=) and
389
+ update documentation.
390
+
391
+ * Deprecated Node#add_child and Node#child=, use Node#<< instead
392
+
393
+ * Fix documentation for Node#<<
394
+
395
+ * Added Document#import to enable moving nodes from one document
396
+ to another document.
397
+
398
+
399
+ == 1.1.2 / 2009-03-12 Charlie Savage
400
+
401
+ * Added XML::Node#inner_xml helper method.
402
+
403
+ * Fix segmentation that could occur when calling the mark function on a
404
+ previously freed node.
405
+
406
+ == 1.1.1 / 2009-03-10 Charlie Savage
407
+
408
+ * Fix - Only include extra html parser context methods for versions of libxml
409
+ older than 2.6.27.
410
+
411
+ == 1.1.0 / 2009-03-09 Charlie Savage
412
+
413
+ * Fix bug caused by the mark function being called on partially initialized
414
+ attributes.
415
+
416
+ * Revert back to libxml2's internal memory manager.
417
+
418
+ == 1.0.0 / 2009-03-05 Charlie Savage
419
+
420
+ * OS X (Charlie Savage). Update bindings to support the default installed
421
+ version of libxml2 (2.6.16) on OS X 10.5 and the latest version available
422
+ via MacPorts.
423
+
424
+ == 0.9.9 / 2009-03-05 Charlie Savage
425
+
426
+ * Ruby 1.9.1 support (Charlie Savage). libxml-ruby now compiles and runs on either
427
+ 1.8.6 and 1.9.1. With 1.8.6 all tests should pass while on 1.9.1 all but
428
+ for encoding tests pass. The port to Ruby 1.9.1 revealed two memory
429
+ allocation bugs (one with dtds, one with nodes) which are now fixed.
430
+
431
+ * Better OS X support (Joe Khoobyar). The default version of libxml2
432
+ on OS X 10.5 is fairly old, resulting in this link error:
433
+
434
+ NSLinkModule() error
435
+ dyld: Symbol not found: _htmlNewParserCtxt
436
+
437
+ This can be fixed by using MacPorts to get a newer version of libxml2.
438
+ To make use of MacPorts, the build script has been updated to use xml2-config.
439
+ This can be fine-tuned using the new --with-xml2-config / --without-xml2-config
440
+ options to extconf.rb (default is --without-xml2-config to match existing behavior).
441
+
442
+ * Greatly reduced memory usage (Joe Khoobyar).
443
+ See http://rubyforge.org/pipermail/libxml-devel/2009-February/001375.html.
444
+
445
+ * Add Document#xhtml? and document#node_type methods (Joe Khoobyar)
446
+
447
+ * Add XPath::Object#last (Joe Khoobyar)
448
+
449
+ * Provide finer control over CDATA nodes on a parser by parser basis (Joe Khoobyar).
450
+
451
+ * Bug fix - Namespaces were incorrectly merged with attributes in the new sax2
452
+ handler (Charlie Savage).
453
+
454
+ * Bug fix - Support iterating over nodes and attributes even with blocks
455
+ that call remove! (Charlie Savage)
456
+
457
+ * Bug fix - If reader.node is NULL, return nil instead of crashing (Charlie Savage)
458
+
459
+ * Bug fix - Dtd's owned by documents were freed twice in some circumstances (Joe Khoobyar).
460
+
461
+ * Bug fix - Fix output escaping on attributes nodes (Joe Khoobyar).
462
+
463
+ * Bug fix - Make sure IO objects are not garbage collected when used
464
+ as parser sources (Charlie Savage).
465
+
466
+ == 0.9.8 / 2009-1-24 Charlie Savage
467
+
468
+ * Refactored XML::Parser, XML::HTMLParser, XML::SaxParser and
469
+ XML::Reader to have consistent APIs. All the parsers
470
+ now take a context object in their constructors, allowing fine
471
+ grained control over the parsers for advanced use cases. These
472
+ API changes are backwards compatible except
473
+ for XML::Reader, which now takes an optional hash table as a
474
+ second parameter in its various constructors versus an optional
475
+ boolean value.
476
+
477
+ * Updated all APIs to use the encoding constants defined
478
+ in XML::Encoding versus string values. This API change
479
+ is not backwards compatible.
480
+
481
+ * Added support for attribute declarations in DTD's via the new
482
+ XML::AttrDecl class (Len Lattanzi)
483
+
484
+ * Support libxml's content escaping capabilities for text nodes by
485
+ wrapping libxml's "xmlStringText" and "xmlStringTextNoenc"
486
+ (Joe Khoobyar).
487
+
488
+ * Updated XML::Reader#read API to return true if a node was read,
489
+ false if node was not read and raises an exception on an error.
490
+ Previously #read returned 1 if a node was read, 0 if a node was
491
+ not read and -1 for an error. This change is not backwards
492
+ compatible, but provides a more natural interface for Ruby by
493
+ allowing code like this:
494
+
495
+ while reader.read
496
+ # do stuff
497
+ end
498
+
499
+ * Changed XML::Error exception objects to return copies of nodes that
500
+ cause parse errors instead of the original node. This prevents
501
+ segmentation faults when the error is reraised.
502
+
503
+ * Added XML::Reader#node method.
504
+
505
+ * Fixed compile errors on OS X which uses an older version of libxml.
506
+
507
+ * Fixed memory leak when performing XPath searches.
508
+
509
+ * Fixed rdocs.
510
+
511
+ * Don't override libxml's default settings for entity substitution and
512
+ loading external DTDs. This may break some code - you may need to
513
+ add in a call to XML.default_substitute_entities = true or
514
+ XML.default_load_external_dtd = true.
515
+
516
+
517
+ == 0.9.7 / 2008-12-08 Charlie Savage
518
+
519
+ * Added SAX2 support. SAX handlers now define two new callbacks,
520
+ on_start_element_ns and on_end_element_ns methods. These
521
+ new callbacks support namespaces, making them superior to the older
522
+ callbacks on_start_element and on_end_element methods. The old callbacks
523
+ are still supported, but may be deprecated in the future depending
524
+ on community feedback.
525
+
526
+ * Added SAX support for libxml's structured error handling.
527
+ That menas sax handlers now define a new callback, on_error,
528
+ which takes one parameter, an instance of XML::Error. The older
529
+ on_parser_error, on_parser_warning and on_parser_fatal_error
530
+ callbacks are no longer suported so you must port your code.
531
+ Note that the older callbacks took one string parameter, instead of
532
+ an XML::Error object.
533
+
534
+ * Experimental work-around for libxml error handling bug - see
535
+ http://mail.gnome.org/archives/xml/2008-December/msg00014.html
536
+ for more information.
537
+
538
+ * Fix compilation bugs on Solaris.
539
+
540
+ * Fix Rdoc compilation bug.
541
+
542
+
543
+ == 0.9.6 / 2008-12-08 Charlie Savage
544
+
545
+ * Refactored namespace handling. The existing, and inconsistent,
546
+ namespace methods defined on XML::Node have been deprecated.
547
+ They have been replaced by a the new XML::Namespaces class.
548
+ Use this class to inspect a node's namespace, its default
549
+ namespace, its namespace definitions and which namespaces
550
+ are in scope. It can be accessed via the the
551
+ XML::Node#namespaces method.
552
+
553
+ * Rationalized XML::Document#save, XML::Document#to_s and
554
+ XML::Node#to_s to take an optional hash table of parameters
555
+ that control how output is generated. Supported parameters
556
+ include setting indentation on or off, the indentation level
557
+ and the output encoding. This is an API change and may break
558
+ existing calls to XML::Document#save. However, the previous
559
+ API was broken - setting the encoding resulted in an error so
560
+ its unlikely anyone is using it.
561
+
562
+ * Rationalized XML::Document#debug, XML::Node#debug, XML::XPath::XPathObject#Debug.
563
+
564
+ * Deprecated a number of duplicate dump* and debug_* methods in
565
+ XML::Document and XML::Node.
566
+
567
+ * Additional Ruby 1.9.1 compatability fixes.
568
+
569
+ * Cleaned up header file guards.
570
+
571
+ == 0.9.5 / 2008-11-29 Charlie Savage
572
+
573
+ * Ruby 1.9.1 preview release compatability (Felipe Contreras)
574
+
575
+ * Update Node#remove! to return the removed node and to set
576
+ its document to nil. This allows the node to be either
577
+ moved to another document, another part of the same document
578
+ or to be freed on the next garbage collection once its
579
+ references have gone out of scope.
580
+
581
+ * Fix bug where XPathExpression#compile mistakenly overwrote
582
+ RegExp#compile.
583
+
584
+ * Update Node to use standard ruby allocators and initializers.
585
+
586
+ * Update HTML parser to be more forgiving of invalid documents.
587
+
588
+ * Update include paths for Darwin Ports on OS X.
589
+
590
+ * Updated C code base to use BSD/Allman style
591
+
592
+
593
+ == 0.9.4 / 2008-11-24 Charlie Savage
594
+
595
+ * Update HTML parser so that it can read files, strings and io
596
+ streams.
597
+
598
+ * Update HTML parser to support user specified encodings.
599
+
600
+ * Additional C code cleanup.
601
+
602
+ == 0.9.3 / 2008-11-22 Charlie Savage
603
+
604
+ * Fixed segmentation fault caused by documents being freed
605
+ before xpath results that referenced the document (take 2).
606
+
607
+ * Allowed sax parser to use io stream
608
+
609
+ * Combined encoding and input classes
610
+
611
+ * Cleaned up C code - removed remaining legacy structures,
612
+ added static to most methods, changed C namespace from ruby_xml
613
+ to rxml
614
+
615
+ == 0.9.2 / 2008-11-19 Charlie Savage
616
+
617
+ * Add support for compiled XPath expressions (donated by Pavel Valodzka)
618
+
619
+ * Fixes for compiling on OS X 10.5.4 and 10.5.5
620
+
621
+ == 0.9.1 / 2008-11-18 Charlie Savage
622
+
623
+ * Expose LibXML's encoding support via a new Encoding object.
624
+
625
+ * Revamp error handling to be much easier to use. Errors are now
626
+ wrapped by the new XML::Error class and are thrown as exceptions
627
+ when it is appropriate.
628
+
629
+ * Fixed segmentation fault caused by documents being freed
630
+ before xpath results that referenced the document.
631
+
632
+ * Add Node#register_default_namespace to simplify default namespace handling.
633
+
634
+ * Significantly improve documentation
635
+
636
+ * A number of bug fixes and patches.
637
+
638
+ == 0.9.0 / 2008-11-18 Charlie Savage
639
+
640
+ * Version 0.9.0 was removed due to packaging errors.
641
+
642
+
643
+ == 0.8.3 / 2008-07-21 Charlie Savage
644
+
645
+ * Missed several files in last release
646
+
647
+ == 0.8.2 / 2008-07-21 Charlie Savage
648
+
649
+ * To use LibXML you can either require 'xml' or require 'libxml'.
650
+ The differences is that require 'xml' mixes the LibXML module into
651
+ the global namespace, thereby allowing you to write code such
652
+ as document = XML::Document.new. Note that this is different
653
+ from 0.8.0 and 0.8.1 and may require updating your code.
654
+
655
+ * Support RelaxNG validation (thanks to Morus Walter)
656
+
657
+ * Support passing IO objects to XmlReaders (thanks to Tom Hughes)
658
+
659
+ * Fix segmentation fault caused by adding an attribute to a CDATA node
660
+
661
+ * Moved node checking functions from C to Ruby
662
+
663
+ * Improved Windows support - libxml-ruby should now work out of the box.
664
+
665
+ * Improved Windows support - turned on libxml's zlib and iconv support.
666
+
667
+
668
+ == 0.8.1 / 2008-07-09 Charlie Savage
669
+
670
+ * Reimplmented Node#each_attr for backwards compatability
671
+
672
+ * Moved node type test to Ruby.
673
+
674
+
675
+ == 0.8.0 / 2008-07-09 Charlie Savage
676
+
677
+ * Fixed bug in returning attributes from XPath results
678
+
679
+ * Fixed DOM traversal methods
680
+
681
+ * Changed Node#children to return an array of nodes
682
+
683
+ * Fixed bug in returning attributes from XPath results
684
+
685
+ * Refactored XPath support, providing more user hooks in the XPath::Context class
686
+
687
+ * Added Node#properties for backwards compatibility
688
+
689
+ * Updated setup.rb
690
+
691
+ * Added more tests
692
+
693
+ * Updated rdocs and README file
694
+
695
+ * Moved libxml into LibXML namespace
696
+
697
+
698
+ == 0.7.0 / 2008-07-09 Charlie Savage
699
+
700
+ * Added new attributes class to provide a more natural way of working with attributes
701
+
702
+ * Fixed XML::Attr to better support namespaces
703
+
704
+ * Added documentation on how to use namespaces with XPath
705
+
706
+ * Removed allocation of extraneous structures used to wrap nodes, namespaces and attributes
707
+
708
+ * Cleaned up tests and added new test suite
709
+
710
+ * Updated rdocs and README file
711
+
712
+ * Cleaned out most of the bug list
713
+
714
+
715
+ == 0.6.0 / 2008-07-01 Charlie Savage
716
+
717
+ * Fixed memory allocation errors in Windows. On Windows, it is essential that the same library that allocates memory must free it. Thus ALLOC calls must be matched to ruby_xfree calls, which they were not. In addition, in one case Ruby was allocating memory to be freed by libxml. On Windows, that's a segmentation fault. On Linux it might fly, but still seems like a bad idea.
718
+
719
+ * Fixed segmentation fault in xml reader expand (same xml tree freed twice)
720
+
721
+ * Applied a number of patches from Tom Bagby, including fixes for xpath segmentation faults and fixes for various memory leaks
722
+
723
+ * Cleaned up a number of compiler warnings
724
+
725
+ * Renamed libxml_so.so to libxml_ruby.so (same for xslt). That wasn't actually my original intention, but um, it kind of sort of happened. It should not be noticeable from an end-user perspective.
726
+
727
+ * Added rake files for building with MingW
728
+
729
+ * Added rake files for packing gems. Note that I did this outside the existing rake tasks because I didn't see how they were actually building the gems.
730
+
731
+ * Cleaned up the tests and added a few more based on bug reports from the Tracker and mailing list.
732
+
733
+ * Cleaned out the patch queue and went through about 1/2 the bug list
734
+
735
+
736
+ === 2007-11-16 "Dan Janowski" <danj at 3skel.com>
737
+
738
+ * Merged Dan's MEM2 branch to trunk.
739
+
740
+ == 0.5.3 /
741
+
742
+ === 2007-11-16 "Dan Janowski" <danj at 3skel.com>
743
+
744
+ * Merged Dan's MEM2 branch to trunk.
745
+
746
+
747
+ == 0.5.2 / 2007-10-10
748
+
749
+ === 2007-10-10 "Dan Janowski" <danj at 3skel.com>
750
+
751
+ * (Dan, fill in the major points of the changes you made up to here -thanks)
752
+
753
+ === 2007-01-14 "Laurent Sansonetti" <lrz at chopine.be>
754
+
755
+ * Added some preliminary RDoc comments for XML::Reader.
756
+
757
+ === 2006-12-05 "Laurent Sansonetti" <lrz at chopine.be>
758
+
759
+ * Added XML::Reader, a set of bindings to the xmlTextReader API.
760
+
761
+
762
+ == 0.3.8.4 / 2006-12-02
763
+
764
+ === 2006-04-15 "Ross Bamform" <rosco at roscopeco.co.uk>
765
+
766
+ * Implemented SAX parser callback handling.
767
+
768
+ === 2006-04-12 "Ross Bamford" <rosco at roscopeco.co.uk>
769
+
770
+ * Integrated and tested community patches.
771
+ * Defined XML::Node (hash) equality in terms of XML representation.
772
+
773
+ === 2006-04-12 "Tim Yamin" <plasmaroo at gentoo.org>
774
+
775
+ * Fixed XML::Node#content inoperable bug (plasmaroo) [patch]
776
+ * Fixed memory leak in same
777
+
778
+ === 2006-04-12 "Mark Van Holstyn" <mvette13 at gmail.com>
779
+
780
+ * Added XML::Node::Set#first (mvette13) [patch]
781
+ * Added XML::Node::Set#empty?
782
+ * Fixed XML::Node::Set#to_a
783
+ * Added XML::Node#find_first
784
+ * Added XML::Node#remove!
785
+
786
+ === 2006-03-27 "Ross Bamford" <rosco at roscopeco.co.uk>
787
+
788
+ * Integrated contributed XML::Parser.register_error_handler patch (rosco)
789
+
790
+ === 2006-02-27 "Ross Bamford" <rosco at roscopeco.co.uk>
791
+
792
+ * Fixed all multiple symbol definitions for -fno-common.
793
+ * Removed OSX -fno-common workaround.
794
+
795
+
796
+ == 0.3.6 / 2006-02-23
797
+
798
+ === 2006-02-21 "Ross Bamford" <rosco at roscopeco.co.uk>
799
+
800
+ * Patched extconf.rb with OSX -fno-common workaround
801
+ * Added gem and packaging support to Rakefile
802
+ * Moved version update to Rakefile
803
+ * Removed legacy project utility scripts
804
+
805
+ === 2005-02-19 "Ross Bamford" <rosco at roscopeco.co.uk>
806
+
807
+ * Fixed doublefree bug in ruby_xml_attr.
808
+ * Fixed small leak in parser
809
+
810
+ === 2005-12-18 "Ross Bamford" <rosco at roscopeco.co.uk>
811
+
812
+ * Updated for GCC 4.0 (community patches)
813
+ * Fixed default validation bug
814
+ * Refactored project, removed outdated files, cleaned up tests.
815
+ * Added RDoc documentation across .c files.
816
+ * Fixed up a few strings.
817
+
818
+ === 2004-04-04 "Mangler Jurgen" <et@wkv.at>
819
+
820
+ * ruby_xml_node.cz: fixed ruby_xml_node_property_set. The ill-behaviour
821
+ was, that there was added a second attribute of the same
822
+ name, when you were setting the value of an already existing
823
+ attribute.
824
+
825
+ === 2004-03-17 "Lukas Svoboda" <luks@fi.muni.cz>
826
+
827
+ * ruby_xml_node.c: ruby_xml_node_to_s now returns XML subtree dump.
828
+
829
+ === 2004-02-27 "Martin Povolny" <martin@solnet.cz>
830
+
831
+ * ruby_xml_node.c: added XML::Node.copy, this makes possible building
832
+ of xml documents from nodes taken from other xml documents
833
+ without making ruby SIGSEGV (see tests/copy_bug.rb).
834
+
835
+ === 2004-02-26 "Martin Povolny" <martin@solnet.cz>
836
+
837
+ * ruby_xml_dtd.c, ruby_xml_dtd.h, ruby_xml_schema.c, ruby_xml_schema.h:
838
+ more work on validation, now you can actually validate
839
+ document using dtd or xml schema, also solved warning and
840
+ error propagation (see tests/{dtd|schema}-test.rb).
841
+
842
+ === 2003-12-30 "Martin Povolny" <martin@solnet.cz>
843
+
844
+ * ruby_xml_dtd.c, ruby_xml_dtd.h, ruby_xml_schema.c, ruby_xml_schema.h:
845
+ prelimitary support for dtd and schema validation
846
+
847
+ === 2003-09-15 "Martin Povolny" <martin@solnet.cz>
848
+
849
+ * ruby_xml_input_cbg.c, libxml.c: added class InputCallbacks to make
850
+ possible registering custom input callbacks
851
+ handlers (xmlRegisterInputCallbacks) written in ruby
852
+
853
+ === 2003-08-01 "Martin Povolny" <martin@solnet.cz>
854
+
855
+ * ruby_xml_document.c: corrected argument handling in ruby_xml_document_find
856
+ * ruby_xml_node.c: corrected argument handling in ruby_xml_node_find
857
+
858
+
859
+