libxml-ruby 0.6.0-x86-mswin32-60

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. data/CHANGES +122 -0
  2. data/LICENSE +23 -0
  3. data/README +144 -0
  4. data/ext/libxml/cbg.c +76 -0
  5. data/ext/libxml/extconf.rb +308 -0
  6. data/ext/libxml/libxml.c +62 -0
  7. data/ext/libxml/ruby_libxml.h +93 -0
  8. data/ext/libxml/ruby_xml_attr.c +405 -0
  9. data/ext/libxml/ruby_xml_attr.h +19 -0
  10. data/ext/libxml/ruby_xml_document.c +1111 -0
  11. data/ext/libxml/ruby_xml_document.h +27 -0
  12. data/ext/libxml/ruby_xml_dtd.c +168 -0
  13. data/ext/libxml/ruby_xml_dtd.h +17 -0
  14. data/ext/libxml/ruby_xml_html_parser.c +449 -0
  15. data/ext/libxml/ruby_xml_html_parser.h +29 -0
  16. data/ext/libxml/ruby_xml_input_cbg.c +158 -0
  17. data/ext/libxml/ruby_xml_input_cbg.h +20 -0
  18. data/ext/libxml/ruby_xml_node.c +2410 -0
  19. data/ext/libxml/ruby_xml_node.h +27 -0
  20. data/ext/libxml/ruby_xml_node_set.c +170 -0
  21. data/ext/libxml/ruby_xml_node_set.h +20 -0
  22. data/ext/libxml/ruby_xml_ns.c +153 -0
  23. data/ext/libxml/ruby_xml_ns.h +21 -0
  24. data/ext/libxml/ruby_xml_parser.c +1425 -0
  25. data/ext/libxml/ruby_xml_parser.h +31 -0
  26. data/ext/libxml/ruby_xml_parser_context.c +750 -0
  27. data/ext/libxml/ruby_xml_parser_context.h +22 -0
  28. data/ext/libxml/ruby_xml_reader.c +900 -0
  29. data/ext/libxml/ruby_xml_reader.h +14 -0
  30. data/ext/libxml/ruby_xml_sax_parser.c +485 -0
  31. data/ext/libxml/ruby_xml_sax_parser.h +56 -0
  32. data/ext/libxml/ruby_xml_schema.c +146 -0
  33. data/ext/libxml/ruby_xml_schema.h +16 -0
  34. data/ext/libxml/ruby_xml_state.c +113 -0
  35. data/ext/libxml/ruby_xml_state.h +12 -0
  36. data/ext/libxml/ruby_xml_tree.c +43 -0
  37. data/ext/libxml/ruby_xml_tree.h +12 -0
  38. data/ext/libxml/ruby_xml_xinclude.c +20 -0
  39. data/ext/libxml/ruby_xml_xinclude.h +13 -0
  40. data/ext/libxml/ruby_xml_xpath.c +243 -0
  41. data/ext/libxml/ruby_xml_xpath.h +23 -0
  42. data/ext/libxml/ruby_xml_xpath_context.c +118 -0
  43. data/ext/libxml/ruby_xml_xpath_context.h +20 -0
  44. data/ext/libxml/ruby_xml_xpath_object.c +293 -0
  45. data/ext/libxml/ruby_xml_xpath_object.h +28 -0
  46. data/ext/libxml/ruby_xml_xpointer.c +100 -0
  47. data/ext/libxml/ruby_xml_xpointer.h +27 -0
  48. data/ext/libxml/ruby_xml_xpointer_context.c +21 -0
  49. data/ext/libxml/ruby_xml_xpointer_context.h +18 -0
  50. data/ext/libxml/sax_parser_callbacks.inc +213 -0
  51. data/ext/libxml/version.h +9 -0
  52. data/lib/libxml.rb +125 -0
  53. data/lib/libxml_ruby.so +0 -0
  54. data/lib/xml/libxml.rb +5 -0
  55. data/mingw/libiconv-2.dll +0 -0
  56. data/mingw/libxml2-2.dll +0 -0
  57. data/mingw/libxml_ruby.so +0 -0
  58. data/mingw/mingw.rake +36 -0
  59. data/test/dtd-test.rb +24 -0
  60. data/test/etc_doc_to_s.rb +19 -0
  61. data/test/ets_copy_bug.rb +21 -0
  62. data/test/ets_copy_bug2.rb +32 -0
  63. data/test/ets_copy_bug3.rb +38 -0
  64. data/test/ets_doc_file.rb +15 -0
  65. data/test/ets_doc_to_s.rb +21 -0
  66. data/test/ets_gpx.rb +26 -0
  67. data/test/ets_node_gc.rb +21 -0
  68. data/test/ets_test.xml +2 -0
  69. data/test/ets_tsr.rb +9 -0
  70. data/test/gc.log +0 -0
  71. data/test/merge_bug.rb +55 -0
  72. data/test/schema-test.rb +74 -0
  73. data/test/tc_well_formed.rb +11 -0
  74. data/test/tc_xml_document.rb +52 -0
  75. data/test/tc_xml_document_write.rb +24 -0
  76. data/test/tc_xml_document_write2.rb +54 -0
  77. data/test/tc_xml_document_write3.rb +96 -0
  78. data/test/tc_xml_html_parser.rb +63 -0
  79. data/test/tc_xml_node.rb +59 -0
  80. data/test/tc_xml_node2.rb +25 -0
  81. data/test/tc_xml_node3.rb +27 -0
  82. data/test/tc_xml_node4.rb +86 -0
  83. data/test/tc_xml_node5.rb +52 -0
  84. data/test/tc_xml_node6.rb +27 -0
  85. data/test/tc_xml_node7.rb +35 -0
  86. data/test/tc_xml_node8.rb +32 -0
  87. data/test/tc_xml_node9.rb +32 -0
  88. data/test/tc_xml_node_copy.rb +40 -0
  89. data/test/tc_xml_node_set.rb +24 -0
  90. data/test/tc_xml_node_set2.rb +37 -0
  91. data/test/tc_xml_node_text.rb +17 -0
  92. data/test/tc_xml_node_xlink.rb +28 -0
  93. data/test/tc_xml_parser.rb +190 -0
  94. data/test/tc_xml_parser2.rb +16 -0
  95. data/test/tc_xml_parser3.rb +23 -0
  96. data/test/tc_xml_parser4.rb +33 -0
  97. data/test/tc_xml_parser5.rb +27 -0
  98. data/test/tc_xml_parser6.rb +23 -0
  99. data/test/tc_xml_parser7.rb +28 -0
  100. data/test/tc_xml_parser8.rb +32 -0
  101. data/test/tc_xml_parser9.rb +11 -0
  102. data/test/tc_xml_parser_context.rb +88 -0
  103. data/test/tc_xml_reader.rb +112 -0
  104. data/test/tc_xml_sax_parser.rb +104 -0
  105. data/test/tc_xml_sax_parser2.rb +51 -0
  106. data/test/tc_xml_xinclude.rb +30 -0
  107. data/test/tc_xml_xpath.rb +38 -0
  108. data/test/tc_xml_xpath2.rb +14 -0
  109. data/test/tc_xml_xpointer.rb +78 -0
  110. data/vc/libxml.sln +20 -0
  111. data/vc/libxml.vcproj +389 -0
  112. data/work/Rakefile +247 -0
  113. data/work/task/make +26 -0
  114. data/work/task/memory +37 -0
  115. data/work/task/rdoc +39 -0
  116. data/work/task/setup +1616 -0
  117. data/work/task/test +29 -0
  118. data/work/test/ets_runner.rb +33 -0
  119. data/work/test/libxml_test.rb +3 -0
  120. data/work/test/runner.rb +0 -0
  121. data/work/test/runner_ets.rb +33 -0
  122. data/work/vc/debug/libxml.exp +0 -0
  123. data/work/vc/debug/libxml.ilk +0 -0
  124. data/work/vc/debug/libxml.lib +0 -0
  125. data/work/vc/debug/libxml.pdb +0 -0
  126. data/work/vc/debug/libxml.so +0 -0
  127. metadata +224 -0
data/work/task/test ADDED
@@ -0,0 +1,29 @@
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
+
@@ -0,0 +1,33 @@
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
+ }
@@ -0,0 +1,3 @@
1
+ $LOAD_PATH.unshift("#{File.dirname(__FILE__)}/../ext")
2
+ require "xml/libxml" unless defined?(XML)
3
+ puts "VERSION: #{XML::Parser::VERSION}"
File without changes
@@ -0,0 +1,33 @@
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
+ }
Binary file
Binary file
Binary file
Binary file
Binary file
metadata ADDED
@@ -0,0 +1,224 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: libxml-ruby
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.6.0
5
+ platform: x86-mswin32-60
6
+ authors:
7
+ - Charlie Savage
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-07-02 00:00:00 -06:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: The Libxml-Ruby project provides Ruby language bindings for the GNOME Libxml2 XML toolkit. It is free software, released under the MIT License. Libxml-ruby's primary advantage over REXML is performance - if speed is your need, these are good libraries to consider, as demonstrated by the informal benchmark below.
17
+ email:
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files: []
23
+
24
+ files:
25
+ - README
26
+ - LICENSE
27
+ - CHANGES
28
+ - ext/libxml
29
+ - ext/libxml/cbg.c
30
+ - ext/libxml/extconf.rb
31
+ - ext/libxml/libxml.c
32
+ - ext/libxml/ruby_libxml.h
33
+ - ext/libxml/ruby_xml_attr.c
34
+ - ext/libxml/ruby_xml_attr.h
35
+ - ext/libxml/ruby_xml_document.c
36
+ - ext/libxml/ruby_xml_document.h
37
+ - ext/libxml/ruby_xml_dtd.c
38
+ - ext/libxml/ruby_xml_dtd.h
39
+ - ext/libxml/ruby_xml_html_parser.c
40
+ - ext/libxml/ruby_xml_html_parser.h
41
+ - ext/libxml/ruby_xml_input_cbg.c
42
+ - ext/libxml/ruby_xml_input_cbg.h
43
+ - ext/libxml/ruby_xml_node.c
44
+ - ext/libxml/ruby_xml_node.h
45
+ - ext/libxml/ruby_xml_node_set.c
46
+ - ext/libxml/ruby_xml_node_set.h
47
+ - ext/libxml/ruby_xml_ns.c
48
+ - ext/libxml/ruby_xml_ns.h
49
+ - ext/libxml/ruby_xml_parser.c
50
+ - ext/libxml/ruby_xml_parser.h
51
+ - ext/libxml/ruby_xml_parser_context.c
52
+ - ext/libxml/ruby_xml_parser_context.h
53
+ - ext/libxml/ruby_xml_reader.c
54
+ - ext/libxml/ruby_xml_reader.h
55
+ - ext/libxml/ruby_xml_sax_parser.c
56
+ - ext/libxml/ruby_xml_sax_parser.h
57
+ - ext/libxml/ruby_xml_schema.c
58
+ - ext/libxml/ruby_xml_schema.h
59
+ - ext/libxml/ruby_xml_state.c
60
+ - ext/libxml/ruby_xml_state.h
61
+ - ext/libxml/ruby_xml_tree.c
62
+ - ext/libxml/ruby_xml_tree.h
63
+ - ext/libxml/ruby_xml_xinclude.c
64
+ - ext/libxml/ruby_xml_xinclude.h
65
+ - ext/libxml/ruby_xml_xpath.c
66
+ - ext/libxml/ruby_xml_xpath.h
67
+ - ext/libxml/ruby_xml_xpath_context.c
68
+ - ext/libxml/ruby_xml_xpath_context.h
69
+ - ext/libxml/ruby_xml_xpath_object.c
70
+ - ext/libxml/ruby_xml_xpath_object.h
71
+ - ext/libxml/ruby_xml_xpointer.c
72
+ - ext/libxml/ruby_xml_xpointer.h
73
+ - ext/libxml/ruby_xml_xpointer_context.c
74
+ - ext/libxml/ruby_xml_xpointer_context.h
75
+ - ext/libxml/sax_parser_callbacks.inc
76
+ - ext/libxml/version.h
77
+ - lib/libxml.rb
78
+ - lib/xml
79
+ - lib/xml/libxml.rb
80
+ - mingw/mingw.rake
81
+ - mingw/libiconv-2.dll
82
+ - mingw/libxml2-2.dll
83
+ - mingw/libxml_ruby.so
84
+ - test/dtd-test.rb
85
+ - test/etc_doc_to_s.rb
86
+ - test/ets_copy_bug.rb
87
+ - test/ets_copy_bug2.rb
88
+ - test/ets_copy_bug3.rb
89
+ - test/ets_doc_file.rb
90
+ - test/ets_doc_to_s.rb
91
+ - test/ets_gpx.rb
92
+ - test/ets_node_gc.rb
93
+ - test/ets_test.xml
94
+ - test/ets_tsr.rb
95
+ - test/gc.log
96
+ - test/merge_bug.rb
97
+ - test/model
98
+ - test/schema-test.rb
99
+ - test/tc_well_formed.rb
100
+ - test/tc_xml_document.rb
101
+ - test/tc_xml_document_write.rb
102
+ - test/tc_xml_document_write2.rb
103
+ - test/tc_xml_document_write3.rb
104
+ - test/tc_xml_html_parser.rb
105
+ - test/tc_xml_node.rb
106
+ - test/tc_xml_node2.rb
107
+ - test/tc_xml_node3.rb
108
+ - test/tc_xml_node4.rb
109
+ - test/tc_xml_node5.rb
110
+ - test/tc_xml_node6.rb
111
+ - test/tc_xml_node7.rb
112
+ - test/tc_xml_node8.rb
113
+ - test/tc_xml_node9.rb
114
+ - test/tc_xml_node_copy.rb
115
+ - test/tc_xml_node_set.rb
116
+ - test/tc_xml_node_set2.rb
117
+ - test/tc_xml_node_text.rb
118
+ - test/tc_xml_node_xlink.rb
119
+ - test/tc_xml_parser.rb
120
+ - test/tc_xml_parser2.rb
121
+ - test/tc_xml_parser3.rb
122
+ - test/tc_xml_parser4.rb
123
+ - test/tc_xml_parser5.rb
124
+ - test/tc_xml_parser6.rb
125
+ - test/tc_xml_parser7.rb
126
+ - test/tc_xml_parser8.rb
127
+ - test/tc_xml_parser9.rb
128
+ - test/tc_xml_parser_context.rb
129
+ - test/tc_xml_reader.rb
130
+ - test/tc_xml_sax_parser.rb
131
+ - test/tc_xml_sax_parser2.rb
132
+ - test/tc_xml_xinclude.rb
133
+ - test/tc_xml_xpath.rb
134
+ - test/tc_xml_xpath2.rb
135
+ - test/tc_xml_xpointer.rb
136
+ - vc/libxml.sln
137
+ - vc/libxml.vcproj
138
+ - work/Rakefile
139
+ - work/task
140
+ - work/test
141
+ - work/vc
142
+ - work/task/make
143
+ - work/task/memory
144
+ - work/task/rdoc
145
+ - work/task/setup
146
+ - work/task/test
147
+ - work/test/ets_runner.rb
148
+ - work/test/libxml_test.rb
149
+ - work/test/runner.rb
150
+ - work/test/runner_ets.rb
151
+ - work/vc/debug
152
+ - work/vc/debug/libxml.exp
153
+ - work/vc/debug/libxml.ilk
154
+ - work/vc/debug/libxml.lib
155
+ - work/vc/debug/libxml.pdb
156
+ - work/vc/debug/libxml.so
157
+ - lib/libxml_ruby.so
158
+ has_rdoc: true
159
+ homepage: http://libxml.rubyforge.org/
160
+ post_install_message:
161
+ rdoc_options:
162
+ - --title
163
+ - libxml-ruby
164
+ - --inline-source
165
+ - --line-numbers
166
+ require_paths:
167
+ - lib
168
+ required_ruby_version: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - ">="
171
+ - !ruby/object:Gem::Version
172
+ version: 1.8.4
173
+ version:
174
+ required_rubygems_version: !ruby/object:Gem::Requirement
175
+ requirements:
176
+ - - ">="
177
+ - !ruby/object:Gem::Version
178
+ version: "0"
179
+ version:
180
+ requirements: []
181
+
182
+ rubyforge_project: libxml-ruby
183
+ rubygems_version: 1.0.1
184
+ signing_key:
185
+ specification_version: 2
186
+ summary: Ruby libxml bindings
187
+ test_files:
188
+ - test/tc_well_formed.rb
189
+ - test/tc_xml_document.rb
190
+ - test/tc_xml_document_write.rb
191
+ - test/tc_xml_document_write2.rb
192
+ - test/tc_xml_document_write3.rb
193
+ - test/tc_xml_html_parser.rb
194
+ - test/tc_xml_node.rb
195
+ - test/tc_xml_node2.rb
196
+ - test/tc_xml_node3.rb
197
+ - test/tc_xml_node4.rb
198
+ - test/tc_xml_node5.rb
199
+ - test/tc_xml_node6.rb
200
+ - test/tc_xml_node7.rb
201
+ - test/tc_xml_node8.rb
202
+ - test/tc_xml_node9.rb
203
+ - test/tc_xml_node_copy.rb
204
+ - test/tc_xml_node_set.rb
205
+ - test/tc_xml_node_set2.rb
206
+ - test/tc_xml_node_text.rb
207
+ - test/tc_xml_node_xlink.rb
208
+ - test/tc_xml_parser.rb
209
+ - test/tc_xml_parser2.rb
210
+ - test/tc_xml_parser3.rb
211
+ - test/tc_xml_parser4.rb
212
+ - test/tc_xml_parser5.rb
213
+ - test/tc_xml_parser6.rb
214
+ - test/tc_xml_parser7.rb
215
+ - test/tc_xml_parser8.rb
216
+ - test/tc_xml_parser9.rb
217
+ - test/tc_xml_parser_context.rb
218
+ - test/tc_xml_reader.rb
219
+ - test/tc_xml_sax_parser.rb
220
+ - test/tc_xml_sax_parser2.rb
221
+ - test/tc_xml_xinclude.rb
222
+ - test/tc_xml_xpath.rb
223
+ - test/tc_xml_xpath2.rb
224
+ - test/tc_xml_xpointer.rb