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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (188) hide show
  1. data/CHANGES +24 -1
  2. data/README +48 -3
  3. data/benchmark/depixelate.rb +632 -0
  4. data/benchmark/hamlet.xml +9055 -0
  5. data/benchmark/sock_entries.xml +507 -0
  6. data/benchmark/throughput.rb +39 -0
  7. data/benchmark/xml_benchmarks.rb +222 -0
  8. data/doc/classes/LibXML.html +237 -0
  9. data/doc/classes/LibXML/XML.html +178 -0
  10. data/doc/classes/{XML → LibXML/XML}/Attr.html +213 -182
  11. data/doc/classes/{XML → LibXML/XML}/Attributes.html +126 -54
  12. data/doc/classes/{XML → LibXML/XML}/Document.html +299 -297
  13. data/doc/classes/{XML → LibXML/XML}/Dtd.html +10 -10
  14. data/doc/classes/{XML/XInclude → LibXML/XML}/Error.html +4 -4
  15. data/doc/classes/{XML → LibXML/XML}/HTMLParser.html +40 -40
  16. data/doc/classes/{XML → LibXML/XML}/InputCallbacks.html +10 -10
  17. data/doc/classes/{XML → LibXML/XML}/NS.html +46 -46
  18. data/doc/classes/{XML → LibXML/XML}/Node.html +935 -788
  19. data/doc/classes/LibXML/XML/Node/FailedModify.html +111 -0
  20. data/doc/classes/{XML → LibXML/XML}/Node/Set.html +69 -68
  21. data/doc/classes/{XML → LibXML/XML}/Node/SetNamespace.html +4 -4
  22. data/doc/classes/{XML/Node/FailedModify.html → LibXML/XML/Node/UnknownType.html} +4 -4
  23. data/doc/classes/{XML → LibXML/XML}/Parser.html +426 -389
  24. data/doc/classes/{XML → LibXML/XML}/Parser/Context.html +208 -208
  25. data/doc/classes/{XML → LibXML/XML}/Parser/ParseError.html +4 -4
  26. data/doc/classes/{XML → LibXML/XML}/Reader.html +288 -287
  27. data/doc/classes/{XML → LibXML/XML}/SaxParser.html +52 -52
  28. data/doc/classes/{XML/XPath/Context.html → LibXML/XML/Schema.html} +60 -32
  29. data/doc/classes/{XML → LibXML/XML}/State.html +4 -4
  30. data/doc/classes/{XML/Node/UnknownType.html → LibXML/XML/Tree.html} +5 -5
  31. data/doc/classes/{XML → LibXML/XML}/XInclude.html +5 -5
  32. data/doc/classes/{XML → LibXML/XML/XInclude}/Error.html +5 -5
  33. data/doc/classes/{XML → LibXML/XML}/XMLParserOptions.html +5 -5
  34. data/doc/classes/{XML → LibXML/XML}/XPath.html +23 -64
  35. data/doc/classes/LibXML/XML/XPath/Context.html +403 -0
  36. data/doc/classes/{XML/XPointer/Context → LibXML/XML/XPath}/InvalidPath.html +4 -4
  37. data/doc/classes/LibXML/XML/XPath/Object.html +623 -0
  38. data/doc/classes/{XML → LibXML/XML}/XPointer.html +12 -12
  39. data/doc/classes/{XML → LibXML/XML}/XPointer/Context.html +5 -5
  40. data/doc/classes/{XML/XPath → LibXML/XML/XPointer/Context}/InvalidPath.html +5 -5
  41. data/doc/classes/{XML → LibXML/XML}/XPointer/InvalidExpression.html +4 -4
  42. data/doc/classes/XML.html +17 -123
  43. data/doc/created.rid +1 -1
  44. data/doc/files/CHANGES.html +49 -25
  45. data/doc/files/LICENSE.html +1 -1
  46. data/doc/files/README.html +79 -4
  47. data/doc/files/VERSION.html +2 -2
  48. data/doc/files/ext/libxml/cbg_c.html +1 -1
  49. data/doc/files/ext/libxml/libxml_c.html +1 -1
  50. data/doc/files/ext/libxml/ruby_xml_attr_c.html +1 -1
  51. data/doc/files/ext/libxml/ruby_xml_attributes_c.html +1 -1
  52. data/doc/files/ext/libxml/ruby_xml_document_c.html +1 -1
  53. data/doc/files/ext/libxml/ruby_xml_dtd_c.html +1 -1
  54. data/doc/files/ext/libxml/ruby_xml_html_parser_c.html +1 -1
  55. data/doc/files/ext/libxml/ruby_xml_input_cbg_c.html +1 -1
  56. data/doc/files/ext/libxml/ruby_xml_node_c.html +1 -1
  57. data/doc/files/ext/libxml/ruby_xml_node_set_c.html +1 -1
  58. data/doc/files/ext/libxml/ruby_xml_ns_c.html +1 -1
  59. data/doc/files/ext/libxml/ruby_xml_parser_c.html +1 -1
  60. data/doc/files/ext/libxml/ruby_xml_parser_context_c.html +1 -1
  61. data/doc/files/ext/libxml/ruby_xml_reader_c.html +1 -1
  62. data/doc/files/ext/libxml/ruby_xml_sax_parser_c.html +1 -1
  63. data/doc/files/ext/libxml/ruby_xml_schema_c.html +1 -1
  64. data/doc/files/ext/libxml/ruby_xml_state_c.html +1 -1
  65. data/doc/files/ext/libxml/ruby_xml_xinclude_c.html +1 -1
  66. data/doc/files/ext/libxml/ruby_xml_xpath_c.html +1 -1
  67. data/doc/files/ext/libxml/ruby_xml_xpath_context_c.html +1 -1
  68. data/doc/files/ext/libxml/ruby_xml_xpath_object_c.html +1 -1
  69. data/doc/files/ext/libxml/ruby_xml_xpointer_c.html +1 -1
  70. data/doc/files/ext/libxml/ruby_xml_xpointer_context_c.html +1 -1
  71. data/doc/files/lib/libxml/attr_rb.html +108 -0
  72. data/doc/files/lib/libxml/attributes_rb.html +108 -0
  73. data/doc/files/lib/libxml/document_rb.html +108 -0
  74. data/doc/files/lib/libxml/node_rb.html +108 -0
  75. data/doc/files/lib/libxml/node_set_rb.html +108 -0
  76. data/doc/files/lib/libxml/parser_options_rb.html +107 -0
  77. data/doc/files/{ext/libxml/ruby_xml_tree_c.html → lib/libxml/parser_rb.html} +4 -4
  78. data/doc/files/lib/libxml/properties_rb.html +108 -0
  79. data/doc/files/lib/libxml/tree_rb.html +107 -0
  80. data/doc/files/lib/libxml_rb.html +12 -3
  81. data/doc/fr_class_index.html +34 -32
  82. data/doc/fr_file_index.html +9 -1
  83. data/doc/fr_method_index.html +362 -347
  84. data/ext/libxml/cbg.c +76 -76
  85. data/ext/libxml/libxml.c +4 -3
  86. data/ext/libxml/ruby_libxml.h +1 -1
  87. data/ext/libxml/ruby_xml_attr.c +4 -3
  88. data/ext/libxml/ruby_xml_attr.h +16 -16
  89. data/ext/libxml/ruby_xml_attributes.c +267 -266
  90. data/ext/libxml/ruby_xml_attributes.h +17 -17
  91. data/ext/libxml/ruby_xml_document.c +30 -59
  92. data/ext/libxml/ruby_xml_document.h +27 -27
  93. data/ext/libxml/ruby_xml_dtd.c +2 -1
  94. data/ext/libxml/ruby_xml_dtd.h +17 -17
  95. data/ext/libxml/ruby_xml_html_parser.c +3 -2
  96. data/ext/libxml/ruby_xml_html_parser.h +29 -29
  97. data/ext/libxml/ruby_xml_input_cbg.c +2 -1
  98. data/ext/libxml/ruby_xml_input_cbg.h +20 -20
  99. data/ext/libxml/ruby_xml_node.c +127 -470
  100. data/ext/libxml/ruby_xml_node.h +17 -17
  101. data/ext/libxml/ruby_xml_node_set.c +5 -4
  102. data/ext/libxml/ruby_xml_node_set.h +20 -20
  103. data/ext/libxml/ruby_xml_ns.c +3 -2
  104. data/ext/libxml/ruby_xml_ns.h +12 -12
  105. data/ext/libxml/ruby_xml_parser.c +20 -48
  106. data/ext/libxml/ruby_xml_parser.h +31 -31
  107. data/ext/libxml/ruby_xml_parser_context.c +3 -2
  108. data/ext/libxml/ruby_xml_parser_context.h +20 -20
  109. data/ext/libxml/ruby_xml_reader.c +2 -1
  110. data/ext/libxml/ruby_xml_sax_parser.c +3 -2
  111. data/ext/libxml/ruby_xml_sax_parser.h +56 -56
  112. data/ext/libxml/ruby_xml_schema.c +6 -0
  113. data/ext/libxml/ruby_xml_schema.h +16 -16
  114. data/ext/libxml/ruby_xml_state.c +13 -12
  115. data/ext/libxml/ruby_xml_state.h +1 -1
  116. data/ext/libxml/ruby_xml_xinclude.c +3 -2
  117. data/ext/libxml/ruby_xml_xinclude.h +13 -13
  118. data/ext/libxml/ruby_xml_xpath.c +35 -228
  119. data/ext/libxml/ruby_xml_xpath.h +22 -23
  120. data/ext/libxml/ruby_xml_xpath_context.c +223 -62
  121. data/ext/libxml/ruby_xml_xpath_context.h +15 -20
  122. data/ext/libxml/ruby_xml_xpath_object.c +63 -19
  123. data/ext/libxml/ruby_xml_xpointer.c +19 -15
  124. data/ext/libxml/ruby_xml_xpointer.h +27 -27
  125. data/ext/libxml/ruby_xml_xpointer_context.c +3 -2
  126. data/ext/libxml/ruby_xml_xpointer_context.h +18 -18
  127. data/ext/libxml/version.h +9 -9
  128. data/lib/libxml.rb +16 -128
  129. data/lib/libxml/attr.rb +45 -0
  130. data/lib/libxml/attributes.rb +15 -0
  131. data/lib/libxml/document.rb +54 -0
  132. data/lib/libxml/node.rb +132 -0
  133. data/lib/libxml/node_set.rb +27 -0
  134. data/lib/libxml/parser.rb +42 -0
  135. data/lib/libxml/parser_options.rb +25 -0
  136. data/lib/libxml/properties.rb +19 -0
  137. data/lib/libxml/tree.rb +29 -0
  138. data/lib/libxml_ruby.so +0 -0
  139. data/mingw/libxml_ruby.so +0 -0
  140. data/{work/task/setup → setup.rb} +1585 -1616
  141. data/test/gc.log +0 -0
  142. data/test/model/books.xml +147 -0
  143. data/{work/test/runner.rb → test/model/default_validation_bug.rb} +0 -0
  144. data/test/model/merge_bug_data.xml +58 -0
  145. data/test/model/rubynet.xml +78 -0
  146. data/test/model/rubynet_project +1 -0
  147. data/test/model/saxtest.xml +5 -0
  148. data/test/model/shiporder.xml +23 -0
  149. data/test/model/shiporder.xsd +31 -0
  150. data/test/model/simple.xml +7 -0
  151. data/test/model/soap.xml +27 -0
  152. data/test/model/xinclude.xml +5 -0
  153. data/test/tc_deprecated_require.rb +13 -0
  154. data/test/tc_xml_document.rb +57 -16
  155. data/test/tc_xml_document_write.rb +125 -10
  156. data/test/tc_xml_dtd.rb +22 -1
  157. data/test/tc_xml_node.rb +13 -0
  158. data/test/tc_xml_node_edit.rb +1 -1
  159. data/test/tc_xml_node_xlink.rb +1 -1
  160. data/test/tc_xml_parser.rb +64 -7
  161. data/test/tc_xml_properties.rb +42 -0
  162. data/test/tc_xml_reader.rb +4 -4
  163. data/test/tc_xml_sax_parser.rb +50 -50
  164. data/test/tc_xml_schema.rb +2 -2
  165. data/test/tc_xml_traversal.rb +220 -0
  166. data/test/tc_xml_xinclude.rb +12 -15
  167. data/test/tc_xml_xpath.rb +74 -6
  168. data/test/tc_xml_xpath_context.rb +72 -0
  169. data/test/test_suite.rb +6 -4
  170. data/vc/libxml_ruby.vcproj +1 -9
  171. metadata +92 -65
  172. data/doc/classes/XML/SiblingEnum.html +0 -142
  173. data/doc/classes/XML/Tree.html +0 -224
  174. data/doc/classes/XML/XPath/Object.html +0 -439
  175. data/ext/libxml/ruby_xml_tree.c +0 -43
  176. data/ext/libxml/ruby_xml_tree.h +0 -12
  177. data/test/ets_copy_bug2.rb +0 -21
  178. data/test/tc_xml_document_write2.rb +0 -54
  179. data/test/tc_xml_document_write3.rb +0 -96
  180. data/test/tc_xml_sax_parser2.rb +0 -51
  181. data/work/Rakefile +0 -247
  182. data/work/task/make +0 -26
  183. data/work/task/memory +0 -37
  184. data/work/task/rdoc +0 -39
  185. data/work/task/test +0 -29
  186. data/work/test/ets_runner.rb +0 -33
  187. data/work/test/libxml_test.rb +0 -3
  188. data/work/test/runner_ets.rb +0 -33
@@ -1,26 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- Dir.chdir("ext/libxml") do
4
- unless File.exist?('Makefile')
5
- system "ruby extconf.rb"
6
- end
7
-
8
- unless ARGV[0] == 'setup'
9
- system "make #{ARGV.join(' ')}"
10
- end
11
- end
12
-
13
-
14
- # Eric Hodel said NOT do this.
15
- #
16
- #cp "ext/xml/*.#{dlext}", "lib/xml/#{arch}/"
17
- #
18
- #
19
- #def dlext
20
- # Config::CONFIG['DLEXT']
21
- #end
22
- #
23
- #def arch
24
- # Config::CONFIG['arch']
25
- #end
26
-
@@ -1,37 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- # TODO: Ensure compile first (but only if needed)
4
- # system "task/make"
5
-
6
- # Run memory tests
7
-
8
- live = ARGV.include?('--live')
9
-
10
- unless live
11
- $LOAD_PATH.unshift(File.expand_path('ext/libxml'))
12
- $LOAD_PATH.unshift(File.expand_path('lib'))
13
- end
14
- $LOAD_PATH.unshift('test') # NEEDED?
15
-
16
- unless glob = ARGV.select{ |a| a !~ /^[-]/ }[0]
17
- glob = 'test/ets_*.rb'
18
- end
19
-
20
- Dir[glob].each do |fn|
21
- next if File.directory?(fn)
22
- puts "test #{fn}"
23
- f=Process.fork
24
- if f.nil?
25
- require fn
26
- exit
27
- end
28
- rss_k=0
29
- while (px=Process.wait2(f,Process::WNOHANG)).nil?
30
- sleep 2
31
- rss_k2=`ps -o rss= -p #{f}`.to_i
32
- rss_k=(rss_k2>rss_k) ? rss_k2 : rss_k
33
- end
34
- pid,status=px
35
- puts "\nProcess #{pid} exited status #{status.exitstatus}, max rss(k) #{rss_k}"
36
- end
37
-
@@ -1,39 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'fileutils'
4
-
5
- # generate rdocs
6
-
7
- def rdoc
8
- template = 'html'
9
- output = 'doc/rdoc'
10
- FileUtils.rm_r(output) if File.exist?(output)
11
- system "rdoc --op #{output} --template #{template} --main README --merge --inline-source [A-Z]* lib/**/*.rb ext/**/*.c"
12
- insert_ads(output)
13
- end
14
-
15
- # Insert an ad if available.
16
-
17
- def insert_ads(site)
18
- adfile = 'doc/ads/rdoc.html'
19
- return unless File.file?(adfile)
20
- adtext = File.read(adfile)
21
- #puts
22
- dirs = Dir.glob(File.join(site,'*/'))
23
- dirs.each do |dir|
24
- files = Dir.glob(File.join(dir, '**/*.html'))
25
- files.each do |file|
26
- html = file_read(file)
27
- bodi = html.index('<body>')
28
- html[bodi + 7] = "\n" + adtext
29
- #print "Augmenting #{file}..."
30
- file_write(file, html) unless dryrun?
31
- #puts "[done]"
32
- end
33
- end
34
- end
35
-
36
- if $0 == __FILE__
37
- rdoc
38
- end
39
-
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- # TODO: Ensure compile first (but only if needed)
4
- # system "task/make"
5
-
6
- # Run unit tests
7
-
8
- live = ARGV.include?('--live')
9
-
10
- unless live
11
- $LOAD_PATH.unshift(File.expand_path('ext/libxml'))
12
- $LOAD_PATH.unshift(File.expand_path('lib'))
13
- end
14
- $LOAD_PATH.unshift('test') # NEEDED?
15
-
16
- unless glob = ARGV.select{ |a| a !~ /^[-]/ }[0]
17
- glob = 'test/tc_*.rb'
18
- end
19
-
20
- Dir[glob].each do |file|
21
- next if File.directory?(file)
22
- begin
23
- puts "Loading: #{file}" if $DEBUG
24
- load(file)
25
- rescue LoadError
26
- puts "Error loading: #{file}"
27
- end
28
- end
29
-
@@ -1,33 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # Allsuite for Eclipse and GEM.
4
- $LOAD_PATH.unshift File.dirname(__FILE__)
5
- require "tests/libxml_test"
6
-
7
- ALL_TESTS = true
8
- TESTS = File.expand_path(File.dirname(__FILE__))
9
-
10
- puts ARGV[0]
11
- if ARGV[0].nil? or ARGV[0]=="rwtest/runner.rb"
12
- glob = File.join(TESTS, ENV['TESTS'] || '*.rb')
13
- else
14
- glob = ARGV[0]
15
- end
16
-
17
- Dir[glob].each { |fn|
18
- next if fn =~ %r{runner.rb$}
19
- puts "test #{fn}"
20
- f=Process.fork
21
- if f.nil?
22
- require fn
23
- exit
24
- end
25
- rss_k=0
26
- while (px=Process.wait2(f,Process::WNOHANG)).nil?
27
- sleep 2
28
- rss_k2=`ps -o rss= -p #{f}`.to_i
29
- rss_k=(rss_k2>rss_k) ? rss_k2 : rss_k
30
- end
31
- pid,status=px
32
- puts "\nProcess #{pid} exited status #{status.exitstatus}, max rss(k) #{rss_k}"
33
- }
@@ -1,3 +0,0 @@
1
- $LOAD_PATH.unshift("#{File.dirname(__FILE__)}/../ext")
2
- require "xml/libxml" unless defined?(XML)
3
- puts "VERSION: #{XML::Parser::VERSION}"
@@ -1,33 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # Allsuite for Eclipse and GEM.
4
- $LOAD_PATH.unshift File.dirname(__FILE__)
5
- require "tests/libxml_test"
6
-
7
- ALL_TESTS = true
8
- TESTS = File.expand_path(File.dirname(__FILE__))
9
-
10
- puts ARGV[0]
11
- if ARGV[0].nil? or ARGV[0]=="tests/runner_ets.rb"
12
- glob = File.join(TESTS, ENV['TESTS'] || 'ets_*.rb')
13
- else
14
- glob = ARGV[0]
15
- end
16
-
17
- Dir[glob].each { |fn|
18
- next if fn =~ %r{runner.rb$}
19
- puts "test #{fn}"
20
- f=Process.fork
21
- if f.nil?
22
- require fn
23
- exit
24
- end
25
- rss_k=0
26
- while (px=Process.wait2(f,Process::WNOHANG)).nil?
27
- sleep 2
28
- rss_k2=`ps -o rss= -p #{f}`.to_i
29
- rss_k=(rss_k2>rss_k) ? rss_k2 : rss_k
30
- end
31
- pid,status=px
32
- puts "\nProcess #{pid} exited status #{status.exitstatus}, max rss(k) #{rss_k}"
33
- }