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.
Files changed (93) hide show
  1. data/CHANGES +8 -1
  2. data/README +2 -2
  3. data/benchmark/xml_benchmarks.rb +6 -1
  4. data/doc/{classes → rdoc/classes}/LibXML/XML/Attr.html +159 -159
  5. data/doc/{classes → rdoc/classes}/LibXML/XML/Attributes.html +56 -90
  6. data/doc/{classes → rdoc/classes}/LibXML/XML/Document.html +219 -219
  7. data/doc/{classes → rdoc/classes}/LibXML/XML/Dtd.html +6 -6
  8. data/doc/{classes → rdoc/classes}/LibXML/XML/Error.html +0 -0
  9. data/doc/{classes → rdoc/classes}/LibXML/XML/HTMLParser.html +36 -36
  10. data/doc/{classes → rdoc/classes}/LibXML/XML/InputCallbacks.html +6 -6
  11. data/doc/{classes → rdoc/classes}/LibXML/XML/NS.html +42 -42
  12. data/doc/{classes → rdoc/classes}/LibXML/XML/Node/FailedModify.html +0 -0
  13. data/doc/{classes → rdoc/classes}/LibXML/XML/Node/Set.html +54 -54
  14. data/doc/{classes → rdoc/classes}/LibXML/XML/Node/SetNamespace.html +0 -0
  15. data/doc/{classes → rdoc/classes}/LibXML/XML/Node/UnknownType.html +0 -0
  16. data/doc/{classes → rdoc/classes}/LibXML/XML/Node.html +728 -812
  17. data/doc/{classes → rdoc/classes}/LibXML/XML/Parser/Context.html +0 -0
  18. data/doc/{classes → rdoc/classes}/LibXML/XML/Parser/ParseError.html +0 -0
  19. data/doc/{classes → rdoc/classes}/LibXML/XML/Parser.html +0 -0
  20. data/doc/{classes → rdoc/classes}/LibXML/XML/Reader.html +282 -282
  21. data/doc/{classes → rdoc/classes}/LibXML/XML/SaxParser.html +48 -48
  22. data/doc/{classes → rdoc/classes}/LibXML/XML/Schema.html +18 -18
  23. data/doc/{classes → rdoc/classes}/LibXML/XML/State.html +0 -0
  24. data/doc/{classes → rdoc/classes}/LibXML/XML/Tree.html +0 -0
  25. data/doc/{classes → rdoc/classes}/LibXML/XML/XInclude/Error.html +0 -0
  26. data/doc/{classes → rdoc/classes}/LibXML/XML/XInclude.html +0 -0
  27. data/doc/{classes → rdoc/classes}/LibXML/XML/XMLParserOptions.html +0 -0
  28. data/doc/{classes → rdoc/classes}/LibXML/XML/XPath/Context.html +2 -2
  29. data/doc/{classes → rdoc/classes}/LibXML/XML/XPath/InvalidPath.html +0 -0
  30. data/doc/{classes → rdoc/classes}/LibXML/XML/XPath/Object.html +0 -0
  31. data/doc/{classes → rdoc/classes}/LibXML/XML/XPath.html +2 -2
  32. data/doc/{classes → rdoc/classes}/LibXML/XML/XPointer/Context/InvalidPath.html +0 -0
  33. data/doc/{classes → rdoc/classes}/LibXML/XML/XPointer/Context.html +0 -0
  34. data/doc/{classes → rdoc/classes}/LibXML/XML/XPointer/InvalidExpression.html +0 -0
  35. data/doc/{classes → rdoc/classes}/LibXML/XML/XPointer.html +6 -6
  36. data/doc/{classes → rdoc/classes}/LibXML/XML.html +0 -0
  37. data/doc/{classes → rdoc/classes}/LibXML.html +0 -0
  38. data/doc/{classes → rdoc/classes}/XML.html +0 -0
  39. data/doc/{classes → rdoc/classes}/singleton.html +0 -0
  40. data/doc/rdoc/created.rid +1 -0
  41. data/doc/{files → rdoc/files}/CHANGES.html +11 -2
  42. data/doc/{files → rdoc/files}/LICENSE.html +0 -0
  43. data/doc/{files → rdoc/files}/README.html +2 -2
  44. data/doc/{files → rdoc/files}/VERSION.html +0 -0
  45. data/doc/{files → rdoc/files}/ext/libxml/cbg_c.html +0 -0
  46. data/doc/{files → rdoc/files}/ext/libxml/libxml_c.html +0 -0
  47. data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_attr_c.html +0 -0
  48. data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_attributes_c.html +0 -0
  49. data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_document_c.html +0 -0
  50. data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_dtd_c.html +0 -0
  51. data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_html_parser_c.html +0 -0
  52. data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_input_cbg_c.html +0 -0
  53. data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_node_c.html +1 -1
  54. data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_node_set_c.html +0 -0
  55. data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_ns_c.html +0 -0
  56. data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_parser_c.html +0 -0
  57. data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_parser_context_c.html +0 -0
  58. data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_reader_c.html +0 -0
  59. data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_sax_parser_c.html +0 -0
  60. data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_schema_c.html +0 -0
  61. data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_state_c.html +0 -0
  62. data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_xinclude_c.html +0 -0
  63. data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_xpath_c.html +0 -0
  64. data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_xpath_context_c.html +0 -0
  65. data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_xpath_object_c.html +0 -0
  66. data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_xpointer_c.html +0 -0
  67. data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_xpointer_context_c.html +0 -0
  68. data/doc/{files → rdoc/files}/lib/libxml/attr_rb.html +0 -0
  69. data/doc/{files → rdoc/files}/lib/libxml/attributes_rb.html +0 -0
  70. data/doc/{files → rdoc/files}/lib/libxml/document_rb.html +0 -0
  71. data/doc/{files → rdoc/files}/lib/libxml/node_rb.html +1 -1
  72. data/doc/{files → rdoc/files}/lib/libxml/node_set_rb.html +0 -0
  73. data/doc/{files → rdoc/files}/lib/libxml/parser_options_rb.html +0 -0
  74. data/doc/{files → rdoc/files}/lib/libxml/parser_rb.html +0 -0
  75. data/doc/{files → rdoc/files}/lib/libxml/properties_rb.html +1 -1
  76. data/doc/{files → rdoc/files}/lib/libxml/tree_rb.html +0 -0
  77. data/doc/{files → rdoc/files}/lib/libxml_rb.html +0 -0
  78. data/doc/{files → rdoc/files}/lib/xml/libxml_rb.html +0 -0
  79. data/doc/{fr_class_index.html → rdoc/fr_class_index.html} +0 -0
  80. data/doc/{fr_file_index.html → rdoc/fr_file_index.html} +0 -0
  81. data/doc/{fr_method_index.html → rdoc/fr_method_index.html} +233 -234
  82. data/doc/{index.html → rdoc/index.html} +2 -2
  83. data/doc/{rdoc-style.css → rdoc/rdoc-style.css} +0 -0
  84. data/ext/libxml/extconf.rb +75 -117
  85. data/ext/libxml/ruby_xml_node.c +14 -401
  86. data/ext/libxml/version.h +2 -2
  87. data/lib/libxml/node.rb +159 -27
  88. data/lib/libxml/properties.rb +2 -8
  89. data/lib/libxml_ruby.so +0 -0
  90. data/mingw/libxml_ruby.so +0 -0
  91. data/test/tc_xml_attributes.rb +9 -0
  92. metadata +98 -97
  93. data/doc/created.rid +0 -1
@@ -5,12 +5,12 @@
5
5
 
6
6
  <!--
7
7
 
8
- libxml-ruby
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>libxml-ruby</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
@@ -11,147 +11,105 @@ def method_missing(s, *args)
11
11
  end
12
12
  end
13
13
 
14
+ require 'mkmf'
14
15
 
15
- if RUBY_PLATFORM =~ /win32/ # FIXME: Make more robust
16
-
17
- # We can't use Ruby's standard build procedures
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 = CONFIG['CFLAGS']
20
+ $CFLAGS = CFLAGS
68
21
  end
69
- $LDFLAGS = CONFIG['LDFLAGS']
70
- $LIBPATH.push(Config::CONFIG['libdir'])
22
+ else
23
+ $CFLAGS = CONFIG['CFLAGS']
24
+ end
25
+ $LDFLAGS = CONFIG['LDFLAGS']
26
+ $LIBPATH.push(Config::CONFIG['libdir'])
71
27
 
72
- def crash(str)
73
- printf(" extconf failure: %s\n", str)
74
- exit 1
75
- end
28
+ def crash(str)
29
+ printf(" extconf failure: %s\n", str)
30
+ exit 1
31
+ end
76
32
 
77
- dir_config('iconv')
78
- dir_config('xml2')
79
- dir_config('zlib')
33
+ dir_config('iconv')
34
+ dir_config('xml2')
35
+ dir_config('zlib')
80
36
 
81
- have_library('socket','socket')
82
- have_library('nsl','gethostbyname')
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
- # try again for gcc 4.0
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
- unless have_library('z', 'inflate') or
95
- have_library('zlib', 'inflate') or
96
- have_library('zlib1', 'inflate')
97
- crash('need zlib')
98
- else
99
- $defs.push('-DHAVE_ZLIB_H')
100
- end
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
- unless have_library('iconv','iconv_open') or
103
- have_library('iconv','libiconv_open') or
104
- have_library('libiconv', 'libiconv_open') or
105
- have_library('libiconv', 'iconv_open') or
106
- have_library('c','iconv_open') or
107
- have_library('recode','iconv_open') or
108
- have_library('iconv')
109
- crash(<<EOL)
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
- Install the libiconv or try passing one of the following options
113
- to extconf.rb:
68
+ Install the libiconv or try passing one of the following options
69
+ to extconf.rb:
114
70
 
115
- --with-iconv-dir=/path/to/iconv
116
- --with-iconv-lib=/path/to/iconv/lib
117
- --with-iconv-include=/path/to/iconv/include
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
- end
75
+ end
120
76
 
121
- unless (have_library('xml2', 'xmlParseDoc') or
122
- have_library('libxml2', 'xmlParseDoc') or
123
- find_library('xml2', 'xmlParseDoc', '/opt/lib', '/usr/local/lib', '/usr/lib')) and
124
- (have_header('libxml/xmlversion.h') or
125
- find_header('libxml/xmlversion.h',
126
- "#{CONFIG['prefix']}/include",
127
- '/opt/include/libxml2',
128
- '/usr/local/include/libxml2',
129
- '/usr/include/libxml2'))
130
- crash(<<EOL)
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
- Install the library or try one of the following options to extconf.rb:
89
+ Install the library or try one of the following options to extconf.rb:
134
90
 
135
- --with-xml2-dir=/path/to/libxml2
136
- --with-xml2-lib=/path/to/libxml2/lib
137
- --with-xml2-include=/path/to/libxml2/include
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
- end
95
+ end
140
96
 
141
- unless have_func('xmlDocFormatDump')
142
- crash('Your version of libxml2 is too old. Please upgrade.')
143
- end
97
+ unless have_func('xmlDocFormatDump')
98
+ crash('Your version of libxml2 is too old. Please upgrade.')
99
+ end
144
100
 
145
- unless have_func('docbCreateFileParserCtxt')
146
- crash('Need docbCreateFileParserCtxt')
147
- end
101
+ unless have_func('docbCreateFileParserCtxt')
102
+ crash('Need docbCreateFileParserCtxt')
103
+ end
148
104
 
149
- $CFLAGS << ' ' << $INCFLAGS
150
- #$INSTALLFILES = [["libxml.rb", "$(RUBYLIBDIR)", "../xml"]]
105
+ # For FreeBSD add /usr/local/include
106
+ $INCFLAGS << " -I/usr/local/include"
151
107
 
152
- create_header()
153
- create_makefile('libxml_ruby')
154
- end
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