libxml-ruby 2.9.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. checksums.yaml +4 -4
  2. data/HISTORY +811 -790
  3. data/LICENSE +20 -20
  4. data/MANIFEST +166 -166
  5. data/README.rdoc +188 -184
  6. data/Rakefile +1 -1
  7. data/ext/libxml/libxml.c +80 -80
  8. data/ext/libxml/ruby_libxml.h +75 -75
  9. data/ext/libxml/ruby_xml.c +0 -84
  10. data/ext/libxml/ruby_xml.h +0 -10
  11. data/ext/libxml/ruby_xml_attr.h +12 -12
  12. data/ext/libxml/ruby_xml_attr_decl.c +153 -153
  13. data/ext/libxml/ruby_xml_attr_decl.h +11 -11
  14. data/ext/libxml/ruby_xml_attributes.c +275 -275
  15. data/ext/libxml/ruby_xml_attributes.h +15 -15
  16. data/ext/libxml/ruby_xml_document.c +21 -27
  17. data/ext/libxml/ruby_xml_document.h +11 -11
  18. data/ext/libxml/ruby_xml_dtd.c +2 -13
  19. data/ext/libxml/ruby_xml_dtd.h +9 -9
  20. data/ext/libxml/ruby_xml_error.c +996 -996
  21. data/ext/libxml/ruby_xml_error.h +12 -12
  22. data/ext/libxml/ruby_xml_html_parser.c +89 -92
  23. data/ext/libxml/ruby_xml_html_parser.h +10 -10
  24. data/ext/libxml/ruby_xml_html_parser_context.h +10 -10
  25. data/ext/libxml/ruby_xml_html_parser_options.c +46 -46
  26. data/ext/libxml/ruby_xml_html_parser_options.h +10 -10
  27. data/ext/libxml/ruby_xml_input_cbg.h +20 -20
  28. data/ext/libxml/ruby_xml_io.c +0 -1
  29. data/ext/libxml/ruby_xml_io.h +10 -10
  30. data/ext/libxml/ruby_xml_namespace.c +153 -153
  31. data/ext/libxml/ruby_xml_namespace.h +10 -10
  32. data/ext/libxml/ruby_xml_namespaces.c +293 -293
  33. data/ext/libxml/ruby_xml_namespaces.h +9 -9
  34. data/ext/libxml/ruby_xml_node.c +100 -143
  35. data/ext/libxml/ruby_xml_node.h +13 -11
  36. data/ext/libxml/ruby_xml_parser.c +91 -94
  37. data/ext/libxml/ruby_xml_parser.h +12 -12
  38. data/ext/libxml/ruby_xml_parser_context.h +10 -10
  39. data/ext/libxml/ruby_xml_parser_options.c +66 -66
  40. data/ext/libxml/ruby_xml_parser_options.h +12 -12
  41. data/ext/libxml/ruby_xml_reader.c +45 -37
  42. data/ext/libxml/ruby_xml_reader.h +17 -17
  43. data/ext/libxml/ruby_xml_relaxng.h +10 -10
  44. data/ext/libxml/ruby_xml_sax2_handler.c +3 -3
  45. data/ext/libxml/ruby_xml_sax2_handler.h +10 -10
  46. data/ext/libxml/ruby_xml_sax_parser.c +116 -120
  47. data/ext/libxml/ruby_xml_sax_parser.h +10 -10
  48. data/ext/libxml/ruby_xml_schema.h +809 -809
  49. data/ext/libxml/ruby_xml_schema_attribute.c +109 -109
  50. data/ext/libxml/ruby_xml_schema_attribute.h +15 -15
  51. data/ext/libxml/ruby_xml_schema_element.c +94 -94
  52. data/ext/libxml/ruby_xml_schema_element.h +14 -14
  53. data/ext/libxml/ruby_xml_schema_facet.c +52 -52
  54. data/ext/libxml/ruby_xml_schema_facet.h +13 -13
  55. data/ext/libxml/ruby_xml_schema_type.c +259 -259
  56. data/ext/libxml/ruby_xml_schema_type.h +9 -9
  57. data/ext/libxml/ruby_xml_version.h +9 -9
  58. data/ext/libxml/ruby_xml_writer.c +1136 -1136
  59. data/ext/libxml/ruby_xml_writer.h +10 -10
  60. data/ext/libxml/ruby_xml_xinclude.c +16 -16
  61. data/ext/libxml/ruby_xml_xinclude.h +11 -11
  62. data/ext/libxml/ruby_xml_xpath.c +42 -36
  63. data/ext/libxml/ruby_xml_xpath.h +13 -13
  64. data/ext/libxml/ruby_xml_xpath_context.c +1 -1
  65. data/ext/libxml/ruby_xml_xpath_context.h +9 -9
  66. data/ext/libxml/ruby_xml_xpath_expression.c +81 -81
  67. data/ext/libxml/ruby_xml_xpath_expression.h +10 -10
  68. data/ext/libxml/ruby_xml_xpath_object.c +5 -2
  69. data/ext/libxml/ruby_xml_xpath_object.h +17 -17
  70. data/ext/libxml/ruby_xml_xpointer.c +99 -99
  71. data/ext/libxml/ruby_xml_xpointer.h +11 -11
  72. data/ext/vc/libxml_ruby.sln +17 -15
  73. data/lib/libxml.rb +1 -6
  74. data/lib/libxml/node.rb +2 -78
  75. data/lib/libxml/parser.rb +0 -266
  76. data/lib/libxml/sax_parser.rb +0 -17
  77. data/lib/libxml/schema.rb +66 -66
  78. data/lib/libxml/schema/attribute.rb +19 -19
  79. data/lib/libxml/schema/element.rb +27 -27
  80. data/lib/libxml/schema/type.rb +29 -29
  81. data/script/benchmark/depixelate +634 -634
  82. data/script/benchmark/hamlet.xml +9054 -9054
  83. data/script/benchmark/parsecount +170 -170
  84. data/script/benchmark/throughput +41 -41
  85. data/script/test +6 -6
  86. data/test/c14n/given/example-1.xml +14 -14
  87. data/test/c14n/given/example-2.xml +11 -11
  88. data/test/c14n/given/example-3.xml +18 -18
  89. data/test/c14n/given/example-4.xml +9 -9
  90. data/test/c14n/given/example-5.xml +12 -12
  91. data/test/c14n/given/example-6.xml +2 -2
  92. data/test/c14n/given/example-7.xml +11 -11
  93. data/test/c14n/given/example-8.xml +11 -11
  94. data/test/c14n/given/example-8.xpath +9 -9
  95. data/test/c14n/result/1-1-without-comments/example-1 +3 -3
  96. data/test/c14n/result/1-1-without-comments/example-2 +10 -10
  97. data/test/c14n/result/1-1-without-comments/example-3 +13 -13
  98. data/test/c14n/result/1-1-without-comments/example-4 +8 -8
  99. data/test/c14n/result/1-1-without-comments/example-5 +2 -2
  100. data/test/c14n/result/with-comments/example-1 +5 -5
  101. data/test/c14n/result/with-comments/example-2 +10 -10
  102. data/test/c14n/result/with-comments/example-3 +13 -13
  103. data/test/c14n/result/with-comments/example-4 +8 -8
  104. data/test/c14n/result/with-comments/example-5 +3 -3
  105. data/test/c14n/result/without-comments/example-1 +3 -3
  106. data/test/c14n/result/without-comments/example-2 +10 -10
  107. data/test/c14n/result/without-comments/example-3 +13 -13
  108. data/test/c14n/result/without-comments/example-4 +8 -8
  109. data/test/c14n/result/without-comments/example-5 +2 -2
  110. data/test/model/atom.xml +12 -12
  111. data/test/model/bands.iso-8859-1.xml +4 -4
  112. data/test/model/bands.utf-8.xml +4 -4
  113. data/test/model/bands.xml +4 -4
  114. data/test/model/books.xml +153 -153
  115. data/test/model/merge_bug_data.xml +58 -58
  116. data/test/model/ruby-lang.html +238 -238
  117. data/test/model/rubynet.xml +79 -79
  118. data/test/model/shiporder.rnc +28 -28
  119. data/test/model/shiporder.rng +86 -86
  120. data/test/model/shiporder.xml +22 -22
  121. data/test/model/shiporder.xsd +39 -39
  122. data/test/model/soap.xml +27 -27
  123. data/test/model/xinclude.xml +4 -4
  124. data/test/tc_attributes.rb +0 -6
  125. data/test/tc_error.rb +157 -158
  126. data/test/tc_node.rb +33 -17
  127. data/test/tc_node_edit.rb +0 -15
  128. data/test/tc_node_pi.rb +39 -39
  129. data/test/tc_parser.rb +0 -48
  130. data/test/tc_reader.rb +12 -53
  131. data/test/tc_writer.rb +447 -447
  132. data/test/tc_xpath.rb +1 -1
  133. data/test/test_helper.rb +2 -2
  134. metadata +3 -8
  135. data/ext/libxml/extconf.h +0 -4
  136. data/lib/libxml/ns.rb +0 -22
  137. data/lib/libxml/properties.rb +0 -23
  138. data/lib/libxml/reader.rb +0 -29
  139. data/lib/libxml/xpath_object.rb +0 -16
@@ -128,7 +128,7 @@ class TestXPath < Minitest::Test
128
128
  # Since we are searching on the node, don't have to register namespace
129
129
  nodes = node.find('ns1:name')
130
130
  assert_equal(1, nodes.length)
131
- assert_equal(nodes.first.object_id, nodes.last.object_id, 'First and last should be the same')
131
+ refute_equal(nodes.first.object_id, nodes.last.object_id)
132
132
  assert_equal('name', nodes.first.name)
133
133
  assert_equal('man1', nodes.first.content)
134
134
  end
@@ -12,5 +12,5 @@ $LOAD_PATH << ext
12
12
 
13
13
  require 'xml'
14
14
  require 'minitest/autorun'
15
- # require 'minitest/reporters'
16
- # MiniTest::Reporters.use!
15
+ #require 'minitest/reporters'
16
+ #MiniTest::Reporters.use!
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.9.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ross Bamform
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2016-06-13 00:00:00.000000000 Z
17
+ date: 2017-02-10 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: hanna_guado
@@ -75,7 +75,6 @@ files:
75
75
  - MANIFEST
76
76
  - README.rdoc
77
77
  - Rakefile
78
- - ext/libxml/extconf.h
79
78
  - ext/libxml/extconf.rb
80
79
  - ext/libxml/libxml.c
81
80
  - ext/libxml/libxml_ruby.def
@@ -164,10 +163,7 @@ files:
164
163
  - lib/libxml/namespace.rb
165
164
  - lib/libxml/namespaces.rb
166
165
  - lib/libxml/node.rb
167
- - lib/libxml/ns.rb
168
166
  - lib/libxml/parser.rb
169
- - lib/libxml/properties.rb
170
- - lib/libxml/reader.rb
171
167
  - lib/libxml/sax_callbacks.rb
172
168
  - lib/libxml/sax_parser.rb
173
169
  - lib/libxml/schema.rb
@@ -175,7 +171,6 @@ files:
175
171
  - lib/libxml/schema/element.rb
176
172
  - lib/libxml/schema/type.rb
177
173
  - lib/libxml/tree.rb
178
- - lib/libxml/xpath_object.rb
179
174
  - lib/xml.rb
180
175
  - lib/xml/libxml.rb
181
176
  - libxml-ruby.gemspec
@@ -295,7 +290,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
295
290
  version: '0'
296
291
  requirements: []
297
292
  rubyforge_project:
298
- rubygems_version: 2.5.1
293
+ rubygems_version: 2.6.8
299
294
  signing_key:
300
295
  specification_version: 4
301
296
  summary: Ruby Bindings for LibXML2
@@ -1,4 +0,0 @@
1
- #ifndef EXTCONF_H
2
- #define EXTCONF_H
3
- #define HAVE_RB_IO_BUFWRITE 1
4
- #endif
@@ -1,22 +0,0 @@
1
- # encoding: UTF-8
2
-
3
- module LibXML
4
- module XML
5
- class NS < Namespace # :nodoc:
6
- def initialize(node, prefix, href)
7
- warn('The XML::NS class is deprecated. Use XML::Namespace instead.')
8
- super(node, href, prefix)
9
- end
10
-
11
- def href?
12
- warn('XML::NS#href? is deprecated. Use !XML::NS#href.nil? instead.')
13
- not self.href.nil?
14
- end
15
-
16
- def prefix?
17
- warn('XML::NS#prefix? is deprecated. Use !XML::NS#prefix?.nil? instead.')
18
- not self.previx.nil?
19
- end
20
- end
21
- end
22
- end
@@ -1,23 +0,0 @@
1
- # encoding: UTF-8
2
-
3
- module LibXML
4
- module XML
5
- class Node
6
- def property(name)
7
- warn('Node#properties is deprecated. Use Node#[] instead.')
8
- self[name]
9
- end
10
-
11
- def properties
12
- warn('Node#properties is deprecated. Use Node#attributes instead.')
13
- self.attributes
14
- end
15
-
16
- def properties?
17
- warn('Node#properties? is deprecated. Use Node#attributes? instead.')
18
- self.attributes?
19
- end
20
- end
21
-
22
- end
23
- end
@@ -1,29 +0,0 @@
1
- # encoding: UTF-8
2
-
3
- module LibXML
4
- module XML
5
- class Reader
6
- def reset_error_handler
7
- warn('reset_error_handler is deprecated. Use Error.reset_handler instead')
8
- Error.reset_handler
9
- end
10
-
11
- def set_error_handler(&block)
12
- warn('set_error_handler is deprecated. Use Error.set_handler instead')
13
- Error.set_handler(&block)
14
- end
15
-
16
- # :enddoc:
17
-
18
- def self.walker(doc)
19
- warn("XML::Reader.walker is deprecated. Use XML::Reader.document instead")
20
- self.document(doc)
21
- end
22
-
23
- def self.data(string, options = nil)
24
- warn("XML::Reader.data is deprecated. Use XML::Reader.string instead")
25
- self.string(string, options)
26
- end
27
- end
28
- end
29
- end
@@ -1,16 +0,0 @@
1
- # encoding: UTF-8
2
-
3
- module LibXML
4
- module XML
5
- module XPath
6
- class Object
7
- alias :size :length
8
-
9
- def set
10
- warn("XPath::Object#set is deprecated. Simply use the XPath::Object API instead")
11
- self
12
- end
13
- end
14
- end
15
- end
16
- end