libxml-ruby 0.5.0 → 0.5.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +9 -0
- data/ext/xml/libxml.h +2 -2
- data/ext/xml/libxml.rb +1 -1
- data/ext/xml/ruby_xml_html_parser.h +1 -1
- data/ext/xml/ruby_xml_node.c +9 -2
- data/ext/xml/ruby_xml_node_set.h +1 -1
- data/ext/xml/ruby_xml_ns.c +1 -1
- data/ext/xml/ruby_xml_ns.h +1 -1
- data/ext/xml/ruby_xml_parser.h +1 -1
- data/ext/xml/ruby_xml_parser_context.h +1 -1
- data/ext/xml/ruby_xml_sax_parser.c +1 -1
- data/ext/xml/ruby_xml_sax_parser.h +1 -1
- data/ext/xml/ruby_xml_tree.c +1 -1
- data/ext/xml/ruby_xml_tree.h +1 -1
- data/ext/xml/ruby_xml_xinclude.c +1 -1
- data/ext/xml/ruby_xml_xinclude.h +1 -1
- data/ext/xml/ruby_xml_xpath.h +1 -1
- data/ext/xml/ruby_xml_xpath_context.h +1 -1
- data/ext/xml/ruby_xml_xpointer.h +1 -1
- data/ext/xml/ruby_xml_xpointer_context.c +1 -1
- data/ext/xml/ruby_xml_xpointer_context.h +1 -1
- data/ext/xml/sax_parser_callbacks.inc +1 -1
- metadata +2 -2
data/Rakefile
CHANGED
@@ -68,6 +68,7 @@ end
|
|
68
68
|
task :ta => :alltests
|
69
69
|
task :tu => :unittests
|
70
70
|
task :test => :unittests
|
71
|
+
task :tm => :memtests
|
71
72
|
|
72
73
|
Rake::TestTask.new(:alltests) do |t|
|
73
74
|
t.test_files = FileList[
|
@@ -81,6 +82,13 @@ Rake::TestTask.new(:unittests) do |t|
|
|
81
82
|
t.test_files = FileList['tests/runner.rb']
|
82
83
|
t.verbose = false
|
83
84
|
end
|
85
|
+
|
86
|
+
Rake::TestTask.new(:memtests) do |t|
|
87
|
+
t.test_files = FileList[
|
88
|
+
'rwtest/runner.rb'
|
89
|
+
]
|
90
|
+
t.verbose = true
|
91
|
+
end
|
84
92
|
|
85
93
|
#Rake::TestTask.new(:funtests) do |t|
|
86
94
|
# t.test_files = FileList['test/fun*.rb']
|
@@ -90,6 +98,7 @@ end
|
|
90
98
|
|
91
99
|
task :unittests => :compile
|
92
100
|
task :alltests => :compile
|
101
|
+
task :memtests => :compile
|
93
102
|
|
94
103
|
# RDoc Tasks ---------------------------------------------------------
|
95
104
|
desc "Create the RDOC documentation tree"
|
data/ext/xml/libxml.h
CHANGED
@@ -6,12 +6,12 @@
|
|
6
6
|
/* Don't nuke this block! It is used for automatically updating the
|
7
7
|
* versions below. VERSION = string formatting, VERNUM = numbered
|
8
8
|
* version for inline testing: increment both or none at all. */
|
9
|
-
#define RUBY_LIBXML_VERSION "0.5.0"
|
9
|
+
#define RUBY_LIBXML_VERSION "0.5.0.1"
|
10
10
|
#define RUBY_LIBXML_VERNUM 500
|
11
11
|
#define RUBY_LIBXML_VER_MAJ 0
|
12
12
|
#define RUBY_LIBXML_VER_MIN 5
|
13
13
|
#define RUBY_LIBXML_VER_MIC 0
|
14
|
-
#define RUBY_LIBXML_VER_PATCH
|
14
|
+
#define RUBY_LIBXML_VER_PATCH 1
|
15
15
|
|
16
16
|
#include <ruby.h>
|
17
17
|
#include <rubyio.h>
|
data/ext/xml/libxml.rb
CHANGED
data/ext/xml/ruby_xml_node.c
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/* $Id: ruby_xml_node.c
|
1
|
+
/* $Id: ruby_xml_node.c 164 2007-08-31 15:37:35Z danj $ */
|
2
2
|
|
3
3
|
/* Please see the LICENSE file for copyright and distribution information */
|
4
4
|
|
@@ -2215,6 +2215,11 @@ ruby_xml_node_copy(VALUE self, VALUE deep) {
|
|
2215
2215
|
return obj;
|
2216
2216
|
}
|
2217
2217
|
|
2218
|
+
void
|
2219
|
+
ruby_xml_node_registerNode(xmlNodePtr node)
|
2220
|
+
{
|
2221
|
+
node->_private=NULL;
|
2222
|
+
}
|
2218
2223
|
|
2219
2224
|
// Rdoc needs to know
|
2220
2225
|
#ifdef RDOC_NEVER_DEFINED
|
@@ -2224,7 +2229,9 @@ ruby_xml_node_copy(VALUE self, VALUE deep) {
|
|
2224
2229
|
void
|
2225
2230
|
ruby_init_xml_node(void) {
|
2226
2231
|
VALUE singleton;
|
2227
|
-
|
2232
|
+
|
2233
|
+
xmlRegisterNodeDefault(ruby_xml_node_registerNode);
|
2234
|
+
|
2228
2235
|
cXMLNode = rb_define_class_under(mXML, "Node", rb_cObject);
|
2229
2236
|
eXMLNodeSetNamespace = rb_define_class_under(cXMLNode, "SetNamespace", eXMLError);
|
2230
2237
|
eXMLNodeFailedModify = rb_define_class_under(cXMLNode, "FailedModify", eXMLError);
|
data/ext/xml/ruby_xml_node_set.h
CHANGED
data/ext/xml/ruby_xml_ns.c
CHANGED
data/ext/xml/ruby_xml_ns.h
CHANGED
data/ext/xml/ruby_xml_parser.h
CHANGED
data/ext/xml/ruby_xml_tree.c
CHANGED
data/ext/xml/ruby_xml_tree.h
CHANGED
data/ext/xml/ruby_xml_xinclude.c
CHANGED
data/ext/xml/ruby_xml_xinclude.h
CHANGED
data/ext/xml/ruby_xml_xpath.h
CHANGED
data/ext/xml/ruby_xml_xpointer.h
CHANGED
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: libxml-ruby
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.5.0
|
7
|
-
date: 2007-08-
|
6
|
+
version: 0.5.0.1
|
7
|
+
date: 2007-08-31 00:00:00 -04:00
|
8
8
|
summary: LibXML2 bindings for Ruby
|
9
9
|
require_paths:
|
10
10
|
- lib
|