nokogiri 1.5.0-x86-mingw32 → 1.5.1.rc1-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of nokogiri might be problematic. Click here for more details.

Files changed (63) hide show
  1. data/CHANGELOG.ja.rdoc +39 -12
  2. data/CHANGELOG.rdoc +28 -0
  3. data/C_CODING_STYLE.rdoc +27 -0
  4. data/Manifest.txt +4 -0
  5. data/README.rdoc +11 -7
  6. data/Rakefile +40 -25
  7. data/bin/nokogiri +10 -2
  8. data/ext/nokogiri/extconf.rb +9 -1
  9. data/ext/nokogiri/html_document.c +16 -0
  10. data/ext/nokogiri/html_sax_parser_context.c +59 -37
  11. data/ext/nokogiri/html_sax_push_parser.c +87 -0
  12. data/ext/nokogiri/html_sax_push_parser.h +9 -0
  13. data/ext/nokogiri/nokogiri.c +6 -8
  14. data/ext/nokogiri/nokogiri.h +3 -0
  15. data/ext/nokogiri/xml_document.c +101 -3
  16. data/ext/nokogiri/xml_document.h +3 -3
  17. data/ext/nokogiri/xml_node.c +150 -58
  18. data/ext/nokogiri/xml_node_set.c +169 -120
  19. data/ext/nokogiri/xml_node_set.h +5 -0
  20. data/ext/nokogiri/xml_sax_parser_context.c +64 -41
  21. data/ext/nokogiri/xml_text.c +2 -0
  22. data/ext/nokogiri/xml_xpath_context.c +30 -24
  23. data/ext/nokogiri/xslt_stylesheet.c +62 -16
  24. data/ext/nokogiri/xslt_stylesheet.h +5 -0
  25. data/lib/nokogiri/1.8/nokogiri.so +0 -0
  26. data/lib/nokogiri/1.9/nokogiri.so +0 -0
  27. data/lib/nokogiri/css/parser.rb +165 -159
  28. data/lib/nokogiri/css/parser.y +6 -3
  29. data/lib/nokogiri/css/tokenizer.rb +1 -1
  30. data/lib/nokogiri/css/tokenizer.rex +1 -1
  31. data/lib/nokogiri/html.rb +1 -0
  32. data/lib/nokogiri/html/document.rb +82 -42
  33. data/lib/nokogiri/html/sax/push_parser.rb +16 -0
  34. data/lib/nokogiri/version.rb +1 -1
  35. data/lib/nokogiri/xml.rb +6 -0
  36. data/lib/nokogiri/xml/builder.rb +7 -1
  37. data/lib/nokogiri/xml/document.rb +32 -17
  38. data/lib/nokogiri/xml/document_fragment.rb +6 -1
  39. data/lib/nokogiri/xml/node.rb +40 -9
  40. data/lib/nokogiri/xslt.rb +5 -1
  41. data/tasks/cross_compile.rb +1 -0
  42. data/tasks/nokogiri.org.rb +6 -0
  43. data/tasks/test.rb +1 -0
  44. data/test/css/test_xpath_visitor.rb +6 -0
  45. data/test/helper.rb +1 -0
  46. data/test/html/test_document.rb +26 -0
  47. data/test/html/test_document_fragment.rb +1 -2
  48. data/test/test_memory_leak.rb +81 -1
  49. data/test/test_xslt_transforms.rb +152 -123
  50. data/test/xml/test_builder.rb +24 -2
  51. data/test/xml/test_c14n.rb +151 -0
  52. data/test/xml/test_document.rb +48 -0
  53. data/test/xml/test_namespace.rb +5 -0
  54. data/test/xml/test_node.rb +82 -1
  55. data/test/xml/test_node_attributes.rb +19 -0
  56. data/test/xml/test_node_inheritance.rb +32 -0
  57. data/test/xml/test_node_reparenting.rb +32 -0
  58. data/test/xml/test_node_set.rb +16 -8
  59. data/test/xml/test_reader_encoding.rb +16 -0
  60. data/test/xml/test_unparented_node.rb +24 -0
  61. data/test/xml/test_xinclude.rb +83 -0
  62. data/test/xml/test_xpath.rb +22 -0
  63. metadata +159 -126
@@ -246,6 +246,22 @@ module Nokogiri
246
246
  replacee.add_previous_sibling "foo <p></p> bar"
247
247
  assert_equal "foo <p></p> bartext node", xml.root.children.to_html
248
248
  end
249
+
250
+ describe "with a text node before" do
251
+ it "should not defensively dup the 'before' text node" do
252
+ xml = Nokogiri::XML %Q(<root>before<p></p>after</root>)
253
+ pivot = xml.at_css("p")
254
+ before = xml.root.children.first
255
+ after = xml.root.children.last
256
+ pivot.add_previous_sibling("x")
257
+
258
+ assert_equal "after", after.content
259
+ assert !after.parent.nil?, "unrelated node should not be affected"
260
+
261
+ assert_equal "before", before.content
262
+ assert !before.parent.nil?, "no need to reparent"
263
+ end
264
+ end
249
265
  end
250
266
 
251
267
  describe "#add_next_sibling" do
@@ -255,6 +271,22 @@ module Nokogiri
255
271
  replacee.add_next_sibling "foo <p></p> bar"
256
272
  assert_equal "text nodefoo <p></p> bar", xml.root.children.to_html
257
273
  end
274
+
275
+ describe "with a text node after" do
276
+ it "should not defensively dup the 'after' text node" do
277
+ xml = Nokogiri::XML %Q(<root>before<p></p>after</root>)
278
+ pivot = xml.at_css("p")
279
+ before = xml.root.children.first
280
+ after = xml.root.children.last
281
+ pivot.add_next_sibling("x")
282
+
283
+ assert_equal "before", before.content
284
+ assert !before.parent.nil?, "unrelated node should not be affected"
285
+
286
+ assert_equal "after", after.content
287
+ assert !after.parent.nil?
288
+ end
289
+ end
258
290
  end
259
291
 
260
292
  describe "#replace" do
@@ -22,6 +22,12 @@ module Nokogiri
22
22
  @list.push @list.first
23
23
  @list.delete @list.first
24
24
  end
25
+
26
+ def test_reference_after_delete
27
+ first = @list.first
28
+ @list.delete(first)
29
+ assert_equal 'http://www.w3.org/XML/1998/namespace', first.href
30
+ end
25
31
  end
26
32
 
27
33
  def setup
@@ -634,14 +640,16 @@ module Nokogiri
634
640
  end
635
641
 
636
642
  def test_should_not_splode_when_accessing_namespace_declarations_in_a_node_set
637
- xml = Nokogiri::XML "<foo></foo>"
638
- node_set = xml.xpath("//namespace::*")
639
- assert_equal 1, node_set.size
640
- node = node_set.first
641
- node.to_s # segfaults in 1.4.0 and earlier
642
-
643
- # if we haven't segfaulted, let's make sure we handled it correctly
644
- assert_instance_of Nokogiri::XML::Namespace, node
643
+ 2.times do
644
+ xml = Nokogiri::XML "<foo></foo>"
645
+ node_set = xml.xpath("//namespace::*")
646
+ assert_equal 1, node_set.size
647
+ node = node_set.first
648
+ node.to_s # segfaults in 1.4.0 and earlier
649
+
650
+ # if we haven't segfaulted, let's make sure we handled it correctly
651
+ assert_instance_of Nokogiri::XML::Namespace, node
652
+ end
645
653
  end
646
654
 
647
655
  def test_should_not_splode_when_arrayifying_node_set_containing_namespace_declarations
@@ -120,6 +120,22 @@ module Nokogiri
120
120
  assert_equal @reader.encoding, name.encoding.name
121
121
  end
122
122
  end
123
+
124
+ def test_value_lookup_segfault
125
+ skip("JRuby doesn't do GC.") if Nokogiri.jruby?
126
+ old_stress = GC.stress
127
+
128
+ begin
129
+ GC.stress = true
130
+
131
+ while node = @reader.read
132
+ nodes = node.send(:attr_nodes)
133
+ nodes.first.name if nodes.first
134
+ end
135
+ ensure
136
+ GC.stress = old_stress
137
+ end
138
+ end
123
139
  end
124
140
  end
125
141
  end
@@ -223,6 +223,30 @@ module Nokogiri
223
223
  right_space.add_next_sibling(left_space)
224
224
  assert_equal left_space, right_space
225
225
  end
226
+
227
+ def test_add_next_sibling_to_root_raises_exception
228
+ xml = Nokogiri::XML(<<-eoxml)
229
+ <root />
230
+ eoxml
231
+
232
+ node = Nokogiri::XML::Node.new 'child', xml
233
+
234
+ assert_raise(ArgumentError) do
235
+ xml.root.add_next_sibling(node)
236
+ end
237
+ end
238
+
239
+ def test_add_previous_sibling_to_root_raises_exception
240
+ xml = Nokogiri::XML(<<-eoxml)
241
+ <root />
242
+ eoxml
243
+
244
+ node = Nokogiri::XML::Node.new 'child', xml
245
+
246
+ assert_raise(ArgumentError) do
247
+ xml.root.add_previous_sibling(node)
248
+ end
249
+ end
226
250
 
227
251
  def test_find_by_css_with_tilde_eql
228
252
  xml = Nokogiri::XML.parse(<<-eoxml)
@@ -0,0 +1,83 @@
1
+ require "helper"
2
+
3
+ module Nokogiri
4
+ module XML
5
+ class TestXInclude < Nokogiri::TestCase
6
+ def setup
7
+ super
8
+ @xml = Nokogiri::XML.parse(File.read(XML_XINCLUDE_FILE), XML_XINCLUDE_FILE)
9
+ @included = "this snippet is to be included from xinclude.xml"
10
+ end
11
+
12
+ def test_xinclude_on_document_parse
13
+ skip("Pure Java version XInlcude has a conflict with NekoDTD setting. This will be fixed later.") if Nokogiri.jruby?
14
+ # first test that xinclude works when requested
15
+ xml_doc = nil
16
+
17
+ File.open(XML_XINCLUDE_FILE) do |fp|
18
+ xml_doc = Nokogiri::XML(fp) do |conf|
19
+ conf.strict.dtdload.noent.nocdata.xinclude
20
+ end
21
+ end
22
+
23
+ assert_not_nil xml_doc
24
+ assert_not_nil included = xml_doc.at_xpath('//included')
25
+ assert_equal @included, included.content
26
+
27
+ # no xinclude should happen when not requested
28
+ xml_doc = nil
29
+
30
+ File.open(XML_XINCLUDE_FILE) do |fp|
31
+ xml_doc = Nokogiri::XML(fp) do |conf|
32
+ conf.strict.dtdload.noent.nocdata
33
+ end
34
+ end
35
+
36
+ assert_not_nil xml_doc
37
+ assert_nil xml_doc.at_xpath('//included')
38
+ end
39
+
40
+ def test_xinclude_on_document_node
41
+ skip("Pure Java version turns XInlcude on against a parser.") if Nokogiri.jruby?
42
+ assert_nil @xml.at_xpath('//included')
43
+ @xml.do_xinclude
44
+ assert_not_nil included = @xml.at_xpath('//included')
45
+ assert_equal @included, included.content
46
+ end
47
+
48
+ def test_xinclude_on_element_subtree
49
+ skip("Pure Java version turns XInlcude on against a parser.") if Nokogiri.jruby?
50
+ assert_nil @xml.at_xpath('//included')
51
+ @xml.root.do_xinclude
52
+ assert_not_nil included = @xml.at_xpath('//included')
53
+ assert_equal @included, included.content
54
+ end
55
+
56
+ def test_do_xinclude_accepts_block
57
+ non_default_options = Nokogiri::XML::ParseOptions::NOBLANKS | \
58
+ Nokogiri::XML::ParseOptions::XINCLUDE
59
+
60
+ @xml.do_xinclude(non_default_options) do |options|
61
+ assert_equal non_default_options, options.to_i
62
+ end
63
+ end
64
+
65
+ def test_include_nonexistent_throws_exception
66
+ skip("Pure Java version behaves differently") if Nokogiri.jruby?
67
+ # break inclusion deliberately
68
+ @xml.at_xpath('//xi:include')['href'] = "nonexistent.xml"
69
+
70
+ exception_raised = false
71
+ begin
72
+ @xml.do_xinclude { |opts| opts.nowarning }
73
+ rescue Exception => e
74
+ assert_equal Nokogiri::XML::SyntaxError, e.class
75
+ exception_raised = true
76
+ end
77
+
78
+ assert exception_raised
79
+ end
80
+
81
+ end
82
+ end
83
+ end
@@ -58,6 +58,10 @@ module Nokogiri
58
58
  def saves_node_set node_set
59
59
  @things = node_set
60
60
  end
61
+
62
+ def value
63
+ 123.456
64
+ end
61
65
  }.new
62
66
  end
63
67
 
@@ -130,6 +134,15 @@ module Nokogiri
130
134
  assert_equal(['asdf'] * set.length, @handler.things)
131
135
  end
132
136
 
137
+ def test_custom_xpath_function_returns_string
138
+ if Nokogiri.uses_libxml?
139
+ result = @xml.xpath('thing("asdf")', @handler)
140
+ else
141
+ result = @xml.xpath('nokogiri:thing("asdf")', @ns, @handler)
142
+ end
143
+ assert_equal 'asdf', result
144
+ end
145
+
133
146
  def test_custom_xpath_gets_true_booleans
134
147
  set = @xml.xpath('//employee')
135
148
  if Nokogiri.uses_libxml?
@@ -232,6 +245,15 @@ module Nokogiri
232
245
 
233
246
  assert_equal doc.xpath("//tool[@name='hammer']"), doc.xpath(xpath, tool_inspector)
234
247
  end
248
+
249
+ def test_custom_xpath_without_arguments
250
+ if Nokogiri.uses_libxml?
251
+ value = @xml.xpath('value()', @handler)
252
+ else
253
+ value = @xml.xpath('nokogiri:value()', @ns, @handler)
254
+ end
255
+ assert_equal 123.456, value
256
+ end
235
257
  end
236
258
  end
237
259
  end
metadata CHANGED
@@ -1,13 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nokogiri
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
5
- prerelease:
4
+ hash: 790212989
5
+ prerelease: 6
6
6
  segments:
7
7
  - 1
8
8
  - 5
9
- - 0
10
- version: 1.5.0
9
+ - 1
10
+ - rc
11
+ - 1
12
+ version: 1.5.1.rc1
11
13
  platform: x86-mingw32
12
14
  authors:
13
15
  - Aaron Patterson
@@ -17,71 +19,67 @@ autorequire:
17
19
  bindir: bin
18
20
  cert_chain: []
19
21
 
20
- date: 2011-07-01 00:00:00 -04:00
21
- default_executable:
22
+ date: 2012-02-28 00:00:00 Z
22
23
  dependencies:
23
24
  - !ruby/object:Gem::Dependency
24
- name: racc
25
+ name: hoe-bundler
25
26
  prerelease: false
26
27
  requirement: &id001 !ruby/object:Gem::Requirement
27
28
  none: false
28
29
  requirements:
29
30
  - - ">="
30
31
  - !ruby/object:Gem::Version
31
- hash: 11
32
+ hash: 13
32
33
  segments:
33
34
  - 1
34
- - 4
35
- - 6
36
- version: 1.4.6
35
+ - 1
36
+ version: "1.1"
37
37
  type: :development
38
38
  version_requirements: *id001
39
39
  - !ruby/object:Gem::Dependency
40
- name: rexical
40
+ name: hoe-debugging
41
41
  prerelease: false
42
42
  requirement: &id002 !ruby/object:Gem::Requirement
43
43
  none: false
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- hash: 29
47
+ hash: 17
48
48
  segments:
49
49
  - 1
50
50
  - 0
51
- - 5
52
- version: 1.0.5
51
+ - 3
52
+ version: 1.0.3
53
53
  type: :development
54
54
  version_requirements: *id002
55
55
  - !ruby/object:Gem::Dependency
56
- name: rake-compiler
56
+ name: hoe-gemspec
57
57
  prerelease: false
58
58
  requirement: &id003 !ruby/object:Gem::Requirement
59
59
  none: false
60
60
  requirements:
61
61
  - - ">="
62
62
  - !ruby/object:Gem::Version
63
- hash: 17
63
+ hash: 15
64
64
  segments:
65
+ - 1
65
66
  - 0
66
- - 7
67
- - 9
68
- version: 0.7.9
67
+ version: "1.0"
69
68
  type: :development
70
69
  version_requirements: *id003
71
70
  - !ruby/object:Gem::Dependency
72
- name: minitest
71
+ name: hoe-git
73
72
  prerelease: false
74
73
  requirement: &id004 !ruby/object:Gem::Requirement
75
74
  none: false
76
75
  requirements:
77
- - - ~>
76
+ - - ">="
78
77
  - !ruby/object:Gem::Version
79
- hash: 3
78
+ hash: 7
80
79
  segments:
81
- - 2
82
- - 2
83
- - 2
84
- version: 2.2.2
80
+ - 1
81
+ - 4
82
+ version: "1.4"
85
83
  type: :development
86
84
  version_requirements: *id004
87
85
  - !ruby/object:Gem::Dependency
@@ -101,77 +99,99 @@ dependencies:
101
99
  type: :development
102
100
  version_requirements: *id005
103
101
  - !ruby/object:Gem::Dependency
104
- name: hoe-debugging
102
+ name: minitest
105
103
  prerelease: false
106
104
  requirement: &id006 !ruby/object:Gem::Requirement
107
105
  none: false
108
106
  requirements:
109
- - - ">="
107
+ - - ~>
110
108
  - !ruby/object:Gem::Version
111
109
  hash: 3
112
110
  segments:
113
- - 0
114
- version: "0"
111
+ - 2
112
+ - 2
113
+ - 2
114
+ version: 2.2.2
115
115
  type: :development
116
116
  version_requirements: *id006
117
117
  - !ruby/object:Gem::Dependency
118
- name: hoe-git
118
+ name: racc
119
119
  prerelease: false
120
120
  requirement: &id007 !ruby/object:Gem::Requirement
121
121
  none: false
122
122
  requirements:
123
123
  - - ">="
124
124
  - !ruby/object:Gem::Version
125
- hash: 3
125
+ hash: 11
126
126
  segments:
127
- - 0
128
- version: "0"
127
+ - 1
128
+ - 4
129
+ - 6
130
+ version: 1.4.6
129
131
  type: :development
130
132
  version_requirements: *id007
131
133
  - !ruby/object:Gem::Dependency
132
- name: hoe-gemspec
134
+ name: rake-compiler
133
135
  prerelease: false
134
136
  requirement: &id008 !ruby/object:Gem::Requirement
135
137
  none: false
136
138
  requirements:
137
- - - ">="
139
+ - - "="
138
140
  - !ruby/object:Gem::Version
139
- hash: 3
141
+ hash: 63
140
142
  segments:
141
143
  - 0
142
- version: "0"
144
+ - 8
145
+ - 0
146
+ version: 0.8.0
143
147
  type: :development
144
148
  version_requirements: *id008
145
149
  - !ruby/object:Gem::Dependency
146
- name: hoe-bundler
150
+ name: rexical
147
151
  prerelease: false
148
152
  requirement: &id009 !ruby/object:Gem::Requirement
149
153
  none: false
150
154
  requirements:
151
155
  - - ">="
152
156
  - !ruby/object:Gem::Version
153
- hash: 3
157
+ hash: 29
154
158
  segments:
159
+ - 1
155
160
  - 0
156
- version: "0"
161
+ - 5
162
+ version: 1.0.5
157
163
  type: :development
158
164
  version_requirements: *id009
159
165
  - !ruby/object:Gem::Dependency
160
- name: hoe
166
+ name: rdoc
161
167
  prerelease: false
162
168
  requirement: &id010 !ruby/object:Gem::Requirement
163
169
  none: false
164
170
  requirements:
165
- - - ">="
171
+ - - ~>
166
172
  - !ruby/object:Gem::Version
167
- hash: 35
173
+ hash: 19
168
174
  segments:
169
- - 2
170
- - 9
171
- - 4
172
- version: 2.9.4
175
+ - 3
176
+ - 10
177
+ version: "3.10"
173
178
  type: :development
174
179
  version_requirements: *id010
180
+ - !ruby/object:Gem::Dependency
181
+ name: hoe
182
+ prerelease: false
183
+ requirement: &id011 !ruby/object:Gem::Requirement
184
+ none: false
185
+ requirements:
186
+ - - ~>
187
+ - !ruby/object:Gem::Version
188
+ hash: 25
189
+ segments:
190
+ - 2
191
+ - 13
192
+ version: "2.13"
193
+ type: :development
194
+ version_requirements: *id011
175
195
  description: "Nokogiri (\xE9\x8B\xB8) is an HTML, XML, SAX, and Reader parser. Among Nokogiri's\n\
176
196
  many features is the ability to search documents via XPath or CSS3 selectors.\n\n\
177
197
  XML is like violence - if it doesn\xE2\x80\x99t solve your problems, you are not using\n\
@@ -186,43 +206,45 @@ extensions: []
186
206
 
187
207
  extra_rdoc_files:
188
208
  - Manifest.txt
189
- - README.ja.rdoc
190
- - CHANGELOG.rdoc
191
209
  - CHANGELOG.ja.rdoc
210
+ - README.ja.rdoc
192
211
  - README.rdoc
193
- - ext/nokogiri/xml_sax_push_parser.c
194
- - ext/nokogiri/xml_relax_ng.c
195
- - ext/nokogiri/html_sax_parser_context.c
196
- - ext/nokogiri/html_entity_lookup.c
212
+ - C_CODING_STYLE.rdoc
213
+ - CHANGELOG.rdoc
214
+ - ext/nokogiri/xml_encoding_handler.c
215
+ - ext/nokogiri/html_sax_push_parser.c
216
+ - ext/nokogiri/xml_processing_instruction.c
197
217
  - ext/nokogiri/xml_text.c
218
+ - ext/nokogiri/xml_entity_reference.c
219
+ - ext/nokogiri/xml_relax_ng.c
198
220
  - ext/nokogiri/nokogiri.c
221
+ - ext/nokogiri/xml_node.c
222
+ - ext/nokogiri/xml_attr.c
223
+ - ext/nokogiri/xml_reader.c
224
+ - ext/nokogiri/xml_entity_decl.c
199
225
  - ext/nokogiri/xml_element_decl.c
200
- - ext/nokogiri/xml_encoding_handler.c
201
- - ext/nokogiri/html_document.c
202
- - ext/nokogiri/xslt_stylesheet.c
203
- - ext/nokogiri/xml_attribute_decl.c
204
- - ext/nokogiri/xml_io.c
205
- - ext/nokogiri/xml_document_fragment.c
206
- - ext/nokogiri/xml_namespace.c
207
- - ext/nokogiri/xml_libxml2_hacks.c
208
- - ext/nokogiri/xml_sax_parser_context.c
209
- - ext/nokogiri/xml_comment.c
210
- - ext/nokogiri/xml_sax_parser.c
211
226
  - ext/nokogiri/html_element_description.c
212
- - ext/nokogiri/xml_xpath_context.c
227
+ - ext/nokogiri/xslt_stylesheet.c
213
228
  - ext/nokogiri/xml_syntax_error.c
214
229
  - ext/nokogiri/xml_document.c
215
- - ext/nokogiri/xml_entity_decl.c
216
- - ext/nokogiri/xml_node.c
217
- - ext/nokogiri/xml_node_set.c
218
- - ext/nokogiri/xml_reader.c
219
- - ext/nokogiri/xml_processing_instruction.c
220
- - ext/nokogiri/xml_element_content.c
221
230
  - ext/nokogiri/xml_dtd.c
222
- - ext/nokogiri/xml_attr.c
223
- - ext/nokogiri/xml_schema.c
224
231
  - ext/nokogiri/xml_cdata.c
225
- - ext/nokogiri/xml_entity_reference.c
232
+ - ext/nokogiri/xml_sax_parser.c
233
+ - ext/nokogiri/xml_comment.c
234
+ - ext/nokogiri/xml_node_set.c
235
+ - ext/nokogiri/xml_xpath_context.c
236
+ - ext/nokogiri/html_entity_lookup.c
237
+ - ext/nokogiri/xml_sax_push_parser.c
238
+ - ext/nokogiri/xml_sax_parser_context.c
239
+ - ext/nokogiri/xml_io.c
240
+ - ext/nokogiri/xml_libxml2_hacks.c
241
+ - ext/nokogiri/html_document.c
242
+ - ext/nokogiri/xml_attribute_decl.c
243
+ - ext/nokogiri/xml_document_fragment.c
244
+ - ext/nokogiri/xml_schema.c
245
+ - ext/nokogiri/xml_element_content.c
246
+ - ext/nokogiri/html_sax_parser_context.c
247
+ - ext/nokogiri/xml_namespace.c
226
248
  files:
227
249
  - .autotest
228
250
  - .gemtest
@@ -243,6 +265,8 @@ files:
243
265
  - ext/nokogiri/html_entity_lookup.h
244
266
  - ext/nokogiri/html_sax_parser_context.c
245
267
  - ext/nokogiri/html_sax_parser_context.h
268
+ - ext/nokogiri/html_sax_push_parser.c
269
+ - ext/nokogiri/html_sax_push_parser.h
246
270
  - ext/nokogiri/nokogiri.c
247
271
  - ext/nokogiri/nokogiri.h
248
272
  - ext/nokogiri/xml_attr.c
@@ -321,6 +345,7 @@ files:
321
345
  - lib/nokogiri/html/entity_lookup.rb
322
346
  - lib/nokogiri/html/sax/parser.rb
323
347
  - lib/nokogiri/html/sax/parser_context.rb
348
+ - lib/nokogiri/html/sax/push_parser.rb
324
349
  - lib/nokogiri/syntax_error.rb
325
350
  - lib/nokogiri/version.rb
326
351
  - lib/nokogiri/xml.rb
@@ -436,6 +461,7 @@ files:
436
461
  - test/xml/test_node_encoding.rb
437
462
  - test/xml/test_node_reparenting.rb
438
463
  - test/xml/test_node_set.rb
464
+ - test/xml/test_node_inheritance.rb
439
465
  - test/xml/test_parse_options.rb
440
466
  - test/xml/test_processing_instruction.rb
441
467
  - test/xml/test_reader_encoding.rb
@@ -447,10 +473,12 @@ files:
447
473
  - test/xml/test_xpath.rb
448
474
  - test/xslt/test_custom_functions.rb
449
475
  - test/xslt/test_exception_handling.rb
476
+ - test/xml/test_c14n.rb
477
+ - test/xml/test_xinclude.rb
478
+ - C_CODING_STYLE.rdoc
450
479
  - lib/nokogiri/nokogiri.rb
451
480
  - lib/nokogiri/1.8/nokogiri.so
452
481
  - lib/nokogiri/1.9/nokogiri.so
453
- has_rdoc: true
454
482
  homepage: http://nokogiri.org
455
483
  licenses: []
456
484
 
@@ -474,76 +502,81 @@ required_ruby_version: !ruby/object:Gem::Requirement
474
502
  required_rubygems_version: !ruby/object:Gem::Requirement
475
503
  none: false
476
504
  requirements:
477
- - - ">="
505
+ - - ">"
478
506
  - !ruby/object:Gem::Version
479
- hash: 3
507
+ hash: 25
480
508
  segments:
481
- - 0
482
- version: "0"
509
+ - 1
510
+ - 3
511
+ - 1
512
+ version: 1.3.1
483
513
  requirements: []
484
514
 
485
515
  rubyforge_project: nokogiri
486
- rubygems_version: 1.6.0
516
+ rubygems_version: 1.8.15
487
517
  signing_key:
488
518
  specification_version: 3
489
519
  summary: "Nokogiri (\xE9\x8B\xB8) is an HTML, XML, SAX, and Reader parser"
490
520
  test_files:
491
- - test/test_convert_xpath.rb
492
- - test/test_soap4r_sax.rb
493
- - test/test_memory_leak.rb
494
521
  - test/test_nokogiri.rb
495
- - test/test_css_cache.rb
496
- - test/css/test_nthiness.rb
522
+ - test/css/test_tokenizer.rb
497
523
  - test/css/test_xpath_visitor.rb
524
+ - test/css/test_nthiness.rb
498
525
  - test/css/test_parser.rb
499
- - test/css/test_tokenizer.rb
500
- - test/decorators/test_slop.rb
501
- - test/html/test_document.rb
502
- - test/html/test_document_encoding.rb
503
- - test/html/test_named_characters.rb
504
- - test/html/test_document_fragment.rb
505
- - test/html/test_node.rb
506
- - test/html/test_builder.rb
507
- - test/html/sax/test_parser_context.rb
508
- - test/html/sax/test_parser.rb
509
- - test/html/test_node_encoding.rb
510
- - test/html/test_element_description.rb
511
- - test/test_reader.rb
512
- - test/xml/test_parse_options.rb
513
- - test/xml/test_unparented_node.rb
514
- - test/xml/test_element_decl.rb
515
- - test/xml/test_document.rb
516
- - test/xml/test_dtd.rb
526
+ - test/xml/test_dtd_encoding.rb
517
527
  - test/xml/test_document_encoding.rb
528
+ - test/xml/test_node_inheritance.rb
518
529
  - test/xml/test_entity_decl.rb
519
- - test/xml/test_dtd_encoding.rb
520
- - test/xml/node/test_save_options.rb
521
- - test/xml/node/test_subclass.rb
522
- - test/xml/test_document_fragment.rb
530
+ - test/xml/test_node_reparenting.rb
531
+ - test/xml/sax/test_parser_context.rb
532
+ - test/xml/sax/test_push_parser.rb
533
+ - test/xml/sax/test_parser.rb
534
+ - test/xml/test_attr.rb
523
535
  - test/xml/test_cdata.rb
536
+ - test/xml/test_document.rb
537
+ - test/xml/test_node_encoding.rb
538
+ - test/xml/test_document_fragment.rb
539
+ - test/xml/test_c14n.rb
540
+ - test/xml/test_dtd.rb
541
+ - test/xml/test_node.rb
542
+ - test/xml/test_comment.rb
524
543
  - test/xml/test_text.rb
525
- - test/xml/test_reader_encoding.rb
544
+ - test/xml/node/test_save_options.rb
545
+ - test/xml/node/test_subclass.rb
546
+ - test/xml/test_schema.rb
547
+ - test/xml/test_node_attributes.rb
548
+ - test/xml/test_namespace.rb
549
+ - test/xml/test_attribute_decl.rb
526
550
  - test/xml/test_xpath.rb
527
- - test/xml/test_element_content.rb
528
- - test/xml/test_node.rb
551
+ - test/xml/test_processing_instruction.rb
552
+ - test/xml/test_reader_encoding.rb
553
+ - test/xml/test_element_decl.rb
529
554
  - test/xml/test_builder.rb
530
- - test/xml/sax/test_push_parser.rb
531
- - test/xml/sax/test_parser_context.rb
532
- - test/xml/sax/test_parser.rb
533
- - test/xml/test_schema.rb
534
555
  - test/xml/test_node_set.rb
535
- - test/xml/test_attr.rb
536
- - test/xml/test_processing_instruction.rb
537
- - test/xml/test_node_encoding.rb
538
556
  - test/xml/test_syntax_error.rb
539
- - test/xml/test_comment.rb
557
+ - test/xml/test_parse_options.rb
558
+ - test/xml/test_xinclude.rb
559
+ - test/xml/test_element_content.rb
560
+ - test/xml/test_unparented_node.rb
540
561
  - test/xml/test_entity_reference.rb
541
- - test/xml/test_node_reparenting.rb
542
- - test/xml/test_attribute_decl.rb
543
562
  - test/xml/test_relax_ng.rb
544
- - test/xml/test_namespace.rb
545
- - test/xml/test_node_attributes.rb
546
563
  - test/test_xslt_transforms.rb
547
- - test/xslt/test_custom_functions.rb
548
- - test/xslt/test_exception_handling.rb
564
+ - test/test_memory_leak.rb
565
+ - test/test_css_cache.rb
566
+ - test/decorators/test_slop.rb
567
+ - test/test_soap4r_sax.rb
549
568
  - test/test_encoding_handler.rb
569
+ - test/html/test_document_encoding.rb
570
+ - test/html/test_named_characters.rb
571
+ - test/html/sax/test_parser_context.rb
572
+ - test/html/sax/test_parser.rb
573
+ - test/html/test_document.rb
574
+ - test/html/test_node_encoding.rb
575
+ - test/html/test_document_fragment.rb
576
+ - test/html/test_node.rb
577
+ - test/html/test_element_description.rb
578
+ - test/html/test_builder.rb
579
+ - test/xslt/test_exception_handling.rb
580
+ - test/xslt/test_custom_functions.rb
581
+ - test/test_reader.rb
582
+ - test/test_convert_xpath.rb