nokogiri 1.5.0.beta.3-java → 1.5.0.beta.4-java

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 (88) hide show
  1. data/CHANGELOG.ja.rdoc +32 -16
  2. data/CHANGELOG.rdoc +18 -0
  3. data/Manifest.txt +1 -2
  4. data/README.rdoc +27 -3
  5. data/Rakefile +39 -83
  6. data/ext/java/nokogiri/EncodingHandler.java +1 -1
  7. data/ext/java/nokogiri/HtmlDocument.java +11 -14
  8. data/ext/java/nokogiri/HtmlElementDescription.java +1 -1
  9. data/ext/java/nokogiri/HtmlEntityLookup.java +1 -1
  10. data/ext/java/nokogiri/HtmlSaxParserContext.java +13 -10
  11. data/ext/java/nokogiri/NokogiriService.java +103 -34
  12. data/ext/java/nokogiri/XmlAttr.java +14 -6
  13. data/ext/java/nokogiri/XmlAttributeDecl.java +1 -1
  14. data/ext/java/nokogiri/XmlCdata.java +3 -1
  15. data/ext/java/nokogiri/XmlComment.java +3 -1
  16. data/ext/java/nokogiri/XmlDocument.java +29 -8
  17. data/ext/java/nokogiri/XmlDocumentFragment.java +14 -13
  18. data/ext/java/nokogiri/XmlDtd.java +5 -2
  19. data/ext/java/nokogiri/XmlElement.java +2 -1
  20. data/ext/java/nokogiri/XmlElementContent.java +1 -1
  21. data/ext/java/nokogiri/XmlElementDecl.java +2 -1
  22. data/ext/java/nokogiri/XmlEntityDecl.java +2 -1
  23. data/ext/java/nokogiri/XmlEntityReference.java +1 -1
  24. data/ext/java/nokogiri/XmlNamespace.java +3 -2
  25. data/ext/java/nokogiri/XmlNode.java +17 -10
  26. data/ext/java/nokogiri/XmlNodeSet.java +40 -13
  27. data/ext/java/nokogiri/XmlProcessingInstruction.java +1 -1
  28. data/ext/java/nokogiri/XmlReader.java +3 -1
  29. data/ext/java/nokogiri/XmlRelaxng.java +37 -92
  30. data/ext/java/nokogiri/XmlSaxParserContext.java +25 -11
  31. data/ext/java/nokogiri/XmlSaxPushParser.java +6 -4
  32. data/ext/java/nokogiri/XmlSchema.java +190 -46
  33. data/ext/java/nokogiri/XmlSyntaxError.java +42 -37
  34. data/ext/java/nokogiri/XmlText.java +3 -2
  35. data/ext/java/nokogiri/XmlXpathContext.java +8 -4
  36. data/ext/java/nokogiri/XsltStylesheet.java +12 -10
  37. data/ext/java/nokogiri/internals/HtmlDomParserContext.java +8 -7
  38. data/ext/java/nokogiri/internals/NokogiriDocumentCache.java +1 -1
  39. data/ext/java/nokogiri/internals/NokogiriErrorHandler.java +11 -5
  40. data/ext/java/nokogiri/internals/NokogiriHandler.java +36 -9
  41. data/ext/java/nokogiri/internals/NokogiriHelpers.java +21 -22
  42. data/ext/java/nokogiri/internals/NokogiriNamespaceCache.java +5 -4
  43. data/ext/java/nokogiri/internals/NokogiriNamespaceContext.java +1 -1
  44. data/ext/java/nokogiri/internals/NokogiriNonStrictErrorHandler.java +2 -1
  45. data/ext/java/nokogiri/internals/NokogiriNonStrictErrorHandler4NekoHtml.java +1 -1
  46. data/ext/java/nokogiri/internals/NokogiriStrictErrorHandler.java +2 -1
  47. data/ext/java/nokogiri/internals/NokogiriXPathFunction.java +15 -9
  48. data/ext/java/nokogiri/internals/NokogiriXPathFunctionResolver.java +1 -1
  49. data/ext/java/nokogiri/internals/ParserContext.java +18 -7
  50. data/ext/java/nokogiri/internals/PushInputStream.java +1 -1
  51. data/ext/java/nokogiri/internals/ReaderNode.java +7 -6
  52. data/ext/java/nokogiri/internals/SaveContext.java +16 -10
  53. data/ext/java/nokogiri/internals/SchemaErrorHandler.java +13 -5
  54. data/ext/java/nokogiri/internals/XmlDeclHandler.java +1 -1
  55. data/ext/java/nokogiri/internals/XmlDomParser.java +1 -1
  56. data/ext/java/nokogiri/internals/XmlDomParserContext.java +13 -8
  57. data/ext/java/nokogiri/internals/XmlSaxParser.java +1 -1
  58. data/ext/java/nokogiri/internals/XsltExtensionFunction.java +1 -1
  59. data/ext/nokogiri/extconf.rb +3 -3
  60. data/ext/nokogiri/xml_document.c +9 -0
  61. data/ext/nokogiri/xml_sax_parser.c +4 -2
  62. data/lib/nokogiri.rb +9 -6
  63. data/lib/nokogiri/css.rb +1 -3
  64. data/lib/nokogiri/css/parser.rb +665 -70
  65. data/lib/nokogiri/css/parser.y +3 -1
  66. data/lib/nokogiri/css/parser_extras.rb +91 -0
  67. data/lib/nokogiri/css/tokenizer.rb +148 -3
  68. data/lib/nokogiri/css/tokenizer.rex +1 -1
  69. data/lib/nokogiri/html/document.rb +138 -11
  70. data/lib/nokogiri/html/sax/parser.rb +6 -2
  71. data/lib/nokogiri/nokogiri.jar +0 -0
  72. data/lib/nokogiri/version.rb +1 -1
  73. data/lib/nokogiri/xml/node.rb +2 -2
  74. data/lib/nokogiri/xml/node/save_options.rb +3 -0
  75. data/lib/nokogiri/xml/node_set.rb +1 -1
  76. data/test/css/test_tokenizer.rb +8 -0
  77. data/test/helper.rb +2 -0
  78. data/test/html/sax/test_parser.rb +43 -0
  79. data/test/html/test_document.rb +59 -0
  80. data/test/html/test_document_encoding.rb +48 -0
  81. data/test/html/test_element_description.rb +1 -1
  82. data/test/xml/sax/test_parser.rb +16 -0
  83. data/test/xml/test_document.rb +3 -1
  84. data/test/xml/test_node.rb +4 -1
  85. data/test/xml/test_node_set.rb +10 -0
  86. metadata +73 -82
  87. data/lib/nokogiri/css/generated_parser.rb +0 -676
  88. data/lib/nokogiri/css/generated_tokenizer.rb +0 -145
Binary file
@@ -1,6 +1,6 @@
1
1
  module Nokogiri
2
2
  # The version of Nokogiri you are using
3
- VERSION = '1.5.0.beta.3'
3
+ VERSION = '1.5.0.beta.4'
4
4
 
5
5
  # More complete version information about libxml
6
6
  VERSION_INFO = {}
@@ -720,6 +720,7 @@ module Nokogiri
720
720
  }
721
721
 
722
722
  encoding = options[:encoding] || document.encoding
723
+ options[:encoding] = encoding
723
724
 
724
725
  outstring = ""
725
726
  if encoding && outstring.respond_to?(:force_encoding)
@@ -803,8 +804,7 @@ module Nokogiri
803
804
  indent_text = options[:indent_text] || ' '
804
805
  indent_times = options[:indent] || 2
805
806
 
806
-
807
- config = SaveOptions.new(save_options)
807
+ config = SaveOptions.new(save_options.to_i)
808
808
  yield config if block_given?
809
809
 
810
810
  native_write_to(io, encoding, indent_text * indent_times, config.options)
@@ -24,6 +24,7 @@ module Nokogiri
24
24
 
25
25
  # Create a new SaveOptions object with +options+
26
26
  def initialize options = 0; @options = options; end
27
+
27
28
  constants.each do |constant|
28
29
  class_eval %{
29
30
  def #{constant.downcase}
@@ -36,6 +37,8 @@ module Nokogiri
36
37
  end
37
38
  }
38
39
  end
40
+
41
+ alias :to_i :options
39
42
  end
40
43
  end
41
44
  end
@@ -104,7 +104,7 @@ module Nokogiri
104
104
 
105
105
  each do |node|
106
106
  doc = node.document
107
- search_ns = ns || doc.root ? doc.root.namespaces : {}
107
+ search_ns = ns || (doc.root ? doc.root.namespaces : {})
108
108
 
109
109
  xpaths = paths.map { |rule|
110
110
  [
@@ -2,6 +2,14 @@
2
2
 
3
3
  require "helper"
4
4
 
5
+ module Nokogiri
6
+ module CSS
7
+ class Tokenizer
8
+ alias :scan :scan_setup
9
+ end
10
+ end
11
+ end
12
+
5
13
  module Nokogiri
6
14
  module CSS
7
15
  class TestTokenizer < Nokogiri::TestCase
@@ -20,6 +20,8 @@ module Nokogiri
20
20
  NICH_FILE = File.join(ASSETS_DIR, '2ch.html')
21
21
  SHIFT_JIS_XML = File.join(ASSETS_DIR, 'shift_jis.xml')
22
22
  SHIFT_JIS_HTML = File.join(ASSETS_DIR, 'shift_jis.html')
23
+ ENCODING_XHTML_FILE = File.join(ASSETS_DIR, 'encoding.xhtml')
24
+ ENCODING_HTML_FILE = File.join(ASSETS_DIR, 'encoding.html')
23
25
  PO_XML_FILE = File.join(ASSETS_DIR, 'po.xml')
24
26
  PO_SCHEMA_FILE = File.join(ASSETS_DIR, 'po.xsd')
25
27
  ADDRESS_SCHEMA_FILE = File.join(ASSETS_DIR, 'address_book.rlx')
@@ -87,6 +87,49 @@ module Nokogiri
87
87
  @parser.document.start_elements)
88
88
  end
89
89
  end
90
+
91
+ def test_parser_attributes
92
+ html = <<-eohtml
93
+ <html>
94
+ <head>
95
+ <title>hello</title>
96
+ </head>
97
+ <body>
98
+ <img src="face.jpg" title="daddy &amp; me">
99
+ <hr noshade size="2">
100
+ </body>
101
+ </html>
102
+ eohtml
103
+
104
+ block_called = false
105
+ @parser.parse(html) { |ctx|
106
+ block_called = true
107
+ ctx.replace_entities = true
108
+ }
109
+
110
+ assert block_called
111
+
112
+ noshade_value = if Nokogiri.uses_libxml? && Nokogiri::VERSION_INFO['libxml']['loaded'] < '2.7.7'
113
+ ['noshade', 'noshade']
114
+ else
115
+ ['noshade', nil]
116
+ end
117
+
118
+ assert_equal [
119
+ ['html', []],
120
+ ['head', []],
121
+ ['title', []],
122
+ ['body', []],
123
+ ['img', [
124
+ ['src', 'face.jpg'],
125
+ ['title', 'daddy & me']
126
+ ]],
127
+ ['hr', [
128
+ noshade_value,
129
+ ['size', '2']
130
+ ]]
131
+ ], @parser.document.start_elements
132
+ end
90
133
  end
91
134
  end
92
135
  end
@@ -119,6 +119,18 @@ module Nokogiri
119
119
 
120
120
  def test_meta_encoding
121
121
  assert_equal 'UTF-8', @html.meta_encoding
122
+
123
+ html = Nokogiri::HTML(<<-eohtml)
124
+ <html>
125
+ <head>
126
+ <meta http-equiv="X-Content-Type" content="text/html; charset=Shift_JIS">
127
+ </head>
128
+ <body>
129
+ foo
130
+ </body>
131
+ </html>
132
+ eohtml
133
+ assert_nil html.meta_encoding
122
134
  end
123
135
 
124
136
  def test_meta_encoding=
@@ -126,6 +138,53 @@ module Nokogiri
126
138
  assert_equal 'EUC-JP', @html.meta_encoding
127
139
  end
128
140
 
141
+ def test_title
142
+ assert_equal 'Tender Lovemaking ', @html.title
143
+ doc = Nokogiri::HTML('<html><body>foo</body></html>')
144
+ assert_nil doc.title
145
+ end
146
+
147
+ def test_title=()
148
+ doc = Nokogiri::HTML(<<eohtml)
149
+ <html>
150
+ <head>
151
+ <title>old</title>
152
+ </head>
153
+ <body>
154
+ foo
155
+ </body>
156
+ </html>
157
+ eohtml
158
+ doc.title = 'new'
159
+ assert_equal 'new', doc.title
160
+
161
+ doc = Nokogiri::HTML(<<eohtml)
162
+ <html>
163
+ <head>
164
+ </head>
165
+ <body>
166
+ foo
167
+ </body>
168
+ </html>
169
+ eohtml
170
+ doc.title = 'new'
171
+ assert_equal 'new', doc.title
172
+
173
+ doc = Nokogiri::HTML(<<eohtml)
174
+ <html>
175
+ <body>
176
+ foo
177
+ </body>
178
+ </html>
179
+ eohtml
180
+ doc.title = 'new'
181
+ if Nokogiri.uses_libxml?
182
+ assert_nil doc.title
183
+ else
184
+ assert_equal 'new', doc.title
185
+ end
186
+ end
187
+
129
188
  def test_meta_encoding_without_head
130
189
  html = Nokogiri::HTML('<html><body>foo</body></html>')
131
190
  assert_nil html.meta_encoding
@@ -73,5 +73,53 @@ module Nokogiri
73
73
  end
74
74
  end
75
75
  end
76
+
77
+ class TestDocumentEncodingDetection < Nokogiri::TestCase
78
+ if IO.respond_to?(:binread)
79
+ def binread(file)
80
+ IO.binread(file)
81
+ end
82
+ else
83
+ def binread(file)
84
+ IO.read(file)
85
+ end
86
+ end
87
+
88
+ def binopen(file)
89
+ File.open(file, 'rb')
90
+ end
91
+
92
+ def test_document_xhtml_enc
93
+ [ENCODING_XHTML_FILE, ENCODING_HTML_FILE].each { |file|
94
+ doc_from_string_enc = Nokogiri::HTML(binread(file), nil, 'Shift_JIS')
95
+ ary_from_string_enc = doc_from_string_enc.xpath('//p/text()').map { |text| text.text }
96
+
97
+ doc_from_string = Nokogiri::HTML(binread(file))
98
+ ary_from_string = doc_from_string.xpath('//p/text()').map { |text| text.text }
99
+
100
+ doc_from_file_enc = Nokogiri::HTML(binopen(file), nil, 'Shift_JIS')
101
+ ary_from_file_enc = doc_from_file_enc.xpath('//p/text()').map { |text| text.text }
102
+
103
+ doc_from_file = Nokogiri::HTML(binopen(file))
104
+ ary_from_file = doc_from_file.xpath('//p/text()').map { |text| text.text }
105
+
106
+ title = 'たこ焼き仮面'
107
+
108
+ assert_equal(title, doc_from_string_enc.at('//title/text()').text)
109
+ assert_equal(title, doc_from_string.at('//title/text()').text)
110
+ assert_equal(title, doc_from_file_enc.at('//title/text()').text)
111
+ unless Nokogiri.jruby? && file == ENCODING_HTML_FILE
112
+ assert_equal(title, doc_from_file.at('//title/text()').text)
113
+ end
114
+
115
+ evil = (0..72).map { |i| '超' * i + '悪い事を構想中。' }
116
+
117
+ assert_equal(evil, ary_from_string_enc)
118
+ assert_equal(evil, ary_from_string)
119
+ assert_equal(evil, ary_from_file_enc)
120
+ assert_equal(evil, ary_from_file)
121
+ }
122
+ end
123
+ end
76
124
  end
77
125
  end
@@ -56,7 +56,7 @@ module Nokogiri
56
56
 
57
57
  def test_subelements
58
58
  sub_elements = ElementDescription['body'].sub_elements
59
- if Nokogiri.uses_libxml? && Nokogiri::LIBXML_VERSION == '2.7.7'
59
+ if Nokogiri.uses_libxml? && Nokogiri::LIBXML_VERSION >= '2.7.7'
60
60
  assert_equal 65, sub_elements.length
61
61
  elsif Nokogiri.uses_libxml?
62
62
  assert_equal 61, sub_elements.length
@@ -316,6 +316,22 @@ module Nokogiri
316
316
  eoxml
317
317
  end
318
318
  end
319
+
320
+ def test_parser_attributes
321
+ xml = <<-eoxml
322
+ <?xml version="1.0" ?><root><foo a="&amp;b" c="&gt;d" /></root>
323
+ eoxml
324
+
325
+ block_called = false
326
+ @parser.parse(xml) { |ctx|
327
+ block_called = true
328
+ ctx.replace_entities = true
329
+ }
330
+
331
+ assert block_called
332
+
333
+ assert_equal [['root', []], ['foo', [['a', '&b'], ['c', '>d']]]], @parser.document.start_elements
334
+ end
319
335
  end
320
336
  end
321
337
  end
@@ -611,7 +611,7 @@ module Nokogiri
611
611
  <a:foo>hello from a</a:foo>
612
612
  <b:foo>hello from b</b:foo>
613
613
  <container xmlns:c="http://c.flavorjon.es/">
614
- <c:foo>hello from c</c:foo>
614
+ <c:foo c:attr='attr-value'>hello from c</c:foo>
615
615
  </container>
616
616
  </root>
617
617
  EOX
@@ -625,6 +625,7 @@ module Nokogiri
625
625
  assert_equal 1, doc.xpath("//a:foo").length
626
626
  assert_equal 1, doc.xpath("//a:foo").length
627
627
  assert_equal 1, doc.xpath("//x:foo", "x" => "http://c.flavorjon.es/").length
628
+ assert_match %r{foo c:attr}, doc.to_xml
628
629
 
629
630
  doc.remove_namespaces!
630
631
 
@@ -634,6 +635,7 @@ module Nokogiri
634
635
  assert_equal 0, doc.xpath("//a:foo", namespaces).length
635
636
  assert_equal 0, doc.xpath("//a:foo", namespaces).length
636
637
  assert_equal 0, doc.xpath("//x:foo", "x" => "http://c.flavorjon.es/").length
638
+ assert_match %r{foo attr}, doc.to_xml
637
639
  end
638
640
 
639
641
  def test_subset_is_decorated
@@ -497,7 +497,9 @@ module Nokogiri
497
497
  end
498
498
  io.rewind
499
499
  assert called
500
- assert_equal @xml.serialize(nil, conf.options), io.read
500
+ string = io.read
501
+ assert_equal @xml.serialize(nil, conf.options), string
502
+ assert_equal @xml.serialize(nil, conf), string
501
503
  end
502
504
 
503
505
  %w{ xml html xhtml }.each do |type|
@@ -519,6 +521,7 @@ module Nokogiri
519
521
  end
520
522
  assert called
521
523
  assert_equal @xml.serialize(nil, conf.options), string
524
+ assert_equal @xml.serialize(nil, conf), string
522
525
  end
523
526
 
524
527
  def test_hold_refence_to_subnode
@@ -158,6 +158,16 @@ module Nokogiri
158
158
  set = html.xpath("/html/body/div")
159
159
  assert_equal set.first, set.search(".a").first
160
160
  end
161
+
162
+ def test_css_search_with_namespace
163
+ fragment = Nokogiri::XML.fragment(<<-eoxml)
164
+ <html xmlns="http://www.w3.org/1999/xhtml">
165
+ <head></head>
166
+ <body></body>
167
+ </html>
168
+ eoxml
169
+ assert_nothing_raised{ fragment.children.search( 'body', { 'xmlns' => 'http://www.w3.org/1999/xhtml' }) }
170
+ end
161
171
 
162
172
  def test_double_equal
163
173
  assert node_set_one = @xml.xpath('//employee')
metadata CHANGED
@@ -7,8 +7,8 @@ version: !ruby/object:Gem::Version
7
7
  - 5
8
8
  - 0
9
9
  - beta
10
- - 3
11
- version: 1.5.0.beta.3
10
+ - 4
11
+ version: 1.5.0.beta.4
12
12
  platform: java
13
13
  authors:
14
14
  - Aaron Patterson
@@ -17,14 +17,13 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2010-12-02 00:00:00 -05:00
21
- default_executable: nokogiri
20
+ date: 2011-01-27 00:00:00 -08:00
21
+ default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
24
24
  name: rubyforge
25
25
  prerelease: false
26
26
  requirement: &id001 !ruby/object:Gem::Requirement
27
- none: false
28
27
  requirements:
29
28
  - - ">="
30
29
  - !ruby/object:Gem::Version
@@ -39,7 +38,6 @@ dependencies:
39
38
  name: racc
40
39
  prerelease: false
41
40
  requirement: &id002 !ruby/object:Gem::Requirement
42
- none: false
43
41
  requirements:
44
42
  - - ">="
45
43
  - !ruby/object:Gem::Version
@@ -52,7 +50,6 @@ dependencies:
52
50
  name: rexical
53
51
  prerelease: false
54
52
  requirement: &id003 !ruby/object:Gem::Requirement
55
- none: false
56
53
  requirements:
57
54
  - - ">="
58
55
  - !ruby/object:Gem::Version
@@ -65,7 +62,6 @@ dependencies:
65
62
  name: rake-compiler
66
63
  prerelease: false
67
64
  requirement: &id004 !ruby/object:Gem::Requirement
68
- none: false
69
65
  requirements:
70
66
  - - ">="
71
67
  - !ruby/object:Gem::Version
@@ -78,7 +74,6 @@ dependencies:
78
74
  name: minitest
79
75
  prerelease: false
80
76
  requirement: &id005 !ruby/object:Gem::Requirement
81
- none: false
82
77
  requirements:
83
78
  - - ">="
84
79
  - !ruby/object:Gem::Version
@@ -93,15 +88,14 @@ dependencies:
93
88
  name: hoe
94
89
  prerelease: false
95
90
  requirement: &id006 !ruby/object:Gem::Requirement
96
- none: false
97
91
  requirements:
98
92
  - - ">="
99
93
  - !ruby/object:Gem::Version
100
94
  segments:
101
95
  - 2
102
96
  - 6
103
- - 2
104
- version: 2.6.2
97
+ - 1
98
+ version: 2.6.1
105
99
  type: :development
106
100
  version_requirements: *id006
107
101
  description: "Nokogiri (\xE9\x8B\xB8) is an HTML, XML, SAX, and Reader parser. Among Nokogiri's\n\
@@ -117,43 +111,43 @@ extensions: []
117
111
 
118
112
  extra_rdoc_files:
119
113
  - Manifest.txt
120
- - CHANGELOG.rdoc
121
114
  - CHANGELOG.ja.rdoc
122
- - README.rdoc
115
+ - CHANGELOG.rdoc
123
116
  - README.ja.rdoc
124
- - ext/nokogiri/xml_io.c
125
- - ext/nokogiri/xml_sax_parser.c
126
- - ext/nokogiri/xml_xpath_context.c
117
+ - README.rdoc
118
+ - ext/nokogiri/html_document.c
127
119
  - ext/nokogiri/html_element_description.c
128
- - ext/nokogiri/xml_libxml2_hacks.c
129
- - ext/nokogiri/xml_sax_parser_context.c
130
- - ext/nokogiri/xml_sax_push_parser.c
131
- - ext/nokogiri/xml_attribute_decl.c
132
- - ext/nokogiri/nokogiri.c
133
- - ext/nokogiri/xml_element_decl.c
134
- - ext/nokogiri/xml_element_content.c
135
120
  - ext/nokogiri/html_entity_lookup.c
136
- - ext/nokogiri/xml_dtd.c
137
- - ext/nokogiri/xslt_stylesheet.c
138
- - ext/nokogiri/xml_node_set.c
139
- - ext/nokogiri/xml_document_fragment.c
140
- - ext/nokogiri/xml_text.c
141
- - ext/nokogiri/xml_entity_reference.c
142
121
  - ext/nokogiri/html_sax_parser_context.c
122
+ - ext/nokogiri/nokogiri.c
123
+ - ext/nokogiri/xml_attr.c
124
+ - ext/nokogiri/xml_attribute_decl.c
125
+ - ext/nokogiri/xml_cdata.c
143
126
  - ext/nokogiri/xml_comment.c
144
- - ext/nokogiri/xml_namespace.c
127
+ - ext/nokogiri/xml_document.c
128
+ - ext/nokogiri/xml_document_fragment.c
129
+ - ext/nokogiri/xml_dtd.c
130
+ - ext/nokogiri/xml_element_content.c
131
+ - ext/nokogiri/xml_element_decl.c
132
+ - ext/nokogiri/xml_encoding_handler.c
145
133
  - ext/nokogiri/xml_entity_decl.c
134
+ - ext/nokogiri/xml_entity_reference.c
135
+ - ext/nokogiri/xml_io.c
136
+ - ext/nokogiri/xml_libxml2_hacks.c
137
+ - ext/nokogiri/xml_namespace.c
146
138
  - ext/nokogiri/xml_node.c
147
- - ext/nokogiri/html_document.c
148
- - ext/nokogiri/xml_syntax_error.c
149
- - ext/nokogiri/xml_document.c
150
- - ext/nokogiri/xml_cdata.c
151
- - ext/nokogiri/xml_reader.c
152
- - ext/nokogiri/xml_attr.c
139
+ - ext/nokogiri/xml_node_set.c
153
140
  - ext/nokogiri/xml_processing_instruction.c
154
- - ext/nokogiri/xml_schema.c
155
- - ext/nokogiri/xml_encoding_handler.c
141
+ - ext/nokogiri/xml_reader.c
156
142
  - ext/nokogiri/xml_relax_ng.c
143
+ - ext/nokogiri/xml_sax_parser.c
144
+ - ext/nokogiri/xml_sax_parser_context.c
145
+ - ext/nokogiri/xml_sax_push_parser.c
146
+ - ext/nokogiri/xml_schema.c
147
+ - ext/nokogiri/xml_syntax_error.c
148
+ - ext/nokogiri/xml_text.c
149
+ - ext/nokogiri/xml_xpath_context.c
150
+ - ext/nokogiri/xslt_stylesheet.c
157
151
  files:
158
152
  - .autotest
159
153
  - CHANGELOG.ja.rdoc
@@ -291,11 +285,10 @@ files:
291
285
  - lib/nekohtml.jar
292
286
  - lib/nokogiri.rb
293
287
  - lib/nokogiri/css.rb
294
- - lib/nokogiri/css/generated_parser.rb
295
- - lib/nokogiri/css/generated_tokenizer.rb
296
288
  - lib/nokogiri/css/node.rb
297
289
  - lib/nokogiri/css/parser.rb
298
290
  - lib/nokogiri/css/parser.y
291
+ - lib/nokogiri/css/parser_extras.rb
299
292
  - lib/nokogiri/css/syntax_error.rb
300
293
  - lib/nokogiri/css/tokenizer.rb
301
294
  - lib/nokogiri/css/tokenizer.rex
@@ -442,7 +435,6 @@ rdoc_options:
442
435
  require_paths:
443
436
  - lib
444
437
  required_ruby_version: !ruby/object:Gem::Requirement
445
- none: false
446
438
  requirements:
447
439
  - - ">="
448
440
  - !ruby/object:Gem::Version
@@ -450,7 +442,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
450
442
  - 0
451
443
  version: "0"
452
444
  required_rubygems_version: !ruby/object:Gem::Requirement
453
- none: false
454
445
  requirements:
455
446
  - - ">"
456
447
  - !ruby/object:Gem::Version
@@ -462,66 +453,66 @@ required_rubygems_version: !ruby/object:Gem::Requirement
462
453
  requirements: []
463
454
 
464
455
  rubyforge_project: nokogiri
465
- rubygems_version: 1.3.7
456
+ rubygems_version: 1.3.6
466
457
  signing_key:
467
458
  specification_version: 3
468
459
  summary: "Nokogiri (\xE9\x8B\xB8) is an HTML, XML, SAX, and Reader parser"
469
460
  test_files:
470
- - test/test_reader.rb
461
+ - test/test_convert_xpath.rb
471
462
  - test/test_css_cache.rb
472
463
  - test/test_encoding_handler.rb
473
464
  - test/test_memory_leak.rb
474
465
  - test/test_nokogiri.rb
475
- - test/test_convert_xpath.rb
466
+ - test/test_reader.rb
476
467
  - test/test_soap4r_sax.rb
477
468
  - test/test_xslt_transforms.rb
469
+ - test/css/test_nthiness.rb
470
+ - test/css/test_parser.rb
471
+ - test/css/test_tokenizer.rb
472
+ - test/css/test_xpath_visitor.rb
478
473
  - test/decorators/test_slop.rb
479
- - test/xml/test_document_encoding.rb
480
- - test/xml/test_relax_ng.rb
481
- - test/xml/test_text.rb
482
- - test/xml/test_node_reparenting.rb
483
- - test/xml/test_syntax_error.rb
484
- - test/xml/test_unparented_node.rb
485
- - test/xml/test_node_encoding.rb
486
- - test/xml/test_reader_encoding.rb
487
- - test/xml/test_processing_instruction.rb
488
- - test/xml/test_cdata.rb
489
- - test/xml/test_node.rb
474
+ - test/html/test_builder.rb
475
+ - test/html/test_document.rb
476
+ - test/html/test_document_encoding.rb
477
+ - test/html/test_document_fragment.rb
478
+ - test/html/test_element_description.rb
479
+ - test/html/test_named_characters.rb
480
+ - test/html/test_node.rb
481
+ - test/html/test_node_encoding.rb
482
+ - test/html/sax/test_parser.rb
483
+ - test/html/sax/test_parser_context.rb
484
+ - test/xml/test_attr.rb
485
+ - test/xml/test_attribute_decl.rb
490
486
  - test/xml/test_builder.rb
491
- - test/xml/test_namespace.rb
487
+ - test/xml/test_cdata.rb
488
+ - test/xml/test_comment.rb
492
489
  - test/xml/test_document.rb
493
- - test/xml/test_element_content.rb
490
+ - test/xml/test_document_encoding.rb
494
491
  - test/xml/test_document_fragment.rb
495
- - test/xml/test_entity_reference.rb
496
- - test/xml/test_attr.rb
497
492
  - test/xml/test_dtd.rb
493
+ - test/xml/test_dtd_encoding.rb
494
+ - test/xml/test_element_content.rb
498
495
  - test/xml/test_element_decl.rb
496
+ - test/xml/test_entity_decl.rb
497
+ - test/xml/test_entity_reference.rb
498
+ - test/xml/test_namespace.rb
499
+ - test/xml/test_node.rb
499
500
  - test/xml/test_node_attributes.rb
500
- - test/xml/test_xpath.rb
501
+ - test/xml/test_node_encoding.rb
502
+ - test/xml/test_node_reparenting.rb
501
503
  - test/xml/test_node_set.rb
502
504
  - test/xml/test_parse_options.rb
503
- - test/xml/test_entity_decl.rb
504
- - test/xml/test_attribute_decl.rb
505
+ - test/xml/test_processing_instruction.rb
506
+ - test/xml/test_reader_encoding.rb
507
+ - test/xml/test_relax_ng.rb
505
508
  - test/xml/test_schema.rb
506
- - test/xml/test_dtd_encoding.rb
507
- - test/xml/test_comment.rb
509
+ - test/xml/test_syntax_error.rb
510
+ - test/xml/test_text.rb
511
+ - test/xml/test_unparented_node.rb
512
+ - test/xml/test_xpath.rb
513
+ - test/xml/node/test_save_options.rb
514
+ - test/xml/node/test_subclass.rb
508
515
  - test/xml/sax/test_parser.rb
509
516
  - test/xml/sax/test_parser_context.rb
510
517
  - test/xml/sax/test_push_parser.rb
511
- - test/xml/node/test_save_options.rb
512
- - test/xml/node/test_subclass.rb
513
- - test/html/test_document_encoding.rb
514
- - test/html/test_node_encoding.rb
515
- - test/html/test_node.rb
516
- - test/html/test_builder.rb
517
- - test/html/test_document.rb
518
- - test/html/test_document_fragment.rb
519
- - test/html/test_named_characters.rb
520
- - test/html/test_element_description.rb
521
- - test/html/sax/test_parser.rb
522
- - test/html/sax/test_parser_context.rb
523
- - test/css/test_nthiness.rb
524
- - test/css/test_parser.rb
525
- - test/css/test_tokenizer.rb
526
- - test/css/test_xpath_visitor.rb
527
518
  - test/xslt/test_custom_functions.rb