libxml-ruby 0.5.2.0 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +122 -0
- data/LICENSE +2 -1
- data/MANIFEST +138 -0
- data/NOTES +9 -0
- data/README +1 -1
- data/Rakefile +27 -205
- data/TODO +0 -2
- data/VERSION +1 -0
- data/ext/{xml → libxml}/cbg.c +0 -0
- data/ext/libxml/extconf.rb +309 -0
- data/ext/{xml → libxml}/libxml.c +1 -1
- data/ext/{xml → libxml}/libxml.h +7 -4
- data/ext/{xml → libxml}/ruby_xml_attr.c +1 -1
- data/ext/{xml → libxml}/ruby_xml_attr.h +1 -1
- data/ext/{xml → libxml}/ruby_xml_document.c +16 -8
- data/ext/{xml → libxml}/ruby_xml_document.h +1 -1
- data/ext/{xml → libxml}/ruby_xml_dtd.c +0 -0
- data/ext/{xml → libxml}/ruby_xml_dtd.h +0 -0
- data/ext/{xml → libxml}/ruby_xml_html_parser.c +1 -1
- data/ext/{xml → libxml}/ruby_xml_html_parser.h +1 -1
- data/ext/{xml → libxml}/ruby_xml_input_cbg.c +0 -0
- data/ext/{xml → libxml}/ruby_xml_input_cbg.h +0 -0
- data/ext/{xml → libxml}/ruby_xml_node.c +47 -6
- data/ext/{xml → libxml}/ruby_xml_node.h +1 -1
- data/ext/{xml → libxml}/ruby_xml_node_set.c +1 -1
- data/ext/{xml → libxml}/ruby_xml_node_set.h +1 -1
- data/ext/{xml → libxml}/ruby_xml_ns.c +1 -1
- data/ext/{xml → libxml}/ruby_xml_ns.h +1 -1
- data/ext/{xml → libxml}/ruby_xml_parser.c +6 -4
- data/ext/{xml → libxml}/ruby_xml_parser.h +1 -1
- data/ext/{xml → libxml}/ruby_xml_parser_context.c +1 -1
- data/ext/{xml → libxml}/ruby_xml_parser_context.h +1 -1
- data/ext/{xml → libxml}/ruby_xml_reader.c +3 -0
- data/ext/{xml → libxml}/ruby_xml_reader.h +0 -0
- data/ext/{xml → libxml}/ruby_xml_sax_parser.c +1 -1
- data/ext/{xml → libxml}/ruby_xml_sax_parser.h +1 -1
- data/ext/{xml → libxml}/ruby_xml_schema.c +0 -0
- data/ext/{xml → libxml}/ruby_xml_schema.h +0 -0
- data/ext/{xml → libxml}/ruby_xml_state.c +0 -0
- data/ext/{xml → libxml}/ruby_xml_state.h +0 -0
- data/ext/{xml → libxml}/ruby_xml_tree.c +1 -1
- data/ext/{xml → libxml}/ruby_xml_tree.h +1 -1
- data/ext/{xml → libxml}/ruby_xml_xinclude.c +1 -1
- data/ext/{xml → libxml}/ruby_xml_xinclude.h +1 -1
- data/ext/{xml → libxml}/ruby_xml_xpath.c +7 -4
- data/ext/{xml → libxml}/ruby_xml_xpath.h +1 -1
- data/ext/{xml → libxml}/ruby_xml_xpath_context.c +1 -1
- data/ext/{xml → libxml}/ruby_xml_xpath_context.h +1 -1
- data/ext/{xml → libxml}/ruby_xml_xpath_object.c +65 -32
- data/ext/{xml → libxml}/ruby_xml_xpath_object.h +0 -0
- data/ext/{xml → libxml}/ruby_xml_xpointer.c +1 -1
- data/ext/{xml → libxml}/ruby_xml_xpointer.h +1 -1
- data/ext/{xml → libxml}/ruby_xml_xpointer_context.c +1 -1
- data/ext/{xml → libxml}/ruby_xml_xpointer_context.h +1 -1
- data/ext/{xml → libxml}/sax_parser_callbacks.inc +1 -1
- data/ext/libxml/version.h +9 -0
- data/{ext/xml → lib}/libxml.rb +7 -2
- data/lib/xml/libxml.rb +5 -0
- data/{ChangeLog → log/Changelog-0.txt} +0 -0
- data/log/Changelog.txt +435 -0
- data/meta/project.yaml +27 -0
- data/meta/unixname +1 -0
- data/setup.rb +1469 -0
- data/site/css/normal.css +182 -0
- data/site/img/raze-tiny.png +0 -0
- data/site/img/red-cube.jpg +0 -0
- data/site/img/xml-ruby.png +0 -0
- data/site/index.xml +43 -0
- data/site/install.xml +77 -0
- data/site/layout.rhtml +38 -0
- data/site/layout.xsl +67 -0
- data/site/license.xml +32 -0
- data/site/log/changelog.xml +1324 -0
- data/site/log/changelog.xsl +42 -0
- data/{tests → test}/dtd-test.rb +2 -2
- data/test/etc_doc_to_s.rb +21 -0
- data/test/ets_copy_bug.rb +21 -0
- data/test/ets_copy_bug2.rb +32 -0
- data/test/ets_doc_file.rb +14 -0
- data/test/ets_doc_to_s.rb +21 -0
- data/test/ets_gpx.rb +26 -0
- data/test/ets_node_gc.rb +21 -0
- data/test/ets_test.xml +2 -0
- data/test/ets_tsr.rb +9 -0
- data/{tests → test}/merge_bug.rb +4 -5
- data/{tests → test}/model/default_validation_bug.rb +0 -0
- data/{tests → test}/model/merge_bug_data.xml +0 -0
- data/{tests → test}/model/rubynet.xml +0 -0
- data/{tests → test}/model/rubynet_project +1 -1
- data/{tests → test}/model/saxtest.xml +0 -0
- data/{tests → test}/model/simple.xml +0 -0
- data/{tests → test}/model/xinclude.xml +0 -0
- data/{tests → test}/schema-test.rb +2 -2
- data/{tests → test}/tc_xml_document.rb +2 -2
- data/{tests → test}/tc_xml_document_write.rb +1 -2
- data/{tests → test}/tc_xml_document_write2.rb +1 -2
- data/{tests → test}/tc_xml_document_write3.rb +1 -2
- data/{tests → test}/tc_xml_html_parser.rb +7 -8
- data/{tests → test}/tc_xml_node.rb +1 -2
- data/{tests → test}/tc_xml_node2.rb +1 -2
- data/{tests → test}/tc_xml_node3.rb +2 -3
- data/{tests → test}/tc_xml_node4.rb +19 -20
- data/{tests → test}/tc_xml_node5.rb +8 -9
- data/{tests → test}/tc_xml_node6.rb +1 -2
- data/{tests → test}/tc_xml_node7.rb +5 -6
- data/{tests → test}/tc_xml_node8.rb +5 -5
- data/{tests → test}/tc_xml_node9.rb +5 -5
- data/test/tc_xml_node_copy.rb +40 -0
- data/{tests → test}/tc_xml_node_set.rb +2 -3
- data/{tests → test}/tc_xml_node_set2.rb +4 -5
- data/test/tc_xml_node_text.rb +17 -0
- data/{tests → test}/tc_xml_node_xlink.rb +2 -2
- data/{tests → test}/tc_xml_parser.rb +5 -6
- data/{tests → test}/tc_xml_parser2.rb +2 -2
- data/{tests → test}/tc_xml_parser3.rb +2 -2
- data/{tests → test}/tc_xml_parser4.rb +2 -2
- data/{tests → test}/tc_xml_parser5.rb +2 -2
- data/{tests → test}/tc_xml_parser6.rb +3 -3
- data/{tests → test}/tc_xml_parser7.rb +3 -3
- data/{tests → test}/tc_xml_parser8.rb +13 -13
- data/{tests → test}/tc_xml_parser_context.rb +1 -2
- data/{tests → test}/tc_xml_reader.rb +22 -14
- data/{tests → test}/tc_xml_sax_parser.rb +21 -22
- data/{tests → test}/tc_xml_xinclude.rb +4 -4
- data/{tests → test}/tc_xml_xpath.rb +17 -3
- data/{tests → test}/tc_xml_xpointer.rb +4 -5
- metadata +231 -158
- data/CHANGELOG_to200701 +0 -82
- data/ext/xml/extconf.rb +0 -98
- data/tests/libxml_test.rb +0 -3
- data/tests/runner.rb +0 -11
data/CHANGELOG_to200701
DELETED
@@ -1,82 +0,0 @@
|
|
1
|
-
See ChangeLog for more recent changes derived directly from svn.
|
2
|
-
|
3
|
-
===== 14.1.2007 Laurent Sansonetti <lrz at chopine.be>
|
4
|
-
* Added some preliminary RDoc comments for XML::Reader.
|
5
|
-
|
6
|
-
===== 5.12.2006 Laurent Sansonetti <lrz at chopine.be>
|
7
|
-
* Added XML::Reader, a set of bindings to the xmlTextReader API.
|
8
|
-
|
9
|
-
===== 15.4.2006 Ross Bamford <rosco at roscopeco.co.uk>
|
10
|
-
* Implemented SAX parser callback handling
|
11
|
-
|
12
|
-
===== 12.4.2006 Ross Bamford <rosco at roscopeco.co.uk>
|
13
|
-
* Integrated / tested community patches
|
14
|
-
* Defined XML::Node (hash) equality in terms of XML representation
|
15
|
-
|
16
|
-
===== 12.4.2006 Tim Yamin <plasmaroo at gentoo.org> (patches)
|
17
|
-
* Fixed XML::Node#content inoperable bug
|
18
|
-
* Fixed memory leak in same
|
19
|
-
|
20
|
-
===== 12.4.2006 Mark Van Holstyn <mvette13 at gmail.com> (patches)
|
21
|
-
* Added XML::Node::Set#first
|
22
|
-
* Added XML::Node::Set#empty?
|
23
|
-
* Fixes to XML::Node::Set#to_a
|
24
|
-
* Added XML::Node#find_first
|
25
|
-
* Added XML::Node#remove!
|
26
|
-
|
27
|
-
===== 27.3.2006 Ross Bamford <rosco at roscopeco.co.uk>
|
28
|
-
* Integrated contributed XML::Parser.register_error_handler patch
|
29
|
-
|
30
|
-
===== 27.2.2006 Ross Bamford <rosco at roscopeco.co.uk>
|
31
|
-
* Fixed all multiple symbol definitions for -fno-common.
|
32
|
-
* Removed OSX -fno-common workaround.
|
33
|
-
|
34
|
-
===== 21.2.2006 Ross Bamford <rosco at roscopeco.co.uk>
|
35
|
-
* Patched extconf.rb with OSX -fno-common workaround
|
36
|
-
* Added gem and packaging support to Rakefile
|
37
|
-
* Moved version update to Rakefile
|
38
|
-
* Removed legacy project utility scripts
|
39
|
-
|
40
|
-
===== 19.2.2006 Ross Bamford <rosco at roscopeco.co.uk>
|
41
|
-
* Fixed doublefree bug in ruby_xml_attr.
|
42
|
-
* Fixed small leak in parser
|
43
|
-
|
44
|
-
===== 18.12.2005 Ross Bamford <rosco at roscopeco.co.uk>
|
45
|
-
* Updated for GCC 4.0 (community patches)
|
46
|
-
* Fixed default validation bug
|
47
|
-
* Refactored project, removed outdated files, cleaned up tests.
|
48
|
-
* Added RDoc documentation across .c files.
|
49
|
-
* Fixed up a few strings.
|
50
|
-
|
51
|
-
===== 14.4.2004 Mangler Jurgen <et@wkv.at>
|
52
|
-
* ruby_xml_node.cz: fixed ruby_xml_node_property_set. The ill-behaviour
|
53
|
-
was, that there was added a second attribute of the same
|
54
|
-
name, when you were setting the value of an already existing
|
55
|
-
attribute.
|
56
|
-
|
57
|
-
===== 17.3.2004 Lukas Svoboda <luks@fi.muni.cz>
|
58
|
-
* ruby_xml_node.c: ruby_xml_node_to_s now returns XML subtree dump.
|
59
|
-
|
60
|
-
===== 27.2.2004 Martin Povolny <martin@solnet.cz>
|
61
|
-
* ruby_xml_node.c: added XML::Node.copy, this makes possible building
|
62
|
-
of xml documents from nodes taken from other xml documents
|
63
|
-
without making ruby SIGSEGV (see tests/copy_bug.rb).
|
64
|
-
|
65
|
-
===== 26.2.2004 Martin Povolny <martin@solnet.cz>
|
66
|
-
* ruby_xml_dtd.c, ruby_xml_dtd.h, ruby_xml_schema.c, ruby_xml_schema.h:
|
67
|
-
more work on validation, now you can actually validate
|
68
|
-
document using dtd or xml schema, also solved warning and
|
69
|
-
error propagation (see tests/{dtd|schema}-test.rb).
|
70
|
-
|
71
|
-
===== 30.12.2003 Martin Povolny <martin@solnet.cz>
|
72
|
-
* ruby_xml_dtd.c, ruby_xml_dtd.h, ruby_xml_schema.c, ruby_xml_schema.h:
|
73
|
-
prelimitary support for dtd and schema validation
|
74
|
-
|
75
|
-
===== 15.9.2003 Martin Povolny <martin@solnet.cz>
|
76
|
-
* ruby_xml_input_cbg.c, libxml.c: added class InputCallbacks to make
|
77
|
-
possible registering custom input callbacks
|
78
|
-
handlers (xmlRegisterInputCallbacks) written in ruby
|
79
|
-
|
80
|
-
===== 1.8.2003 Martin Povolny <martin@solnet.cz>
|
81
|
-
* ruby_xml_document.c: corrected argument handling in ruby_xml_document_find
|
82
|
-
* ruby_xml_node.c: corrected argument handling in ruby_xml_node_find
|
data/ext/xml/extconf.rb
DELETED
@@ -1,98 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'mkmf'
|
4
|
-
|
5
|
-
if defined?(CFLAGS)
|
6
|
-
if CFLAGS.index(CONFIG['CCDLFLAGS'])
|
7
|
-
$CFLAGS = CFLAGS
|
8
|
-
else
|
9
|
-
$CFLAGS = CFLAGS + ' ' + CONFIG['CCDLFLAGS']
|
10
|
-
end
|
11
|
-
else
|
12
|
-
$CFLAGS = CONFIG['CFLAGS']
|
13
|
-
end
|
14
|
-
$LDFLAGS = CONFIG['LDFLAGS']
|
15
|
-
$LIBPATH.push(Config::CONFIG['libdir'])
|
16
|
-
|
17
|
-
def crash(str)
|
18
|
-
printf(" extconf failure: %s\n", str)
|
19
|
-
exit 1
|
20
|
-
end
|
21
|
-
|
22
|
-
dir_config('iconv')
|
23
|
-
dir_config('xml2')
|
24
|
-
dir_config('zlib')
|
25
|
-
|
26
|
-
have_library('socket','socket')
|
27
|
-
have_library('nsl','gethostbyname')
|
28
|
-
|
29
|
-
unless have_library('m', 'atan')
|
30
|
-
# try again for gcc 4.0
|
31
|
-
saveflags = $CFLAGS
|
32
|
-
$CFLAGS += ' -fno-builtin'
|
33
|
-
unless have_library('m', 'atan')
|
34
|
-
crash('need libm')
|
35
|
-
end
|
36
|
-
$CFLAGS = saveflags
|
37
|
-
end
|
38
|
-
|
39
|
-
unless have_library('z', 'inflate') or
|
40
|
-
have_library('zlib', 'inflate') or
|
41
|
-
have_library('zlib1', 'inflate')
|
42
|
-
crash('need zlib')
|
43
|
-
else
|
44
|
-
$defs.push('-DHAVE_ZLIB_H')
|
45
|
-
end
|
46
|
-
|
47
|
-
unless have_library('iconv','iconv_open') or
|
48
|
-
have_library('iconv','libiconv_open') or
|
49
|
-
have_library('libiconv', 'libiconv_open') or
|
50
|
-
have_library('libiconv', 'iconv_open') or
|
51
|
-
have_library('c','iconv_open') or
|
52
|
-
have_library('recode','iconv_open') or
|
53
|
-
have_library('iconv')
|
54
|
-
crash(<<EOL)
|
55
|
-
need libiconv.
|
56
|
-
|
57
|
-
Install the libiconv or try passing one of the following options
|
58
|
-
to extconf.rb:
|
59
|
-
|
60
|
-
--with-iconv-dir=/path/to/iconv
|
61
|
-
--with-iconv-lib=/path/to/iconv/lib
|
62
|
-
--with-iconv-include=/path/to/iconv/include
|
63
|
-
EOL
|
64
|
-
end
|
65
|
-
|
66
|
-
unless (have_library('xml2', 'xmlParseDoc') or
|
67
|
-
have_library('libxml2', 'xmlParseDoc') or
|
68
|
-
find_library('xml2', '/opt/lib', '/usr/local/lib', '/usr/lib')) and
|
69
|
-
(have_header('libxml/xmlversion.h') or
|
70
|
-
find_header('libxml/xmlversion.h',
|
71
|
-
"#{CONFIG['prefix']}/include",
|
72
|
-
'/opt/include/libxml2',
|
73
|
-
'/usr/local/include/libxml2',
|
74
|
-
'/usr/include/libxml2'))
|
75
|
-
crash(<<EOL)
|
76
|
-
need libxml2.
|
77
|
-
|
78
|
-
Install the library or try one of the following options to extconf.rb:
|
79
|
-
|
80
|
-
--with-xml2-dir=/path/to/libxml2
|
81
|
-
--with-xml2-lib=/path/to/libxml2/lib
|
82
|
-
--with-xml2-include=/path/to/libxml2/include
|
83
|
-
EOL
|
84
|
-
end
|
85
|
-
|
86
|
-
unless have_func('xmlDocFormatDump')
|
87
|
-
crash('Your version of libxml2 is too old. Please upgrade.')
|
88
|
-
end
|
89
|
-
|
90
|
-
unless have_func('docbCreateFileParserCtxt')
|
91
|
-
crash('Need docbCreateFileParserCtxt')
|
92
|
-
end
|
93
|
-
|
94
|
-
$CFLAGS << ' ' << $INCFLAGS
|
95
|
-
$INSTALLFILES = [["libxml.rb", "$(RUBYLIBDIR)", "../xml"]]
|
96
|
-
|
97
|
-
create_header()
|
98
|
-
create_makefile('xml/libxml_so')
|
data/tests/libxml_test.rb
DELETED
data/tests/runner.rb
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
#
|
3
|
-
# Allsuite for Eclipse and GEM.
|
4
|
-
$LOAD_PATH.unshift File.dirname(__FILE__)
|
5
|
-
require "libxml_test"
|
6
|
-
|
7
|
-
ALL_TESTS = true
|
8
|
-
TESTS = File.expand_path(File.dirname(__FILE__))
|
9
|
-
|
10
|
-
glob = File.join(TESTS, ENV['TESTS'] || 'tc_*.rb')
|
11
|
-
Dir[glob].each { |fn| require fn }
|