libxml-ruby 1.1.4 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. data/{CHANGES → HISTORY} +35 -0
  2. data/LICENSE +1 -0
  3. data/MANIFEST +165 -0
  4. data/{README → README.rdoc} +2 -2
  5. data/Rakefile +47 -147
  6. data/ext/libxml/libxml.c +17 -1
  7. data/ext/libxml/ruby_libxml.h +9 -1
  8. data/ext/libxml/ruby_xml_attr.c +3 -3
  9. data/ext/libxml/ruby_xml_attr_decl.c +32 -32
  10. data/ext/libxml/ruby_xml_attributes.c +1 -1
  11. data/ext/libxml/ruby_xml_cbg.c +1 -2
  12. data/ext/libxml/ruby_xml_document.c +26 -4
  13. data/ext/libxml/ruby_xml_dtd.c +3 -3
  14. data/ext/libxml/ruby_xml_encoding.c +92 -5
  15. data/ext/libxml/ruby_xml_encoding.h +4 -0
  16. data/ext/libxml/ruby_xml_namespace.c +2 -2
  17. data/ext/libxml/ruby_xml_node.c +14 -14
  18. data/ext/libxml/ruby_xml_parser_context.c +8 -8
  19. data/ext/libxml/ruby_xml_reader.c +98 -43
  20. data/ext/libxml/ruby_xml_sax2_handler.c +13 -1
  21. data/ext/libxml/ruby_xml_sax_parser.c +4 -5
  22. data/ext/libxml/ruby_xml_version.h +5 -5
  23. data/ext/libxml/ruby_xml_xpath_context.c +9 -6
  24. data/ext/libxml/ruby_xml_xpath_object.c +1 -1
  25. data/ext/vc/libxml_ruby.sln +4 -4
  26. data/lib/libxml.rb +29 -29
  27. data/lib/libxml/attr.rb +112 -110
  28. data/lib/libxml/attr_decl.rb +2 -0
  29. data/lib/libxml/attributes.rb +13 -11
  30. data/lib/libxml/document.rb +192 -190
  31. data/lib/libxml/error.rb +89 -87
  32. data/lib/libxml/hpricot.rb +77 -75
  33. data/lib/libxml/html_parser.rb +96 -94
  34. data/lib/libxml/namespace.rb +61 -59
  35. data/lib/libxml/namespaces.rb +37 -35
  36. data/lib/libxml/node.rb +398 -384
  37. data/lib/libxml/ns.rb +21 -19
  38. data/lib/libxml/parser.rb +366 -364
  39. data/lib/libxml/properties.rb +22 -20
  40. data/lib/libxml/reader.rb +2 -0
  41. data/lib/libxml/sax_callbacks.rb +179 -177
  42. data/lib/libxml/sax_parser.rb +57 -55
  43. data/lib/libxml/tree.rb +28 -26
  44. data/lib/libxml/xpath_object.rb +15 -13
  45. data/lib/xml.rb +16 -14
  46. data/lib/xml/libxml.rb +10 -8
  47. data/libxml-ruby.gemspec +50 -0
  48. data/script/benchmark/depixelate +634 -0
  49. data/script/benchmark/hamlet.xml +9055 -0
  50. data/script/benchmark/parsecount +170 -0
  51. data/script/benchmark/sock_entries.xml +507 -0
  52. data/script/benchmark/throughput +41 -0
  53. data/script/test +6 -0
  54. data/test/etc_doc_to_s.rb +21 -19
  55. data/test/ets_doc_file.rb +17 -15
  56. data/test/ets_doc_to_s.rb +23 -21
  57. data/test/ets_gpx.rb +28 -26
  58. data/test/ets_node_gc.rb +23 -21
  59. data/test/ets_tsr.rb +11 -9
  60. data/test/model/bands.iso-8859-1.xml +5 -0
  61. data/test/model/bands.utf-8.xml +5 -0
  62. data/test/rb-magic-comment.rb +33 -0
  63. data/test/tc_attr.rb +181 -170
  64. data/test/tc_attr_decl.rb +3 -1
  65. data/test/tc_attributes.rb +134 -132
  66. data/test/tc_deprecated_require.rb +13 -11
  67. data/test/tc_document.rb +119 -113
  68. data/test/tc_document_write.rb +186 -117
  69. data/test/tc_dtd.rb +125 -123
  70. data/test/tc_error.rb +3 -1
  71. data/test/tc_html_parser.rb +139 -137
  72. data/test/tc_namespace.rb +61 -58
  73. data/test/tc_namespaces.rb +176 -173
  74. data/test/tc_node.rb +257 -180
  75. data/test/tc_node_cdata.rb +51 -49
  76. data/test/tc_node_comment.rb +33 -30
  77. data/test/tc_node_copy.rb +42 -40
  78. data/test/tc_node_edit.rb +159 -157
  79. data/test/tc_node_text.rb +71 -69
  80. data/test/tc_node_write.rb +41 -16
  81. data/test/tc_node_xlink.rb +29 -26
  82. data/test/tc_parser.rb +335 -329
  83. data/test/tc_parser_context.rb +188 -185
  84. data/test/tc_properties.rb +39 -36
  85. data/test/tc_reader.rb +297 -283
  86. data/test/tc_relaxng.rb +54 -51
  87. data/test/tc_sax_parser.rb +275 -273
  88. data/test/tc_schema.rb +53 -51
  89. data/test/tc_traversal.rb +222 -220
  90. data/test/tc_xinclude.rb +21 -19
  91. data/test/tc_xml.rb +3 -1
  92. data/test/tc_xpath.rb +195 -193
  93. data/test/tc_xpath_context.rb +80 -78
  94. data/test/tc_xpath_expression.rb +38 -35
  95. data/test/tc_xpointer.rb +74 -72
  96. data/test/test_helper.rb +14 -0
  97. data/test/test_suite.rb +39 -33
  98. metadata +65 -105
  99. data/doc/css/normal.css +0 -182
  100. data/doc/img/raze-tiny.png +0 -0
  101. data/doc/img/red-cube.jpg +0 -0
  102. data/doc/img/xml-ruby.png +0 -0
  103. data/doc/index.xml +0 -43
  104. data/doc/install.xml +0 -77
  105. data/doc/layout.rhtml +0 -38
  106. data/doc/layout.xsl +0 -67
  107. data/doc/license.xml +0 -32
  108. data/doc/log/changelog.xml +0 -1324
  109. data/doc/log/changelog.xsl +0 -42
  110. data/ext/libxml/Makefile +0 -156
  111. data/ext/libxml/extconf.h +0 -5
  112. data/ext/libxml/libxml-ruby.so.a +0 -0
  113. data/ext/libxml/libxml.o +0 -0
  114. data/ext/libxml/libxml_ruby.so +0 -0
  115. data/ext/libxml/mkmf.log +0 -129
  116. data/ext/libxml/ruby_xml.o +0 -0
  117. data/ext/libxml/ruby_xml_attr.o +0 -0
  118. data/ext/libxml/ruby_xml_attr_decl.o +0 -0
  119. data/ext/libxml/ruby_xml_attributes.o +0 -0
  120. data/ext/libxml/ruby_xml_cbg.o +0 -0
  121. data/ext/libxml/ruby_xml_document.o +0 -0
  122. data/ext/libxml/ruby_xml_dtd.o +0 -0
  123. data/ext/libxml/ruby_xml_encoding.o +0 -0
  124. data/ext/libxml/ruby_xml_error.o +0 -0
  125. data/ext/libxml/ruby_xml_html_parser.o +0 -0
  126. data/ext/libxml/ruby_xml_html_parser_context.o +0 -0
  127. data/ext/libxml/ruby_xml_html_parser_options.o +0 -0
  128. data/ext/libxml/ruby_xml_input_cbg.o +0 -0
  129. data/ext/libxml/ruby_xml_io.o +0 -0
  130. data/ext/libxml/ruby_xml_namespace.o +0 -0
  131. data/ext/libxml/ruby_xml_namespaces.o +0 -0
  132. data/ext/libxml/ruby_xml_node.o +0 -0
  133. data/ext/libxml/ruby_xml_parser.o +0 -0
  134. data/ext/libxml/ruby_xml_parser_context.o +0 -0
  135. data/ext/libxml/ruby_xml_parser_options.o +0 -0
  136. data/ext/libxml/ruby_xml_reader.o +0 -0
  137. data/ext/libxml/ruby_xml_relaxng.o +0 -0
  138. data/ext/libxml/ruby_xml_sax2_handler.o +0 -0
  139. data/ext/libxml/ruby_xml_sax_parser.o +0 -0
  140. data/ext/libxml/ruby_xml_schema.o +0 -0
  141. data/ext/libxml/ruby_xml_xinclude.o +0 -0
  142. data/ext/libxml/ruby_xml_xpath.o +0 -0
  143. data/ext/libxml/ruby_xml_xpath_context.o +0 -0
  144. data/ext/libxml/ruby_xml_xpath_expression.o +0 -0
  145. data/ext/libxml/ruby_xml_xpath_object.o +0 -0
  146. data/ext/libxml/ruby_xml_xpointer.o +0 -0
@@ -1,35 +1,38 @@
1
- require "xml"
2
- require 'test/unit'
3
-
4
- class TestXPathExpression < Test::Unit::TestCase
5
- def setup
6
- xp = XML::Parser.string('<ruby_array uga="booga" foo="bar"><fixnum>one</fixnum><fixnum>two</fixnum></ruby_array>')
7
- @doc = xp.parse
8
- end
9
-
10
- def teardown
11
- @doc = nil
12
- end
13
-
14
- def test_nodes
15
- expr = XML::XPath::Expression.compile('/ruby_array/fixnum')
16
- set = @doc.find(expr)
17
- assert_instance_of(XML::XPath::Object, set)
18
- assert_equal(2, set.size)
19
- end
20
-
21
- def test_find_class
22
- expr = XML::XPath::Expression.new('/ruby_array/fixnum')
23
- set = @doc.find(expr)
24
- assert_instance_of(XML::XPath::Object, set)
25
- assert_equal(2, set.size)
26
- end
27
-
28
- def test_find_invalid
29
- error = assert_raise(TypeError) do
30
- set = @doc.find(999)
31
- end
32
- assert_equal('Argument should be an intance of a String or XPath::Expression',
33
- error.to_s)
34
- end
35
- end
1
+ # encoding: UTF-8
2
+
3
+ require './test_helper'
4
+
5
+ require 'test/unit'
6
+
7
+ class TestXPathExpression < Test::Unit::TestCase
8
+ def setup
9
+ xp = XML::Parser.string('<ruby_array uga="booga" foo="bar"><fixnum>one</fixnum><fixnum>two</fixnum></ruby_array>')
10
+ @doc = xp.parse
11
+ end
12
+
13
+ def teardown
14
+ @doc = nil
15
+ end
16
+
17
+ def test_nodes
18
+ expr = XML::XPath::Expression.compile('/ruby_array/fixnum')
19
+ set = @doc.find(expr)
20
+ assert_instance_of(XML::XPath::Object, set)
21
+ assert_equal(2, set.size)
22
+ end
23
+
24
+ def test_find_class
25
+ expr = XML::XPath::Expression.new('/ruby_array/fixnum')
26
+ set = @doc.find(expr)
27
+ assert_instance_of(XML::XPath::Object, set)
28
+ assert_equal(2, set.size)
29
+ end
30
+
31
+ def test_find_invalid
32
+ error = assert_raise(TypeError) do
33
+ set = @doc.find(999)
34
+ end
35
+ assert_equal('Argument should be an intance of a String or XPath::Expression',
36
+ error.to_s)
37
+ end
38
+ end
data/test/tc_xpointer.rb CHANGED
@@ -1,72 +1,74 @@
1
- require 'xml'
2
- require "test/unit"
3
-
4
- class TC_XML_XPointer < Test::Unit::TestCase
5
- def setup()
6
- xp = XML::Parser.string('<!DOCTYPE ra [<!ELEMENT ra (foo+)><!ATTLIST ra id ID #IMPLIED><!ELEMENT foo (#PCDATA)><!ATTLIST foo id ID #IMPLIED>]><ra id="start"><foo id="one">one</foo><foo id="two">two</foo><foo id="three">three</foo></ra>')
7
- @doc = xp.parse
8
- assert_instance_of(XML::Document, @doc)
9
- @root = @doc.root
10
- assert_instance_of(XML::Node, @root)
11
- end
12
-
13
- def teardown()
14
- @doc = nil
15
- @root = nil
16
- @xptr = nil
17
- end
18
-
19
- def test_libxml_xpointer_id
20
- xptr = @root.pointer('xpointer(id("two"))')
21
- assert_instance_of(XML::XPath::Object, xptr)
22
- xptr.each do |node|
23
- # It seems from the spec that the pointer should
24
- # be the whole node, rather than just the ID attr.
25
- assert_equal('two', node.content)
26
- assert_instance_of(XML::Node, node)
27
- assert_equal('two', node['id'])
28
- end
29
-
30
- # FIXME: Not sure at all about this kind of range
31
- if ENV['NOTWORKING']
32
- @xptr = @root.pointer('xpointer(id("two")) xpointer(id("three"))')
33
- assert_instance_of(XML::XPath, @xptr)
34
- assert_instance_of(XML::Node::Set, @xptr.set)
35
- assert_equal(2, @xptr.set.length)
36
- for n in @xptr.set
37
- assert_match(/two|three/, n.to_s)
38
- end
39
- end
40
- end
41
-
42
- # FIXME: There is a bug in these ranges...
43
- if ENV['NOTWORKING']
44
- def test_libxml_xpointer_range()
45
- nstart = nend = nil
46
- @xptr = @root.pointer('xpointer(id("one"))').set
47
- @xptr.each{|n| nstart = n}
48
- assert_instance_of(XML::Node, nstart)
49
- @xptr = @root.pointer('xpointer(id("three"))').set
50
- @xptr.each{|n| nend = n}
51
- assert_instance_of(XML::Node, nend)
52
- range = XML::XPointer.range(nstart, nend)
53
- assert_instance_of(XML::XPath, range)
54
- assert_instance_of(XML::Node::Set, range.set)
55
-
56
- for n in range.set
57
- assert_match(/one|two|three/, n.to_s)
58
- end
59
- assert_equal(3, range.set.length)
60
- end
61
- end
62
-
63
- # def test_libxml_xpointer_start_point()
64
- # @xptr = @root.pointer('xpointer(start-point("one"))')
65
- # assert_instance_of(XML::XPath, @xptr)
66
- # set = @xptr.set
67
- # assert_instance_of(XML::Node::Set, set)
68
- # for n in set
69
- # assert_match(/one|two|three/, n.to_s)
70
- # end
71
- # end
72
- end
1
+ # encoding: UTF-8
2
+
3
+ require './test_helper'
4
+ require "test/unit"
5
+
6
+ class TC_XML_XPointer < Test::Unit::TestCase
7
+ def setup()
8
+ xp = XML::Parser.string('<!DOCTYPE ra [<!ELEMENT ra (foo+)><!ATTLIST ra id ID #IMPLIED><!ELEMENT foo (#PCDATA)><!ATTLIST foo id ID #IMPLIED>]><ra id="start"><foo id="one">one</foo><foo id="two">two</foo><foo id="three">three</foo></ra>')
9
+ @doc = xp.parse
10
+ assert_instance_of(XML::Document, @doc)
11
+ @root = @doc.root
12
+ assert_instance_of(XML::Node, @root)
13
+ end
14
+
15
+ def teardown()
16
+ @doc = nil
17
+ @root = nil
18
+ @xptr = nil
19
+ end
20
+
21
+ def test_libxml_xpointer_id
22
+ xptr = @root.pointer('xpointer(id("two"))')
23
+ assert_instance_of(XML::XPath::Object, xptr)
24
+ xptr.each do |node|
25
+ # It seems from the spec that the pointer should
26
+ # be the whole node, rather than just the ID attr.
27
+ assert_equal('two', node.content)
28
+ assert_instance_of(XML::Node, node)
29
+ assert_equal('two', node['id'])
30
+ end
31
+
32
+ # FIXME: Not sure at all about this kind of range
33
+ if ENV['NOTWORKING']
34
+ @xptr = @root.pointer('xpointer(id("two")) xpointer(id("three"))')
35
+ assert_instance_of(XML::XPath, @xptr)
36
+ assert_instance_of(XML::Node::Set, @xptr.set)
37
+ assert_equal(2, @xptr.set.length)
38
+ for n in @xptr.set
39
+ assert_match(/two|three/, n.to_s)
40
+ end
41
+ end
42
+ end
43
+
44
+ # FIXME: There is a bug in these ranges...
45
+ if ENV['NOTWORKING']
46
+ def test_libxml_xpointer_range()
47
+ nstart = nend = nil
48
+ @xptr = @root.pointer('xpointer(id("one"))').set
49
+ @xptr.each{|n| nstart = n}
50
+ assert_instance_of(XML::Node, nstart)
51
+ @xptr = @root.pointer('xpointer(id("three"))').set
52
+ @xptr.each{|n| nend = n}
53
+ assert_instance_of(XML::Node, nend)
54
+ range = XML::XPointer.range(nstart, nend)
55
+ assert_instance_of(XML::XPath, range)
56
+ assert_instance_of(XML::Node::Set, range.set)
57
+
58
+ for n in range.set
59
+ assert_match(/one|two|three/, n.to_s)
60
+ end
61
+ assert_equal(3, range.set.length)
62
+ end
63
+ end
64
+
65
+ # def test_libxml_xpointer_start_point()
66
+ # @xptr = @root.pointer('xpointer(start-point("one"))')
67
+ # assert_instance_of(XML::XPath, @xptr)
68
+ # set = @xptr.set
69
+ # assert_instance_of(XML::Node::Set, set)
70
+ # for n in set
71
+ # assert_match(/one|two|three/, n.to_s)
72
+ # end
73
+ # end
74
+ end
@@ -0,0 +1,14 @@
1
+ # encoding: UTF-8
2
+
3
+ # To make testing/debugging easier, test within this source tree versus an installed gem
4
+
5
+ dir = File.dirname(__FILE__)
6
+ root = File.expand_path(File.join(dir, '..'))
7
+ lib = File.expand_path(File.join(root, 'lib'))
8
+ ext = File.expand_path(File.join(root, 'ext', 'libxml'))
9
+
10
+ $LOAD_PATH << lib
11
+ $LOAD_PATH << ext
12
+
13
+ require 'xml'
14
+
data/test/test_suite.rb CHANGED
@@ -1,33 +1,39 @@
1
- require 'tc_xml'
2
- require 'tc_attributes'
3
- require 'tc_attr'
4
- require 'tc_attr_decl'
5
- require 'tc_document'
6
- require 'tc_document_write'
7
- require 'tc_dtd'
8
- require 'tc_html_parser'
9
- require 'tc_namespaces'
10
- require 'tc_namespace'
11
- require 'tc_node'
12
- require 'tc_node_cdata'
13
- require 'tc_node_comment'
14
- require 'tc_node_copy'
15
- require 'tc_node_edit'
16
- require 'tc_node_text'
17
- require 'tc_node_write'
18
- require 'tc_node_xlink'
19
- require 'tc_parser'
20
- require 'tc_parser_context'
21
- require 'tc_reader'
22
- require 'tc_relaxng'
23
- require 'tc_sax_parser'
24
- require 'tc_schema'
25
- require 'tc_traversal'
26
- require 'tc_xinclude'
27
- require 'tc_xpath'
28
- require 'tc_xpath_expression'
29
- require 'tc_xpointer'
30
-
31
- # Compatibility
32
- require 'tc_properties'
33
- require 'tc_deprecated_require'
1
+ # encoding: UTF-8
2
+
3
+ # Change to current directory so relative
4
+ # requires work.
5
+ dir = File.dirname(__FILE__)
6
+ Dir.chdir(dir)
7
+
8
+ require './tc_attributes'
9
+ require './tc_attr'
10
+ require './tc_attr_decl'
11
+ require './tc_document'
12
+ require './tc_document_write'
13
+ require './tc_dtd'
14
+ require './tc_html_parser'
15
+ require './tc_namespaces'
16
+ require './tc_namespace'
17
+ require './tc_node'
18
+ require './tc_node_cdata'
19
+ require './tc_node_comment'
20
+ require './tc_node_copy'
21
+ require './tc_node_edit'
22
+ require './tc_node_text'
23
+ require './tc_node_write'
24
+ require './tc_node_xlink'
25
+ require './tc_parser'
26
+ require './tc_parser_context'
27
+ require './tc_reader'
28
+ require './tc_relaxng'
29
+ require './tc_sax_parser'
30
+ require './tc_schema'
31
+ require './tc_traversal'
32
+ require './tc_xinclude'
33
+ require './tc_xpath'
34
+ require './tc_xpath_expression'
35
+ require './tc_xpointer'
36
+
37
+ # Compatibility
38
+ require './tc_properties'
39
+ require './tc_deprecated_require'
metadata CHANGED
@@ -1,25 +1,26 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libxml-ruby
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 1
8
- - 4
9
- version: 1.1.4
4
+ prerelease:
5
+ version: 2.0.0
10
6
  platform: ruby
11
7
  authors:
8
+ - Ross Bamform
9
+ - Wai-Sun Chia
10
+ - Sean Chittenden
11
+ - Dan Janwoski
12
+ - Anurag Priyam
12
13
  - Charlie Savage
13
14
  autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-05-02 00:00:00 -06:00
18
+ date: 2011-04-16 00:00:00 -06:00
18
19
  default_executable:
19
20
  dependencies: []
20
21
 
21
- description: " The Libxml-Ruby project provides Ruby language bindings for the GNOME\n Libxml2 XML toolkit. It is free software, released under the MIT License.\n Libxml-ruby's primary advantage over REXML is performance - if speed \n is your need, these are good libraries to consider, as demonstrated\n by the informal benchmark below.\n"
22
- email: libxml-devel@rubyforge.org
22
+ description: " The Libxml-Ruby project provides Ruby language bindings for the GNOME\n Libxml2 XML toolkit. It is free software, released under the MIT License.\n Libxml-ruby's primary advantage over REXML is performance - if speed\n is your need, these are good libraries to consider, as demonstrated\n by the informal benchmark below.\n"
23
+ email:
23
24
  executables: []
24
25
 
25
26
  extensions:
@@ -27,124 +28,78 @@ extensions:
27
28
  extra_rdoc_files: []
28
29
 
29
30
  files:
30
- - Rakefile
31
- - CHANGES
31
+ - HISTORY
32
32
  - LICENSE
33
- - README
33
+ - libxml-ruby.gemspec
34
+ - MANIFEST
35
+ - Rakefile
36
+ - README.rdoc
34
37
  - setup.rb
35
- - doc/css/normal.css
36
- - doc/img/raze-tiny.png
37
- - doc/img/red-cube.jpg
38
- - doc/img/xml-ruby.png
39
- - doc/index.xml
40
- - doc/install.xml
41
- - doc/layout.rhtml
42
- - doc/layout.xsl
43
- - doc/license.xml
44
- - doc/log/changelog.xml
45
- - doc/log/changelog.xsl
46
- - ext/libxml/extconf.h
47
- - ext/libxml/extconf.rb
48
- - ext/libxml/libxml-ruby.so.a
49
- - ext/libxml/libxml.c
50
- - ext/libxml/libxml.o
51
- - ext/libxml/libxml_ruby.so
52
- - ext/libxml/Makefile
53
- - ext/libxml/mkmf.log
54
38
  - ext/libxml/ruby_libxml.h
55
- - ext/libxml/ruby_xml.c
56
39
  - ext/libxml/ruby_xml.h
57
- - ext/libxml/ruby_xml.o
58
- - ext/libxml/ruby_xml_attr.c
59
40
  - ext/libxml/ruby_xml_attr.h
60
- - ext/libxml/ruby_xml_attr.o
61
- - ext/libxml/ruby_xml_attributes.c
62
41
  - ext/libxml/ruby_xml_attributes.h
63
- - ext/libxml/ruby_xml_attributes.o
64
- - ext/libxml/ruby_xml_attr_decl.c
65
42
  - ext/libxml/ruby_xml_attr_decl.h
66
- - ext/libxml/ruby_xml_attr_decl.o
67
- - ext/libxml/ruby_xml_cbg.c
68
- - ext/libxml/ruby_xml_cbg.o
69
- - ext/libxml/ruby_xml_document.c
70
43
  - ext/libxml/ruby_xml_document.h
71
- - ext/libxml/ruby_xml_document.o
72
- - ext/libxml/ruby_xml_dtd.c
73
44
  - ext/libxml/ruby_xml_dtd.h
74
- - ext/libxml/ruby_xml_dtd.o
75
- - ext/libxml/ruby_xml_encoding.c
76
45
  - ext/libxml/ruby_xml_encoding.h
77
- - ext/libxml/ruby_xml_encoding.o
78
- - ext/libxml/ruby_xml_error.c
79
46
  - ext/libxml/ruby_xml_error.h
80
- - ext/libxml/ruby_xml_error.o
81
- - ext/libxml/ruby_xml_html_parser.c
82
47
  - ext/libxml/ruby_xml_html_parser.h
83
- - ext/libxml/ruby_xml_html_parser.o
84
- - ext/libxml/ruby_xml_html_parser_context.c
85
48
  - ext/libxml/ruby_xml_html_parser_context.h
86
- - ext/libxml/ruby_xml_html_parser_context.o
87
- - ext/libxml/ruby_xml_html_parser_options.c
88
49
  - ext/libxml/ruby_xml_html_parser_options.h
89
- - ext/libxml/ruby_xml_html_parser_options.o
90
- - ext/libxml/ruby_xml_input_cbg.c
91
50
  - ext/libxml/ruby_xml_input_cbg.h
92
- - ext/libxml/ruby_xml_input_cbg.o
93
- - ext/libxml/ruby_xml_io.c
94
51
  - ext/libxml/ruby_xml_io.h
95
- - ext/libxml/ruby_xml_io.o
96
- - ext/libxml/ruby_xml_namespace.c
97
52
  - ext/libxml/ruby_xml_namespace.h
98
- - ext/libxml/ruby_xml_namespace.o
99
- - ext/libxml/ruby_xml_namespaces.c
100
53
  - ext/libxml/ruby_xml_namespaces.h
101
- - ext/libxml/ruby_xml_namespaces.o
102
- - ext/libxml/ruby_xml_node.c
103
54
  - ext/libxml/ruby_xml_node.h
104
- - ext/libxml/ruby_xml_node.o
105
- - ext/libxml/ruby_xml_parser.c
106
55
  - ext/libxml/ruby_xml_parser.h
107
- - ext/libxml/ruby_xml_parser.o
108
- - ext/libxml/ruby_xml_parser_context.c
109
56
  - ext/libxml/ruby_xml_parser_context.h
110
- - ext/libxml/ruby_xml_parser_context.o
111
- - ext/libxml/ruby_xml_parser_options.c
112
57
  - ext/libxml/ruby_xml_parser_options.h
113
- - ext/libxml/ruby_xml_parser_options.o
114
- - ext/libxml/ruby_xml_reader.c
115
58
  - ext/libxml/ruby_xml_reader.h
116
- - ext/libxml/ruby_xml_reader.o
117
- - ext/libxml/ruby_xml_relaxng.c
118
59
  - ext/libxml/ruby_xml_relaxng.h
119
- - ext/libxml/ruby_xml_relaxng.o
120
- - ext/libxml/ruby_xml_sax2_handler.c
121
60
  - ext/libxml/ruby_xml_sax2_handler.h
122
- - ext/libxml/ruby_xml_sax2_handler.o
123
- - ext/libxml/ruby_xml_sax_parser.c
124
61
  - ext/libxml/ruby_xml_sax_parser.h
125
- - ext/libxml/ruby_xml_sax_parser.o
126
- - ext/libxml/ruby_xml_schema.c
127
62
  - ext/libxml/ruby_xml_schema.h
128
- - ext/libxml/ruby_xml_schema.o
129
63
  - ext/libxml/ruby_xml_version.h
130
- - ext/libxml/ruby_xml_xinclude.c
131
64
  - ext/libxml/ruby_xml_xinclude.h
132
- - ext/libxml/ruby_xml_xinclude.o
133
- - ext/libxml/ruby_xml_xpath.c
134
65
  - ext/libxml/ruby_xml_xpath.h
135
- - ext/libxml/ruby_xml_xpath.o
136
- - ext/libxml/ruby_xml_xpath_context.c
137
66
  - ext/libxml/ruby_xml_xpath_context.h
138
- - ext/libxml/ruby_xml_xpath_context.o
139
- - ext/libxml/ruby_xml_xpath_expression.c
140
67
  - ext/libxml/ruby_xml_xpath_expression.h
141
- - ext/libxml/ruby_xml_xpath_expression.o
142
- - ext/libxml/ruby_xml_xpath_object.c
143
68
  - ext/libxml/ruby_xml_xpath_object.h
144
- - ext/libxml/ruby_xml_xpath_object.o
145
- - ext/libxml/ruby_xml_xpointer.c
146
69
  - ext/libxml/ruby_xml_xpointer.h
147
- - ext/libxml/ruby_xml_xpointer.o
70
+ - ext/libxml/libxml.c
71
+ - ext/libxml/ruby_xml.c
72
+ - ext/libxml/ruby_xml_attr.c
73
+ - ext/libxml/ruby_xml_attributes.c
74
+ - ext/libxml/ruby_xml_attr_decl.c
75
+ - ext/libxml/ruby_xml_cbg.c
76
+ - ext/libxml/ruby_xml_document.c
77
+ - ext/libxml/ruby_xml_dtd.c
78
+ - ext/libxml/ruby_xml_encoding.c
79
+ - ext/libxml/ruby_xml_error.c
80
+ - ext/libxml/ruby_xml_html_parser.c
81
+ - ext/libxml/ruby_xml_html_parser_context.c
82
+ - ext/libxml/ruby_xml_html_parser_options.c
83
+ - ext/libxml/ruby_xml_input_cbg.c
84
+ - ext/libxml/ruby_xml_io.c
85
+ - ext/libxml/ruby_xml_namespace.c
86
+ - ext/libxml/ruby_xml_namespaces.c
87
+ - ext/libxml/ruby_xml_node.c
88
+ - ext/libxml/ruby_xml_parser.c
89
+ - ext/libxml/ruby_xml_parser_context.c
90
+ - ext/libxml/ruby_xml_parser_options.c
91
+ - ext/libxml/ruby_xml_reader.c
92
+ - ext/libxml/ruby_xml_relaxng.c
93
+ - ext/libxml/ruby_xml_sax2_handler.c
94
+ - ext/libxml/ruby_xml_sax_parser.c
95
+ - ext/libxml/ruby_xml_schema.c
96
+ - ext/libxml/ruby_xml_xinclude.c
97
+ - ext/libxml/ruby_xml_xpath.c
98
+ - ext/libxml/ruby_xml_xpath_context.c
99
+ - ext/libxml/ruby_xml_xpath_expression.c
100
+ - ext/libxml/ruby_xml_xpath_object.c
101
+ - ext/libxml/ruby_xml_xpointer.c
102
+ - ext/libxml/extconf.rb
148
103
  - ext/mingw/Rakefile
149
104
  - ext/mingw/build.rake
150
105
  - ext/vc/libxml_ruby.sln
@@ -169,6 +124,12 @@ files:
169
124
  - lib/libxml.rb
170
125
  - lib/xml/libxml.rb
171
126
  - lib/xml.rb
127
+ - script/benchmark/depixelate
128
+ - script/benchmark/hamlet.xml
129
+ - script/benchmark/parsecount
130
+ - script/benchmark/sock_entries.xml
131
+ - script/benchmark/throughput
132
+ - script/test
172
133
  - test/etc_doc_to_s.rb
173
134
  - test/ets_doc_file.rb
174
135
  - test/ets_doc_to_s.rb
@@ -177,6 +138,8 @@ files:
177
138
  - test/ets_test.xml
178
139
  - test/ets_tsr.rb
179
140
  - test/model/atom.xml
141
+ - test/model/bands.iso-8859-1.xml
142
+ - test/model/bands.utf-8.xml
180
143
  - test/model/bands.xml
181
144
  - test/model/books.xml
182
145
  - test/model/merge_bug_data.xml
@@ -189,6 +152,7 @@ files:
189
152
  - test/model/shiporder.xsd
190
153
  - test/model/soap.xml
191
154
  - test/model/xinclude.xml
155
+ - test/rb-magic-comment.rb
192
156
  - test/tc_attr.rb
193
157
  - test/tc_attributes.rb
194
158
  - test/tc_attr_decl.rb
@@ -222,9 +186,10 @@ files:
222
186
  - test/tc_xpath_context.rb
223
187
  - test/tc_xpath_expression.rb
224
188
  - test/tc_xpointer.rb
189
+ - test/test_helper.rb
225
190
  - test/test_suite.rb
226
191
  has_rdoc: true
227
- homepage: http://libxml.rubyforge.org/
192
+ homepage: http://xml4r.github.com/libxml-ruby
228
193
  licenses: []
229
194
 
230
195
  post_install_message:
@@ -232,30 +197,25 @@ rdoc_options: []
232
197
 
233
198
  require_paths:
234
199
  - lib
235
- - ext/libxml
236
200
  required_ruby_version: !ruby/object:Gem::Requirement
201
+ none: false
237
202
  requirements:
238
203
  - - ">="
239
204
  - !ruby/object:Gem::Version
240
- segments:
241
- - 1
242
- - 8
243
- - 4
244
- version: 1.8.4
205
+ version: 1.8.6
245
206
  required_rubygems_version: !ruby/object:Gem::Requirement
207
+ none: false
246
208
  requirements:
247
209
  - - ">="
248
210
  - !ruby/object:Gem::Version
249
- segments:
250
- - 0
251
211
  version: "0"
252
212
  requirements: []
253
213
 
254
- rubyforge_project: libxml
255
- rubygems_version: 1.3.6
214
+ rubyforge_project:
215
+ rubygems_version: 1.5.2
256
216
  signing_key:
257
217
  specification_version: 3
258
- summary: Ruby libxml bindings
218
+ summary: Ruby Bindings for LibXML2
259
219
  test_files:
260
220
  - test/tc_attr.rb
261
221
  - test/tc_attributes.rb