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.
- data/CHANGES +24 -1
- data/README +48 -3
- data/benchmark/depixelate.rb +632 -0
- data/benchmark/hamlet.xml +9055 -0
- data/benchmark/sock_entries.xml +507 -0
- data/benchmark/throughput.rb +39 -0
- data/benchmark/xml_benchmarks.rb +222 -0
- data/doc/classes/LibXML.html +237 -0
- data/doc/classes/LibXML/XML.html +178 -0
- data/doc/classes/{XML → LibXML/XML}/Attr.html +213 -182
- data/doc/classes/{XML → LibXML/XML}/Attributes.html +126 -54
- data/doc/classes/{XML → LibXML/XML}/Document.html +299 -297
- data/doc/classes/{XML → LibXML/XML}/Dtd.html +10 -10
- data/doc/classes/{XML/XInclude → LibXML/XML}/Error.html +4 -4
- data/doc/classes/{XML → LibXML/XML}/HTMLParser.html +40 -40
- data/doc/classes/{XML → LibXML/XML}/InputCallbacks.html +10 -10
- data/doc/classes/{XML → LibXML/XML}/NS.html +46 -46
- data/doc/classes/{XML → LibXML/XML}/Node.html +935 -788
- data/doc/classes/LibXML/XML/Node/FailedModify.html +111 -0
- data/doc/classes/{XML → LibXML/XML}/Node/Set.html +69 -68
- data/doc/classes/{XML → LibXML/XML}/Node/SetNamespace.html +4 -4
- data/doc/classes/{XML/Node/FailedModify.html → LibXML/XML/Node/UnknownType.html} +4 -4
- data/doc/classes/{XML → LibXML/XML}/Parser.html +426 -389
- data/doc/classes/{XML → LibXML/XML}/Parser/Context.html +208 -208
- data/doc/classes/{XML → LibXML/XML}/Parser/ParseError.html +4 -4
- data/doc/classes/{XML → LibXML/XML}/Reader.html +288 -287
- data/doc/classes/{XML → LibXML/XML}/SaxParser.html +52 -52
- data/doc/classes/{XML/XPath/Context.html → LibXML/XML/Schema.html} +60 -32
- data/doc/classes/{XML → LibXML/XML}/State.html +4 -4
- data/doc/classes/{XML/Node/UnknownType.html → LibXML/XML/Tree.html} +5 -5
- data/doc/classes/{XML → LibXML/XML}/XInclude.html +5 -5
- data/doc/classes/{XML → LibXML/XML/XInclude}/Error.html +5 -5
- data/doc/classes/{XML → LibXML/XML}/XMLParserOptions.html +5 -5
- data/doc/classes/{XML → LibXML/XML}/XPath.html +23 -64
- data/doc/classes/LibXML/XML/XPath/Context.html +403 -0
- data/doc/classes/{XML/XPointer/Context → LibXML/XML/XPath}/InvalidPath.html +4 -4
- data/doc/classes/LibXML/XML/XPath/Object.html +623 -0
- data/doc/classes/{XML → LibXML/XML}/XPointer.html +12 -12
- data/doc/classes/{XML → LibXML/XML}/XPointer/Context.html +5 -5
- data/doc/classes/{XML/XPath → LibXML/XML/XPointer/Context}/InvalidPath.html +5 -5
- data/doc/classes/{XML → LibXML/XML}/XPointer/InvalidExpression.html +4 -4
- data/doc/classes/XML.html +17 -123
- data/doc/created.rid +1 -1
- data/doc/files/CHANGES.html +49 -25
- data/doc/files/LICENSE.html +1 -1
- data/doc/files/README.html +79 -4
- data/doc/files/VERSION.html +2 -2
- data/doc/files/ext/libxml/cbg_c.html +1 -1
- data/doc/files/ext/libxml/libxml_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_attr_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_attributes_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_document_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_dtd_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_html_parser_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_input_cbg_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_node_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_node_set_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_ns_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_parser_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_parser_context_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_reader_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_sax_parser_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_schema_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_state_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_xinclude_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_xpath_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_xpath_context_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_xpath_object_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_xpointer_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_xpointer_context_c.html +1 -1
- data/doc/files/lib/libxml/attr_rb.html +108 -0
- data/doc/files/lib/libxml/attributes_rb.html +108 -0
- data/doc/files/lib/libxml/document_rb.html +108 -0
- data/doc/files/lib/libxml/node_rb.html +108 -0
- data/doc/files/lib/libxml/node_set_rb.html +108 -0
- data/doc/files/lib/libxml/parser_options_rb.html +107 -0
- data/doc/files/{ext/libxml/ruby_xml_tree_c.html → lib/libxml/parser_rb.html} +4 -4
- data/doc/files/lib/libxml/properties_rb.html +108 -0
- data/doc/files/lib/libxml/tree_rb.html +107 -0
- data/doc/files/lib/libxml_rb.html +12 -3
- data/doc/fr_class_index.html +34 -32
- data/doc/fr_file_index.html +9 -1
- data/doc/fr_method_index.html +362 -347
- data/ext/libxml/cbg.c +76 -76
- data/ext/libxml/libxml.c +4 -3
- data/ext/libxml/ruby_libxml.h +1 -1
- data/ext/libxml/ruby_xml_attr.c +4 -3
- data/ext/libxml/ruby_xml_attr.h +16 -16
- data/ext/libxml/ruby_xml_attributes.c +267 -266
- data/ext/libxml/ruby_xml_attributes.h +17 -17
- data/ext/libxml/ruby_xml_document.c +30 -59
- data/ext/libxml/ruby_xml_document.h +27 -27
- data/ext/libxml/ruby_xml_dtd.c +2 -1
- data/ext/libxml/ruby_xml_dtd.h +17 -17
- data/ext/libxml/ruby_xml_html_parser.c +3 -2
- data/ext/libxml/ruby_xml_html_parser.h +29 -29
- data/ext/libxml/ruby_xml_input_cbg.c +2 -1
- data/ext/libxml/ruby_xml_input_cbg.h +20 -20
- data/ext/libxml/ruby_xml_node.c +127 -470
- data/ext/libxml/ruby_xml_node.h +17 -17
- data/ext/libxml/ruby_xml_node_set.c +5 -4
- data/ext/libxml/ruby_xml_node_set.h +20 -20
- data/ext/libxml/ruby_xml_ns.c +3 -2
- data/ext/libxml/ruby_xml_ns.h +12 -12
- data/ext/libxml/ruby_xml_parser.c +20 -48
- data/ext/libxml/ruby_xml_parser.h +31 -31
- data/ext/libxml/ruby_xml_parser_context.c +3 -2
- data/ext/libxml/ruby_xml_parser_context.h +20 -20
- data/ext/libxml/ruby_xml_reader.c +2 -1
- data/ext/libxml/ruby_xml_sax_parser.c +3 -2
- data/ext/libxml/ruby_xml_sax_parser.h +56 -56
- data/ext/libxml/ruby_xml_schema.c +6 -0
- data/ext/libxml/ruby_xml_schema.h +16 -16
- data/ext/libxml/ruby_xml_state.c +13 -12
- data/ext/libxml/ruby_xml_state.h +1 -1
- data/ext/libxml/ruby_xml_xinclude.c +3 -2
- data/ext/libxml/ruby_xml_xinclude.h +13 -13
- data/ext/libxml/ruby_xml_xpath.c +35 -228
- data/ext/libxml/ruby_xml_xpath.h +22 -23
- data/ext/libxml/ruby_xml_xpath_context.c +223 -62
- data/ext/libxml/ruby_xml_xpath_context.h +15 -20
- data/ext/libxml/ruby_xml_xpath_object.c +63 -19
- data/ext/libxml/ruby_xml_xpointer.c +19 -15
- data/ext/libxml/ruby_xml_xpointer.h +27 -27
- data/ext/libxml/ruby_xml_xpointer_context.c +3 -2
- data/ext/libxml/ruby_xml_xpointer_context.h +18 -18
- data/ext/libxml/version.h +9 -9
- data/lib/libxml.rb +16 -128
- data/lib/libxml/attr.rb +45 -0
- data/lib/libxml/attributes.rb +15 -0
- data/lib/libxml/document.rb +54 -0
- data/lib/libxml/node.rb +132 -0
- data/lib/libxml/node_set.rb +27 -0
- data/lib/libxml/parser.rb +42 -0
- data/lib/libxml/parser_options.rb +25 -0
- data/lib/libxml/properties.rb +19 -0
- data/lib/libxml/tree.rb +29 -0
- data/lib/libxml_ruby.so +0 -0
- data/mingw/libxml_ruby.so +0 -0
- data/{work/task/setup → setup.rb} +1585 -1616
- data/test/gc.log +0 -0
- data/test/model/books.xml +147 -0
- data/{work/test/runner.rb → test/model/default_validation_bug.rb} +0 -0
- data/test/model/merge_bug_data.xml +58 -0
- data/test/model/rubynet.xml +78 -0
- data/test/model/rubynet_project +1 -0
- data/test/model/saxtest.xml +5 -0
- data/test/model/shiporder.xml +23 -0
- data/test/model/shiporder.xsd +31 -0
- data/test/model/simple.xml +7 -0
- data/test/model/soap.xml +27 -0
- data/test/model/xinclude.xml +5 -0
- data/test/tc_deprecated_require.rb +13 -0
- data/test/tc_xml_document.rb +57 -16
- data/test/tc_xml_document_write.rb +125 -10
- data/test/tc_xml_dtd.rb +22 -1
- data/test/tc_xml_node.rb +13 -0
- data/test/tc_xml_node_edit.rb +1 -1
- data/test/tc_xml_node_xlink.rb +1 -1
- data/test/tc_xml_parser.rb +64 -7
- data/test/tc_xml_properties.rb +42 -0
- data/test/tc_xml_reader.rb +4 -4
- data/test/tc_xml_sax_parser.rb +50 -50
- data/test/tc_xml_schema.rb +2 -2
- data/test/tc_xml_traversal.rb +220 -0
- data/test/tc_xml_xinclude.rb +12 -15
- data/test/tc_xml_xpath.rb +74 -6
- data/test/tc_xml_xpath_context.rb +72 -0
- data/test/test_suite.rb +6 -4
- data/vc/libxml_ruby.vcproj +1 -9
- metadata +92 -65
- data/doc/classes/XML/SiblingEnum.html +0 -142
- data/doc/classes/XML/Tree.html +0 -224
- data/doc/classes/XML/XPath/Object.html +0 -439
- data/ext/libxml/ruby_xml_tree.c +0 -43
- data/ext/libxml/ruby_xml_tree.h +0 -12
- data/test/ets_copy_bug2.rb +0 -21
- data/test/tc_xml_document_write2.rb +0 -54
- data/test/tc_xml_document_write3.rb +0 -96
- data/test/tc_xml_sax_parser2.rb +0 -51
- data/work/Rakefile +0 -247
- data/work/task/make +0 -26
- data/work/task/memory +0 -37
- data/work/task/rdoc +0 -39
- data/work/task/test +0 -29
- data/work/test/ets_runner.rb +0 -33
- data/work/test/libxml_test.rb +0 -3
- data/work/test/runner_ets.rb +0 -33
data/work/task/make
DELETED
@@ -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
|
-
|
data/work/task/memory
DELETED
@@ -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
|
-
|
data/work/task/rdoc
DELETED
@@ -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
|
-
|
data/work/task/test
DELETED
@@ -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
|
-
|
data/work/test/ets_runner.rb
DELETED
@@ -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
|
-
}
|
data/work/test/libxml_test.rb
DELETED
data/work/test/runner_ets.rb
DELETED
@@ -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
|
-
}
|