libxml-ruby 2.6.0-x86-mingw32 → 2.7.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +14 -6
- data/HISTORY +14 -0
- data/ext/libxml/extconf.h +5 -5
- data/ext/libxml/extconf.rb +13 -11
- data/ext/libxml/ruby_libxml.h +1 -0
- data/ext/libxml/ruby_xml_dtd.c +14 -3
- data/ext/libxml/ruby_xml_error.c +47 -47
- data/ext/libxml/ruby_xml_node.c +15 -9
- data/ext/libxml/ruby_xml_schema.c +3 -0
- data/ext/libxml/ruby_xml_version.h +3 -3
- data/ext/libxml/ruby_xml_writer.c +60 -57
- data/ext/libxml/ruby_xml_writer.h +5 -11
- data/ext/libxml/ruby_xml_xpath_object.c +4 -2
- data/lib/1.8/libxml_ruby.so +0 -0
- data/lib/1.9/libxml_ruby.so +0 -0
- data/lib/libxml/error.rb +3 -1
- data/test/remove_test.rb +9 -0
- data/test/tc_dtd.rb +4 -0
- data/test/tc_html_parser.rb +2 -2
- data/test/tc_parser.rb +27 -2
- data/test/tc_parser.rb.orig +384 -0
- data/test/tc_sax_parser.rb +2 -2
- data/test/tc_writer.rb +1 -1
- data/test/tc_xpath.rb +12 -0
- metadata +14 -13
data/test/tc_sax_parser.rb
CHANGED
@@ -144,7 +144,7 @@ class TestSaxParser < Test::Unit::TestCase
|
|
144
144
|
XML::SaxParser.file(nil)
|
145
145
|
end
|
146
146
|
|
147
|
-
|
147
|
+
assert_match(/nil into String/, error.to_s)
|
148
148
|
end
|
149
149
|
|
150
150
|
def test_io
|
@@ -317,4 +317,4 @@ EOS
|
|
317
317
|
# Check callbacks
|
318
318
|
result = parser.callbacks.result
|
319
319
|
end
|
320
|
-
end
|
320
|
+
end
|
data/test/tc_writer.rb
CHANGED
@@ -250,7 +250,7 @@ class TestWriter < Test::Unit::TestCase
|
|
250
250
|
assert(writer.end_attribute)
|
251
251
|
end
|
252
252
|
end
|
253
|
-
|
253
|
+
assert(writer.result.strip!.end_with? "<root abc='def'/>")
|
254
254
|
end
|
255
255
|
end
|
256
256
|
|
data/test/tc_xpath.rb
CHANGED
@@ -30,6 +30,18 @@ class TestXPath < Test::Unit::TestCase
|
|
30
30
|
assert_equal(3, nodes.length)
|
31
31
|
end
|
32
32
|
|
33
|
+
def test_ns_gc
|
34
|
+
_stress = GC.stress
|
35
|
+
GC.stress = true
|
36
|
+
|
37
|
+
doc = XML::Document.string('<foo xmlns="http://bar.com" />')
|
38
|
+
node = doc.root
|
39
|
+
# This line segfaults on prior versions of libxml-ruby
|
40
|
+
node.find("namespace::*")
|
41
|
+
|
42
|
+
GC.stress = _stress
|
43
|
+
end
|
44
|
+
|
33
45
|
def test_ns_array
|
34
46
|
nodes = @doc.find('//ns1:IdAndName', ['ns1:http://domain.somewhere.com'])
|
35
47
|
assert_equal(3, nodes.length)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libxml-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.7.0
|
5
5
|
platform: x86-mingw32
|
6
6
|
authors:
|
7
7
|
- Ross Bamform
|
@@ -14,28 +14,27 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2013-
|
17
|
+
date: 2013-08-03 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: hanna_guado
|
21
21
|
requirement: !ruby/object:Gem::Requirement
|
22
22
|
requirements:
|
23
|
-
- -
|
23
|
+
- - ! '>='
|
24
24
|
- !ruby/object:Gem::Version
|
25
25
|
version: '0'
|
26
26
|
type: :development
|
27
27
|
prerelease: false
|
28
28
|
version_requirements: !ruby/object:Gem::Requirement
|
29
29
|
requirements:
|
30
|
-
- -
|
30
|
+
- - ! '>='
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '0'
|
33
|
-
description:
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
by the informal benchmark below.
|
33
|
+
description: ! " The Libxml-Ruby project provides Ruby language bindings for the
|
34
|
+
GNOME\n Libxml2 XML toolkit. It is free software, released under the MIT License.\n
|
35
|
+
\ Libxml-ruby's primary advantage over REXML is performance - if speed\n is
|
36
|
+
your need, these are good libraries to consider, as demonstrated\n by the informal
|
37
|
+
benchmark below.\n"
|
39
38
|
email:
|
40
39
|
executables: []
|
41
40
|
extensions: []
|
@@ -213,6 +212,7 @@ files:
|
|
213
212
|
- test/model/shiporder.xsd
|
214
213
|
- test/model/soap.xml
|
215
214
|
- test/model/xinclude.xml
|
215
|
+
- test/remove_test.rb
|
216
216
|
- test/tc_attr.rb
|
217
217
|
- test/tc_attributes.rb
|
218
218
|
- test/tc_attr_decl.rb
|
@@ -239,6 +239,7 @@ files:
|
|
239
239
|
- test/tc_node_write.rb
|
240
240
|
- test/tc_node_xlink.rb
|
241
241
|
- test/tc_parser.rb
|
242
|
+
- test/tc_parser.rb.orig
|
242
243
|
- test/tc_parser_context.rb
|
243
244
|
- test/tc_properties.rb
|
244
245
|
- test/tc_reader.rb
|
@@ -270,17 +271,17 @@ require_paths:
|
|
270
271
|
- lib
|
271
272
|
required_ruby_version: !ruby/object:Gem::Requirement
|
272
273
|
requirements:
|
273
|
-
- -
|
274
|
+
- - ! '>='
|
274
275
|
- !ruby/object:Gem::Version
|
275
276
|
version: 1.8.6
|
276
277
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
277
278
|
requirements:
|
278
|
-
- -
|
279
|
+
- - ! '>='
|
279
280
|
- !ruby/object:Gem::Version
|
280
281
|
version: '0'
|
281
282
|
requirements: []
|
282
283
|
rubyforge_project:
|
283
|
-
rubygems_version: 2.0.
|
284
|
+
rubygems_version: 2.0.6
|
284
285
|
signing_key:
|
285
286
|
specification_version: 4
|
286
287
|
summary: Ruby Bindings for LibXML2
|