libxml-ruby 0.3.8 → 0.3.8.2

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.
@@ -0,0 +1,32 @@
1
+ require "libxml_test"
2
+ require 'test/unit'
3
+
4
+ class TC_XML_Node8 < Test::Unit::TestCase
5
+ def setup()
6
+ xp = XML::Parser.new()
7
+ str = '<root></root>'
8
+ assert_equal(str, xp.string = str)
9
+ @doc = xp.parse
10
+ assert_instance_of(XML::Document, @doc)
11
+ @root = @doc.root
12
+ end
13
+
14
+ def test_libxml_node_add_cdata_01
15
+ @root << XML::Node.new_cdata('mycdata')
16
+ assert_equal '<root><![CDATA[mycdata]]></root>',
17
+ @root.to_s.gsub(/\n\s*/,'')
18
+ end
19
+
20
+ def test_libxml_node_add_cdata_02
21
+ @root << XML::Node.new_cdata('mycdata')
22
+ assert_equal 'cdata',
23
+ @root.child.node_type_name
24
+ end
25
+
26
+ def test_libxml_node_add_cdata_03
27
+ @root << el = XML::Node.new_cdata('mycdata')
28
+ el << "_this_is_added"
29
+ assert_equal '<root><![CDATA[mycdata_this_is_added]]></root>',
30
+ @root.to_s.gsub(/\n\s*/,'')
31
+ end
32
+ end
@@ -0,0 +1,32 @@
1
+ require "libxml_test"
2
+ require 'test/unit'
3
+
4
+ class TC_XML_Node9 < Test::Unit::TestCase
5
+ def setup()
6
+ xp = XML::Parser.new()
7
+ str = '<root></root>'
8
+ assert_equal(str, xp.string = str)
9
+ @doc = xp.parse
10
+ assert_instance_of(XML::Document, @doc)
11
+ @root = @doc.root
12
+ end
13
+
14
+ def test_libxml_node_add_comment_01
15
+ @root << XML::Node.new_comment('mycomment')
16
+ assert_equal '<root><!--mycomment--></root>',
17
+ @root.to_s.gsub(/\n\s*/,'')
18
+ end
19
+
20
+ def test_libxml_node_add_comment_02
21
+ @root << XML::Node.new_comment('mycomment')
22
+ assert_equal 'comment',
23
+ @root.child.node_type_name
24
+ end
25
+
26
+ def test_libxml_node_add_comment_03
27
+ @root << el = XML::Node.new_comment('mycomment')
28
+ el << "_this_is_added"
29
+ assert_equal '<root><!--mycomment_this_is_added--></root>',
30
+ @root.to_s.gsub(/\n\s*/,'')
31
+ end
32
+ end
@@ -1,8 +1,8 @@
1
- # $Id: tc_xml_node_set2.rb,v 1.2 2006/04/17 13:30:18 roscopeco Exp $
1
+ # $Id: tc_xml_node_set2.rb,v 1.3 2006/11/20 01:22:08 roscopeco Exp $
2
2
  require "libxml_test"
3
3
  require 'test/unit'
4
4
 
5
- class TC_XML_Node_Set < Test::Unit::TestCase
5
+ class TC_XML_Node_Set2 < Test::Unit::TestCase
6
6
  def setup()
7
7
  xp = XML::Parser.new()
8
8
  str = '<ruby_array uga="booga" foo="bar"><fixnum>one</fixnum><fixnum>two</fixnum></ruby_array>'
@@ -1,8 +1,8 @@
1
- # $Id: tc_xml_node_xlink.rb,v 1.3 2006/04/17 13:30:18 roscopeco Exp $
1
+ # $Id: tc_xml_node_xlink.rb,v 1.4 2006/11/20 01:22:08 roscopeco Exp $
2
2
  require "libxml_test"
3
3
  require 'test/unit'
4
4
 
5
- class TC_XML_Node3 < Test::Unit::TestCase
5
+ class TC_XML_Node_XLink < Test::Unit::TestCase
6
6
  def setup()
7
7
  xp = XML::Parser.new()
8
8
  str = '<ruby_array xmlns:xlink="http://www.w3.org/1999/xlink/namespace/"><fixnum xlink:type="simple">one</fixnum></ruby_array>'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.11
2
+ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: libxml-ruby
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.3.8
7
- date: 2006-04-24 00:00:00 +01:00
6
+ version: 0.3.8.2
7
+ date: 2006-11-22 00:00:00 +00:00
8
8
  summary: LibXML2 bindings for Ruby
9
9
  require_paths:
10
- - ext
10
+ - lib
11
11
  email: libxml-devel@rubyforge.org
12
12
  homepage: http://libxml.rubyforge.org
13
13
  rubyforge_project: libxml
@@ -25,9 +25,11 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
25
25
  platform: ruby
26
26
  signing_key:
27
27
  cert_chain:
28
+ post_install_message:
28
29
  authors:
29
30
  - Sean Chittenden
30
31
  files:
32
+ - ext/xml/libxml.rb
31
33
  - ext/xml/extconf.rb
32
34
  - Rakefile
33
35
  - README
@@ -76,15 +78,20 @@ files:
76
78
  - ext/xml/libxml.h
77
79
  - tests/test_xml_sax_parser.rb
78
80
  - tests/tc_xml_node2.rb
81
+ - tests/tc_xml_node8.rb
82
+ - tests/copy_bug2.rb
79
83
  - tests/tc_xml_parser2.rb
80
84
  - tests/tc_xml_parser.rb
81
85
  - tests/tc_xml_node3.rb
82
86
  - tests/model
87
+ - tests/tc_xml_node9.rb
83
88
  - tests/tc_xml_parser3.rb
84
89
  - tests/tc_xml_parser_context.rb
85
90
  - tests/tc_xml_node.rb
86
91
  - tests/tc_xml_node4.rb
87
92
  - tests/tc_xml_parser8.rb
93
+ - tests/tc_xml_node6.rb
94
+ - tests/tc_xml_node7.rb
88
95
  - tests/tc_xml_node_set.rb
89
96
  - tests/tc_xml_parser4.rb
90
97
  - tests/tc_xml_document_write2.rb
@@ -93,11 +100,13 @@ files:
93
100
  - tests/tc_xml_node_xlink.rb
94
101
  - tests/libxml_test.rb
95
102
  - tests/runner.rb
103
+ - tests/tc_xml_node5.rb
96
104
  - tests/tc_xml_xinclude.rb
97
105
  - tests/tc_xml_parser5.rb
98
106
  - tests/schema-test.rb
99
107
  - tests/tc_xml_xpointer.rb
100
108
  - tests/tc_xml_node_set2.rb
109
+ - tests/merge_bug.rb
101
110
  - tests/tc_xml_document.rb
102
111
  - tests/tc_xml_parser6.rb
103
112
  - tests/copy_bug.rb
@@ -109,7 +118,7 @@ files:
109
118
  - tests/model/default_validation_bug.rb
110
119
  - tests/model/saxtest.xml
111
120
  - tests/model/xinclude.xml
112
- - ext/xml/libxml.rb
121
+ - tests/model/merge_bug_data.xml
113
122
  test_files:
114
123
  - tests/runner.rb
115
124
  rdoc_options:
@@ -140,7 +149,6 @@ extra_rdoc_files:
140
149
  - ext/xml/ruby_xml_xpath_context.c
141
150
  - ext/xml/ruby_xml_input_cbg.c
142
151
  - ext/xml/libxml.rb
143
- - ext/xml/extconf.rb
144
152
  executables: []
145
153
 
146
154
  extensions: