libxml-ruby 0.8.0-x86-mswin32-60 → 0.8.1-x86-mswin32-60
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +8 -1
- data/README +2 -2
- data/benchmark/xml_benchmarks.rb +6 -1
- data/doc/{classes → rdoc/classes}/LibXML/XML/Attr.html +159 -159
- data/doc/{classes → rdoc/classes}/LibXML/XML/Attributes.html +56 -90
- data/doc/{classes → rdoc/classes}/LibXML/XML/Document.html +219 -219
- data/doc/{classes → rdoc/classes}/LibXML/XML/Dtd.html +6 -6
- data/doc/{classes → rdoc/classes}/LibXML/XML/Error.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/HTMLParser.html +36 -36
- data/doc/{classes → rdoc/classes}/LibXML/XML/InputCallbacks.html +6 -6
- data/doc/{classes → rdoc/classes}/LibXML/XML/NS.html +42 -42
- data/doc/{classes → rdoc/classes}/LibXML/XML/Node/FailedModify.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/Node/Set.html +54 -54
- data/doc/{classes → rdoc/classes}/LibXML/XML/Node/SetNamespace.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/Node/UnknownType.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/Node.html +728 -812
- data/doc/{classes → rdoc/classes}/LibXML/XML/Parser/Context.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/Parser/ParseError.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/Parser.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/Reader.html +282 -282
- data/doc/{classes → rdoc/classes}/LibXML/XML/SaxParser.html +48 -48
- data/doc/{classes → rdoc/classes}/LibXML/XML/Schema.html +18 -18
- data/doc/{classes → rdoc/classes}/LibXML/XML/State.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/Tree.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/XInclude/Error.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/XInclude.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/XMLParserOptions.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/XPath/Context.html +2 -2
- data/doc/{classes → rdoc/classes}/LibXML/XML/XPath/InvalidPath.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/XPath/Object.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/XPath.html +2 -2
- data/doc/{classes → rdoc/classes}/LibXML/XML/XPointer/Context/InvalidPath.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/XPointer/Context.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/XPointer/InvalidExpression.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/XPointer.html +6 -6
- data/doc/{classes → rdoc/classes}/LibXML/XML.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML.html +0 -0
- data/doc/{classes → rdoc/classes}/XML.html +0 -0
- data/doc/{classes → rdoc/classes}/singleton.html +0 -0
- data/doc/rdoc/created.rid +1 -0
- data/doc/{files → rdoc/files}/CHANGES.html +11 -2
- data/doc/{files → rdoc/files}/LICENSE.html +0 -0
- data/doc/{files → rdoc/files}/README.html +2 -2
- data/doc/{files → rdoc/files}/VERSION.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/cbg_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/libxml_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_attr_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_attributes_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_document_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_dtd_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_html_parser_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_input_cbg_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_node_c.html +1 -1
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_node_set_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_ns_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_parser_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_parser_context_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_reader_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_sax_parser_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_schema_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_state_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_xinclude_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_xpath_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_xpath_context_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_xpath_object_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_xpointer_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_xpointer_context_c.html +0 -0
- data/doc/{files → rdoc/files}/lib/libxml/attr_rb.html +0 -0
- data/doc/{files → rdoc/files}/lib/libxml/attributes_rb.html +0 -0
- data/doc/{files → rdoc/files}/lib/libxml/document_rb.html +0 -0
- data/doc/{files → rdoc/files}/lib/libxml/node_rb.html +1 -1
- data/doc/{files → rdoc/files}/lib/libxml/node_set_rb.html +0 -0
- data/doc/{files → rdoc/files}/lib/libxml/parser_options_rb.html +0 -0
- data/doc/{files → rdoc/files}/lib/libxml/parser_rb.html +0 -0
- data/doc/{files → rdoc/files}/lib/libxml/properties_rb.html +1 -1
- data/doc/{files → rdoc/files}/lib/libxml/tree_rb.html +0 -0
- data/doc/{files → rdoc/files}/lib/libxml_rb.html +0 -0
- data/doc/{files → rdoc/files}/lib/xml/libxml_rb.html +0 -0
- data/doc/{fr_class_index.html → rdoc/fr_class_index.html} +0 -0
- data/doc/{fr_file_index.html → rdoc/fr_file_index.html} +0 -0
- data/doc/{fr_method_index.html → rdoc/fr_method_index.html} +233 -234
- data/doc/{index.html → rdoc/index.html} +2 -2
- data/doc/{rdoc-style.css → rdoc/rdoc-style.css} +0 -0
- data/ext/libxml/extconf.rb +75 -117
- data/ext/libxml/ruby_xml_node.c +14 -401
- data/ext/libxml/version.h +2 -2
- data/lib/libxml/node.rb +159 -27
- data/lib/libxml/properties.rb +2 -8
- data/lib/libxml_ruby.so +0 -0
- data/mingw/libxml_ruby.so +0 -0
- data/test/tc_xml_attributes.rb +9 -0
- metadata +98 -97
- data/doc/created.rid +0 -1
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<!--
|
7
7
|
|
8
|
-
|
8
|
+
LibXML
|
9
9
|
|
10
10
|
-->
|
11
11
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
12
12
|
<head>
|
13
|
-
<title>
|
13
|
+
<title>LibXML</title>
|
14
14
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
15
15
|
</head>
|
16
16
|
<frameset rows="20%, 80%">
|
File without changes
|
data/ext/libxml/extconf.rb
CHANGED
@@ -11,147 +11,105 @@ def method_missing(s, *args)
|
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
14
|
+
require 'mkmf'
|
14
15
|
|
15
|
-
if
|
16
|
-
|
17
|
-
|
18
|
-
# on Windows because the Ruby executable is
|
19
|
-
# built with VC++ while here we want to build
|
20
|
-
# with MingW. So just roll our own...
|
21
|
-
|
22
|
-
target = "libxml"
|
23
|
-
|
24
|
-
#RUBY_INCLUDE_DIR = Config::CONFIG["archdir"]
|
25
|
-
#RUBY_BIN_DIR = Config::CONFIG["bindir"]
|
26
|
-
#RUBY_LIB_DIR = Config::CONFIG["libdir"]
|
27
|
-
#RUBY_SHARED_LIB = Config::CONFIG["LIBRUBY"]
|
28
|
-
#RUBY_SHARED_DLL = RUBY_SHARED_LIB.gsub(/lib$/, 'dll')
|
29
|
-
|
30
|
-
#CLEAN.include('*.o')
|
31
|
-
#CLOBBER.include('ruby_prof.so')
|
32
|
-
|
33
|
-
srcs = Dir['../ext/*.c']
|
34
|
-
|
35
|
-
objs = srcs.collect do |srcfile|
|
36
|
-
srcfile = File.basename(srcfile)
|
37
|
-
srcfile.chomp(File.extname(srcfile) + '.o')
|
38
|
-
end
|
39
|
-
|
40
|
-
#srcs.each do |srcfile|
|
41
|
-
# srcfile = File.basename(srcfile)
|
42
|
-
# objfile = srcfile.chomp(File.extname(srcfile) + '.o')
|
43
|
-
#
|
44
|
-
# if File.mtime(objfile) < File.mtime(srcfile)
|
45
|
-
# system "gcc -c -fPIC -O2 -Wall -o #{objfile} #{srcfile} -I#{RUBY_INCLUDE_DIR}"
|
46
|
-
# end
|
47
|
-
#end
|
48
|
-
|
49
|
-
#system "gcc -shared -o #{LIBNAME} #{obj} #{RUBY_BIN_DIR}/#{RUBY_SHARED_DLL}"
|
50
|
-
|
51
|
-
makefile_template = DATA.read
|
52
|
-
makefile = eval(makefile_template)
|
53
|
-
|
54
|
-
File.open('Makefile', 'w'){ |f| f << makefile }
|
55
|
-
|
56
|
-
else
|
57
|
-
|
58
|
-
require 'mkmf'
|
59
|
-
|
60
|
-
if defined?(CFLAGS)
|
61
|
-
if CFLAGS.index(CONFIG['CCDLFLAGS'])
|
62
|
-
$CFLAGS = CFLAGS
|
63
|
-
else
|
64
|
-
$CFLAGS = CFLAGS + ' ' + CONFIG['CCDLFLAGS']
|
65
|
-
end
|
16
|
+
if defined?(CFLAGS)
|
17
|
+
if CFLAGS.index(CONFIG['CCDLFLAGS'])
|
18
|
+
$CFLAGS = CFLAGS + ' ' + CONFIG['CCDLFLAGS']
|
66
19
|
else
|
67
|
-
$CFLAGS =
|
20
|
+
$CFLAGS = CFLAGS
|
68
21
|
end
|
69
|
-
|
70
|
-
$
|
22
|
+
else
|
23
|
+
$CFLAGS = CONFIG['CFLAGS']
|
24
|
+
end
|
25
|
+
$LDFLAGS = CONFIG['LDFLAGS']
|
26
|
+
$LIBPATH.push(Config::CONFIG['libdir'])
|
71
27
|
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
28
|
+
def crash(str)
|
29
|
+
printf(" extconf failure: %s\n", str)
|
30
|
+
exit 1
|
31
|
+
end
|
76
32
|
|
77
|
-
|
78
|
-
|
79
|
-
|
33
|
+
dir_config('iconv')
|
34
|
+
dir_config('xml2')
|
35
|
+
dir_config('zlib')
|
80
36
|
|
81
|
-
|
82
|
-
|
37
|
+
have_library('socket','socket')
|
38
|
+
have_library('nsl','gethostbyname')
|
83
39
|
|
40
|
+
unless have_library('m', 'atan')
|
41
|
+
# try again for gcc 4.0
|
42
|
+
saveflags = $CFLAGS
|
43
|
+
$CFLAGS += ' -fno-builtin'
|
84
44
|
unless have_library('m', 'atan')
|
85
|
-
|
86
|
-
saveflags = $CFLAGS
|
87
|
-
$CFLAGS += ' -fno-builtin'
|
88
|
-
unless have_library('m', 'atan')
|
89
|
-
crash('need libm')
|
90
|
-
end
|
91
|
-
$CFLAGS = saveflags
|
45
|
+
crash('need libm')
|
92
46
|
end
|
47
|
+
$CFLAGS = saveflags
|
48
|
+
end
|
93
49
|
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
50
|
+
unless have_library('z', 'inflate') or
|
51
|
+
have_library('zlib', 'inflate') or
|
52
|
+
have_library('zlib1', 'inflate')
|
53
|
+
crash('need zlib')
|
54
|
+
else
|
55
|
+
$defs.push('-DHAVE_ZLIB_H')
|
56
|
+
end
|
101
57
|
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
58
|
+
unless have_library('iconv','iconv_open') or
|
59
|
+
have_library('iconv','libiconv_open') or
|
60
|
+
have_library('libiconv', 'libiconv_open') or
|
61
|
+
have_library('libiconv', 'iconv_open') or
|
62
|
+
have_library('c','iconv_open') or
|
63
|
+
have_library('recode','iconv_open') or
|
64
|
+
have_library('iconv')
|
65
|
+
crash(<<EOL)
|
110
66
|
need libiconv.
|
111
67
|
|
112
|
-
|
113
|
-
|
68
|
+
Install the libiconv or try passing one of the following options
|
69
|
+
to extconf.rb:
|
114
70
|
|
115
|
-
|
116
|
-
|
117
|
-
|
71
|
+
--with-iconv-dir=/path/to/iconv
|
72
|
+
--with-iconv-lib=/path/to/iconv/lib
|
73
|
+
--with-iconv-include=/path/to/iconv/include
|
118
74
|
EOL
|
119
|
-
|
75
|
+
end
|
120
76
|
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
77
|
+
unless (have_library('xml2', 'xmlParseDoc') or
|
78
|
+
have_library('libxml2', 'xmlParseDoc') or
|
79
|
+
find_library('xml2', 'xmlParseDoc', '/opt/lib', '/usr/local/lib', '/usr/lib')) and
|
80
|
+
(have_header('libxml/xmlversion.h') or
|
81
|
+
find_header('libxml/xmlversion.h',
|
82
|
+
"#{CONFIG['prefix']}/include",
|
83
|
+
'/opt/include/libxml2',
|
84
|
+
'/usr/local/include/libxml2',
|
85
|
+
'/usr/include/libxml2'))
|
86
|
+
crash(<<EOL)
|
131
87
|
need libxml2.
|
132
88
|
|
133
|
-
|
89
|
+
Install the library or try one of the following options to extconf.rb:
|
134
90
|
|
135
|
-
|
136
|
-
|
137
|
-
|
91
|
+
--with-xml2-dir=/path/to/libxml2
|
92
|
+
--with-xml2-lib=/path/to/libxml2/lib
|
93
|
+
--with-xml2-include=/path/to/libxml2/include
|
138
94
|
EOL
|
139
|
-
|
95
|
+
end
|
140
96
|
|
141
|
-
|
142
|
-
|
143
|
-
|
97
|
+
unless have_func('xmlDocFormatDump')
|
98
|
+
crash('Your version of libxml2 is too old. Please upgrade.')
|
99
|
+
end
|
144
100
|
|
145
|
-
|
146
|
-
|
147
|
-
|
101
|
+
unless have_func('docbCreateFileParserCtxt')
|
102
|
+
crash('Need docbCreateFileParserCtxt')
|
103
|
+
end
|
148
104
|
|
149
|
-
|
150
|
-
|
105
|
+
# For FreeBSD add /usr/local/include
|
106
|
+
$INCFLAGS << " -I/usr/local/include"
|
151
107
|
|
152
|
-
|
153
|
-
|
154
|
-
|
108
|
+
$CFLAGS << ' ' << $INCFLAGS
|
109
|
+
#$INSTALLFILES = [["libxml.rb", "$(RUBYLIBDIR)", "../xml"]]
|
110
|
+
|
111
|
+
create_header()
|
112
|
+
create_makefile('libxml_ruby')
|
155
113
|
|
156
114
|
__END__
|
157
115
|
|