libxml-ruby 1.1.3 → 1.1.4

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 (92) hide show
  1. data/CHANGES +1 -1
  2. data/LICENSE +22 -22
  3. data/README +160 -160
  4. data/Rakefile +0 -9
  5. data/ext/libxml/Makefile +156 -0
  6. data/ext/libxml/extconf.h +5 -0
  7. data/ext/libxml/extconf.rb +4 -160
  8. data/ext/libxml/libxml-ruby.so.a +0 -0
  9. data/ext/libxml/libxml.o +0 -0
  10. data/ext/libxml/libxml_ruby.so +0 -0
  11. data/ext/libxml/mkmf.log +129 -0
  12. data/ext/libxml/ruby_xml.o +0 -0
  13. data/ext/libxml/ruby_xml_attr.c +1 -1
  14. data/ext/libxml/ruby_xml_attr.h +1 -1
  15. data/ext/libxml/ruby_xml_attr.o +0 -0
  16. data/ext/libxml/ruby_xml_attr_decl.o +0 -0
  17. data/ext/libxml/ruby_xml_attributes.o +0 -0
  18. data/ext/libxml/ruby_xml_cbg.o +0 -0
  19. data/ext/libxml/ruby_xml_document.c +936 -936
  20. data/ext/libxml/ruby_xml_document.h +1 -1
  21. data/ext/libxml/ruby_xml_document.o +0 -0
  22. data/ext/libxml/ruby_xml_dtd.o +0 -0
  23. data/ext/libxml/ruby_xml_encoding.o +0 -0
  24. data/ext/libxml/ruby_xml_error.o +0 -0
  25. data/ext/libxml/ruby_xml_html_parser.c +1 -1
  26. data/ext/libxml/ruby_xml_html_parser.h +1 -1
  27. data/ext/libxml/ruby_xml_html_parser.o +0 -0
  28. data/ext/libxml/ruby_xml_html_parser_context.o +0 -0
  29. data/ext/libxml/ruby_xml_html_parser_options.o +0 -0
  30. data/ext/libxml/ruby_xml_input_cbg.o +0 -0
  31. data/ext/libxml/ruby_xml_io.o +0 -0
  32. data/ext/libxml/ruby_xml_namespace.c +1 -1
  33. data/ext/libxml/ruby_xml_namespace.h +1 -1
  34. data/ext/libxml/ruby_xml_namespace.o +0 -0
  35. data/ext/libxml/ruby_xml_namespaces.o +0 -0
  36. data/ext/libxml/ruby_xml_node.c +1386 -1386
  37. data/ext/libxml/ruby_xml_node.h +1 -1
  38. data/ext/libxml/ruby_xml_node.o +0 -0
  39. data/ext/libxml/ruby_xml_parser.c +1 -1
  40. data/ext/libxml/ruby_xml_parser.h +1 -1
  41. data/ext/libxml/ruby_xml_parser.o +0 -0
  42. data/ext/libxml/ruby_xml_parser_context.c +1 -1
  43. data/ext/libxml/ruby_xml_parser_context.h +1 -1
  44. data/ext/libxml/ruby_xml_parser_context.o +0 -0
  45. data/ext/libxml/ruby_xml_parser_options.o +0 -0
  46. data/ext/libxml/ruby_xml_reader.o +0 -0
  47. data/ext/libxml/ruby_xml_relaxng.o +0 -0
  48. data/ext/libxml/ruby_xml_sax2_handler.o +0 -0
  49. data/ext/libxml/ruby_xml_sax_parser.c +1 -1
  50. data/ext/libxml/ruby_xml_sax_parser.h +1 -1
  51. data/ext/libxml/ruby_xml_sax_parser.o +0 -0
  52. data/ext/libxml/ruby_xml_schema.o +0 -0
  53. data/ext/libxml/ruby_xml_version.h +3 -3
  54. data/ext/libxml/ruby_xml_xinclude.c +1 -1
  55. data/ext/libxml/ruby_xml_xinclude.h +1 -1
  56. data/ext/libxml/ruby_xml_xinclude.o +0 -0
  57. data/ext/libxml/ruby_xml_xpath.c +1 -1
  58. data/ext/libxml/ruby_xml_xpath.h +1 -1
  59. data/ext/libxml/ruby_xml_xpath.o +0 -0
  60. data/ext/libxml/ruby_xml_xpath_context.c +1 -1
  61. data/ext/libxml/ruby_xml_xpath_context.h +1 -1
  62. data/ext/libxml/ruby_xml_xpath_context.o +0 -0
  63. data/ext/libxml/ruby_xml_xpath_expression.o +0 -0
  64. data/ext/libxml/ruby_xml_xpath_object.o +0 -0
  65. data/ext/libxml/ruby_xml_xpointer.c +1 -1
  66. data/ext/libxml/ruby_xml_xpointer.h +1 -1
  67. data/ext/libxml/ruby_xml_xpointer.o +0 -0
  68. data/ext/mingw/build.rake +3 -3
  69. data/lib/libxml.rb +29 -29
  70. data/test/model/merge_bug_data.xml +58 -58
  71. data/test/model/rubynet.xml +79 -79
  72. data/test/model/xinclude.xml +4 -4
  73. data/test/tc_attr.rb +170 -170
  74. data/test/tc_document.rb +113 -113
  75. data/test/tc_document_write.rb +117 -117
  76. data/test/tc_dtd.rb +123 -123
  77. data/test/tc_html_parser.rb +137 -137
  78. data/test/tc_node.rb +180 -180
  79. data/test/tc_node_cdata.rb +49 -49
  80. data/test/tc_node_comment.rb +30 -30
  81. data/test/tc_node_edit.rb +157 -157
  82. data/test/tc_node_xlink.rb +26 -26
  83. data/test/tc_parser.rb +329 -329
  84. data/test/tc_parser_context.rb +185 -185
  85. data/test/tc_reader.rb +283 -283
  86. data/test/tc_sax_parser.rb +273 -273
  87. data/test/tc_schema.rb +51 -51
  88. data/test/tc_xinclude.rb +19 -19
  89. data/test/tc_xpath.rb +193 -193
  90. data/test/tc_xpointer.rb +72 -72
  91. metadata +55 -14
  92. data/ext/libxml/build.log +0 -4
@@ -1,72 +1,72 @@
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
+ 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
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libxml-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 1
8
+ - 4
9
+ version: 1.1.4
5
10
  platform: ruby
6
11
  authors:
7
12
  - Charlie Savage
@@ -9,11 +14,11 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2009-03-21 00:00:00 -06:00
17
+ date: 2010-05-02 00:00:00 -06:00
13
18
  default_executable:
14
19
  dependencies: []
15
20
 
16
- description: The Libxml-Ruby project provides Ruby language bindings for the GNOME Libxml2 XML toolkit. It is free software, released under the MIT License. Libxml-ruby's primary advantage over REXML is performance - if speed is your need, these are good libraries to consider, as demonstrated by the informal benchmark below.
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"
17
22
  email: libxml-devel@rubyforge.org
18
23
  executables: []
19
24
 
@@ -27,9 +32,7 @@ files:
27
32
  - LICENSE
28
33
  - README
29
34
  - setup.rb
30
- - doc/css
31
35
  - doc/css/normal.css
32
- - doc/img
33
36
  - doc/img/raze-tiny.png
34
37
  - doc/img/red-cube.jpg
35
38
  - doc/img/xml-ruby.png
@@ -38,79 +41,113 @@ files:
38
41
  - doc/layout.rhtml
39
42
  - doc/layout.xsl
40
43
  - doc/license.xml
41
- - doc/log
42
44
  - doc/log/changelog.xml
43
45
  - doc/log/changelog.xsl
44
- - ext/libxml/build.log
46
+ - ext/libxml/extconf.h
45
47
  - ext/libxml/extconf.rb
48
+ - ext/libxml/libxml-ruby.so.a
46
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
47
54
  - ext/libxml/ruby_libxml.h
48
55
  - ext/libxml/ruby_xml.c
49
56
  - ext/libxml/ruby_xml.h
57
+ - ext/libxml/ruby_xml.o
50
58
  - ext/libxml/ruby_xml_attr.c
51
59
  - ext/libxml/ruby_xml_attr.h
60
+ - ext/libxml/ruby_xml_attr.o
52
61
  - ext/libxml/ruby_xml_attributes.c
53
62
  - ext/libxml/ruby_xml_attributes.h
63
+ - ext/libxml/ruby_xml_attributes.o
54
64
  - ext/libxml/ruby_xml_attr_decl.c
55
65
  - ext/libxml/ruby_xml_attr_decl.h
66
+ - ext/libxml/ruby_xml_attr_decl.o
56
67
  - ext/libxml/ruby_xml_cbg.c
68
+ - ext/libxml/ruby_xml_cbg.o
57
69
  - ext/libxml/ruby_xml_document.c
58
70
  - ext/libxml/ruby_xml_document.h
71
+ - ext/libxml/ruby_xml_document.o
59
72
  - ext/libxml/ruby_xml_dtd.c
60
73
  - ext/libxml/ruby_xml_dtd.h
74
+ - ext/libxml/ruby_xml_dtd.o
61
75
  - ext/libxml/ruby_xml_encoding.c
62
76
  - ext/libxml/ruby_xml_encoding.h
77
+ - ext/libxml/ruby_xml_encoding.o
63
78
  - ext/libxml/ruby_xml_error.c
64
79
  - ext/libxml/ruby_xml_error.h
80
+ - ext/libxml/ruby_xml_error.o
65
81
  - ext/libxml/ruby_xml_html_parser.c
66
82
  - ext/libxml/ruby_xml_html_parser.h
83
+ - ext/libxml/ruby_xml_html_parser.o
67
84
  - ext/libxml/ruby_xml_html_parser_context.c
68
85
  - ext/libxml/ruby_xml_html_parser_context.h
86
+ - ext/libxml/ruby_xml_html_parser_context.o
69
87
  - ext/libxml/ruby_xml_html_parser_options.c
70
88
  - ext/libxml/ruby_xml_html_parser_options.h
89
+ - ext/libxml/ruby_xml_html_parser_options.o
71
90
  - ext/libxml/ruby_xml_input_cbg.c
72
91
  - ext/libxml/ruby_xml_input_cbg.h
92
+ - ext/libxml/ruby_xml_input_cbg.o
73
93
  - ext/libxml/ruby_xml_io.c
74
94
  - ext/libxml/ruby_xml_io.h
95
+ - ext/libxml/ruby_xml_io.o
75
96
  - ext/libxml/ruby_xml_namespace.c
76
97
  - ext/libxml/ruby_xml_namespace.h
98
+ - ext/libxml/ruby_xml_namespace.o
77
99
  - ext/libxml/ruby_xml_namespaces.c
78
100
  - ext/libxml/ruby_xml_namespaces.h
101
+ - ext/libxml/ruby_xml_namespaces.o
79
102
  - ext/libxml/ruby_xml_node.c
80
103
  - ext/libxml/ruby_xml_node.h
104
+ - ext/libxml/ruby_xml_node.o
81
105
  - ext/libxml/ruby_xml_parser.c
82
106
  - ext/libxml/ruby_xml_parser.h
107
+ - ext/libxml/ruby_xml_parser.o
83
108
  - ext/libxml/ruby_xml_parser_context.c
84
109
  - ext/libxml/ruby_xml_parser_context.h
110
+ - ext/libxml/ruby_xml_parser_context.o
85
111
  - ext/libxml/ruby_xml_parser_options.c
86
112
  - ext/libxml/ruby_xml_parser_options.h
113
+ - ext/libxml/ruby_xml_parser_options.o
87
114
  - ext/libxml/ruby_xml_reader.c
88
115
  - ext/libxml/ruby_xml_reader.h
116
+ - ext/libxml/ruby_xml_reader.o
89
117
  - ext/libxml/ruby_xml_relaxng.c
90
118
  - ext/libxml/ruby_xml_relaxng.h
119
+ - ext/libxml/ruby_xml_relaxng.o
91
120
  - ext/libxml/ruby_xml_sax2_handler.c
92
121
  - ext/libxml/ruby_xml_sax2_handler.h
122
+ - ext/libxml/ruby_xml_sax2_handler.o
93
123
  - ext/libxml/ruby_xml_sax_parser.c
94
124
  - ext/libxml/ruby_xml_sax_parser.h
125
+ - ext/libxml/ruby_xml_sax_parser.o
95
126
  - ext/libxml/ruby_xml_schema.c
96
127
  - ext/libxml/ruby_xml_schema.h
128
+ - ext/libxml/ruby_xml_schema.o
97
129
  - ext/libxml/ruby_xml_version.h
98
130
  - ext/libxml/ruby_xml_xinclude.c
99
131
  - ext/libxml/ruby_xml_xinclude.h
132
+ - ext/libxml/ruby_xml_xinclude.o
100
133
  - ext/libxml/ruby_xml_xpath.c
101
134
  - ext/libxml/ruby_xml_xpath.h
135
+ - ext/libxml/ruby_xml_xpath.o
102
136
  - ext/libxml/ruby_xml_xpath_context.c
103
137
  - ext/libxml/ruby_xml_xpath_context.h
138
+ - ext/libxml/ruby_xml_xpath_context.o
104
139
  - ext/libxml/ruby_xml_xpath_expression.c
105
140
  - ext/libxml/ruby_xml_xpath_expression.h
141
+ - ext/libxml/ruby_xml_xpath_expression.o
106
142
  - ext/libxml/ruby_xml_xpath_object.c
107
143
  - ext/libxml/ruby_xml_xpath_object.h
144
+ - ext/libxml/ruby_xml_xpath_object.o
108
145
  - ext/libxml/ruby_xml_xpointer.c
109
146
  - ext/libxml/ruby_xml_xpointer.h
147
+ - ext/libxml/ruby_xml_xpointer.o
110
148
  - ext/mingw/Rakefile
111
149
  - ext/mingw/build.rake
112
150
  - ext/vc/libxml_ruby.sln
113
- - lib/libxml
114
151
  - lib/libxml/attr.rb
115
152
  - lib/libxml/attributes.rb
116
153
  - lib/libxml/attr_decl.rb
@@ -130,7 +167,6 @@ files:
130
167
  - lib/libxml/tree.rb
131
168
  - lib/libxml/xpath_object.rb
132
169
  - lib/libxml.rb
133
- - lib/xml
134
170
  - lib/xml/libxml.rb
135
171
  - lib/xml.rb
136
172
  - test/etc_doc_to_s.rb
@@ -140,7 +176,6 @@ files:
140
176
  - test/ets_node_gc.rb
141
177
  - test/ets_test.xml
142
178
  - test/ets_tsr.rb
143
- - test/model
144
179
  - test/model/atom.xml
145
180
  - test/model/bands.xml
146
181
  - test/model/books.xml
@@ -190,6 +225,8 @@ files:
190
225
  - test/test_suite.rb
191
226
  has_rdoc: true
192
227
  homepage: http://libxml.rubyforge.org/
228
+ licenses: []
229
+
193
230
  post_install_message:
194
231
  rdoc_options: []
195
232
 
@@ -200,20 +237,24 @@ required_ruby_version: !ruby/object:Gem::Requirement
200
237
  requirements:
201
238
  - - ">="
202
239
  - !ruby/object:Gem::Version
240
+ segments:
241
+ - 1
242
+ - 8
243
+ - 4
203
244
  version: 1.8.4
204
- version:
205
245
  required_rubygems_version: !ruby/object:Gem::Requirement
206
246
  requirements:
207
247
  - - ">="
208
248
  - !ruby/object:Gem::Version
249
+ segments:
250
+ - 0
209
251
  version: "0"
210
- version:
211
252
  requirements: []
212
253
 
213
254
  rubyforge_project: libxml
214
- rubygems_version: 1.3.1
255
+ rubygems_version: 1.3.6
215
256
  signing_key:
216
- specification_version: 2
257
+ specification_version: 3
217
258
  summary: Ruby libxml bindings
218
259
  test_files:
219
260
  - test/tc_attr.rb
@@ -1,4 +0,0 @@
1
- rake aborted!
2
- No Rakefile found (looking for: build.rake)
3
- c:/Development/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2343:in `raw_load_rakefile'
4
- (See full trace by running task with --trace)