nokogiri 1.5.0.beta.4-java → 1.5.0-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/.gemtest +0 -0
- data/CHANGELOG.ja.rdoc +34 -0
- data/CHANGELOG.rdoc +40 -1
- data/Manifest.txt +11 -2
- data/README.rdoc +1 -1
- data/Rakefile +96 -105
- data/bin/nokogiri +1 -2
- data/ext/java/nokogiri/HtmlDocument.java +1 -31
- data/ext/java/nokogiri/HtmlSaxParserContext.java +1 -1
- data/ext/java/nokogiri/NokogiriService.java +77 -22
- data/ext/java/nokogiri/XmlAttr.java +5 -16
- data/ext/java/nokogiri/XmlCdata.java +4 -11
- data/ext/java/nokogiri/XmlComment.java +5 -5
- data/ext/java/nokogiri/XmlDocument.java +49 -59
- data/ext/java/nokogiri/XmlDocumentFragment.java +14 -8
- data/ext/java/nokogiri/XmlDtd.java +45 -43
- data/ext/java/nokogiri/XmlElement.java +19 -46
- data/ext/java/nokogiri/XmlElementDecl.java +9 -5
- data/ext/java/nokogiri/XmlEntityReference.java +24 -2
- data/ext/java/nokogiri/XmlNamespace.java +89 -34
- data/ext/java/nokogiri/XmlNode.java +31 -52
- data/ext/java/nokogiri/XmlNodeSet.java +42 -86
- data/ext/java/nokogiri/XmlProcessingInstruction.java +15 -19
- data/ext/java/nokogiri/XmlReader.java +40 -43
- data/ext/java/nokogiri/XmlSaxParserContext.java +2 -2
- data/ext/java/nokogiri/XmlSchema.java +14 -9
- data/ext/java/nokogiri/XmlText.java +18 -35
- data/ext/java/nokogiri/XmlXpathContext.java +43 -23
- data/ext/java/nokogiri/XsltStylesheet.java +17 -3
- data/ext/java/nokogiri/internals/HtmlDomParserContext.java +2 -4
- data/ext/java/nokogiri/internals/NokogiriHelpers.java +77 -20
- data/ext/java/nokogiri/internals/NokogiriNamespaceCache.java +13 -17
- data/ext/java/nokogiri/internals/NokogiriNamespaceContext.java +13 -1
- data/ext/java/nokogiri/internals/NokogiriXPathFunction.java +23 -8
- data/ext/java/nokogiri/internals/NokogiriXPathFunctionResolver.java +20 -3
- data/ext/java/nokogiri/internals/NokogiriXPathVariableResolver.java +67 -0
- data/ext/java/nokogiri/internals/NokogiriXsltErrorListener.java +86 -0
- data/ext/java/nokogiri/internals/ParserContext.java +25 -27
- data/ext/java/nokogiri/internals/ReaderNode.java +58 -1
- data/ext/java/nokogiri/internals/SaveContextVisitor.java +567 -0
- data/ext/java/nokogiri/internals/XmlDomParser.java +1 -2
- data/ext/java/nokogiri/internals/XmlDomParserContext.java +6 -0
- data/ext/nokogiri/nokogiri.c +24 -1
- data/ext/nokogiri/xml_io.c +32 -7
- data/ext/nokogiri/xml_node.c +14 -13
- data/ext/nokogiri/xml_sax_parser.c +9 -4
- data/ext/nokogiri/xslt_stylesheet.c +7 -1
- data/lib/nokogiri.rb +3 -22
- data/lib/nokogiri/css.rb +4 -0
- data/lib/nokogiri/html/document.rb +10 -14
- data/lib/nokogiri/nokogiri.jar +0 -0
- data/lib/nokogiri/version.rb +76 -23
- data/lib/nokogiri/xml/builder.rb +7 -0
- data/lib/nokogiri/xml/document.rb +17 -1
- data/lib/nokogiri/xml/document_fragment.rb +14 -0
- data/lib/nokogiri/xml/node.rb +36 -28
- data/lib/nokogiri/xml/node/save_options.rb +17 -1
- data/lib/nokogiri/xml/node_set.rb +7 -0
- data/lib/nokogiri/xml/parse_options.rb +8 -0
- data/lib/nokogiri/xml/reader.rb +6 -6
- data/lib/nokogiri/xml/schema.rb +7 -1
- data/lib/xercesImpl.jar +0 -0
- data/nokogiri_help_responses.md +40 -0
- data/tasks/cross_compile.rb +134 -159
- data/tasks/nokogiri.org.rb +18 -0
- data/tasks/test.rb +1 -1
- data/test/files/encoding.html +82 -0
- data/test/files/encoding.xhtml +84 -0
- data/test/files/metacharset.html +10 -0
- data/test/files/noencoding.html +47 -0
- data/test/helper.rb +2 -0
- data/test/html/test_document.rb +15 -0
- data/test/html/test_document_encoding.rb +13 -0
- data/test/test_memory_leak.rb +20 -0
- data/test/test_reader.rb +22 -0
- data/test/test_xslt_transforms.rb +6 -2
- data/test/xml/node/test_save_options.rb +10 -2
- data/test/xml/test_builder.rb +17 -0
- data/test/xml/test_document.rb +22 -0
- data/test/xml/test_node.rb +19 -1
- data/test/xml/test_node_reparenting.rb +16 -3
- data/test/xml/test_node_set.rb +34 -0
- data/test/xml/test_schema.rb +5 -0
- data/test/xslt/test_exception_handling.rb +37 -0
- metadata +141 -107
- data/deps.rip +0 -5
- data/ext/java/nokogiri/internals/SaveContext.java +0 -288
data/test/xml/test_document.rb
CHANGED
@@ -670,6 +670,28 @@ module Nokogiri
|
|
670
670
|
assert @xml.root.respond_to?(:awesome!)
|
671
671
|
assert @xml.children.respond_to?(:awesome!)
|
672
672
|
end
|
673
|
+
|
674
|
+
def test_java_integration
|
675
|
+
if Nokogiri.jruby?
|
676
|
+
require 'java'
|
677
|
+
factory = javax.xml.parsers.DocumentBuilderFactory.newInstance
|
678
|
+
builder = factory.newDocumentBuilder
|
679
|
+
document = builder.newDocument
|
680
|
+
root = document.createElement("foo")
|
681
|
+
document.appendChild(root)
|
682
|
+
noko_doc = Nokogiri::XML::Document.wrap(document)
|
683
|
+
assert_equal 'foo', noko_doc.root.name
|
684
|
+
|
685
|
+
noko_doc = Nokogiri::XML(<<eoxml)
|
686
|
+
<foo xmlns='hello'>
|
687
|
+
<bar xmlns:foo='world' />
|
688
|
+
</foo>
|
689
|
+
eoxml
|
690
|
+
dom = noko_doc.to_java
|
691
|
+
assert dom.kind_of? org.w3c.dom.Document
|
692
|
+
assert_equal 'foo', dom.getDocumentElement().getTagName()
|
693
|
+
end
|
694
|
+
end
|
673
695
|
end
|
674
696
|
end
|
675
697
|
end
|
data/test/xml/test_node.rb
CHANGED
@@ -486,6 +486,11 @@ module Nokogiri
|
|
486
486
|
assert_equal 'Yes', @xml.css('address').first[:domestic]
|
487
487
|
end
|
488
488
|
|
489
|
+
def test_non_existent_attribute_should_return_nil
|
490
|
+
node = @xml.root.first_element_child
|
491
|
+
assert_nil node.attribute('type')
|
492
|
+
end
|
493
|
+
|
489
494
|
def test_write_to_with_block
|
490
495
|
called = false
|
491
496
|
io = StringIO.new
|
@@ -699,6 +704,15 @@ module Nokogiri
|
|
699
704
|
assert_equal('/staff/employee[1]', node.path)
|
700
705
|
end
|
701
706
|
|
707
|
+
def test_parent_xpath
|
708
|
+
assert set = @xml.search('//employee')
|
709
|
+
assert node = set.first
|
710
|
+
assert parent_set = node.search('..')
|
711
|
+
assert parent_node = parent_set.first
|
712
|
+
assert_equal '/staff', parent_node.path
|
713
|
+
assert_equal node.parent, parent_node
|
714
|
+
end
|
715
|
+
|
702
716
|
def test_search_by_symbol
|
703
717
|
assert set = @xml.search(:employee)
|
704
718
|
assert 5, set.length
|
@@ -718,7 +732,7 @@ module Nokogiri
|
|
718
732
|
assert_equal '&', foo
|
719
733
|
end
|
720
734
|
|
721
|
-
def
|
735
|
+
def test_content_equals
|
722
736
|
node = Nokogiri::XML::Node.new('form', @xml)
|
723
737
|
assert_equal('', node.content)
|
724
738
|
|
@@ -728,6 +742,10 @@ module Nokogiri
|
|
728
742
|
node.content = '& <foo> &'
|
729
743
|
assert_equal('& <foo> &', node.content)
|
730
744
|
assert_equal('<form>& <foo> &amp;</form>', node.to_xml)
|
745
|
+
|
746
|
+
node.content = "1234 <-> 1234"
|
747
|
+
assert_equal "1234 <-> 1234", node.content
|
748
|
+
assert_equal "<form>1234 <-> 1234</form>", node.to_xml
|
731
749
|
end
|
732
750
|
|
733
751
|
def test_set_content_should_unlink_existing_content
|
@@ -51,7 +51,7 @@ module Nokogiri
|
|
51
51
|
|
52
52
|
{
|
53
53
|
:add_child => {:target => "/root/a1", :returns_self => false, :children_tags => %w[text b1 b2]},
|
54
|
-
:<< => {:target => "/root/a1", :returns_self =>
|
54
|
+
:<< => {:target => "/root/a1", :returns_self => true, :children_tags => %w[text b1 b2]},
|
55
55
|
|
56
56
|
:replace => {:target => "/root/a1/node()", :returns_self => false, :children_tags => %w[b1 b2]},
|
57
57
|
:swap => {:target => "/root/a1/node()", :returns_self => true, :children_tags => %w[b1 b2]},
|
@@ -166,6 +166,21 @@ module Nokogiri
|
|
166
166
|
end
|
167
167
|
|
168
168
|
describe "ad hoc node reparenting behavior" do
|
169
|
+
describe "#<<" do
|
170
|
+
it "allows chaining" do
|
171
|
+
doc = Nokogiri::XML::Document.new
|
172
|
+
root = Nokogiri::XML::Element.new('root', doc)
|
173
|
+
doc.root = root
|
174
|
+
|
175
|
+
child1 = Nokogiri::XML::Element.new('child1', doc)
|
176
|
+
child2 = Nokogiri::XML::Element.new('child2', doc)
|
177
|
+
|
178
|
+
doc.root << child1 << child2
|
179
|
+
|
180
|
+
assert_equal [child1, child2], doc.root.children.to_a
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
169
184
|
describe "#add_child" do
|
170
185
|
describe "given a new node with a namespace" do
|
171
186
|
it "keeps the namespace" do
|
@@ -276,8 +291,6 @@ module Nokogiri
|
|
276
291
|
it "not blow up" do
|
277
292
|
# see http://github.com/tenderlove/nokogiri/issues#issue/22
|
278
293
|
10.times do
|
279
|
-
STDOUT.putc "."
|
280
|
-
STDOUT.flush
|
281
294
|
begin
|
282
295
|
doc = Nokogiri::XML <<-EOHTML
|
283
296
|
<root>
|
data/test/xml/test_node_set.rb
CHANGED
@@ -30,6 +30,10 @@ module Nokogiri
|
|
30
30
|
@list = @xml.css('employee')
|
31
31
|
end
|
32
32
|
|
33
|
+
def test_break_works
|
34
|
+
assert_equal 7, @xml.root.elements.each { |x| break 7 }
|
35
|
+
end
|
36
|
+
|
33
37
|
def test_filter
|
34
38
|
list = @xml.css('address').filter('*[domestic="Yes"]')
|
35
39
|
assert_equal(%w{ Yes } * 4, list.map { |n| n['domestic'] })
|
@@ -234,6 +238,11 @@ module Nokogiri
|
|
234
238
|
end
|
235
239
|
end
|
236
240
|
|
241
|
+
def test_dup_on_empty_set
|
242
|
+
empty_set = Nokogiri::XML::NodeSet.new @xml, []
|
243
|
+
assert_equal 0, empty_set.dup.length # this shouldn't raise null pointer exception
|
244
|
+
end
|
245
|
+
|
237
246
|
def test_xmlns_is_automatically_registered
|
238
247
|
doc = Nokogiri::XML(<<-eoxml)
|
239
248
|
<root xmlns="http://tenderlovemaking.com/">
|
@@ -358,6 +367,12 @@ module Nokogiri
|
|
358
367
|
assert length, employees.length
|
359
368
|
end
|
360
369
|
|
370
|
+
def test_delete_on_empty_set
|
371
|
+
empty_set = Nokogiri::XML::NodeSet.new @xml, []
|
372
|
+
employee = @xml.at_xpath("//employee")
|
373
|
+
assert_equal nil, empty_set.delete(employee)
|
374
|
+
end
|
375
|
+
|
361
376
|
def test_unlink
|
362
377
|
xml = Nokogiri::XML.parse(<<-eoxml)
|
363
378
|
<root>
|
@@ -518,6 +533,13 @@ module Nokogiri
|
|
518
533
|
assert_equal employees.length, employees[0, employees.length].length
|
519
534
|
end
|
520
535
|
|
536
|
+
def test_slice_on_empty_node_set
|
537
|
+
empty_set = Nokogiri::XML::NodeSet.new @xml, []
|
538
|
+
assert_equal nil, empty_set[99]
|
539
|
+
assert_equal nil, empty_set[99..101]
|
540
|
+
assert_equal nil, empty_set[99,2]
|
541
|
+
end
|
542
|
+
|
521
543
|
def test_slice_waaaaaay_off_the_end
|
522
544
|
xml = Nokogiri::XML::Builder.new {
|
523
545
|
root { 100.times { div } }
|
@@ -572,6 +594,12 @@ module Nokogiri
|
|
572
594
|
assert_equal [employees[2]], (first_set & second_set).to_a
|
573
595
|
end
|
574
596
|
|
597
|
+
def test_intersection_on_empty_set
|
598
|
+
empty_set = Nokogiri::XML::NodeSet.new @xml
|
599
|
+
employees = @xml.search("//employee")
|
600
|
+
assert_equal 0, (empty_set & employees).length
|
601
|
+
end
|
602
|
+
|
575
603
|
def test_include?
|
576
604
|
employees = @xml.search("//employee")
|
577
605
|
yes = employees.first
|
@@ -581,6 +609,12 @@ module Nokogiri
|
|
581
609
|
assert ! employees.include?(no)
|
582
610
|
end
|
583
611
|
|
612
|
+
def test_include_on_empty_node_set
|
613
|
+
empty_set = Nokogiri::XML::NodeSet.new @xml, []
|
614
|
+
employee = @xml.at_xpath("//employee")
|
615
|
+
assert ! empty_set.include?(employee)
|
616
|
+
end
|
617
|
+
|
584
618
|
def test_children
|
585
619
|
employees = @xml.search("//employee")
|
586
620
|
count = 0
|
data/test/xml/test_schema.rb
CHANGED
@@ -74,6 +74,11 @@ module Nokogiri
|
|
74
74
|
assert_equal 2, errors.length
|
75
75
|
end
|
76
76
|
|
77
|
+
def test_validate_non_document
|
78
|
+
string = File.read(PO_XML_FILE)
|
79
|
+
assert_raise(ArgumentError) {@xsd.validate(string)}
|
80
|
+
end
|
81
|
+
|
77
82
|
def test_valid?
|
78
83
|
valid_doc = Nokogiri::XML(File.read(PO_XML_FILE))
|
79
84
|
|
@@ -0,0 +1,37 @@
|
|
1
|
+
require "helper"
|
2
|
+
|
3
|
+
module Nokogiri
|
4
|
+
module XSLT
|
5
|
+
class TestExceptionHandling < Nokogiri::TestCase
|
6
|
+
def test_java_exception_handling
|
7
|
+
skip('This test is for Java only') if Nokogiri.uses_libxml?
|
8
|
+
|
9
|
+
xml = Nokogiri.XML(<<-EOXML)
|
10
|
+
<foo>
|
11
|
+
<bar/>
|
12
|
+
</foo>
|
13
|
+
EOXML
|
14
|
+
|
15
|
+
xsl = Nokogiri.XSLT(<<-EOXSL)
|
16
|
+
<?xml version="1.0"?>
|
17
|
+
<xsl:stylesheet version="1.0"
|
18
|
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
19
|
+
|
20
|
+
<xsl:template match="/">
|
21
|
+
<a/>
|
22
|
+
<b/>
|
23
|
+
</xsl:template>
|
24
|
+
</xsl:stylesheet>
|
25
|
+
EOXSL
|
26
|
+
|
27
|
+
begin
|
28
|
+
xsl.transform xml
|
29
|
+
fail('It should not get here')
|
30
|
+
rescue RuntimeError => e
|
31
|
+
assert_match(/HIERARCHY_REQUEST_ERR/, e.to_s, 'The exception message does not contain the expected information')
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
metadata
CHANGED
@@ -1,103 +1,130 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nokogiri
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 1
|
7
|
-
- 5
|
8
|
-
- 0
|
9
|
-
- beta
|
10
|
-
- 4
|
11
|
-
version: 1.5.0.beta.4
|
4
|
+
prerelease:
|
5
|
+
version: 1.5.0
|
12
6
|
platform: java
|
13
7
|
authors:
|
14
8
|
- Aaron Patterson
|
15
9
|
- Mike Dalessio
|
10
|
+
- Yoko Harada
|
16
11
|
autorequire:
|
17
12
|
bindir: bin
|
18
13
|
cert_chain: []
|
19
14
|
|
20
|
-
date: 2011-01
|
15
|
+
date: 2011-07-01 00:00:00 -04:00
|
21
16
|
default_executable:
|
22
17
|
dependencies:
|
23
18
|
- !ruby/object:Gem::Dependency
|
24
|
-
name:
|
19
|
+
name: racc
|
25
20
|
prerelease: false
|
26
21
|
requirement: &id001 !ruby/object:Gem::Requirement
|
22
|
+
none: false
|
27
23
|
requirements:
|
28
24
|
- - ">="
|
29
25
|
- !ruby/object:Gem::Version
|
30
|
-
|
31
|
-
- 2
|
32
|
-
- 0
|
33
|
-
- 4
|
34
|
-
version: 2.0.4
|
26
|
+
version: 1.4.6
|
35
27
|
type: :development
|
36
28
|
version_requirements: *id001
|
37
29
|
- !ruby/object:Gem::Dependency
|
38
|
-
name:
|
30
|
+
name: rexical
|
39
31
|
prerelease: false
|
40
32
|
requirement: &id002 !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
41
34
|
requirements:
|
42
35
|
- - ">="
|
43
36
|
- !ruby/object:Gem::Version
|
44
|
-
|
45
|
-
- 0
|
46
|
-
version: "0"
|
37
|
+
version: 1.0.5
|
47
38
|
type: :development
|
48
39
|
version_requirements: *id002
|
49
40
|
- !ruby/object:Gem::Dependency
|
50
|
-
name:
|
41
|
+
name: rake-compiler
|
51
42
|
prerelease: false
|
52
43
|
requirement: &id003 !ruby/object:Gem::Requirement
|
44
|
+
none: false
|
53
45
|
requirements:
|
54
46
|
- - ">="
|
55
47
|
- !ruby/object:Gem::Version
|
56
|
-
|
57
|
-
- 0
|
58
|
-
version: "0"
|
48
|
+
version: 0.7.9
|
59
49
|
type: :development
|
60
50
|
version_requirements: *id003
|
61
51
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
52
|
+
name: minitest
|
63
53
|
prerelease: false
|
64
54
|
requirement: &id004 !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
65
56
|
requirements:
|
66
|
-
- -
|
57
|
+
- - ~>
|
67
58
|
- !ruby/object:Gem::Version
|
68
|
-
|
69
|
-
- 0
|
70
|
-
version: "0"
|
59
|
+
version: 2.2.2
|
71
60
|
type: :development
|
72
61
|
version_requirements: *id004
|
73
62
|
- !ruby/object:Gem::Dependency
|
74
|
-
name:
|
63
|
+
name: mini_portile
|
75
64
|
prerelease: false
|
76
65
|
requirement: &id005 !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
77
67
|
requirements:
|
78
68
|
- - ">="
|
79
69
|
- !ruby/object:Gem::Version
|
80
|
-
|
81
|
-
- 1
|
82
|
-
- 6
|
83
|
-
- 0
|
84
|
-
version: 1.6.0
|
70
|
+
version: 0.2.2
|
85
71
|
type: :development
|
86
72
|
version_requirements: *id005
|
87
73
|
- !ruby/object:Gem::Dependency
|
88
|
-
name: hoe
|
74
|
+
name: hoe-debugging
|
89
75
|
prerelease: false
|
90
76
|
requirement: &id006 !ruby/object:Gem::Requirement
|
77
|
+
none: false
|
91
78
|
requirements:
|
92
79
|
- - ">="
|
93
80
|
- !ruby/object:Gem::Version
|
94
|
-
|
95
|
-
- 2
|
96
|
-
- 6
|
97
|
-
- 1
|
98
|
-
version: 2.6.1
|
81
|
+
version: "0"
|
99
82
|
type: :development
|
100
83
|
version_requirements: *id006
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: hoe-git
|
86
|
+
prerelease: false
|
87
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
88
|
+
none: false
|
89
|
+
requirements:
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: "0"
|
93
|
+
type: :development
|
94
|
+
version_requirements: *id007
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: hoe-gemspec
|
97
|
+
prerelease: false
|
98
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
99
|
+
none: false
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: "0"
|
104
|
+
type: :development
|
105
|
+
version_requirements: *id008
|
106
|
+
- !ruby/object:Gem::Dependency
|
107
|
+
name: hoe-bundler
|
108
|
+
prerelease: false
|
109
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
110
|
+
none: false
|
111
|
+
requirements:
|
112
|
+
- - ">="
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: "0"
|
115
|
+
type: :development
|
116
|
+
version_requirements: *id009
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: hoe
|
119
|
+
prerelease: false
|
120
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 2.9.4
|
126
|
+
type: :development
|
127
|
+
version_requirements: *id010
|
101
128
|
description: "Nokogiri (\xE9\x8B\xB8) is an HTML, XML, SAX, and Reader parser. Among Nokogiri's\n\
|
102
129
|
many features is the ability to search documents via XPath or CSS3 selectors.\n\n\
|
103
130
|
XML is like violence - if it doesn\xE2\x80\x99t solve your problems, you are not using\n\
|
@@ -105,51 +132,53 @@ description: "Nokogiri (\xE9\x8B\xB8) is an HTML, XML, SAX, and Reader parser.
|
|
105
132
|
email:
|
106
133
|
- aaronp@rubyforge.org
|
107
134
|
- mike.dalessio@gmail.com
|
135
|
+
- yokolet@gmail.com
|
108
136
|
executables:
|
109
137
|
- nokogiri
|
110
138
|
extensions: []
|
111
139
|
|
112
140
|
extra_rdoc_files:
|
113
141
|
- Manifest.txt
|
114
|
-
- CHANGELOG.ja.rdoc
|
115
|
-
- CHANGELOG.rdoc
|
116
142
|
- README.ja.rdoc
|
143
|
+
- CHANGELOG.rdoc
|
144
|
+
- CHANGELOG.ja.rdoc
|
117
145
|
- README.rdoc
|
118
|
-
- ext/nokogiri/
|
119
|
-
- ext/nokogiri/
|
120
|
-
- ext/nokogiri/html_entity_lookup.c
|
146
|
+
- ext/nokogiri/xml_sax_push_parser.c
|
147
|
+
- ext/nokogiri/xml_relax_ng.c
|
121
148
|
- ext/nokogiri/html_sax_parser_context.c
|
149
|
+
- ext/nokogiri/html_entity_lookup.c
|
150
|
+
- ext/nokogiri/xml_text.c
|
122
151
|
- ext/nokogiri/nokogiri.c
|
123
|
-
- ext/nokogiri/xml_attr.c
|
124
|
-
- ext/nokogiri/xml_attribute_decl.c
|
125
|
-
- ext/nokogiri/xml_cdata.c
|
126
|
-
- ext/nokogiri/xml_comment.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
152
|
- ext/nokogiri/xml_element_decl.c
|
132
153
|
- ext/nokogiri/xml_encoding_handler.c
|
133
|
-
- ext/nokogiri/
|
134
|
-
- ext/nokogiri/
|
154
|
+
- ext/nokogiri/html_document.c
|
155
|
+
- ext/nokogiri/xslt_stylesheet.c
|
156
|
+
- ext/nokogiri/xml_attribute_decl.c
|
135
157
|
- ext/nokogiri/xml_io.c
|
136
|
-
- ext/nokogiri/
|
158
|
+
- ext/nokogiri/xml_document_fragment.c
|
137
159
|
- ext/nokogiri/xml_namespace.c
|
160
|
+
- ext/nokogiri/xml_libxml2_hacks.c
|
161
|
+
- ext/nokogiri/xml_sax_parser_context.c
|
162
|
+
- ext/nokogiri/xml_comment.c
|
163
|
+
- ext/nokogiri/xml_sax_parser.c
|
164
|
+
- ext/nokogiri/html_element_description.c
|
165
|
+
- ext/nokogiri/xml_xpath_context.c
|
166
|
+
- ext/nokogiri/xml_syntax_error.c
|
167
|
+
- ext/nokogiri/xml_document.c
|
168
|
+
- ext/nokogiri/xml_entity_decl.c
|
138
169
|
- ext/nokogiri/xml_node.c
|
139
170
|
- ext/nokogiri/xml_node_set.c
|
140
|
-
- ext/nokogiri/xml_processing_instruction.c
|
141
171
|
- ext/nokogiri/xml_reader.c
|
142
|
-
- ext/nokogiri/
|
143
|
-
- ext/nokogiri/
|
144
|
-
- ext/nokogiri/
|
145
|
-
- ext/nokogiri/
|
172
|
+
- ext/nokogiri/xml_processing_instruction.c
|
173
|
+
- ext/nokogiri/xml_element_content.c
|
174
|
+
- ext/nokogiri/xml_dtd.c
|
175
|
+
- ext/nokogiri/xml_attr.c
|
146
176
|
- ext/nokogiri/xml_schema.c
|
147
|
-
- ext/nokogiri/
|
148
|
-
- ext/nokogiri/
|
149
|
-
- ext/nokogiri/xml_xpath_context.c
|
150
|
-
- ext/nokogiri/xslt_stylesheet.c
|
177
|
+
- ext/nokogiri/xml_cdata.c
|
178
|
+
- ext/nokogiri/xml_entity_reference.c
|
151
179
|
files:
|
152
180
|
- .autotest
|
181
|
+
- .gemtest
|
153
182
|
- CHANGELOG.ja.rdoc
|
154
183
|
- CHANGELOG.rdoc
|
155
184
|
- Manifest.txt
|
@@ -157,7 +186,6 @@ files:
|
|
157
186
|
- README.rdoc
|
158
187
|
- Rakefile
|
159
188
|
- bin/nokogiri
|
160
|
-
- deps.rip
|
161
189
|
- ext/java/nokogiri/EncodingHandler.java
|
162
190
|
- ext/java/nokogiri/HtmlDocument.java
|
163
191
|
- ext/java/nokogiri/HtmlElementDescription.java
|
@@ -201,10 +229,12 @@ files:
|
|
201
229
|
- ext/java/nokogiri/internals/NokogiriStrictErrorHandler.java
|
202
230
|
- ext/java/nokogiri/internals/NokogiriXPathFunction.java
|
203
231
|
- ext/java/nokogiri/internals/NokogiriXPathFunctionResolver.java
|
232
|
+
- ext/java/nokogiri/internals/NokogiriXPathVariableResolver.java
|
233
|
+
- ext/java/nokogiri/internals/NokogiriXsltErrorListener.java
|
204
234
|
- ext/java/nokogiri/internals/ParserContext.java
|
205
235
|
- ext/java/nokogiri/internals/PushInputStream.java
|
206
236
|
- ext/java/nokogiri/internals/ReaderNode.java
|
207
|
-
- ext/java/nokogiri/internals/
|
237
|
+
- ext/java/nokogiri/internals/SaveContextVisitor.java
|
208
238
|
- ext/java/nokogiri/internals/SchemaErrorHandler.java
|
209
239
|
- ext/java/nokogiri/internals/XmlDeclHandler.java
|
210
240
|
- ext/java/nokogiri/internals/XmlDomParser.java
|
@@ -344,7 +374,9 @@ files:
|
|
344
374
|
- lib/nokogiri/xslt/stylesheet.rb
|
345
375
|
- lib/xercesImpl.jar
|
346
376
|
- lib/xsd/xmlparser/nokogiri.rb
|
377
|
+
- nokogiri_help_responses.md
|
347
378
|
- tasks/cross_compile.rb
|
379
|
+
- tasks/nokogiri.org.rb
|
348
380
|
- tasks/test.rb
|
349
381
|
- test/css/test_nthiness.rb
|
350
382
|
- test/css/test_parser.rb
|
@@ -356,9 +388,13 @@ files:
|
|
356
388
|
- test/files/address_book.xml
|
357
389
|
- test/files/bar/bar.xsd
|
358
390
|
- test/files/dont_hurt_em_why.xml
|
391
|
+
- test/files/encoding.html
|
392
|
+
- test/files/encoding.xhtml
|
359
393
|
- test/files/exslt.xml
|
360
394
|
- test/files/exslt.xslt
|
361
395
|
- test/files/foo/foo.xsd
|
396
|
+
- test/files/metacharset.html
|
397
|
+
- test/files/noencoding.html
|
362
398
|
- test/files/po.xml
|
363
399
|
- test/files/po.xsd
|
364
400
|
- test/files/shift_jis.html
|
@@ -423,6 +459,7 @@ files:
|
|
423
459
|
- test/xml/test_unparented_node.rb
|
424
460
|
- test/xml/test_xpath.rb
|
425
461
|
- test/xslt/test_custom_functions.rb
|
462
|
+
- test/xslt/test_exception_handling.rb
|
426
463
|
- lib/nokogiri/nokogiri.jar
|
427
464
|
has_rdoc: true
|
428
465
|
homepage: http://nokogiri.org
|
@@ -435,84 +472,81 @@ rdoc_options:
|
|
435
472
|
require_paths:
|
436
473
|
- lib
|
437
474
|
required_ruby_version: !ruby/object:Gem::Requirement
|
475
|
+
none: false
|
438
476
|
requirements:
|
439
477
|
- - ">="
|
440
478
|
- !ruby/object:Gem::Version
|
441
|
-
segments:
|
442
|
-
- 0
|
443
479
|
version: "0"
|
444
480
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
481
|
+
none: false
|
445
482
|
requirements:
|
446
|
-
- - "
|
483
|
+
- - ">="
|
447
484
|
- !ruby/object:Gem::Version
|
448
|
-
|
449
|
-
- 1
|
450
|
-
- 3
|
451
|
-
- 1
|
452
|
-
version: 1.3.1
|
485
|
+
version: "0"
|
453
486
|
requirements: []
|
454
487
|
|
455
488
|
rubyforge_project: nokogiri
|
456
|
-
rubygems_version: 1.
|
489
|
+
rubygems_version: 1.5.1
|
457
490
|
signing_key:
|
458
491
|
specification_version: 3
|
459
492
|
summary: "Nokogiri (\xE9\x8B\xB8) is an HTML, XML, SAX, and Reader parser"
|
460
493
|
test_files:
|
461
494
|
- test/test_convert_xpath.rb
|
462
|
-
- test/
|
463
|
-
- test/test_encoding_handler.rb
|
495
|
+
- test/test_soap4r_sax.rb
|
464
496
|
- test/test_memory_leak.rb
|
465
497
|
- test/test_nokogiri.rb
|
498
|
+
- test/test_css_cache.rb
|
466
499
|
- test/test_reader.rb
|
467
|
-
- test/test_soap4r_sax.rb
|
468
500
|
- test/test_xslt_transforms.rb
|
501
|
+
- test/test_encoding_handler.rb
|
469
502
|
- test/css/test_nthiness.rb
|
503
|
+
- test/css/test_xpath_visitor.rb
|
470
504
|
- test/css/test_parser.rb
|
471
505
|
- test/css/test_tokenizer.rb
|
472
|
-
- test/css/test_xpath_visitor.rb
|
473
506
|
- test/decorators/test_slop.rb
|
474
|
-
- test/html/test_builder.rb
|
475
507
|
- test/html/test_document.rb
|
476
508
|
- test/html/test_document_encoding.rb
|
477
|
-
- test/html/test_document_fragment.rb
|
478
|
-
- test/html/test_element_description.rb
|
479
509
|
- test/html/test_named_characters.rb
|
510
|
+
- test/html/test_document_fragment.rb
|
480
511
|
- test/html/test_node.rb
|
512
|
+
- test/html/test_builder.rb
|
481
513
|
- test/html/test_node_encoding.rb
|
482
|
-
- test/html/
|
514
|
+
- test/html/test_element_description.rb
|
483
515
|
- test/html/sax/test_parser_context.rb
|
484
|
-
- test/
|
485
|
-
- test/xml/
|
486
|
-
- test/xml/
|
487
|
-
- test/xml/
|
488
|
-
- test/xml/test_comment.rb
|
516
|
+
- test/html/sax/test_parser.rb
|
517
|
+
- test/xml/test_parse_options.rb
|
518
|
+
- test/xml/test_unparented_node.rb
|
519
|
+
- test/xml/test_element_decl.rb
|
489
520
|
- test/xml/test_document.rb
|
490
|
-
- test/xml/test_document_encoding.rb
|
491
|
-
- test/xml/test_document_fragment.rb
|
492
521
|
- test/xml/test_dtd.rb
|
522
|
+
- test/xml/test_document_encoding.rb
|
523
|
+
- test/xml/test_entity_decl.rb
|
493
524
|
- test/xml/test_dtd_encoding.rb
|
525
|
+
- test/xml/test_document_fragment.rb
|
526
|
+
- test/xml/test_cdata.rb
|
527
|
+
- test/xml/test_text.rb
|
528
|
+
- test/xml/test_reader_encoding.rb
|
529
|
+
- test/xml/test_xpath.rb
|
494
530
|
- test/xml/test_element_content.rb
|
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
531
|
- test/xml/test_node.rb
|
500
|
-
- test/xml/
|
501
|
-
- test/xml/
|
502
|
-
- test/xml/test_node_reparenting.rb
|
532
|
+
- test/xml/test_builder.rb
|
533
|
+
- test/xml/test_schema.rb
|
503
534
|
- test/xml/test_node_set.rb
|
504
|
-
- test/xml/
|
535
|
+
- test/xml/test_attr.rb
|
505
536
|
- test/xml/test_processing_instruction.rb
|
506
|
-
- test/xml/
|
507
|
-
- test/xml/test_relax_ng.rb
|
508
|
-
- test/xml/test_schema.rb
|
537
|
+
- test/xml/test_node_encoding.rb
|
509
538
|
- test/xml/test_syntax_error.rb
|
510
|
-
- test/xml/
|
511
|
-
- test/xml/
|
512
|
-
- test/xml/
|
539
|
+
- test/xml/test_comment.rb
|
540
|
+
- test/xml/test_entity_reference.rb
|
541
|
+
- test/xml/test_node_reparenting.rb
|
542
|
+
- test/xml/test_attribute_decl.rb
|
543
|
+
- test/xml/test_relax_ng.rb
|
544
|
+
- test/xml/test_namespace.rb
|
545
|
+
- test/xml/test_node_attributes.rb
|
513
546
|
- test/xml/node/test_save_options.rb
|
514
547
|
- test/xml/node/test_subclass.rb
|
515
|
-
- test/xml/sax/test_parser.rb
|
516
|
-
- test/xml/sax/test_parser_context.rb
|
517
548
|
- test/xml/sax/test_push_parser.rb
|
549
|
+
- test/xml/sax/test_parser_context.rb
|
550
|
+
- test/xml/sax/test_parser.rb
|
518
551
|
- test/xslt/test_custom_functions.rb
|
552
|
+
- test/xslt/test_exception_handling.rb
|