nokogiri 1.5.0.beta.1-java → 1.5.0.beta.2-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.
- data/CHANGELOG.ja.rdoc +28 -8
- data/CHANGELOG.rdoc +23 -0
- data/Manifest.txt +68 -1
- data/README.ja.rdoc +1 -1
- data/README.rdoc +22 -4
- data/Rakefile +6 -2
- data/ext/java/nokogiri/EncodingHandler.java +92 -0
- data/ext/java/nokogiri/HtmlDocument.java +116 -0
- data/ext/java/nokogiri/HtmlElementDescription.java +111 -0
- data/ext/java/nokogiri/HtmlEntityLookup.java +45 -0
- data/ext/java/nokogiri/HtmlSaxParserContext.java +218 -0
- data/ext/java/nokogiri/NokogiriService.java +370 -0
- data/ext/java/nokogiri/XmlAttr.java +147 -0
- data/ext/java/nokogiri/XmlAttributeDecl.java +98 -0
- data/ext/java/nokogiri/XmlCdata.java +50 -0
- data/ext/java/nokogiri/XmlComment.java +47 -0
- data/ext/java/nokogiri/XmlDocument.java +463 -0
- data/ext/java/nokogiri/XmlDocumentFragment.java +207 -0
- data/ext/java/nokogiri/XmlDtd.java +427 -0
- data/ext/java/nokogiri/XmlElement.java +172 -0
- data/ext/java/nokogiri/XmlElementContent.java +350 -0
- data/ext/java/nokogiri/XmlElementDecl.java +115 -0
- data/ext/java/nokogiri/XmlEntityDecl.java +129 -0
- data/ext/java/nokogiri/XmlEntityReference.java +42 -0
- data/ext/java/nokogiri/XmlNamespace.java +77 -0
- data/ext/java/nokogiri/XmlNode.java +1399 -0
- data/ext/java/nokogiri/XmlNodeSet.java +248 -0
- data/ext/java/nokogiri/XmlProcessingInstruction.java +70 -0
- data/ext/java/nokogiri/XmlReader.java +373 -0
- data/ext/java/nokogiri/XmlRelaxng.java +166 -0
- data/ext/java/nokogiri/XmlSaxParserContext.java +308 -0
- data/ext/java/nokogiri/XmlSaxPushParser.java +146 -0
- data/ext/java/nokogiri/XmlSchema.java +142 -0
- data/ext/java/nokogiri/XmlSyntaxError.java +84 -0
- data/ext/java/nokogiri/XmlText.java +96 -0
- data/ext/java/nokogiri/XmlXpathContext.java +130 -0
- data/ext/java/nokogiri/XsltStylesheet.java +126 -0
- data/ext/java/nokogiri/internals/HtmlDomParserContext.java +181 -0
- data/ext/java/nokogiri/internals/NokogiriDocumentCache.java +39 -0
- data/ext/java/nokogiri/internals/NokogiriErrorHandler.java +42 -0
- data/ext/java/nokogiri/internals/NokogiriHandler.java +251 -0
- data/ext/java/nokogiri/internals/NokogiriHelpers.java +526 -0
- data/ext/java/nokogiri/internals/NokogiriNamespaceCache.java +136 -0
- data/ext/java/nokogiri/internals/NokogiriNamespaceContext.java +80 -0
- data/ext/java/nokogiri/internals/NokogiriNonStrictErrorHandler.java +37 -0
- data/ext/java/nokogiri/internals/NokogiriNonStrictErrorHandler4NekoHtml.java +54 -0
- data/ext/java/nokogiri/internals/NokogiriStrictErrorHandler.java +49 -0
- data/ext/java/nokogiri/internals/NokogiriXPathFunction.java +88 -0
- data/ext/java/nokogiri/internals/NokogiriXPathFunctionResolver.java +23 -0
- data/ext/java/nokogiri/internals/ParserContext.java +235 -0
- data/ext/java/nokogiri/internals/PushInputStream.java +381 -0
- data/ext/java/nokogiri/internals/ReaderNode.java +431 -0
- data/ext/java/nokogiri/internals/SaveContext.java +249 -0
- data/ext/java/nokogiri/internals/SchemaErrorHandler.java +35 -0
- data/ext/java/nokogiri/internals/XmlDeclHandler.java +10 -0
- data/ext/java/nokogiri/internals/XmlDomParser.java +45 -0
- data/ext/java/nokogiri/internals/XmlDomParserContext.java +201 -0
- data/ext/java/nokogiri/internals/XmlSaxParser.java +33 -0
- data/ext/nokogiri/depend +32 -0
- data/ext/nokogiri/extconf.rb +61 -32
- data/ext/nokogiri/libcharset-1.dll +0 -0
- data/ext/nokogiri/libexslt.dll +0 -0
- data/ext/nokogiri/libiconv-2.dll +0 -0
- data/ext/nokogiri/libxml2.dll +0 -0
- data/ext/nokogiri/libxslt.dll +0 -0
- data/ext/nokogiri/nokogiri.c +0 -5
- data/ext/nokogiri/nokogiri.h +2 -2
- data/ext/nokogiri/xml_document.c +5 -0
- data/ext/nokogiri/xml_libxml2_hacks.c +112 -0
- data/ext/nokogiri/xml_libxml2_hacks.h +12 -0
- data/ext/nokogiri/xml_node.c +56 -16
- data/ext/nokogiri/xml_node_set.c +7 -7
- data/ext/nokogiri/xml_reader.c +20 -1
- data/ext/nokogiri/xml_relax_ng.c +0 -7
- data/ext/nokogiri/xml_xpath_context.c +2 -0
- data/ext/nokogiri/zlib1.dll +0 -0
- data/lib/nokogiri.rb +1 -2
- data/lib/nokogiri/css/generated_parser.rb +155 -148
- data/lib/nokogiri/css/generated_tokenizer.rb +2 -1
- data/lib/nokogiri/css/parser.y +3 -0
- data/lib/nokogiri/css/xpath_visitor.rb +1 -7
- data/lib/nokogiri/html.rb +2 -2
- data/lib/nokogiri/html/document_fragment.rb +7 -4
- data/lib/nokogiri/nokogiri.jar +0 -0
- data/lib/nokogiri/version.rb +3 -6
- data/lib/nokogiri/xml/builder.rb +1 -1
- data/lib/nokogiri/xml/document.rb +1 -2
- data/lib/nokogiri/xml/document_fragment.rb +7 -0
- data/lib/nokogiri/xml/node.rb +5 -3
- data/lib/nokogiri/xml/node_set.rb +25 -0
- data/lib/nokogiri/xml/reader.rb +2 -0
- data/lib/nokogiri/xml/sax/document.rb +3 -1
- data/spec/helper.rb +3 -0
- data/spec/xml/reader_spec.rb +307 -0
- data/tasks/test.rb +1 -1
- data/test/css/test_parser.rb +11 -1
- data/test/html/sax/test_parser_context.rb +2 -2
- data/test/html/test_document.rb +2 -2
- data/test/html/test_document_fragment.rb +34 -6
- data/test/test_memory_leak.rb +2 -2
- data/test/test_reader.rb +28 -6
- data/test/test_xslt_transforms.rb +2 -3
- data/test/xml/test_attr.rb +31 -4
- data/test/xml/test_builder.rb +5 -5
- data/test/xml/test_cdata.rb +3 -3
- data/test/xml/test_document.rb +8 -8
- data/test/xml/test_document_fragment.rb +4 -12
- data/test/xml/test_node.rb +1 -1
- data/test/xml/test_node_reparenting.rb +26 -11
- data/test/xml/test_node_set.rb +38 -2
- data/test/xml/test_text.rb +11 -2
- data/test/xml/test_unparented_node.rb +1 -1
- data/test/xml/test_xpath.rb +11 -7
- metadata +159 -100
- data.tar.gz.sig +0 -0
- data/lib/nokogiri/version_warning.rb +0 -14
- metadata.gz.sig +0 -0
data/test/xml/test_node_set.rb
CHANGED
@@ -3,6 +3,27 @@ require "helper"
|
|
3
3
|
module Nokogiri
|
4
4
|
module XML
|
5
5
|
class TestNodeSet < Nokogiri::TestCase
|
6
|
+
class TestNodeSetNamespaces < Nokogiri::TestCase
|
7
|
+
def setup
|
8
|
+
super
|
9
|
+
@xml = Nokogiri.XML('<foo xmlns:n0="http://example.com" />')
|
10
|
+
@list = @xml.xpath('//namespace::*')
|
11
|
+
end
|
12
|
+
|
13
|
+
def test_include?
|
14
|
+
assert @list.include?(@list.first), 'list should have item'
|
15
|
+
end
|
16
|
+
|
17
|
+
def test_push
|
18
|
+
@list.push @list.first
|
19
|
+
end
|
20
|
+
|
21
|
+
def test_delete
|
22
|
+
@list.push @list.first
|
23
|
+
@list.delete @list.first
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
6
27
|
def setup
|
7
28
|
super
|
8
29
|
@xml = Nokogiri::XML(File.read(XML_FILE), XML_FILE)
|
@@ -255,11 +276,26 @@ module Nokogiri
|
|
255
276
|
assert_match '<a>', html
|
256
277
|
end
|
257
278
|
|
279
|
+
def test_gt_string_arg
|
280
|
+
assert node_set = @xml.search('//employee')
|
281
|
+
assert_equal node_set.xpath('./employeeId'), (node_set > 'employeeId')
|
282
|
+
end
|
283
|
+
|
258
284
|
def test_at
|
259
285
|
assert node_set = @xml.search('//employee')
|
260
286
|
assert_equal node_set.first, node_set.at(0)
|
261
287
|
end
|
262
288
|
|
289
|
+
def test_at_xpath
|
290
|
+
assert node_set = @xml.search('//employee')
|
291
|
+
assert_equal node_set.first.first_element_child, node_set.at_xpath('./employeeId')
|
292
|
+
end
|
293
|
+
|
294
|
+
def test_at_css
|
295
|
+
assert node_set = @xml.search('//employee')
|
296
|
+
assert_equal node_set.first.first_element_child, node_set.at_css('employeeId')
|
297
|
+
end
|
298
|
+
|
263
299
|
def test_percent
|
264
300
|
assert node_set = @xml.search('//employee')
|
265
301
|
assert_equal node_set.first, node_set % 0
|
@@ -410,7 +446,7 @@ module Nokogiri
|
|
410
446
|
names_len = names.length
|
411
447
|
positions_len = positions.length
|
412
448
|
|
413
|
-
assert_raises(ArgumentError) {
|
449
|
+
assert_raises(ArgumentError) { names + positions.first }
|
414
450
|
|
415
451
|
result = names + positions
|
416
452
|
assert_equal names_len, names.length
|
@@ -434,7 +470,7 @@ module Nokogiri
|
|
434
470
|
employees_len = employees.length
|
435
471
|
females_len = females.length
|
436
472
|
|
437
|
-
assert_raises(ArgumentError) {
|
473
|
+
assert_raises(ArgumentError) { employees - females.first }
|
438
474
|
|
439
475
|
result = employees - females
|
440
476
|
assert_equal employees_len, employees.length
|
data/test/xml/test_text.rb
CHANGED
@@ -3,6 +3,13 @@ require "helper"
|
|
3
3
|
module Nokogiri
|
4
4
|
module XML
|
5
5
|
class TestText < Nokogiri::TestCase
|
6
|
+
def test_css_path
|
7
|
+
doc = Nokogiri.XML "<root> foo <a>something</a> bar bazz </root>"
|
8
|
+
node = doc.root.children[2]
|
9
|
+
assert_instance_of Nokogiri::XML::Text, node
|
10
|
+
assert_equal node, doc.at_css(node.css_path)
|
11
|
+
end
|
12
|
+
|
6
13
|
def test_inspect
|
7
14
|
node = Text.new('hello world', Document.new)
|
8
15
|
assert_equal "#<#{node.class.name}:#{sprintf("0x%x",node.object_id)} #{node.text.inspect}>", node.inspect
|
@@ -19,11 +26,13 @@ module Nokogiri
|
|
19
26
|
100.times { Text.new('hello world', Document.new) }
|
20
27
|
end
|
21
28
|
|
22
|
-
# No assertion because this was a segv
|
23
29
|
def test_new_without_document
|
24
30
|
doc = Document.new
|
25
31
|
node = Nokogiri::XML::Element.new('foo', doc)
|
26
|
-
|
32
|
+
|
33
|
+
assert_nothing_raised do
|
34
|
+
Text.new('hello world', node)
|
35
|
+
end
|
27
36
|
end
|
28
37
|
|
29
38
|
def test_content=
|
@@ -129,7 +129,7 @@ module Nokogiri
|
|
129
129
|
def test_add_child_in_same_document
|
130
130
|
child = @node.css('employee').first
|
131
131
|
|
132
|
-
assert
|
132
|
+
assert child.children.last
|
133
133
|
assert new_child = child.children.first
|
134
134
|
|
135
135
|
last = child.children.last
|
data/test/xml/test_xpath.rb
CHANGED
@@ -92,11 +92,13 @@ module Nokogiri
|
|
92
92
|
|
93
93
|
def test_css_search_uses_custom_selectors
|
94
94
|
set = @xml.xpath('//employee')
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
95
|
+
assert_nothing_raised do
|
96
|
+
if Nokogiri.uses_libxml?
|
97
|
+
@xml.css('employee:thing()', @handler)
|
98
|
+
else
|
99
|
+
@xml.xpath("//employee[nokogiri:thing(.)]", @ns, @handler)
|
100
|
+
end
|
101
|
+
end
|
100
102
|
assert_equal(set.length, @handler.things.length)
|
101
103
|
assert_equal(set.to_a, @handler.things.flatten)
|
102
104
|
end
|
@@ -184,7 +186,9 @@ module Nokogiri
|
|
184
186
|
def awesome! ; end
|
185
187
|
end
|
186
188
|
util_decorate(@xml, x)
|
187
|
-
|
189
|
+
|
190
|
+
assert @xml.xpath('//employee/name')
|
191
|
+
|
188
192
|
@xml.xpath('//employee[saves_node_set(name)]', @handler)
|
189
193
|
assert_equal @xml, @handler.things.document
|
190
194
|
assert @handler.things.respond_to?(:awesome!)
|
@@ -194,7 +198,7 @@ module Nokogiri
|
|
194
198
|
doc = "<html><body id='foo'><foo>hi</foo></body></html>"
|
195
199
|
xpath = 'id("foo")//foo'
|
196
200
|
nokogiri = Nokogiri::HTML.parse(doc)
|
197
|
-
|
201
|
+
assert nokogiri.xpath(xpath)
|
198
202
|
end
|
199
203
|
end
|
200
204
|
end
|
metadata
CHANGED
@@ -1,53 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nokogiri
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 62196439
|
4
5
|
prerelease: true
|
5
6
|
segments:
|
6
7
|
- 1
|
7
8
|
- 5
|
8
9
|
- 0
|
9
10
|
- beta
|
10
|
-
-
|
11
|
-
version: 1.5.0.beta.
|
11
|
+
- 2
|
12
|
+
version: 1.5.0.beta.2
|
12
13
|
platform: java
|
13
14
|
authors:
|
14
15
|
- Aaron Patterson
|
15
16
|
- Mike Dalessio
|
16
17
|
autorequire:
|
17
18
|
bindir: bin
|
18
|
-
cert_chain:
|
19
|
-
- |
|
20
|
-
-----BEGIN CERTIFICATE-----
|
21
|
-
MIIDPDCCAiSgAwIBAgIBADANBgkqhkiG9w0BAQUFADBEMRYwFAYDVQQDDA1taWtl
|
22
|
-
LmRhbGVzc2lvMRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJk/IsZAEZ
|
23
|
-
FgNjb20wHhcNMDkwODExMDU0MjQ5WhcNMTAwODExMDU0MjQ5WjBEMRYwFAYDVQQD
|
24
|
-
DA1taWtlLmRhbGVzc2lvMRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJ
|
25
|
-
k/IsZAEZFgNjb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDANjr7
|
26
|
-
lZ1DKtK8YvNp+5kBzIpwrpClHRrosqo01qmWfGBxZckQUtrJUwGPxpzvIHVq1VKp
|
27
|
-
a9FXU/QWYek/1S0vhkOf9XGmFBnVCtbJhwGeyzsQFFSoQIfs2hd5gO0dSRpuKdi3
|
28
|
-
slfJAXzFKg1u/7OCVPgrY/mkdh34MzL5p0gSDzPt7vLPibctHg0GoepYT5Fh1tMQ
|
29
|
-
luzgrN0weTw/QoEWTMQcNk6CyUpzv0pOe7d0qEPQ9Lx7Lz64gIym3f0pKFpWLfME
|
30
|
-
l7PFLeR95zw2zsuZQwCR5ma5zjXD3mo2jk1mVqiI8qplOL1u30FU7hRhTV5n/Qe9
|
31
|
-
elDQoZW9Xz0R5JGDAgMBAAGjOTA3MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0G
|
32
|
-
A1UdDgQWBBRXWlUJZXcR1jkZPE24+mjUTCqNxjANBgkqhkiG9w0BAQUFAAOCAQEA
|
33
|
-
jDh5M41sg1MZKG1DXzQmo/IADeWRmXyb3EZaED9lhFFpoQqaralgpgmvuc0GswvO
|
34
|
-
QIZijh03tPQz8lgp1U1OFZod2ZwbEVTtVZpxs1ssjMraOA6KzlsNROH0XonIiy6j
|
35
|
-
r2Q0UF35ax8pvr3D5Y6AKzIW1F3aeiREylUDJlb/i1dPQ2PVK0yRrSQoK2epwM9E
|
36
|
-
zoczlHTTJc/tRvH5Up3Agcv9y+J0U9a1Af9NRsnHPVBdo2H32MsJ99x5NRDWJmJg
|
37
|
-
ohH37UR7njcc6j4fo22IwTqXaaXJdtVdAWjXP/xs5B3cPYSP6uqFnR46Jf86Iqj1
|
38
|
-
FlqnTjy13J3nD30uxy9a1g==
|
39
|
-
-----END CERTIFICATE-----
|
19
|
+
cert_chain: []
|
40
20
|
|
41
|
-
date: 2010-
|
21
|
+
date: 2010-07-30 00:00:00 -07:00
|
42
22
|
default_executable: nokogiri
|
43
23
|
dependencies:
|
44
24
|
- !ruby/object:Gem::Dependency
|
45
25
|
name: rubyforge
|
46
26
|
prerelease: false
|
47
27
|
requirement: &id001 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
48
29
|
requirements:
|
49
30
|
- - ">="
|
50
31
|
- !ruby/object:Gem::Version
|
32
|
+
hash: 7
|
51
33
|
segments:
|
52
34
|
- 2
|
53
35
|
- 0
|
@@ -59,9 +41,11 @@ dependencies:
|
|
59
41
|
name: racc
|
60
42
|
prerelease: false
|
61
43
|
requirement: &id002 !ruby/object:Gem::Requirement
|
44
|
+
none: false
|
62
45
|
requirements:
|
63
46
|
- - ">="
|
64
47
|
- !ruby/object:Gem::Version
|
48
|
+
hash: 3
|
65
49
|
segments:
|
66
50
|
- 0
|
67
51
|
version: "0"
|
@@ -71,9 +55,11 @@ dependencies:
|
|
71
55
|
name: rexical
|
72
56
|
prerelease: false
|
73
57
|
requirement: &id003 !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
74
59
|
requirements:
|
75
60
|
- - ">="
|
76
61
|
- !ruby/object:Gem::Version
|
62
|
+
hash: 3
|
77
63
|
segments:
|
78
64
|
- 0
|
79
65
|
version: "0"
|
@@ -83,9 +69,11 @@ dependencies:
|
|
83
69
|
name: rake-compiler
|
84
70
|
prerelease: false
|
85
71
|
requirement: &id004 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
86
73
|
requirements:
|
87
74
|
- - ">="
|
88
75
|
- !ruby/object:Gem::Version
|
76
|
+
hash: 3
|
89
77
|
segments:
|
90
78
|
- 0
|
91
79
|
version: "0"
|
@@ -95,9 +83,11 @@ dependencies:
|
|
95
83
|
name: minitest
|
96
84
|
prerelease: false
|
97
85
|
requirement: &id005 !ruby/object:Gem::Requirement
|
86
|
+
none: false
|
98
87
|
requirements:
|
99
88
|
- - ">="
|
100
89
|
- !ruby/object:Gem::Version
|
90
|
+
hash: 15
|
101
91
|
segments:
|
102
92
|
- 1
|
103
93
|
- 6
|
@@ -109,14 +99,16 @@ dependencies:
|
|
109
99
|
name: hoe
|
110
100
|
prerelease: false
|
111
101
|
requirement: &id006 !ruby/object:Gem::Requirement
|
102
|
+
none: false
|
112
103
|
requirements:
|
113
104
|
- - ">="
|
114
105
|
- !ruby/object:Gem::Version
|
106
|
+
hash: 21
|
115
107
|
segments:
|
116
108
|
- 2
|
117
109
|
- 6
|
118
|
-
-
|
119
|
-
version: 2.6.
|
110
|
+
- 1
|
111
|
+
version: 2.6.1
|
120
112
|
type: :development
|
121
113
|
version_requirements: *id006
|
122
114
|
description: "Nokogiri (\xE9\x8B\xB8) is an HTML, XML, SAX, and Reader parser. Among Nokogiri's\n\
|
@@ -132,42 +124,43 @@ extensions: []
|
|
132
124
|
|
133
125
|
extra_rdoc_files:
|
134
126
|
- Manifest.txt
|
135
|
-
- CHANGELOG.rdoc
|
136
127
|
- CHANGELOG.ja.rdoc
|
137
|
-
-
|
128
|
+
- CHANGELOG.rdoc
|
138
129
|
- README.ja.rdoc
|
139
|
-
-
|
140
|
-
- ext/nokogiri/xml_node_set.c
|
141
|
-
- ext/nokogiri/xml_namespace.c
|
142
|
-
- ext/nokogiri/xml_entity_reference.c
|
143
|
-
- ext/nokogiri/xml_xpath_context.c
|
144
|
-
- ext/nokogiri/xml_node.c
|
145
|
-
- ext/nokogiri/xml_text.c
|
146
|
-
- ext/nokogiri/xml_entity_decl.c
|
147
|
-
- ext/nokogiri/xml_document_fragment.c
|
148
|
-
- ext/nokogiri/xml_element_content.c
|
130
|
+
- README.rdoc
|
149
131
|
- ext/nokogiri/html_document.c
|
150
|
-
- ext/nokogiri/
|
151
|
-
- ext/nokogiri/xml_syntax_error.c
|
152
|
-
- ext/nokogiri/xml_encoding_handler.c
|
132
|
+
- ext/nokogiri/html_element_description.c
|
153
133
|
- ext/nokogiri/html_entity_lookup.c
|
154
|
-
- ext/nokogiri/xml_document.c
|
155
134
|
- ext/nokogiri/html_sax_parser_context.c
|
135
|
+
- ext/nokogiri/nokogiri.c
|
156
136
|
- ext/nokogiri/xml_attr.c
|
137
|
+
- ext/nokogiri/xml_attribute_decl.c
|
138
|
+
- ext/nokogiri/xml_cdata.c
|
139
|
+
- ext/nokogiri/xml_comment.c
|
140
|
+
- ext/nokogiri/xml_document.c
|
141
|
+
- ext/nokogiri/xml_document_fragment.c
|
157
142
|
- ext/nokogiri/xml_dtd.c
|
158
|
-
- ext/nokogiri/
|
159
|
-
- ext/nokogiri/xml_io.c
|
143
|
+
- ext/nokogiri/xml_element_content.c
|
160
144
|
- ext/nokogiri/xml_element_decl.c
|
161
|
-
- ext/nokogiri/
|
162
|
-
- ext/nokogiri/
|
145
|
+
- ext/nokogiri/xml_encoding_handler.c
|
146
|
+
- ext/nokogiri/xml_entity_decl.c
|
147
|
+
- ext/nokogiri/xml_entity_reference.c
|
148
|
+
- ext/nokogiri/xml_io.c
|
149
|
+
- ext/nokogiri/xml_libxml2_hacks.c
|
150
|
+
- ext/nokogiri/xml_namespace.c
|
151
|
+
- ext/nokogiri/xml_node.c
|
152
|
+
- ext/nokogiri/xml_node_set.c
|
153
|
+
- ext/nokogiri/xml_processing_instruction.c
|
163
154
|
- ext/nokogiri/xml_reader.c
|
155
|
+
- ext/nokogiri/xml_relax_ng.c
|
164
156
|
- ext/nokogiri/xml_sax_parser.c
|
165
|
-
- ext/nokogiri/xml_cdata.c
|
166
|
-
- ext/nokogiri/xml_sax_push_parser.c
|
167
157
|
- ext/nokogiri/xml_sax_parser_context.c
|
158
|
+
- ext/nokogiri/xml_sax_push_parser.c
|
159
|
+
- ext/nokogiri/xml_schema.c
|
160
|
+
- ext/nokogiri/xml_syntax_error.c
|
161
|
+
- ext/nokogiri/xml_text.c
|
162
|
+
- ext/nokogiri/xml_xpath_context.c
|
168
163
|
- ext/nokogiri/xslt_stylesheet.c
|
169
|
-
- ext/nokogiri/nokogiri.c
|
170
|
-
- ext/nokogiri/xml_processing_instruction.c
|
171
164
|
files:
|
172
165
|
- .autotest
|
173
166
|
- CHANGELOG.ja.rdoc
|
@@ -178,6 +171,59 @@ files:
|
|
178
171
|
- Rakefile
|
179
172
|
- bin/nokogiri
|
180
173
|
- deps.rip
|
174
|
+
- ext/java/nokogiri/EncodingHandler.java
|
175
|
+
- ext/java/nokogiri/HtmlDocument.java
|
176
|
+
- ext/java/nokogiri/HtmlElementDescription.java
|
177
|
+
- ext/java/nokogiri/HtmlEntityLookup.java
|
178
|
+
- ext/java/nokogiri/HtmlSaxParserContext.java
|
179
|
+
- ext/java/nokogiri/NokogiriService.java
|
180
|
+
- ext/java/nokogiri/XmlAttr.java
|
181
|
+
- ext/java/nokogiri/XmlAttributeDecl.java
|
182
|
+
- ext/java/nokogiri/XmlCdata.java
|
183
|
+
- ext/java/nokogiri/XmlComment.java
|
184
|
+
- ext/java/nokogiri/XmlDocument.java
|
185
|
+
- ext/java/nokogiri/XmlDocumentFragment.java
|
186
|
+
- ext/java/nokogiri/XmlDtd.java
|
187
|
+
- ext/java/nokogiri/XmlElement.java
|
188
|
+
- ext/java/nokogiri/XmlElementContent.java
|
189
|
+
- ext/java/nokogiri/XmlElementDecl.java
|
190
|
+
- ext/java/nokogiri/XmlEntityDecl.java
|
191
|
+
- ext/java/nokogiri/XmlEntityReference.java
|
192
|
+
- ext/java/nokogiri/XmlNamespace.java
|
193
|
+
- ext/java/nokogiri/XmlNode.java
|
194
|
+
- ext/java/nokogiri/XmlNodeSet.java
|
195
|
+
- ext/java/nokogiri/XmlProcessingInstruction.java
|
196
|
+
- ext/java/nokogiri/XmlReader.java
|
197
|
+
- ext/java/nokogiri/XmlRelaxng.java
|
198
|
+
- ext/java/nokogiri/XmlSaxParserContext.java
|
199
|
+
- ext/java/nokogiri/XmlSaxPushParser.java
|
200
|
+
- ext/java/nokogiri/XmlSchema.java
|
201
|
+
- ext/java/nokogiri/XmlSyntaxError.java
|
202
|
+
- ext/java/nokogiri/XmlText.java
|
203
|
+
- ext/java/nokogiri/XmlXpathContext.java
|
204
|
+
- ext/java/nokogiri/XsltStylesheet.java
|
205
|
+
- ext/java/nokogiri/internals/HtmlDomParserContext.java
|
206
|
+
- ext/java/nokogiri/internals/NokogiriDocumentCache.java
|
207
|
+
- ext/java/nokogiri/internals/NokogiriErrorHandler.java
|
208
|
+
- ext/java/nokogiri/internals/NokogiriHandler.java
|
209
|
+
- ext/java/nokogiri/internals/NokogiriHelpers.java
|
210
|
+
- ext/java/nokogiri/internals/NokogiriNamespaceCache.java
|
211
|
+
- ext/java/nokogiri/internals/NokogiriNamespaceContext.java
|
212
|
+
- ext/java/nokogiri/internals/NokogiriNonStrictErrorHandler.java
|
213
|
+
- ext/java/nokogiri/internals/NokogiriNonStrictErrorHandler4NekoHtml.java
|
214
|
+
- ext/java/nokogiri/internals/NokogiriStrictErrorHandler.java
|
215
|
+
- ext/java/nokogiri/internals/NokogiriXPathFunction.java
|
216
|
+
- ext/java/nokogiri/internals/NokogiriXPathFunctionResolver.java
|
217
|
+
- ext/java/nokogiri/internals/ParserContext.java
|
218
|
+
- ext/java/nokogiri/internals/PushInputStream.java
|
219
|
+
- ext/java/nokogiri/internals/ReaderNode.java
|
220
|
+
- ext/java/nokogiri/internals/SaveContext.java
|
221
|
+
- ext/java/nokogiri/internals/SchemaErrorHandler.java
|
222
|
+
- ext/java/nokogiri/internals/XmlDeclHandler.java
|
223
|
+
- ext/java/nokogiri/internals/XmlDomParser.java
|
224
|
+
- ext/java/nokogiri/internals/XmlDomParserContext.java
|
225
|
+
- ext/java/nokogiri/internals/XmlSaxParser.java
|
226
|
+
- ext/nokogiri/depend
|
181
227
|
- ext/nokogiri/extconf.rb
|
182
228
|
- ext/nokogiri/html_document.c
|
183
229
|
- ext/nokogiri/html_document.h
|
@@ -187,6 +233,11 @@ files:
|
|
187
233
|
- ext/nokogiri/html_entity_lookup.h
|
188
234
|
- ext/nokogiri/html_sax_parser_context.c
|
189
235
|
- ext/nokogiri/html_sax_parser_context.h
|
236
|
+
- ext/nokogiri/libcharset-1.dll
|
237
|
+
- ext/nokogiri/libexslt.dll
|
238
|
+
- ext/nokogiri/libiconv-2.dll
|
239
|
+
- ext/nokogiri/libxml2.dll
|
240
|
+
- ext/nokogiri/libxslt.dll
|
190
241
|
- ext/nokogiri/nokogiri.c
|
191
242
|
- ext/nokogiri/nokogiri.h
|
192
243
|
- ext/nokogiri/xml_attr.c
|
@@ -215,6 +266,8 @@ files:
|
|
215
266
|
- ext/nokogiri/xml_entity_reference.h
|
216
267
|
- ext/nokogiri/xml_io.c
|
217
268
|
- ext/nokogiri/xml_io.h
|
269
|
+
- ext/nokogiri/xml_libxml2_hacks.c
|
270
|
+
- ext/nokogiri/xml_libxml2_hacks.h
|
218
271
|
- ext/nokogiri/xml_namespace.c
|
219
272
|
- ext/nokogiri/xml_namespace.h
|
220
273
|
- ext/nokogiri/xml_node.c
|
@@ -243,6 +296,11 @@ files:
|
|
243
296
|
- ext/nokogiri/xml_xpath_context.h
|
244
297
|
- ext/nokogiri/xslt_stylesheet.c
|
245
298
|
- ext/nokogiri/xslt_stylesheet.h
|
299
|
+
- ext/nokogiri/zlib1.dll
|
300
|
+
- lib/isorelax.jar
|
301
|
+
- lib/jing.jar
|
302
|
+
- lib/nekodtd.jar
|
303
|
+
- lib/nekohtml.jar
|
246
304
|
- lib/nokogiri.rb
|
247
305
|
- lib/nokogiri/css.rb
|
248
306
|
- lib/nokogiri/css/generated_parser.rb
|
@@ -266,7 +324,6 @@ files:
|
|
266
324
|
- lib/nokogiri/html/sax/parser_context.rb
|
267
325
|
- lib/nokogiri/syntax_error.rb
|
268
326
|
- lib/nokogiri/version.rb
|
269
|
-
- lib/nokogiri/version_warning.rb
|
270
327
|
- lib/nokogiri/xml.rb
|
271
328
|
- lib/nokogiri/xml/attr.rb
|
272
329
|
- lib/nokogiri/xml/attribute_decl.rb
|
@@ -304,7 +361,10 @@ files:
|
|
304
361
|
- lib/nokogiri/xml/xpath_context.rb
|
305
362
|
- lib/nokogiri/xslt.rb
|
306
363
|
- lib/nokogiri/xslt/stylesheet.rb
|
364
|
+
- lib/xercesImpl.jar
|
307
365
|
- lib/xsd/xmlparser/nokogiri.rb
|
366
|
+
- spec/helper.rb
|
367
|
+
- spec/xml/reader_spec.rb
|
308
368
|
- tasks/cross_compile.rb
|
309
369
|
- tasks/test.rb
|
310
370
|
- test/css/test_nthiness.rb
|
@@ -383,11 +443,6 @@ files:
|
|
383
443
|
- test/xml/test_unparented_node.rb
|
384
444
|
- test/xml/test_xpath.rb
|
385
445
|
- lib/nokogiri/nokogiri.jar
|
386
|
-
- lib/isorelax.jar
|
387
|
-
- lib/jing.jar
|
388
|
-
- lib/nekohtml.jar
|
389
|
-
- lib/nekodtd.jar
|
390
|
-
- lib/xercesImpl.jar
|
391
446
|
has_rdoc: true
|
392
447
|
homepage: http://nokogiri.org
|
393
448
|
licenses: []
|
@@ -399,16 +454,20 @@ rdoc_options:
|
|
399
454
|
require_paths:
|
400
455
|
- lib
|
401
456
|
required_ruby_version: !ruby/object:Gem::Requirement
|
457
|
+
none: false
|
402
458
|
requirements:
|
403
459
|
- - ">="
|
404
460
|
- !ruby/object:Gem::Version
|
461
|
+
hash: 3
|
405
462
|
segments:
|
406
463
|
- 0
|
407
464
|
version: "0"
|
408
465
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
466
|
+
none: false
|
409
467
|
requirements:
|
410
468
|
- - ">"
|
411
469
|
- !ruby/object:Gem::Version
|
470
|
+
hash: 25
|
412
471
|
segments:
|
413
472
|
- 1
|
414
473
|
- 3
|
@@ -417,64 +476,64 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
417
476
|
requirements: []
|
418
477
|
|
419
478
|
rubyforge_project: nokogiri
|
420
|
-
rubygems_version: 1.3.
|
479
|
+
rubygems_version: 1.3.7
|
421
480
|
signing_key:
|
422
481
|
specification_version: 3
|
423
482
|
summary: "Nokogiri (\xE9\x8B\xB8) is an HTML, XML, SAX, and Reader parser"
|
424
483
|
test_files:
|
425
|
-
- test/
|
426
|
-
- test/test_encoding_handler.rb
|
427
|
-
- test/test_nokogiri.rb
|
484
|
+
- test/test_convert_xpath.rb
|
428
485
|
- test/test_css_cache.rb
|
486
|
+
- test/test_encoding_handler.rb
|
429
487
|
- test/test_memory_leak.rb
|
430
|
-
- test/
|
431
|
-
- test/
|
488
|
+
- test/test_nokogiri.rb
|
489
|
+
- test/test_reader.rb
|
432
490
|
- test/test_soap4r_sax.rb
|
433
|
-
- test/
|
434
|
-
- test/
|
435
|
-
- test/
|
436
|
-
- test/
|
437
|
-
- test/
|
438
|
-
- test/
|
439
|
-
- test/
|
440
|
-
- test/
|
441
|
-
- test/
|
442
|
-
- test/
|
443
|
-
- test/
|
491
|
+
- test/test_xslt_transforms.rb
|
492
|
+
- test/css/test_nthiness.rb
|
493
|
+
- test/css/test_parser.rb
|
494
|
+
- test/css/test_tokenizer.rb
|
495
|
+
- test/css/test_xpath_visitor.rb
|
496
|
+
- test/html/test_builder.rb
|
497
|
+
- test/html/test_document.rb
|
498
|
+
- test/html/test_document_encoding.rb
|
499
|
+
- test/html/test_document_fragment.rb
|
500
|
+
- test/html/test_element_description.rb
|
501
|
+
- test/html/test_named_characters.rb
|
502
|
+
- test/html/test_node.rb
|
503
|
+
- test/html/test_node_encoding.rb
|
504
|
+
- test/html/sax/test_parser.rb
|
505
|
+
- test/html/sax/test_parser_context.rb
|
444
506
|
- test/xml/test_attr.rb
|
445
|
-
- test/xml/
|
446
|
-
- test/xml/test_syntax_error.rb
|
447
|
-
- test/xml/test_text.rb
|
448
|
-
- test/xml/test_entity_decl.rb
|
507
|
+
- test/xml/test_attribute_decl.rb
|
449
508
|
- test/xml/test_builder.rb
|
509
|
+
- test/xml/test_cdata.rb
|
510
|
+
- test/xml/test_comment.rb
|
450
511
|
- test/xml/test_document.rb
|
451
|
-
- test/xml/
|
452
|
-
- test/xml/
|
512
|
+
- test/xml/test_document_encoding.rb
|
513
|
+
- test/xml/test_document_fragment.rb
|
453
514
|
- test/xml/test_dtd.rb
|
454
|
-
- test/xml/test_entity_reference.rb
|
455
|
-
- test/xml/test_attribute_decl.rb
|
456
515
|
- test/xml/test_dtd_encoding.rb
|
457
|
-
- test/xml/
|
458
|
-
- test/xml/
|
459
|
-
- test/xml/
|
516
|
+
- test/xml/test_element_content.rb
|
517
|
+
- test/xml/test_element_decl.rb
|
518
|
+
- test/xml/test_entity_decl.rb
|
519
|
+
- test/xml/test_entity_reference.rb
|
520
|
+
- test/xml/test_namespace.rb
|
521
|
+
- test/xml/test_node.rb
|
522
|
+
- test/xml/test_node_attributes.rb
|
523
|
+
- test/xml/test_node_encoding.rb
|
524
|
+
- test/xml/test_node_reparenting.rb
|
460
525
|
- test/xml/test_node_set.rb
|
526
|
+
- test/xml/test_parse_options.rb
|
461
527
|
- test/xml/test_processing_instruction.rb
|
528
|
+
- test/xml/test_reader_encoding.rb
|
529
|
+
- test/xml/test_relax_ng.rb
|
530
|
+
- test/xml/test_schema.rb
|
531
|
+
- test/xml/test_syntax_error.rb
|
532
|
+
- test/xml/test_text.rb
|
533
|
+
- test/xml/test_unparented_node.rb
|
534
|
+
- test/xml/test_xpath.rb
|
462
535
|
- test/xml/node/test_save_options.rb
|
463
536
|
- test/xml/node/test_subclass.rb
|
464
537
|
- test/xml/sax/test_parser.rb
|
465
|
-
- test/xml/sax/test_push_parser.rb
|
466
538
|
- test/xml/sax/test_parser_context.rb
|
467
|
-
- test/
|
468
|
-
- test/css/test_nthiness.rb
|
469
|
-
- test/css/test_xpath_visitor.rb
|
470
|
-
- test/css/test_tokenizer.rb
|
471
|
-
- test/html/test_node.rb
|
472
|
-
- test/html/test_document_encoding.rb
|
473
|
-
- test/html/test_element_description.rb
|
474
|
-
- test/html/test_node_encoding.rb
|
475
|
-
- test/html/test_builder.rb
|
476
|
-
- test/html/test_document.rb
|
477
|
-
- test/html/test_named_characters.rb
|
478
|
-
- test/html/test_document_fragment.rb
|
479
|
-
- test/html/sax/test_parser.rb
|
480
|
-
- test/html/sax/test_parser_context.rb
|
539
|
+
- test/xml/sax/test_push_parser.rb
|