libxml-ruby 2.6.0 → 2.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -144,7 +144,7 @@ class TestSaxParser < Test::Unit::TestCase
144
144
  XML::SaxParser.file(nil)
145
145
  end
146
146
 
147
- assert_equal("can't convert nil into String", error.to_s)
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
@@ -250,7 +250,7 @@ class TestWriter < Test::Unit::TestCase
250
250
  assert(writer.end_attribute)
251
251
  end
252
252
  end
253
- assert_equal(writer.result.strip!, "<?xml version=\"1.0\"?>\n<root><child abc='def'>ghi</child></root>")
253
+ assert(writer.result.strip!.end_with? "<root abc='def'/>")
254
254
  end
255
255
  end
256
256
 
@@ -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.6.0
4
+ version: 2.7.0
5
5
  platform: ruby
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-02-16 00:00:00.000000000 Z
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: |2
34
- The Libxml-Ruby project provides Ruby language bindings for the GNOME
35
- Libxml2 XML toolkit. It is free software, released under the MIT License.
36
- Libxml-ruby's primary advantage over REXML is performance - if speed
37
- is your need, these are good libraries to consider, as demonstrated
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:
@@ -214,6 +213,7 @@ files:
214
213
  - test/model/shiporder.xsd
215
214
  - test/model/soap.xml
216
215
  - test/model/xinclude.xml
216
+ - test/remove_test.rb
217
217
  - test/tc_attr.rb
218
218
  - test/tc_attributes.rb
219
219
  - test/tc_attr_decl.rb
@@ -240,6 +240,7 @@ files:
240
240
  - test/tc_node_write.rb
241
241
  - test/tc_node_xlink.rb
242
242
  - test/tc_parser.rb
243
+ - test/tc_parser.rb.orig
243
244
  - test/tc_parser_context.rb
244
245
  - test/tc_properties.rb
245
246
  - test/tc_reader.rb
@@ -265,17 +266,17 @@ require_paths:
265
266
  - lib
266
267
  required_ruby_version: !ruby/object:Gem::Requirement
267
268
  requirements:
268
- - - ">="
269
+ - - ! '>='
269
270
  - !ruby/object:Gem::Version
270
271
  version: 1.8.6
271
272
  required_rubygems_version: !ruby/object:Gem::Requirement
272
273
  requirements:
273
- - - ">="
274
+ - - ! '>='
274
275
  - !ruby/object:Gem::Version
275
276
  version: '0'
276
277
  requirements: []
277
278
  rubyforge_project:
278
- rubygems_version: 2.0.0.rc.2
279
+ rubygems_version: 2.0.6
279
280
  signing_key:
280
281
  specification_version: 4
281
282
  summary: Ruby Bindings for LibXML2