libxml-ruby 0.6.0-x86-mswin32-60 → 0.7.0-x86-mswin32-60

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 (171) hide show
  1. data/CHANGES +42 -0
  2. data/README +123 -117
  3. data/doc/classes/XML.html +226 -0
  4. data/doc/classes/XML/Attr.html +969 -0
  5. data/doc/classes/XML/Attributes.html +487 -0
  6. data/doc/classes/XML/Document.html +1423 -0
  7. data/doc/classes/XML/Dtd.html +159 -0
  8. data/doc/classes/XML/Error.html +111 -0
  9. data/doc/classes/XML/HTMLParser.html +330 -0
  10. data/doc/classes/XML/InputCallbacks.html +154 -0
  11. data/doc/classes/XML/NS.html +366 -0
  12. data/doc/classes/XML/Node.html +3292 -0
  13. data/doc/classes/XML/Node/FailedModify.html +111 -0
  14. data/doc/classes/XML/Node/Set.html +435 -0
  15. data/doc/classes/XML/Node/SetNamespace.html +111 -0
  16. data/doc/classes/XML/Node/UnknownType.html +111 -0
  17. data/doc/classes/XML/Parser.html +2178 -0
  18. data/doc/classes/XML/Parser/Context.html +1233 -0
  19. data/doc/classes/XML/Parser/ParseError.html +111 -0
  20. data/doc/classes/XML/Reader.html +2173 -0
  21. data/doc/classes/XML/SaxParser.html +396 -0
  22. data/doc/classes/XML/SiblingEnum.html +142 -0
  23. data/doc/classes/XML/State.html +118 -0
  24. data/doc/classes/XML/Tree.html +224 -0
  25. data/doc/classes/XML/XInclude.html +117 -0
  26. data/doc/classes/XML/XInclude/Error.html +111 -0
  27. data/doc/classes/XML/XMLParserOptions.html +198 -0
  28. data/doc/classes/XML/XPath.html +269 -0
  29. data/doc/classes/XML/XPath/Context.html +193 -0
  30. data/doc/classes/XML/XPath/InvalidPath.html +111 -0
  31. data/doc/classes/XML/XPath/Object.html +439 -0
  32. data/doc/classes/XML/XPointer.html +164 -0
  33. data/doc/classes/XML/XPointer/Context.html +117 -0
  34. data/doc/classes/XML/XPointer/Context/InvalidPath.html +111 -0
  35. data/doc/classes/XML/XPointer/InvalidExpression.html +111 -0
  36. data/doc/classes/singleton.html +114 -0
  37. data/doc/created.rid +1 -0
  38. data/doc/files/CHANGES.html +375 -0
  39. data/doc/files/LICENSE.html +133 -0
  40. data/doc/files/README.html +279 -0
  41. data/doc/files/VERSION.html +107 -0
  42. data/doc/files/ext/libxml/cbg_c.html +101 -0
  43. data/doc/files/ext/libxml/libxml_c.html +101 -0
  44. data/doc/files/ext/libxml/ruby_xml_attr_c.html +101 -0
  45. data/doc/files/ext/libxml/ruby_xml_attributes_c.html +101 -0
  46. data/doc/files/ext/libxml/ruby_xml_document_c.html +101 -0
  47. data/doc/files/ext/libxml/ruby_xml_dtd_c.html +101 -0
  48. data/doc/files/ext/libxml/ruby_xml_html_parser_c.html +101 -0
  49. data/doc/files/ext/libxml/ruby_xml_input_cbg_c.html +101 -0
  50. data/doc/files/ext/libxml/ruby_xml_node_c.html +101 -0
  51. data/doc/files/ext/libxml/ruby_xml_node_set_c.html +101 -0
  52. data/doc/files/ext/libxml/ruby_xml_ns_c.html +101 -0
  53. data/doc/files/ext/libxml/ruby_xml_parser_c.html +101 -0
  54. data/doc/files/ext/libxml/ruby_xml_parser_context_c.html +101 -0
  55. data/doc/files/ext/libxml/ruby_xml_reader_c.html +101 -0
  56. data/doc/files/ext/libxml/ruby_xml_sax_parser_c.html +101 -0
  57. data/doc/files/ext/libxml/ruby_xml_schema_c.html +101 -0
  58. data/doc/files/ext/libxml/ruby_xml_state_c.html +101 -0
  59. data/doc/files/ext/libxml/ruby_xml_tree_c.html +101 -0
  60. data/doc/files/ext/libxml/ruby_xml_xinclude_c.html +101 -0
  61. data/doc/files/ext/libxml/ruby_xml_xpath_c.html +101 -0
  62. data/doc/files/ext/libxml/ruby_xml_xpath_context_c.html +101 -0
  63. data/doc/files/ext/libxml/ruby_xml_xpath_object_c.html +101 -0
  64. data/doc/files/ext/libxml/ruby_xml_xpointer_c.html +101 -0
  65. data/doc/files/ext/libxml/ruby_xml_xpointer_context_c.html +101 -0
  66. data/doc/files/lib/libxml_rb.html +115 -0
  67. data/doc/files/lib/xml/libxml_rb.html +114 -0
  68. data/doc/fr_class_index.html +60 -0
  69. data/doc/fr_file_index.html +56 -0
  70. data/doc/fr_method_index.html +373 -0
  71. data/doc/index.html +24 -0
  72. data/doc/rdoc-style.css +208 -0
  73. data/ext/libxml/cbg.c +76 -76
  74. data/ext/libxml/extconf.rb +308 -308
  75. data/ext/libxml/libxml.c +58 -62
  76. data/ext/libxml/ruby_libxml.h +1 -0
  77. data/ext/libxml/ruby_xml_attr.c +201 -113
  78. data/ext/libxml/ruby_xml_attr.h +6 -9
  79. data/ext/libxml/ruby_xml_attributes.c +268 -0
  80. data/ext/libxml/ruby_xml_attributes.h +17 -0
  81. data/ext/libxml/ruby_xml_document.c +80 -66
  82. data/ext/libxml/ruby_xml_dtd.c +2 -2
  83. data/ext/libxml/ruby_xml_dtd.h +17 -17
  84. data/ext/libxml/ruby_xml_html_parser.c +18 -19
  85. data/ext/libxml/ruby_xml_html_parser.h +29 -29
  86. data/ext/libxml/ruby_xml_input_cbg.c +6 -0
  87. data/ext/libxml/ruby_xml_input_cbg.h +20 -20
  88. data/ext/libxml/ruby_xml_node.c +438 -536
  89. data/ext/libxml/ruby_xml_node.h +17 -27
  90. data/ext/libxml/ruby_xml_node_set.c +10 -9
  91. data/ext/libxml/ruby_xml_node_set.h +20 -20
  92. data/ext/libxml/ruby_xml_ns.c +60 -69
  93. data/ext/libxml/ruby_xml_ns.h +12 -21
  94. data/ext/libxml/ruby_xml_parser.c +54 -53
  95. data/ext/libxml/ruby_xml_parser.h +31 -31
  96. data/ext/libxml/ruby_xml_parser_context.c +37 -91
  97. data/ext/libxml/ruby_xml_parser_context.h +20 -22
  98. data/ext/libxml/ruby_xml_reader.h +14 -14
  99. data/ext/libxml/ruby_xml_sax_parser.c +55 -55
  100. data/ext/libxml/ruby_xml_sax_parser.h +56 -56
  101. data/ext/libxml/ruby_xml_schema.c +44 -51
  102. data/ext/libxml/ruby_xml_schema.h +16 -16
  103. data/ext/libxml/ruby_xml_state.c +35 -96
  104. data/ext/libxml/ruby_xml_state.h +2 -3
  105. data/ext/libxml/ruby_xml_tree.h +12 -12
  106. data/ext/libxml/ruby_xml_xinclude.h +13 -13
  107. data/ext/libxml/ruby_xml_xpath.c +57 -18
  108. data/ext/libxml/ruby_xml_xpath.h +23 -23
  109. data/ext/libxml/ruby_xml_xpath_context.c +11 -7
  110. data/ext/libxml/ruby_xml_xpath_context.h +20 -20
  111. data/ext/libxml/ruby_xml_xpath_object.c +9 -16
  112. data/ext/libxml/ruby_xml_xpath_object.h +4 -10
  113. data/ext/libxml/ruby_xml_xpointer.c +11 -11
  114. data/ext/libxml/ruby_xml_xpointer.h +27 -27
  115. data/ext/libxml/ruby_xml_xpointer_context.h +18 -18
  116. data/ext/libxml/version.h +2 -2
  117. data/lib/libxml.rb +134 -125
  118. data/lib/libxml_ruby.so +0 -0
  119. data/mingw/libiconv-2.dll +0 -0
  120. data/mingw/libxml2-2.dll +0 -0
  121. data/mingw/libxml_ruby.so +0 -0
  122. data/test/ets_copy_bug.rb +1 -1
  123. data/test/ets_copy_bug2.rb +16 -27
  124. data/test/ets_doc_to_s.rb +1 -1
  125. data/test/ets_gpx.rb +1 -1
  126. data/test/ets_node_gc.rb +1 -1
  127. data/test/ets_tsr.rb +1 -1
  128. data/test/tc_well_formed.rb +1 -1
  129. data/test/tc_xml_attributes.rb +106 -0
  130. data/test/tc_xml_document.rb +10 -10
  131. data/test/tc_xml_document_write3.rb +1 -1
  132. data/test/tc_xml_dtd.rb +49 -0
  133. data/test/tc_xml_html_parser.rb +3 -3
  134. data/test/tc_xml_node.rb +69 -33
  135. data/test/tc_xml_node_attr.rb +170 -0
  136. data/test/{tc_xml_node8.rb → tc_xml_node_cdata.rb} +2 -2
  137. data/test/{tc_xml_node9.rb → tc_xml_node_comment.rb} +3 -3
  138. data/test/tc_xml_node_edit.rb +91 -0
  139. data/test/tc_xml_parser.rb +97 -50
  140. data/test/tc_xml_parser_context.rb +61 -23
  141. data/test/tc_xml_schema.rb +39 -0
  142. data/test/tc_xml_xinclude.rb +5 -6
  143. data/test/tc_xml_xpath.rb +51 -27
  144. data/test/test_suite.rb +27 -0
  145. data/vc/{libxml.sln → libxml_ruby.sln} +5 -5
  146. data/vc/{libxml.vcproj → libxml_ruby.vcproj} +9 -1
  147. metadata +106 -54
  148. data/mingw/mingw.rake +0 -36
  149. data/test/dtd-test.rb +0 -24
  150. data/test/merge_bug.rb +0 -55
  151. data/test/schema-test.rb +0 -74
  152. data/test/tc_xml_node2.rb +0 -25
  153. data/test/tc_xml_node3.rb +0 -27
  154. data/test/tc_xml_node4.rb +0 -86
  155. data/test/tc_xml_node5.rb +0 -52
  156. data/test/tc_xml_node6.rb +0 -27
  157. data/test/tc_xml_node7.rb +0 -35
  158. data/test/tc_xml_parser2.rb +0 -16
  159. data/test/tc_xml_parser3.rb +0 -23
  160. data/test/tc_xml_parser4.rb +0 -33
  161. data/test/tc_xml_parser5.rb +0 -27
  162. data/test/tc_xml_parser6.rb +0 -23
  163. data/test/tc_xml_parser7.rb +0 -28
  164. data/test/tc_xml_parser8.rb +0 -32
  165. data/test/tc_xml_parser9.rb +0 -11
  166. data/test/tc_xml_xpath2.rb +0 -14
  167. data/work/vc/debug/libxml.exp +0 -0
  168. data/work/vc/debug/libxml.ilk +0 -0
  169. data/work/vc/debug/libxml.lib +0 -0
  170. data/work/vc/debug/libxml.pdb +0 -0
  171. data/work/vc/debug/libxml.so +0 -0
@@ -1,22 +1,22 @@
1
1
  require "libxml"
2
2
  require 'test/unit'
3
3
 
4
- class TC_XML_Parser_Context < Test::Unit::TestCase
5
- def setup()
4
+ class TestParserContext < Test::Unit::TestCase
5
+ def setup
6
6
  str = '<ruby_array uga="booga" foo="bar"><fixnum>one</fixnum><fixnum>two</fixnum></ruby_array>'
7
7
  xp = XML::Parser.string(str)
8
8
  assert_equal(str, xp.string = str)
9
9
  doc = xp.parse
10
10
  assert_instance_of(XML::Document, doc)
11
- @ctxt = xp.parser_context()
11
+ @ctxt = xp.context
12
12
  assert_instance_of(XML::Parser::Context, @ctxt)
13
13
  end
14
14
 
15
- def teardown()
15
+ def teardown
16
16
  @ctxt = nil
17
17
  end
18
18
 
19
- def test_libxml_parser_context_well_formed()
19
+ def test_well_formed
20
20
  if @ctxt.well_formed?
21
21
  assert_instance_of(TrueClass, @ctxt.well_formed?)
22
22
  else
@@ -24,35 +24,31 @@ class TC_XML_Parser_Context < Test::Unit::TestCase
24
24
  end
25
25
  end
26
26
 
27
- def test_ruby_xml_parser_context_version_info()
27
+ def test_version_info
28
28
  assert_instance_of(String, @ctxt.version)
29
29
  end
30
30
 
31
- def test_ruby_xml_parser_context_depth()
31
+ def test_depth
32
32
  assert_instance_of(Fixnum, @ctxt.depth)
33
33
  end
34
34
 
35
- def test_ruby_xml_parser_context_doc()
36
- assert_instance_of(XML::Document, @ctxt.doc)
37
- end
38
-
39
- def test_ruby_xml_parser_context_disable_sax()
35
+ def test_disable_sax
40
36
  assert(!@ctxt.disable_sax?)
41
37
  end
42
38
 
43
- def test_ruby_xml_parser_context_docbook()
39
+ def test_docbook
44
40
  assert(!@ctxt.docbook?)
45
41
  end
46
42
 
47
- def test_ruby_xml_parser_context_encoding()
43
+ def test_encoding
48
44
  assert(!@ctxt.encoding)
49
45
  end
50
46
 
51
- def test_ruby_xml_parser_context_html()
47
+ def test_html
52
48
  assert(!@ctxt.html?)
53
49
  end
54
50
 
55
- def test_ruby_xml_parser_context_keep_blanks()
51
+ def test_keep_blanks
56
52
  if @ctxt.keep_blanks?
57
53
  assert_instance_of(TrueClass, @ctxt.keep_blanks?)
58
54
  else
@@ -61,12 +57,12 @@ class TC_XML_Parser_Context < Test::Unit::TestCase
61
57
  end
62
58
 
63
59
  if ENV['NOTWORKING']
64
- def test_ruby_xml_parser_context_num_chars()
60
+ def test_num_chars
65
61
  assert_equal(17, @ctxt.num_chars)
66
62
  end
67
63
  end
68
64
 
69
- def test_ruby_xml_parser_context_replace_entities()
65
+ def test_replace_entities
70
66
  if @ctxt.replace_entities?
71
67
  assert_instance_of(TrueClass, @ctxt.replace_entities?)
72
68
  else
@@ -74,15 +70,57 @@ class TC_XML_Parser_Context < Test::Unit::TestCase
74
70
  end
75
71
  end
76
72
 
77
- def test_ruby_xml_parser_context_space_depth()
73
+ def test_space_depth
78
74
  assert_equal(1, @ctxt.space_depth)
79
75
  end
80
76
 
81
- def test_ruby_xml_parser_context_subset_external()
77
+ def test_subset_external
82
78
  assert(!@ctxt.subset_external?)
83
79
  end
84
80
 
85
- def test_ruby_xml_parser_context_data_directory_get()
86
- # assert_instance_of(String, @ctxt.data_directory)
81
+ def test_data_directory_get
82
+ assert_nil(@ctxt.data_directory)
87
83
  end
88
- end # TC_XML_Parser_Context
84
+
85
+ def test_parse_error
86
+ xp = XML::Parser.new
87
+ xp.string = '<foo><bar/></foz>'
88
+
89
+ assert_raise(XML::Parser::ParseError) do
90
+ xp.parse
91
+ end
92
+
93
+ # Now check context
94
+ context = xp.context
95
+ assert_equal(nil, context.data_directory)
96
+ assert_equal(0, context.depth)
97
+ assert_equal(true, context.disable_sax?)
98
+ assert_equal(false, context.docbook?)
99
+ assert_equal(nil, context.encoding)
100
+ assert_equal(76, context.errno)
101
+ assert_equal(false, context.html?)
102
+ assert_equal(5, context.io_max_num_streams)
103
+ assert_equal(1, context.io_num_streams)
104
+ assert_equal(true, context.keep_blanks?)
105
+ assert_equal(1, context.io_num_streams)
106
+ assert_equal(nil, context.name_node)
107
+ assert_equal(0, context.name_depth)
108
+ assert_equal(10, context.name_depth_max)
109
+ assert_equal(17, context.num_chars)
110
+ assert_equal(0, context.options)
111
+ assert_equal(true, context.replace_entities?)
112
+ assert_equal(1, context.space_depth)
113
+ assert_equal(10, context.space_depth_max)
114
+ assert_equal(false, context.subset_external?)
115
+ assert_equal(nil, context.subset_external_system_id)
116
+ assert_equal(nil, context.subset_external_uri)
117
+ assert_equal(false, context.subset_internal?)
118
+ assert_equal(nil, context.subset_internal_name)
119
+ assert_equal(false, context.stats?)
120
+ assert_equal(true, context.standalone?)
121
+ assert_equal(false, context.valid)
122
+ assert_equal(false, context.validate?)
123
+ assert_equal('1.0', context.version)
124
+ assert_equal(false, context.well_formed?)
125
+ end
126
+ end
@@ -0,0 +1,39 @@
1
+ require "libxml"
2
+ require 'test/unit'
3
+
4
+ class TestSchema < Test::Unit::TestCase
5
+ def setup
6
+ xp = XML::Parser.new
7
+ @doc = XML::Document.file('model/shiporder.xml')
8
+ end
9
+
10
+ def teardown
11
+ @doc = nil
12
+ end
13
+
14
+ def schema
15
+ document = XML::Document.file('model/shiporder.xsd')
16
+ schema = XML::Schema.document(document)
17
+ end
18
+
19
+ def test_from_doc
20
+ assert_instance_of(XML::Schema, schema)
21
+ end
22
+
23
+ def test_valid
24
+ assert(@doc.validate_schema(schema))
25
+ end
26
+
27
+ def test_invalid
28
+ new_node = XML::Node.new('invalid', 'this will mess up validation')
29
+ @doc.root.child_add(new_node)
30
+
31
+ messages = Hash.new
32
+ assert(!@doc.validate_schema(schema) do |message, error|
33
+ messages[message] = error
34
+ end)
35
+
36
+ expected = {"Element 'invalid': This element is not expected. Expected is ( item ).\n" => true}
37
+ assert_equal(expected, messages)
38
+ end
39
+ end
@@ -1,17 +1,17 @@
1
1
  require "libxml"
2
2
  require 'test/unit'
3
3
 
4
- class TC_XML_XInclude < Test::Unit::TestCase
5
- def setup()
4
+ class TextXInclude < Test::Unit::TestCase
5
+ def setup
6
6
  @doc = XML::Document.file('model/xinclude.xml')
7
7
  assert_instance_of(XML::Document, @doc)
8
8
  end
9
9
 
10
- def teardown()
10
+ def teardown
11
11
  @doc = nil
12
12
  end
13
13
 
14
- def test_ruby_xml_xinclude()
14
+ def test_ruby_xml_xinclude
15
15
  xinclude_doc = "<?xml version=\"1.0\"?>\n<document xmlns:xi=\"http://www.w3.org/2001/XInclude\">\n"
16
16
  xinclude_doc << " <p>This libxml2 binding has the following project information:\n <code>"
17
17
  msg = ''
@@ -26,5 +26,4 @@ class TC_XML_XInclude < Test::Unit::TestCase
26
26
  assert_equal(1, ret)
27
27
  assert_equal(xinclude_doc, @doc.to_s)
28
28
  end
29
- end
30
-
29
+ end
data/test/tc_xml_xpath.rb CHANGED
@@ -1,38 +1,62 @@
1
1
  require "libxml"
2
+ require "tempfile"
2
3
  require "test/unit"
3
4
 
4
- class TC_XML_XPath < Test::Unit::TestCase
5
+ class TextXPath < Test::Unit::TestCase
5
6
  def setup()
6
- xp = XML::Parser.new()
7
- str = '<ruby_array uga="booga" foo="bar"><fixnum>one</fixnum><fixnum>two</fixnum></ruby_array>'
8
- assert_equal(str, xp.string = str)
9
- doc = xp.parse
10
- assert_instance_of(XML::Document, doc)
11
- @xpt = doc.find('/ruby_array/fixnum')
12
- assert_instance_of(XML::XPath::Object, @xpt)
7
+ @doc = XML::Document.file('model/soap.xml')
13
8
  end
14
-
9
+
15
10
  def teardown()
16
- @xpt = nil
11
+ @doc = nil
17
12
  end
13
+
14
+ def test_basic
15
+ nodes = @doc.find('/soap:Envelope')
16
+ assert_instance_of(XML::XPath::Object, nodes)
17
+ assert_instance_of(XML::Node::Set, nodes.set)
18
+ assert_equal(1, nodes.length)
19
+ end
18
20
 
19
- def test_libxml_xpath_set()
20
- set = @xpt.set
21
- assert_instance_of(XML::Node::Set, set)
21
+ def test_ns
22
+ nodes = @doc.find('//ns1:IdAndName', 'ns1:http://domain.somewhere.com')
23
+ assert_equal(3, nodes.length)
24
+ end
25
+
26
+ def test_ns_array
27
+ nodes = @doc.find('//ns1:IdAndName', ['ns1:http://domain.somewhere.com'])
28
+ assert_equal(3, nodes.length)
22
29
  end
23
30
 
24
- def test_ary()
25
- assert_equal(2,@xpt.length)
26
- assert_equal("one",@xpt.first.content)
27
- assert_equal("one",@xpt[0].content)
28
- assert_equal("two",@xpt[1].content)
29
- assert_equal("two",@xpt[-1].content)
30
- assert_equal(nil,@xpt[-3])
31
- assert_equal(nil,@xpt[2])
32
-
33
- @xpt.inject(%w(one two).reverse) {|m,v|
34
- assert_equal(m.pop,v.content)
35
- m
36
- }
31
+ def test_default_ns
32
+ # Pull all nodes with http://services.somewhere.com namespace
33
+ nodes = @doc.find('//*[namespace-uri()="http://services.somewhere.com"]')
34
+ assert_equal(2, nodes.length)
35
+ assert_equal('getManufacturerNamesResponse', nodes[0].name)
36
+ assert_equal('IDAndNameList', nodes[1].name)
37
+
38
+ # Pull all nodes with http://services.somewhere.com namespace
39
+ nodes = @doc.find('//ns:*', 'ns:http://services.somewhere.com')
40
+ assert_equal(2, nodes.length)
41
+ assert_equal('getManufacturerNamesResponse', nodes[0].name)
42
+ assert_equal('IDAndNameList', nodes[1].name)
43
+
44
+ # Get getManufacturerNamesResponse node
45
+ nodes = @doc.find('//ns:getManufacturerNamesResponse', 'ns:http://services.somewhere.com')
46
+ assert_equal(1, nodes.length)
47
+
48
+ # Get IdAndName node
49
+ nodes = @doc.find('/soap:Envelope/soap:Body/ns0:getManufacturerNamesResponse/ns0:IDAndNameList/ns1:IdAndName',
50
+ ['ns0:http://services.somewhere.com', 'ns1:http://domain.somewhere.com'])
51
+ assert_equal(3, nodes.length)
37
52
  end
38
- end # TC_XML_Document
53
+
54
+ #def test_custom_function
55
+ #xml = Tempfile.new("xxx")
56
+ #xml.puts("<a/>")
57
+ #xml.close
58
+
59
+ #doc = XML::Document.file(xml.path)
60
+ #assert_nil(doc.find("//*[name(.)=normalize_space(' a ')]"))
61
+ #end
62
+ end
@@ -0,0 +1,27 @@
1
+ require 'tc_well_formed'
2
+ require 'tc_xml_attributes'
3
+ require 'tc_xml_document'
4
+ require 'tc_xml_document_write'
5
+ require 'tc_xml_document_write2'
6
+ require 'tc_xml_document_write3'
7
+ require 'tc_xml_dtd'
8
+ require 'tc_xml_html_parser'
9
+ require 'tc_xml_node'
10
+ require 'tc_xml_node_attr'
11
+ require 'tc_xml_node_cdata'
12
+ require 'tc_xml_node_comment'
13
+ require 'tc_xml_node_copy'
14
+ require 'tc_xml_node_edit'
15
+ require 'tc_xml_node_set'
16
+ require 'tc_xml_node_set2'
17
+ require 'tc_xml_node_text'
18
+ require 'tc_xml_node_xlink'
19
+ require 'tc_xml_parser'
20
+ require 'tc_xml_parser_context'
21
+ require 'tc_xml_reader'
22
+ require 'tc_xml_sax_parser'
23
+ require 'tc_xml_sax_parser2'
24
+ require 'tc_xml_schema'
25
+ require 'tc_xml_xinclude'
26
+ require 'tc_xml_xpath'
27
+ require 'tc_xml_xpointer'
@@ -1,7 +1,7 @@
1
1
  
2
2
  Microsoft Visual Studio Solution File, Format Version 9.00
3
3
  # Visual Studio 2005
4
- Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libxml", "libxml.vcproj", "{6DCFD1E6-224E-479C-BBD9-B6931DFCD02C}"
4
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libxml_ruby", "libxml_ruby.vcproj", "{0B65CD1D-EEB9-41AE-93BB-75496E504152}"
5
5
  EndProject
6
6
  Global
7
7
  GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -9,10 +9,10 @@ Global
9
9
  Release|Win32 = Release|Win32
10
10
  EndGlobalSection
11
11
  GlobalSection(ProjectConfigurationPlatforms) = postSolution
12
- {6DCFD1E6-224E-479C-BBD9-B6931DFCD02C}.Debug|Win32.ActiveCfg = Debug|Win32
13
- {6DCFD1E6-224E-479C-BBD9-B6931DFCD02C}.Debug|Win32.Build.0 = Debug|Win32
14
- {6DCFD1E6-224E-479C-BBD9-B6931DFCD02C}.Release|Win32.ActiveCfg = Release|Win32
15
- {6DCFD1E6-224E-479C-BBD9-B6931DFCD02C}.Release|Win32.Build.0 = Release|Win32
12
+ {0B65CD1D-EEB9-41AE-93BB-75496E504152}.Debug|Win32.ActiveCfg = Debug|Win32
13
+ {0B65CD1D-EEB9-41AE-93BB-75496E504152}.Debug|Win32.Build.0 = Debug|Win32
14
+ {0B65CD1D-EEB9-41AE-93BB-75496E504152}.Release|Win32.ActiveCfg = Release|Win32
15
+ {0B65CD1D-EEB9-41AE-93BB-75496E504152}.Release|Win32.Build.0 = Release|Win32
16
16
  EndGlobalSection
17
17
  GlobalSection(SolutionProperties) = preSolution
18
18
  HideSolutionNode = FALSE
@@ -62,7 +62,7 @@
62
62
  <Tool
63
63
  Name="VCLinkerTool"
64
64
  AdditionalDependencies="msvcrt-ruby18.lib libxml2.lib"
65
- OutputFile="C:\Development\ruby\lib\ruby\gems\1.8\gems\libxml-ruby-0.6.0-x86-mswin32-60\lib\libxml.so"
65
+ OutputFile="C:\Development\ruby\lib\ruby\gems\1.8\gems\libxml-ruby-0.6.0-x86-mswin32-60\lib\$(ProjectName).so"
66
66
  LinkIncremental="2"
67
67
  AdditionalLibraryDirectories="C:\Development\ruby\lib;&quot;C:\Development\msys\src\libxml2-2.6.32\win32\lib&quot;"
68
68
  GenerateDebugInformation="true"
@@ -194,6 +194,10 @@
194
194
  RelativePath="..\ext\libxml\ruby_xml_attr.c"
195
195
  >
196
196
  </File>
197
+ <File
198
+ RelativePath="..\ext\libxml\ruby_xml_attributes.c"
199
+ >
200
+ </File>
197
201
  <File
198
202
  RelativePath="..\ext\libxml\ruby_xml_document.c"
199
203
  >
@@ -288,6 +292,10 @@
288
292
  RelativePath="..\ext\libxml\ruby_xml_attr.h"
289
293
  >
290
294
  </File>
295
+ <File
296
+ RelativePath="..\ext\libxml\ruby_xml_attributes.h"
297
+ >
298
+ </File>
291
299
  <File
292
300
  RelativePath="..\ext\libxml\ruby_xml_document.h"
293
301
  >
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libxml-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: x86-mswin32-60
6
6
  authors:
7
7
  - Charlie Savage
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-07-02 00:00:00 -06:00
12
+ date: 2008-07-09 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -25,6 +25,89 @@ files:
25
25
  - README
26
26
  - LICENSE
27
27
  - CHANGES
28
+ - doc/classes
29
+ - doc/created.rid
30
+ - doc/files
31
+ - doc/fr_class_index.html
32
+ - doc/fr_file_index.html
33
+ - doc/fr_method_index.html
34
+ - doc/index.html
35
+ - doc/rdoc-style.css
36
+ - doc/classes/singleton.html
37
+ - doc/classes/XML
38
+ - doc/classes/XML.html
39
+ - doc/classes/XML/Attr.html
40
+ - doc/classes/XML/Attributes.html
41
+ - doc/classes/XML/Document.html
42
+ - doc/classes/XML/Dtd.html
43
+ - doc/classes/XML/Error.html
44
+ - doc/classes/XML/HTMLParser.html
45
+ - doc/classes/XML/InputCallbacks.html
46
+ - doc/classes/XML/Node
47
+ - doc/classes/XML/Node.html
48
+ - doc/classes/XML/NS.html
49
+ - doc/classes/XML/Parser
50
+ - doc/classes/XML/Parser.html
51
+ - doc/classes/XML/Reader.html
52
+ - doc/classes/XML/SaxParser.html
53
+ - doc/classes/XML/SiblingEnum.html
54
+ - doc/classes/XML/State.html
55
+ - doc/classes/XML/Tree.html
56
+ - doc/classes/XML/XInclude
57
+ - doc/classes/XML/XInclude.html
58
+ - doc/classes/XML/XMLParserOptions.html
59
+ - doc/classes/XML/XPath
60
+ - doc/classes/XML/XPath.html
61
+ - doc/classes/XML/XPointer
62
+ - doc/classes/XML/XPointer.html
63
+ - doc/classes/XML/Node/FailedModify.html
64
+ - doc/classes/XML/Node/Set.html
65
+ - doc/classes/XML/Node/SetNamespace.html
66
+ - doc/classes/XML/Node/UnknownType.html
67
+ - doc/classes/XML/Parser/Context.html
68
+ - doc/classes/XML/Parser/ParseError.html
69
+ - doc/classes/XML/XInclude/Error.html
70
+ - doc/classes/XML/XPath/Context.html
71
+ - doc/classes/XML/XPath/InvalidPath.html
72
+ - doc/classes/XML/XPath/Object.html
73
+ - doc/classes/XML/XPointer/Context
74
+ - doc/classes/XML/XPointer/Context.html
75
+ - doc/classes/XML/XPointer/InvalidExpression.html
76
+ - doc/classes/XML/XPointer/Context/InvalidPath.html
77
+ - doc/files/CHANGES.html
78
+ - doc/files/ext
79
+ - doc/files/lib
80
+ - doc/files/LICENSE.html
81
+ - doc/files/README.html
82
+ - doc/files/VERSION.html
83
+ - doc/files/ext/libxml
84
+ - doc/files/ext/libxml/cbg_c.html
85
+ - doc/files/ext/libxml/libxml_c.html
86
+ - doc/files/ext/libxml/ruby_xml_attributes_c.html
87
+ - doc/files/ext/libxml/ruby_xml_attr_c.html
88
+ - doc/files/ext/libxml/ruby_xml_document_c.html
89
+ - doc/files/ext/libxml/ruby_xml_dtd_c.html
90
+ - doc/files/ext/libxml/ruby_xml_html_parser_c.html
91
+ - doc/files/ext/libxml/ruby_xml_input_cbg_c.html
92
+ - doc/files/ext/libxml/ruby_xml_node_c.html
93
+ - doc/files/ext/libxml/ruby_xml_node_set_c.html
94
+ - doc/files/ext/libxml/ruby_xml_ns_c.html
95
+ - doc/files/ext/libxml/ruby_xml_parser_c.html
96
+ - doc/files/ext/libxml/ruby_xml_parser_context_c.html
97
+ - doc/files/ext/libxml/ruby_xml_reader_c.html
98
+ - doc/files/ext/libxml/ruby_xml_sax_parser_c.html
99
+ - doc/files/ext/libxml/ruby_xml_schema_c.html
100
+ - doc/files/ext/libxml/ruby_xml_state_c.html
101
+ - doc/files/ext/libxml/ruby_xml_tree_c.html
102
+ - doc/files/ext/libxml/ruby_xml_xinclude_c.html
103
+ - doc/files/ext/libxml/ruby_xml_xpath_c.html
104
+ - doc/files/ext/libxml/ruby_xml_xpath_context_c.html
105
+ - doc/files/ext/libxml/ruby_xml_xpath_object_c.html
106
+ - doc/files/ext/libxml/ruby_xml_xpointer_c.html
107
+ - doc/files/ext/libxml/ruby_xml_xpointer_context_c.html
108
+ - doc/files/lib/libxml_rb.html
109
+ - doc/files/lib/xml
110
+ - doc/files/lib/xml/libxml_rb.html
28
111
  - ext/libxml
29
112
  - ext/libxml/cbg.c
30
113
  - ext/libxml/extconf.rb
@@ -32,6 +115,8 @@ files:
32
115
  - ext/libxml/ruby_libxml.h
33
116
  - ext/libxml/ruby_xml_attr.c
34
117
  - ext/libxml/ruby_xml_attr.h
118
+ - ext/libxml/ruby_xml_attributes.c
119
+ - ext/libxml/ruby_xml_attributes.h
35
120
  - ext/libxml/ruby_xml_document.c
36
121
  - ext/libxml/ruby_xml_document.h
37
122
  - ext/libxml/ruby_xml_dtd.c
@@ -77,11 +162,9 @@ files:
77
162
  - lib/libxml.rb
78
163
  - lib/xml
79
164
  - lib/xml/libxml.rb
80
- - mingw/mingw.rake
81
165
  - mingw/libiconv-2.dll
82
166
  - mingw/libxml2-2.dll
83
167
  - mingw/libxml_ruby.so
84
- - test/dtd-test.rb
85
168
  - test/etc_doc_to_s.rb
86
169
  - test/ets_copy_bug.rb
87
170
  - test/ets_copy_bug2.rb
@@ -93,52 +176,40 @@ files:
93
176
  - test/ets_test.xml
94
177
  - test/ets_tsr.rb
95
178
  - test/gc.log
96
- - test/merge_bug.rb
97
179
  - test/model
98
- - test/schema-test.rb
99
180
  - test/tc_well_formed.rb
181
+ - test/tc_xml_attributes.rb
100
182
  - test/tc_xml_document.rb
101
183
  - test/tc_xml_document_write.rb
102
184
  - test/tc_xml_document_write2.rb
103
185
  - test/tc_xml_document_write3.rb
186
+ - test/tc_xml_dtd.rb
104
187
  - test/tc_xml_html_parser.rb
105
188
  - test/tc_xml_node.rb
106
- - test/tc_xml_node2.rb
107
- - test/tc_xml_node3.rb
108
- - test/tc_xml_node4.rb
109
- - test/tc_xml_node5.rb
110
- - test/tc_xml_node6.rb
111
- - test/tc_xml_node7.rb
112
- - test/tc_xml_node8.rb
113
- - test/tc_xml_node9.rb
189
+ - test/tc_xml_node_attr.rb
190
+ - test/tc_xml_node_cdata.rb
191
+ - test/tc_xml_node_comment.rb
114
192
  - test/tc_xml_node_copy.rb
193
+ - test/tc_xml_node_edit.rb
115
194
  - test/tc_xml_node_set.rb
116
195
  - test/tc_xml_node_set2.rb
117
196
  - test/tc_xml_node_text.rb
118
197
  - test/tc_xml_node_xlink.rb
119
198
  - test/tc_xml_parser.rb
120
- - test/tc_xml_parser2.rb
121
- - test/tc_xml_parser3.rb
122
- - test/tc_xml_parser4.rb
123
- - test/tc_xml_parser5.rb
124
- - test/tc_xml_parser6.rb
125
- - test/tc_xml_parser7.rb
126
- - test/tc_xml_parser8.rb
127
- - test/tc_xml_parser9.rb
128
199
  - test/tc_xml_parser_context.rb
129
200
  - test/tc_xml_reader.rb
130
201
  - test/tc_xml_sax_parser.rb
131
202
  - test/tc_xml_sax_parser2.rb
203
+ - test/tc_xml_schema.rb
132
204
  - test/tc_xml_xinclude.rb
133
205
  - test/tc_xml_xpath.rb
134
- - test/tc_xml_xpath2.rb
135
206
  - test/tc_xml_xpointer.rb
136
- - vc/libxml.sln
137
- - vc/libxml.vcproj
207
+ - test/test_suite.rb
208
+ - vc/libxml_ruby.sln
209
+ - vc/libxml_ruby.vcproj
138
210
  - work/Rakefile
139
211
  - work/task
140
212
  - work/test
141
- - work/vc
142
213
  - work/task/make
143
214
  - work/task/memory
144
215
  - work/task/rdoc
@@ -148,21 +219,12 @@ files:
148
219
  - work/test/libxml_test.rb
149
220
  - work/test/runner.rb
150
221
  - work/test/runner_ets.rb
151
- - work/vc/debug
152
- - work/vc/debug/libxml.exp
153
- - work/vc/debug/libxml.ilk
154
- - work/vc/debug/libxml.lib
155
- - work/vc/debug/libxml.pdb
156
- - work/vc/debug/libxml.so
157
222
  - lib/libxml_ruby.so
158
223
  has_rdoc: true
159
224
  homepage: http://libxml.rubyforge.org/
160
225
  post_install_message:
161
- rdoc_options:
162
- - --title
163
- - libxml-ruby
164
- - --inline-source
165
- - --line-numbers
226
+ rdoc_options: []
227
+
166
228
  require_paths:
167
229
  - lib
168
230
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -186,39 +248,29 @@ specification_version: 2
186
248
  summary: Ruby libxml bindings
187
249
  test_files:
188
250
  - test/tc_well_formed.rb
251
+ - test/tc_xml_attributes.rb
189
252
  - test/tc_xml_document.rb
190
253
  - test/tc_xml_document_write.rb
191
254
  - test/tc_xml_document_write2.rb
192
255
  - test/tc_xml_document_write3.rb
256
+ - test/tc_xml_dtd.rb
193
257
  - test/tc_xml_html_parser.rb
194
258
  - test/tc_xml_node.rb
195
- - test/tc_xml_node2.rb
196
- - test/tc_xml_node3.rb
197
- - test/tc_xml_node4.rb
198
- - test/tc_xml_node5.rb
199
- - test/tc_xml_node6.rb
200
- - test/tc_xml_node7.rb
201
- - test/tc_xml_node8.rb
202
- - test/tc_xml_node9.rb
259
+ - test/tc_xml_node_attr.rb
260
+ - test/tc_xml_node_cdata.rb
261
+ - test/tc_xml_node_comment.rb
203
262
  - test/tc_xml_node_copy.rb
263
+ - test/tc_xml_node_edit.rb
204
264
  - test/tc_xml_node_set.rb
205
265
  - test/tc_xml_node_set2.rb
206
266
  - test/tc_xml_node_text.rb
207
267
  - test/tc_xml_node_xlink.rb
208
268
  - test/tc_xml_parser.rb
209
- - test/tc_xml_parser2.rb
210
- - test/tc_xml_parser3.rb
211
- - test/tc_xml_parser4.rb
212
- - test/tc_xml_parser5.rb
213
- - test/tc_xml_parser6.rb
214
- - test/tc_xml_parser7.rb
215
- - test/tc_xml_parser8.rb
216
- - test/tc_xml_parser9.rb
217
269
  - test/tc_xml_parser_context.rb
218
270
  - test/tc_xml_reader.rb
219
271
  - test/tc_xml_sax_parser.rb
220
272
  - test/tc_xml_sax_parser2.rb
273
+ - test/tc_xml_schema.rb
221
274
  - test/tc_xml_xinclude.rb
222
275
  - test/tc_xml_xpath.rb
223
- - test/tc_xml_xpath2.rb
224
276
  - test/tc_xml_xpointer.rb