libxml-ruby 1.1.4 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/{CHANGES → HISTORY} +35 -0
- data/LICENSE +1 -0
- data/MANIFEST +165 -0
- data/{README → README.rdoc} +2 -2
- data/Rakefile +47 -147
- data/ext/libxml/libxml.c +17 -1
- data/ext/libxml/ruby_libxml.h +9 -1
- data/ext/libxml/ruby_xml_attr.c +3 -3
- data/ext/libxml/ruby_xml_attr_decl.c +32 -32
- data/ext/libxml/ruby_xml_attributes.c +1 -1
- data/ext/libxml/ruby_xml_cbg.c +1 -2
- data/ext/libxml/ruby_xml_document.c +26 -4
- data/ext/libxml/ruby_xml_dtd.c +3 -3
- data/ext/libxml/ruby_xml_encoding.c +92 -5
- data/ext/libxml/ruby_xml_encoding.h +4 -0
- data/ext/libxml/ruby_xml_namespace.c +2 -2
- data/ext/libxml/ruby_xml_node.c +14 -14
- data/ext/libxml/ruby_xml_parser_context.c +8 -8
- data/ext/libxml/ruby_xml_reader.c +98 -43
- data/ext/libxml/ruby_xml_sax2_handler.c +13 -1
- data/ext/libxml/ruby_xml_sax_parser.c +4 -5
- data/ext/libxml/ruby_xml_version.h +5 -5
- data/ext/libxml/ruby_xml_xpath_context.c +9 -6
- data/ext/libxml/ruby_xml_xpath_object.c +1 -1
- data/ext/vc/libxml_ruby.sln +4 -4
- data/lib/libxml.rb +29 -29
- data/lib/libxml/attr.rb +112 -110
- data/lib/libxml/attr_decl.rb +2 -0
- data/lib/libxml/attributes.rb +13 -11
- data/lib/libxml/document.rb +192 -190
- data/lib/libxml/error.rb +89 -87
- data/lib/libxml/hpricot.rb +77 -75
- data/lib/libxml/html_parser.rb +96 -94
- data/lib/libxml/namespace.rb +61 -59
- data/lib/libxml/namespaces.rb +37 -35
- data/lib/libxml/node.rb +398 -384
- data/lib/libxml/ns.rb +21 -19
- data/lib/libxml/parser.rb +366 -364
- data/lib/libxml/properties.rb +22 -20
- data/lib/libxml/reader.rb +2 -0
- data/lib/libxml/sax_callbacks.rb +179 -177
- data/lib/libxml/sax_parser.rb +57 -55
- data/lib/libxml/tree.rb +28 -26
- data/lib/libxml/xpath_object.rb +15 -13
- data/lib/xml.rb +16 -14
- data/lib/xml/libxml.rb +10 -8
- data/libxml-ruby.gemspec +50 -0
- data/script/benchmark/depixelate +634 -0
- data/script/benchmark/hamlet.xml +9055 -0
- data/script/benchmark/parsecount +170 -0
- data/script/benchmark/sock_entries.xml +507 -0
- data/script/benchmark/throughput +41 -0
- data/script/test +6 -0
- data/test/etc_doc_to_s.rb +21 -19
- data/test/ets_doc_file.rb +17 -15
- data/test/ets_doc_to_s.rb +23 -21
- data/test/ets_gpx.rb +28 -26
- data/test/ets_node_gc.rb +23 -21
- data/test/ets_tsr.rb +11 -9
- data/test/model/bands.iso-8859-1.xml +5 -0
- data/test/model/bands.utf-8.xml +5 -0
- data/test/rb-magic-comment.rb +33 -0
- data/test/tc_attr.rb +181 -170
- data/test/tc_attr_decl.rb +3 -1
- data/test/tc_attributes.rb +134 -132
- data/test/tc_deprecated_require.rb +13 -11
- data/test/tc_document.rb +119 -113
- data/test/tc_document_write.rb +186 -117
- data/test/tc_dtd.rb +125 -123
- data/test/tc_error.rb +3 -1
- data/test/tc_html_parser.rb +139 -137
- data/test/tc_namespace.rb +61 -58
- data/test/tc_namespaces.rb +176 -173
- data/test/tc_node.rb +257 -180
- data/test/tc_node_cdata.rb +51 -49
- data/test/tc_node_comment.rb +33 -30
- data/test/tc_node_copy.rb +42 -40
- data/test/tc_node_edit.rb +159 -157
- data/test/tc_node_text.rb +71 -69
- data/test/tc_node_write.rb +41 -16
- data/test/tc_node_xlink.rb +29 -26
- data/test/tc_parser.rb +335 -329
- data/test/tc_parser_context.rb +188 -185
- data/test/tc_properties.rb +39 -36
- data/test/tc_reader.rb +297 -283
- data/test/tc_relaxng.rb +54 -51
- data/test/tc_sax_parser.rb +275 -273
- data/test/tc_schema.rb +53 -51
- data/test/tc_traversal.rb +222 -220
- data/test/tc_xinclude.rb +21 -19
- data/test/tc_xml.rb +3 -1
- data/test/tc_xpath.rb +195 -193
- data/test/tc_xpath_context.rb +80 -78
- data/test/tc_xpath_expression.rb +38 -35
- data/test/tc_xpointer.rb +74 -72
- data/test/test_helper.rb +14 -0
- data/test/test_suite.rb +39 -33
- metadata +65 -105
- data/doc/css/normal.css +0 -182
- data/doc/img/raze-tiny.png +0 -0
- data/doc/img/red-cube.jpg +0 -0
- data/doc/img/xml-ruby.png +0 -0
- data/doc/index.xml +0 -43
- data/doc/install.xml +0 -77
- data/doc/layout.rhtml +0 -38
- data/doc/layout.xsl +0 -67
- data/doc/license.xml +0 -32
- data/doc/log/changelog.xml +0 -1324
- data/doc/log/changelog.xsl +0 -42
- data/ext/libxml/Makefile +0 -156
- data/ext/libxml/extconf.h +0 -5
- data/ext/libxml/libxml-ruby.so.a +0 -0
- data/ext/libxml/libxml.o +0 -0
- data/ext/libxml/libxml_ruby.so +0 -0
- data/ext/libxml/mkmf.log +0 -129
- data/ext/libxml/ruby_xml.o +0 -0
- data/ext/libxml/ruby_xml_attr.o +0 -0
- data/ext/libxml/ruby_xml_attr_decl.o +0 -0
- data/ext/libxml/ruby_xml_attributes.o +0 -0
- data/ext/libxml/ruby_xml_cbg.o +0 -0
- data/ext/libxml/ruby_xml_document.o +0 -0
- data/ext/libxml/ruby_xml_dtd.o +0 -0
- data/ext/libxml/ruby_xml_encoding.o +0 -0
- data/ext/libxml/ruby_xml_error.o +0 -0
- data/ext/libxml/ruby_xml_html_parser.o +0 -0
- data/ext/libxml/ruby_xml_html_parser_context.o +0 -0
- data/ext/libxml/ruby_xml_html_parser_options.o +0 -0
- data/ext/libxml/ruby_xml_input_cbg.o +0 -0
- data/ext/libxml/ruby_xml_io.o +0 -0
- data/ext/libxml/ruby_xml_namespace.o +0 -0
- data/ext/libxml/ruby_xml_namespaces.o +0 -0
- data/ext/libxml/ruby_xml_node.o +0 -0
- data/ext/libxml/ruby_xml_parser.o +0 -0
- data/ext/libxml/ruby_xml_parser_context.o +0 -0
- data/ext/libxml/ruby_xml_parser_options.o +0 -0
- data/ext/libxml/ruby_xml_reader.o +0 -0
- data/ext/libxml/ruby_xml_relaxng.o +0 -0
- data/ext/libxml/ruby_xml_sax2_handler.o +0 -0
- data/ext/libxml/ruby_xml_sax_parser.o +0 -0
- data/ext/libxml/ruby_xml_schema.o +0 -0
- data/ext/libxml/ruby_xml_xinclude.o +0 -0
- data/ext/libxml/ruby_xml_xpath.o +0 -0
- data/ext/libxml/ruby_xml_xpath_context.o +0 -0
- data/ext/libxml/ruby_xml_xpath_expression.o +0 -0
- data/ext/libxml/ruby_xml_xpath_object.o +0 -0
- data/ext/libxml/ruby_xml_xpointer.o +0 -0
data/test/tc_xpath_expression.rb
CHANGED
@@ -1,35 +1,38 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
1
|
+
# encoding: UTF-8
|
2
|
+
|
3
|
+
require './test_helper'
|
4
|
+
|
5
|
+
require 'test/unit'
|
6
|
+
|
7
|
+
class TestXPathExpression < Test::Unit::TestCase
|
8
|
+
def setup
|
9
|
+
xp = XML::Parser.string('<ruby_array uga="booga" foo="bar"><fixnum>one</fixnum><fixnum>two</fixnum></ruby_array>')
|
10
|
+
@doc = xp.parse
|
11
|
+
end
|
12
|
+
|
13
|
+
def teardown
|
14
|
+
@doc = nil
|
15
|
+
end
|
16
|
+
|
17
|
+
def test_nodes
|
18
|
+
expr = XML::XPath::Expression.compile('/ruby_array/fixnum')
|
19
|
+
set = @doc.find(expr)
|
20
|
+
assert_instance_of(XML::XPath::Object, set)
|
21
|
+
assert_equal(2, set.size)
|
22
|
+
end
|
23
|
+
|
24
|
+
def test_find_class
|
25
|
+
expr = XML::XPath::Expression.new('/ruby_array/fixnum')
|
26
|
+
set = @doc.find(expr)
|
27
|
+
assert_instance_of(XML::XPath::Object, set)
|
28
|
+
assert_equal(2, set.size)
|
29
|
+
end
|
30
|
+
|
31
|
+
def test_find_invalid
|
32
|
+
error = assert_raise(TypeError) do
|
33
|
+
set = @doc.find(999)
|
34
|
+
end
|
35
|
+
assert_equal('Argument should be an intance of a String or XPath::Expression',
|
36
|
+
error.to_s)
|
37
|
+
end
|
38
|
+
end
|
data/test/tc_xpointer.rb
CHANGED
@@ -1,72 +1,74 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
@
|
10
|
-
assert_instance_of(XML::
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
@
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
xptr
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
assert_equal('two', node
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
@xptr =
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
assert_instance_of(XML::
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
#
|
66
|
-
#
|
67
|
-
# assert_instance_of(XML::
|
68
|
-
#
|
69
|
-
#
|
70
|
-
#
|
71
|
-
#
|
72
|
-
end
|
1
|
+
# encoding: UTF-8
|
2
|
+
|
3
|
+
require './test_helper'
|
4
|
+
require "test/unit"
|
5
|
+
|
6
|
+
class TC_XML_XPointer < Test::Unit::TestCase
|
7
|
+
def setup()
|
8
|
+
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>')
|
9
|
+
@doc = xp.parse
|
10
|
+
assert_instance_of(XML::Document, @doc)
|
11
|
+
@root = @doc.root
|
12
|
+
assert_instance_of(XML::Node, @root)
|
13
|
+
end
|
14
|
+
|
15
|
+
def teardown()
|
16
|
+
@doc = nil
|
17
|
+
@root = nil
|
18
|
+
@xptr = nil
|
19
|
+
end
|
20
|
+
|
21
|
+
def test_libxml_xpointer_id
|
22
|
+
xptr = @root.pointer('xpointer(id("two"))')
|
23
|
+
assert_instance_of(XML::XPath::Object, xptr)
|
24
|
+
xptr.each do |node|
|
25
|
+
# It seems from the spec that the pointer should
|
26
|
+
# be the whole node, rather than just the ID attr.
|
27
|
+
assert_equal('two', node.content)
|
28
|
+
assert_instance_of(XML::Node, node)
|
29
|
+
assert_equal('two', node['id'])
|
30
|
+
end
|
31
|
+
|
32
|
+
# FIXME: Not sure at all about this kind of range
|
33
|
+
if ENV['NOTWORKING']
|
34
|
+
@xptr = @root.pointer('xpointer(id("two")) xpointer(id("three"))')
|
35
|
+
assert_instance_of(XML::XPath, @xptr)
|
36
|
+
assert_instance_of(XML::Node::Set, @xptr.set)
|
37
|
+
assert_equal(2, @xptr.set.length)
|
38
|
+
for n in @xptr.set
|
39
|
+
assert_match(/two|three/, n.to_s)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
# FIXME: There is a bug in these ranges...
|
45
|
+
if ENV['NOTWORKING']
|
46
|
+
def test_libxml_xpointer_range()
|
47
|
+
nstart = nend = nil
|
48
|
+
@xptr = @root.pointer('xpointer(id("one"))').set
|
49
|
+
@xptr.each{|n| nstart = n}
|
50
|
+
assert_instance_of(XML::Node, nstart)
|
51
|
+
@xptr = @root.pointer('xpointer(id("three"))').set
|
52
|
+
@xptr.each{|n| nend = n}
|
53
|
+
assert_instance_of(XML::Node, nend)
|
54
|
+
range = XML::XPointer.range(nstart, nend)
|
55
|
+
assert_instance_of(XML::XPath, range)
|
56
|
+
assert_instance_of(XML::Node::Set, range.set)
|
57
|
+
|
58
|
+
for n in range.set
|
59
|
+
assert_match(/one|two|three/, n.to_s)
|
60
|
+
end
|
61
|
+
assert_equal(3, range.set.length)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# def test_libxml_xpointer_start_point()
|
66
|
+
# @xptr = @root.pointer('xpointer(start-point("one"))')
|
67
|
+
# assert_instance_of(XML::XPath, @xptr)
|
68
|
+
# set = @xptr.set
|
69
|
+
# assert_instance_of(XML::Node::Set, set)
|
70
|
+
# for n in set
|
71
|
+
# assert_match(/one|two|three/, n.to_s)
|
72
|
+
# end
|
73
|
+
# end
|
74
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
|
3
|
+
# To make testing/debugging easier, test within this source tree versus an installed gem
|
4
|
+
|
5
|
+
dir = File.dirname(__FILE__)
|
6
|
+
root = File.expand_path(File.join(dir, '..'))
|
7
|
+
lib = File.expand_path(File.join(root, 'lib'))
|
8
|
+
ext = File.expand_path(File.join(root, 'ext', 'libxml'))
|
9
|
+
|
10
|
+
$LOAD_PATH << lib
|
11
|
+
$LOAD_PATH << ext
|
12
|
+
|
13
|
+
require 'xml'
|
14
|
+
|
data/test/test_suite.rb
CHANGED
@@ -1,33 +1,39 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
require '
|
9
|
-
require '
|
10
|
-
require '
|
11
|
-
require '
|
12
|
-
require '
|
13
|
-
require '
|
14
|
-
require '
|
15
|
-
require '
|
16
|
-
require '
|
17
|
-
require '
|
18
|
-
require '
|
19
|
-
require '
|
20
|
-
require '
|
21
|
-
require '
|
22
|
-
require '
|
23
|
-
require '
|
24
|
-
require '
|
25
|
-
require '
|
26
|
-
require '
|
27
|
-
require '
|
28
|
-
require '
|
29
|
-
require '
|
30
|
-
|
31
|
-
|
32
|
-
require '
|
33
|
-
require '
|
1
|
+
# encoding: UTF-8
|
2
|
+
|
3
|
+
# Change to current directory so relative
|
4
|
+
# requires work.
|
5
|
+
dir = File.dirname(__FILE__)
|
6
|
+
Dir.chdir(dir)
|
7
|
+
|
8
|
+
require './tc_attributes'
|
9
|
+
require './tc_attr'
|
10
|
+
require './tc_attr_decl'
|
11
|
+
require './tc_document'
|
12
|
+
require './tc_document_write'
|
13
|
+
require './tc_dtd'
|
14
|
+
require './tc_html_parser'
|
15
|
+
require './tc_namespaces'
|
16
|
+
require './tc_namespace'
|
17
|
+
require './tc_node'
|
18
|
+
require './tc_node_cdata'
|
19
|
+
require './tc_node_comment'
|
20
|
+
require './tc_node_copy'
|
21
|
+
require './tc_node_edit'
|
22
|
+
require './tc_node_text'
|
23
|
+
require './tc_node_write'
|
24
|
+
require './tc_node_xlink'
|
25
|
+
require './tc_parser'
|
26
|
+
require './tc_parser_context'
|
27
|
+
require './tc_reader'
|
28
|
+
require './tc_relaxng'
|
29
|
+
require './tc_sax_parser'
|
30
|
+
require './tc_schema'
|
31
|
+
require './tc_traversal'
|
32
|
+
require './tc_xinclude'
|
33
|
+
require './tc_xpath'
|
34
|
+
require './tc_xpath_expression'
|
35
|
+
require './tc_xpointer'
|
36
|
+
|
37
|
+
# Compatibility
|
38
|
+
require './tc_properties'
|
39
|
+
require './tc_deprecated_require'
|
metadata
CHANGED
@@ -1,25 +1,26 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libxml-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 1
|
7
|
-
- 1
|
8
|
-
- 4
|
9
|
-
version: 1.1.4
|
4
|
+
prerelease:
|
5
|
+
version: 2.0.0
|
10
6
|
platform: ruby
|
11
7
|
authors:
|
8
|
+
- Ross Bamform
|
9
|
+
- Wai-Sun Chia
|
10
|
+
- Sean Chittenden
|
11
|
+
- Dan Janwoski
|
12
|
+
- Anurag Priyam
|
12
13
|
- Charlie Savage
|
13
14
|
autorequire:
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date:
|
18
|
+
date: 2011-04-16 00:00:00 -06:00
|
18
19
|
default_executable:
|
19
20
|
dependencies: []
|
20
21
|
|
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
|
22
|
-
email:
|
22
|
+
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"
|
23
|
+
email:
|
23
24
|
executables: []
|
24
25
|
|
25
26
|
extensions:
|
@@ -27,124 +28,78 @@ extensions:
|
|
27
28
|
extra_rdoc_files: []
|
28
29
|
|
29
30
|
files:
|
30
|
-
-
|
31
|
-
- CHANGES
|
31
|
+
- HISTORY
|
32
32
|
- LICENSE
|
33
|
-
-
|
33
|
+
- libxml-ruby.gemspec
|
34
|
+
- MANIFEST
|
35
|
+
- Rakefile
|
36
|
+
- README.rdoc
|
34
37
|
- setup.rb
|
35
|
-
- doc/css/normal.css
|
36
|
-
- doc/img/raze-tiny.png
|
37
|
-
- doc/img/red-cube.jpg
|
38
|
-
- doc/img/xml-ruby.png
|
39
|
-
- doc/index.xml
|
40
|
-
- doc/install.xml
|
41
|
-
- doc/layout.rhtml
|
42
|
-
- doc/layout.xsl
|
43
|
-
- doc/license.xml
|
44
|
-
- doc/log/changelog.xml
|
45
|
-
- doc/log/changelog.xsl
|
46
|
-
- ext/libxml/extconf.h
|
47
|
-
- ext/libxml/extconf.rb
|
48
|
-
- ext/libxml/libxml-ruby.so.a
|
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
|
54
38
|
- ext/libxml/ruby_libxml.h
|
55
|
-
- ext/libxml/ruby_xml.c
|
56
39
|
- ext/libxml/ruby_xml.h
|
57
|
-
- ext/libxml/ruby_xml.o
|
58
|
-
- ext/libxml/ruby_xml_attr.c
|
59
40
|
- ext/libxml/ruby_xml_attr.h
|
60
|
-
- ext/libxml/ruby_xml_attr.o
|
61
|
-
- ext/libxml/ruby_xml_attributes.c
|
62
41
|
- ext/libxml/ruby_xml_attributes.h
|
63
|
-
- ext/libxml/ruby_xml_attributes.o
|
64
|
-
- ext/libxml/ruby_xml_attr_decl.c
|
65
42
|
- ext/libxml/ruby_xml_attr_decl.h
|
66
|
-
- ext/libxml/ruby_xml_attr_decl.o
|
67
|
-
- ext/libxml/ruby_xml_cbg.c
|
68
|
-
- ext/libxml/ruby_xml_cbg.o
|
69
|
-
- ext/libxml/ruby_xml_document.c
|
70
43
|
- ext/libxml/ruby_xml_document.h
|
71
|
-
- ext/libxml/ruby_xml_document.o
|
72
|
-
- ext/libxml/ruby_xml_dtd.c
|
73
44
|
- ext/libxml/ruby_xml_dtd.h
|
74
|
-
- ext/libxml/ruby_xml_dtd.o
|
75
|
-
- ext/libxml/ruby_xml_encoding.c
|
76
45
|
- ext/libxml/ruby_xml_encoding.h
|
77
|
-
- ext/libxml/ruby_xml_encoding.o
|
78
|
-
- ext/libxml/ruby_xml_error.c
|
79
46
|
- ext/libxml/ruby_xml_error.h
|
80
|
-
- ext/libxml/ruby_xml_error.o
|
81
|
-
- ext/libxml/ruby_xml_html_parser.c
|
82
47
|
- ext/libxml/ruby_xml_html_parser.h
|
83
|
-
- ext/libxml/ruby_xml_html_parser.o
|
84
|
-
- ext/libxml/ruby_xml_html_parser_context.c
|
85
48
|
- ext/libxml/ruby_xml_html_parser_context.h
|
86
|
-
- ext/libxml/ruby_xml_html_parser_context.o
|
87
|
-
- ext/libxml/ruby_xml_html_parser_options.c
|
88
49
|
- ext/libxml/ruby_xml_html_parser_options.h
|
89
|
-
- ext/libxml/ruby_xml_html_parser_options.o
|
90
|
-
- ext/libxml/ruby_xml_input_cbg.c
|
91
50
|
- ext/libxml/ruby_xml_input_cbg.h
|
92
|
-
- ext/libxml/ruby_xml_input_cbg.o
|
93
|
-
- ext/libxml/ruby_xml_io.c
|
94
51
|
- ext/libxml/ruby_xml_io.h
|
95
|
-
- ext/libxml/ruby_xml_io.o
|
96
|
-
- ext/libxml/ruby_xml_namespace.c
|
97
52
|
- ext/libxml/ruby_xml_namespace.h
|
98
|
-
- ext/libxml/ruby_xml_namespace.o
|
99
|
-
- ext/libxml/ruby_xml_namespaces.c
|
100
53
|
- ext/libxml/ruby_xml_namespaces.h
|
101
|
-
- ext/libxml/ruby_xml_namespaces.o
|
102
|
-
- ext/libxml/ruby_xml_node.c
|
103
54
|
- ext/libxml/ruby_xml_node.h
|
104
|
-
- ext/libxml/ruby_xml_node.o
|
105
|
-
- ext/libxml/ruby_xml_parser.c
|
106
55
|
- ext/libxml/ruby_xml_parser.h
|
107
|
-
- ext/libxml/ruby_xml_parser.o
|
108
|
-
- ext/libxml/ruby_xml_parser_context.c
|
109
56
|
- ext/libxml/ruby_xml_parser_context.h
|
110
|
-
- ext/libxml/ruby_xml_parser_context.o
|
111
|
-
- ext/libxml/ruby_xml_parser_options.c
|
112
57
|
- ext/libxml/ruby_xml_parser_options.h
|
113
|
-
- ext/libxml/ruby_xml_parser_options.o
|
114
|
-
- ext/libxml/ruby_xml_reader.c
|
115
58
|
- ext/libxml/ruby_xml_reader.h
|
116
|
-
- ext/libxml/ruby_xml_reader.o
|
117
|
-
- ext/libxml/ruby_xml_relaxng.c
|
118
59
|
- ext/libxml/ruby_xml_relaxng.h
|
119
|
-
- ext/libxml/ruby_xml_relaxng.o
|
120
|
-
- ext/libxml/ruby_xml_sax2_handler.c
|
121
60
|
- ext/libxml/ruby_xml_sax2_handler.h
|
122
|
-
- ext/libxml/ruby_xml_sax2_handler.o
|
123
|
-
- ext/libxml/ruby_xml_sax_parser.c
|
124
61
|
- ext/libxml/ruby_xml_sax_parser.h
|
125
|
-
- ext/libxml/ruby_xml_sax_parser.o
|
126
|
-
- ext/libxml/ruby_xml_schema.c
|
127
62
|
- ext/libxml/ruby_xml_schema.h
|
128
|
-
- ext/libxml/ruby_xml_schema.o
|
129
63
|
- ext/libxml/ruby_xml_version.h
|
130
|
-
- ext/libxml/ruby_xml_xinclude.c
|
131
64
|
- ext/libxml/ruby_xml_xinclude.h
|
132
|
-
- ext/libxml/ruby_xml_xinclude.o
|
133
|
-
- ext/libxml/ruby_xml_xpath.c
|
134
65
|
- ext/libxml/ruby_xml_xpath.h
|
135
|
-
- ext/libxml/ruby_xml_xpath.o
|
136
|
-
- ext/libxml/ruby_xml_xpath_context.c
|
137
66
|
- ext/libxml/ruby_xml_xpath_context.h
|
138
|
-
- ext/libxml/ruby_xml_xpath_context.o
|
139
|
-
- ext/libxml/ruby_xml_xpath_expression.c
|
140
67
|
- ext/libxml/ruby_xml_xpath_expression.h
|
141
|
-
- ext/libxml/ruby_xml_xpath_expression.o
|
142
|
-
- ext/libxml/ruby_xml_xpath_object.c
|
143
68
|
- ext/libxml/ruby_xml_xpath_object.h
|
144
|
-
- ext/libxml/ruby_xml_xpath_object.o
|
145
|
-
- ext/libxml/ruby_xml_xpointer.c
|
146
69
|
- ext/libxml/ruby_xml_xpointer.h
|
147
|
-
- ext/libxml/
|
70
|
+
- ext/libxml/libxml.c
|
71
|
+
- ext/libxml/ruby_xml.c
|
72
|
+
- ext/libxml/ruby_xml_attr.c
|
73
|
+
- ext/libxml/ruby_xml_attributes.c
|
74
|
+
- ext/libxml/ruby_xml_attr_decl.c
|
75
|
+
- ext/libxml/ruby_xml_cbg.c
|
76
|
+
- ext/libxml/ruby_xml_document.c
|
77
|
+
- ext/libxml/ruby_xml_dtd.c
|
78
|
+
- ext/libxml/ruby_xml_encoding.c
|
79
|
+
- ext/libxml/ruby_xml_error.c
|
80
|
+
- ext/libxml/ruby_xml_html_parser.c
|
81
|
+
- ext/libxml/ruby_xml_html_parser_context.c
|
82
|
+
- ext/libxml/ruby_xml_html_parser_options.c
|
83
|
+
- ext/libxml/ruby_xml_input_cbg.c
|
84
|
+
- ext/libxml/ruby_xml_io.c
|
85
|
+
- ext/libxml/ruby_xml_namespace.c
|
86
|
+
- ext/libxml/ruby_xml_namespaces.c
|
87
|
+
- ext/libxml/ruby_xml_node.c
|
88
|
+
- ext/libxml/ruby_xml_parser.c
|
89
|
+
- ext/libxml/ruby_xml_parser_context.c
|
90
|
+
- ext/libxml/ruby_xml_parser_options.c
|
91
|
+
- ext/libxml/ruby_xml_reader.c
|
92
|
+
- ext/libxml/ruby_xml_relaxng.c
|
93
|
+
- ext/libxml/ruby_xml_sax2_handler.c
|
94
|
+
- ext/libxml/ruby_xml_sax_parser.c
|
95
|
+
- ext/libxml/ruby_xml_schema.c
|
96
|
+
- ext/libxml/ruby_xml_xinclude.c
|
97
|
+
- ext/libxml/ruby_xml_xpath.c
|
98
|
+
- ext/libxml/ruby_xml_xpath_context.c
|
99
|
+
- ext/libxml/ruby_xml_xpath_expression.c
|
100
|
+
- ext/libxml/ruby_xml_xpath_object.c
|
101
|
+
- ext/libxml/ruby_xml_xpointer.c
|
102
|
+
- ext/libxml/extconf.rb
|
148
103
|
- ext/mingw/Rakefile
|
149
104
|
- ext/mingw/build.rake
|
150
105
|
- ext/vc/libxml_ruby.sln
|
@@ -169,6 +124,12 @@ files:
|
|
169
124
|
- lib/libxml.rb
|
170
125
|
- lib/xml/libxml.rb
|
171
126
|
- lib/xml.rb
|
127
|
+
- script/benchmark/depixelate
|
128
|
+
- script/benchmark/hamlet.xml
|
129
|
+
- script/benchmark/parsecount
|
130
|
+
- script/benchmark/sock_entries.xml
|
131
|
+
- script/benchmark/throughput
|
132
|
+
- script/test
|
172
133
|
- test/etc_doc_to_s.rb
|
173
134
|
- test/ets_doc_file.rb
|
174
135
|
- test/ets_doc_to_s.rb
|
@@ -177,6 +138,8 @@ files:
|
|
177
138
|
- test/ets_test.xml
|
178
139
|
- test/ets_tsr.rb
|
179
140
|
- test/model/atom.xml
|
141
|
+
- test/model/bands.iso-8859-1.xml
|
142
|
+
- test/model/bands.utf-8.xml
|
180
143
|
- test/model/bands.xml
|
181
144
|
- test/model/books.xml
|
182
145
|
- test/model/merge_bug_data.xml
|
@@ -189,6 +152,7 @@ files:
|
|
189
152
|
- test/model/shiporder.xsd
|
190
153
|
- test/model/soap.xml
|
191
154
|
- test/model/xinclude.xml
|
155
|
+
- test/rb-magic-comment.rb
|
192
156
|
- test/tc_attr.rb
|
193
157
|
- test/tc_attributes.rb
|
194
158
|
- test/tc_attr_decl.rb
|
@@ -222,9 +186,10 @@ files:
|
|
222
186
|
- test/tc_xpath_context.rb
|
223
187
|
- test/tc_xpath_expression.rb
|
224
188
|
- test/tc_xpointer.rb
|
189
|
+
- test/test_helper.rb
|
225
190
|
- test/test_suite.rb
|
226
191
|
has_rdoc: true
|
227
|
-
homepage: http://
|
192
|
+
homepage: http://xml4r.github.com/libxml-ruby
|
228
193
|
licenses: []
|
229
194
|
|
230
195
|
post_install_message:
|
@@ -232,30 +197,25 @@ rdoc_options: []
|
|
232
197
|
|
233
198
|
require_paths:
|
234
199
|
- lib
|
235
|
-
- ext/libxml
|
236
200
|
required_ruby_version: !ruby/object:Gem::Requirement
|
201
|
+
none: false
|
237
202
|
requirements:
|
238
203
|
- - ">="
|
239
204
|
- !ruby/object:Gem::Version
|
240
|
-
|
241
|
-
- 1
|
242
|
-
- 8
|
243
|
-
- 4
|
244
|
-
version: 1.8.4
|
205
|
+
version: 1.8.6
|
245
206
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
207
|
+
none: false
|
246
208
|
requirements:
|
247
209
|
- - ">="
|
248
210
|
- !ruby/object:Gem::Version
|
249
|
-
segments:
|
250
|
-
- 0
|
251
211
|
version: "0"
|
252
212
|
requirements: []
|
253
213
|
|
254
|
-
rubyforge_project:
|
255
|
-
rubygems_version: 1.
|
214
|
+
rubyforge_project:
|
215
|
+
rubygems_version: 1.5.2
|
256
216
|
signing_key:
|
257
217
|
specification_version: 3
|
258
|
-
summary: Ruby
|
218
|
+
summary: Ruby Bindings for LibXML2
|
259
219
|
test_files:
|
260
220
|
- test/tc_attr.rb
|
261
221
|
- test/tc_attributes.rb
|