nokogiri 1.3.0-x86-mswin32
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/.autotest +27 -0
- data/CHANGELOG.ja.rdoc +233 -0
- data/CHANGELOG.rdoc +222 -0
- data/Manifest.txt +247 -0
- data/README.ja.rdoc +103 -0
- data/README.rdoc +117 -0
- data/Rakefile +205 -0
- data/bin/nokogiri +47 -0
- data/ext/nokogiri/extconf.rb +89 -0
- data/ext/nokogiri/html_document.c +183 -0
- data/ext/nokogiri/html_document.h +10 -0
- data/ext/nokogiri/html_element_description.c +272 -0
- data/ext/nokogiri/html_element_description.h +10 -0
- data/ext/nokogiri/html_entity_lookup.c +30 -0
- data/ext/nokogiri/html_entity_lookup.h +8 -0
- data/ext/nokogiri/html_sax_parser.c +57 -0
- data/ext/nokogiri/html_sax_parser.h +11 -0
- data/ext/nokogiri/iconv.dll +0 -0
- data/ext/nokogiri/libexslt.dll +0 -0
- data/ext/nokogiri/libxml2.dll +0 -0
- data/ext/nokogiri/libxslt.dll +0 -0
- data/ext/nokogiri/nokogiri.c +81 -0
- data/ext/nokogiri/nokogiri.h +149 -0
- data/ext/nokogiri/xml_attr.c +92 -0
- data/ext/nokogiri/xml_attr.h +9 -0
- data/ext/nokogiri/xml_cdata.c +53 -0
- data/ext/nokogiri/xml_cdata.h +9 -0
- data/ext/nokogiri/xml_comment.c +51 -0
- data/ext/nokogiri/xml_comment.h +9 -0
- data/ext/nokogiri/xml_document.c +308 -0
- data/ext/nokogiri/xml_document.h +21 -0
- data/ext/nokogiri/xml_document_fragment.c +48 -0
- data/ext/nokogiri/xml_document_fragment.h +10 -0
- data/ext/nokogiri/xml_dtd.c +102 -0
- data/ext/nokogiri/xml_dtd.h +8 -0
- data/ext/nokogiri/xml_entity_reference.c +50 -0
- data/ext/nokogiri/xml_entity_reference.h +9 -0
- data/ext/nokogiri/xml_io.c +24 -0
- data/ext/nokogiri/xml_io.h +10 -0
- data/ext/nokogiri/xml_namespace.c +69 -0
- data/ext/nokogiri/xml_namespace.h +12 -0
- data/ext/nokogiri/xml_node.c +928 -0
- data/ext/nokogiri/xml_node.h +14 -0
- data/ext/nokogiri/xml_node_set.c +386 -0
- data/ext/nokogiri/xml_node_set.h +9 -0
- data/ext/nokogiri/xml_processing_instruction.c +54 -0
- data/ext/nokogiri/xml_processing_instruction.h +9 -0
- data/ext/nokogiri/xml_reader.c +572 -0
- data/ext/nokogiri/xml_reader.h +10 -0
- data/ext/nokogiri/xml_relax_ng.c +106 -0
- data/ext/nokogiri/xml_relax_ng.h +9 -0
- data/ext/nokogiri/xml_sax_parser.c +336 -0
- data/ext/nokogiri/xml_sax_parser.h +10 -0
- data/ext/nokogiri/xml_sax_push_parser.c +86 -0
- data/ext/nokogiri/xml_sax_push_parser.h +9 -0
- data/ext/nokogiri/xml_schema.c +107 -0
- data/ext/nokogiri/xml_schema.h +9 -0
- data/ext/nokogiri/xml_syntax_error.c +203 -0
- data/ext/nokogiri/xml_syntax_error.h +12 -0
- data/ext/nokogiri/xml_text.c +47 -0
- data/ext/nokogiri/xml_text.h +9 -0
- data/ext/nokogiri/xml_xpath.c +53 -0
- data/ext/nokogiri/xml_xpath.h +11 -0
- data/ext/nokogiri/xml_xpath_context.c +252 -0
- data/ext/nokogiri/xml_xpath_context.h +9 -0
- data/ext/nokogiri/xslt_stylesheet.c +131 -0
- data/ext/nokogiri/xslt_stylesheet.h +9 -0
- data/ext/nokogiri/zlib1.dll +0 -0
- data/lib/action-nokogiri.rb +36 -0
- data/lib/nokogiri.rb +110 -0
- data/lib/nokogiri/1.8/nokogiri.so +0 -0
- data/lib/nokogiri/1.9/nokogiri.so +0 -0
- data/lib/nokogiri/css.rb +25 -0
- data/lib/nokogiri/css/generated_parser.rb +748 -0
- data/lib/nokogiri/css/generated_tokenizer.rb +144 -0
- data/lib/nokogiri/css/node.rb +107 -0
- data/lib/nokogiri/css/parser.rb +82 -0
- data/lib/nokogiri/css/parser.y +227 -0
- data/lib/nokogiri/css/syntax_error.rb +7 -0
- data/lib/nokogiri/css/tokenizer.rb +11 -0
- data/lib/nokogiri/css/tokenizer.rex +54 -0
- data/lib/nokogiri/css/xpath_visitor.rb +172 -0
- data/lib/nokogiri/decorators.rb +2 -0
- data/lib/nokogiri/decorators/hpricot.rb +3 -0
- data/lib/nokogiri/decorators/hpricot/node.rb +56 -0
- data/lib/nokogiri/decorators/hpricot/node_set.rb +54 -0
- data/lib/nokogiri/decorators/hpricot/xpath_visitor.rb +30 -0
- data/lib/nokogiri/decorators/slop.rb +33 -0
- data/lib/nokogiri/ffi/html/document.rb +37 -0
- data/lib/nokogiri/ffi/html/element_description.rb +85 -0
- data/lib/nokogiri/ffi/html/entity_lookup.rb +16 -0
- data/lib/nokogiri/ffi/html/sax/parser.rb +21 -0
- data/lib/nokogiri/ffi/io_callbacks.rb +32 -0
- data/lib/nokogiri/ffi/libxml.rb +314 -0
- data/lib/nokogiri/ffi/structs/common_node.rb +26 -0
- data/lib/nokogiri/ffi/structs/html_elem_desc.rb +24 -0
- data/lib/nokogiri/ffi/structs/html_entity_desc.rb +13 -0
- data/lib/nokogiri/ffi/structs/xml_alloc.rb +16 -0
- data/lib/nokogiri/ffi/structs/xml_attr.rb +19 -0
- data/lib/nokogiri/ffi/structs/xml_buffer.rb +16 -0
- data/lib/nokogiri/ffi/structs/xml_document.rb +108 -0
- data/lib/nokogiri/ffi/structs/xml_dtd.rb +26 -0
- data/lib/nokogiri/ffi/structs/xml_node.rb +28 -0
- data/lib/nokogiri/ffi/structs/xml_node_set.rb +53 -0
- data/lib/nokogiri/ffi/structs/xml_notation.rb +11 -0
- data/lib/nokogiri/ffi/structs/xml_ns.rb +15 -0
- data/lib/nokogiri/ffi/structs/xml_relax_ng.rb +14 -0
- data/lib/nokogiri/ffi/structs/xml_sax_handler.rb +51 -0
- data/lib/nokogiri/ffi/structs/xml_sax_push_parser_context.rb +14 -0
- data/lib/nokogiri/ffi/structs/xml_schema.rb +13 -0
- data/lib/nokogiri/ffi/structs/xml_syntax_error.rb +31 -0
- data/lib/nokogiri/ffi/structs/xml_text_reader.rb +12 -0
- data/lib/nokogiri/ffi/structs/xml_xpath_context.rb +37 -0
- data/lib/nokogiri/ffi/structs/xml_xpath_object.rb +35 -0
- data/lib/nokogiri/ffi/structs/xml_xpath_parser_context.rb +20 -0
- data/lib/nokogiri/ffi/structs/xslt_stylesheet.rb +13 -0
- data/lib/nokogiri/ffi/xml/attr.rb +41 -0
- data/lib/nokogiri/ffi/xml/cdata.rb +19 -0
- data/lib/nokogiri/ffi/xml/comment.rb +18 -0
- data/lib/nokogiri/ffi/xml/document.rb +107 -0
- data/lib/nokogiri/ffi/xml/document_fragment.rb +26 -0
- data/lib/nokogiri/ffi/xml/dtd.rb +42 -0
- data/lib/nokogiri/ffi/xml/entity_reference.rb +19 -0
- data/lib/nokogiri/ffi/xml/namespace.rb +38 -0
- data/lib/nokogiri/ffi/xml/node.rb +380 -0
- data/lib/nokogiri/ffi/xml/node_set.rb +130 -0
- data/lib/nokogiri/ffi/xml/processing_instruction.rb +20 -0
- data/lib/nokogiri/ffi/xml/reader.rb +217 -0
- data/lib/nokogiri/ffi/xml/relax_ng.rb +51 -0
- data/lib/nokogiri/ffi/xml/sax/parser.rb +148 -0
- data/lib/nokogiri/ffi/xml/sax/push_parser.rb +38 -0
- data/lib/nokogiri/ffi/xml/schema.rb +55 -0
- data/lib/nokogiri/ffi/xml/syntax_error.rb +76 -0
- data/lib/nokogiri/ffi/xml/text.rb +18 -0
- data/lib/nokogiri/ffi/xml/xpath.rb +19 -0
- data/lib/nokogiri/ffi/xml/xpath_context.rb +135 -0
- data/lib/nokogiri/ffi/xslt/stylesheet.rb +47 -0
- data/lib/nokogiri/hpricot.rb +62 -0
- data/lib/nokogiri/html.rb +34 -0
- data/lib/nokogiri/html/builder.rb +35 -0
- data/lib/nokogiri/html/document.rb +71 -0
- data/lib/nokogiri/html/document_fragment.rb +15 -0
- data/lib/nokogiri/html/element_description.rb +23 -0
- data/lib/nokogiri/html/entity_lookup.rb +13 -0
- data/lib/nokogiri/html/sax/parser.rb +47 -0
- data/lib/nokogiri/nokogiri.rb +1 -0
- data/lib/nokogiri/syntax_error.rb +4 -0
- data/lib/nokogiri/version.rb +29 -0
- data/lib/nokogiri/version_warning.rb +11 -0
- data/lib/nokogiri/xml.rb +62 -0
- data/lib/nokogiri/xml/attr.rb +9 -0
- data/lib/nokogiri/xml/builder.rb +254 -0
- data/lib/nokogiri/xml/cdata.rb +11 -0
- data/lib/nokogiri/xml/document.rb +100 -0
- data/lib/nokogiri/xml/document_fragment.rb +49 -0
- data/lib/nokogiri/xml/dtd.rb +11 -0
- data/lib/nokogiri/xml/entity_declaration.rb +11 -0
- data/lib/nokogiri/xml/fragment_handler.rb +55 -0
- data/lib/nokogiri/xml/namespace.rb +7 -0
- data/lib/nokogiri/xml/node.rb +745 -0
- data/lib/nokogiri/xml/node/save_options.rb +42 -0
- data/lib/nokogiri/xml/node_set.rb +238 -0
- data/lib/nokogiri/xml/notation.rb +6 -0
- data/lib/nokogiri/xml/parse_options.rb +80 -0
- data/lib/nokogiri/xml/processing_instruction.rb +8 -0
- data/lib/nokogiri/xml/reader.rb +66 -0
- data/lib/nokogiri/xml/relax_ng.rb +32 -0
- data/lib/nokogiri/xml/sax.rb +3 -0
- data/lib/nokogiri/xml/sax/document.rb +143 -0
- data/lib/nokogiri/xml/sax/parser.rb +101 -0
- data/lib/nokogiri/xml/sax/push_parser.rb +60 -0
- data/lib/nokogiri/xml/schema.rb +65 -0
- data/lib/nokogiri/xml/syntax_error.rb +34 -0
- data/lib/nokogiri/xml/xpath.rb +10 -0
- data/lib/nokogiri/xml/xpath/syntax_error.rb +8 -0
- data/lib/nokogiri/xml/xpath_context.rb +16 -0
- data/lib/nokogiri/xslt.rb +48 -0
- data/lib/nokogiri/xslt/stylesheet.rb +25 -0
- data/lib/xsd/xmlparser/nokogiri.rb +64 -0
- data/tasks/test.rb +161 -0
- data/test/css/test_nthiness.rb +160 -0
- data/test/css/test_parser.rb +277 -0
- data/test/css/test_tokenizer.rb +176 -0
- data/test/css/test_xpath_visitor.rb +76 -0
- data/test/ffi/test_document.rb +35 -0
- data/test/files/address_book.rlx +12 -0
- data/test/files/address_book.xml +10 -0
- data/test/files/dont_hurt_em_why.xml +422 -0
- data/test/files/exslt.xml +8 -0
- data/test/files/exslt.xslt +35 -0
- data/test/files/po.xml +32 -0
- data/test/files/po.xsd +66 -0
- data/test/files/staff.xml +59 -0
- data/test/files/staff.xslt +32 -0
- data/test/files/tlm.html +850 -0
- data/test/helper.rb +123 -0
- data/test/hpricot/files/basic.xhtml +17 -0
- data/test/hpricot/files/boingboing.html +2266 -0
- data/test/hpricot/files/cy0.html +3653 -0
- data/test/hpricot/files/immob.html +400 -0
- data/test/hpricot/files/pace_application.html +1320 -0
- data/test/hpricot/files/tenderlove.html +16 -0
- data/test/hpricot/files/uswebgen.html +220 -0
- data/test/hpricot/files/utf8.html +1054 -0
- data/test/hpricot/files/week9.html +1723 -0
- data/test/hpricot/files/why.xml +19 -0
- data/test/hpricot/load_files.rb +11 -0
- data/test/hpricot/test_alter.rb +68 -0
- data/test/hpricot/test_builder.rb +20 -0
- data/test/hpricot/test_parser.rb +426 -0
- data/test/hpricot/test_paths.rb +15 -0
- data/test/hpricot/test_preserved.rb +77 -0
- data/test/hpricot/test_xml.rb +30 -0
- data/test/html/sax/test_parser.rb +52 -0
- data/test/html/test_builder.rb +156 -0
- data/test/html/test_document.rb +361 -0
- data/test/html/test_document_encoding.rb +46 -0
- data/test/html/test_document_fragment.rb +97 -0
- data/test/html/test_element_description.rb +95 -0
- data/test/html/test_named_characters.rb +14 -0
- data/test/html/test_node.rb +165 -0
- data/test/test_convert_xpath.rb +186 -0
- data/test/test_css_cache.rb +56 -0
- data/test/test_gc.rb +15 -0
- data/test/test_memory_leak.rb +77 -0
- data/test/test_nokogiri.rb +127 -0
- data/test/test_reader.rb +316 -0
- data/test/test_xslt_transforms.rb +131 -0
- data/test/xml/node/test_save_options.rb +20 -0
- data/test/xml/node/test_subclass.rb +44 -0
- data/test/xml/sax/test_parser.rb +169 -0
- data/test/xml/sax/test_push_parser.rb +92 -0
- data/test/xml/test_attr.rb +38 -0
- data/test/xml/test_builder.rb +73 -0
- data/test/xml/test_cdata.rb +38 -0
- data/test/xml/test_comment.rb +23 -0
- data/test/xml/test_document.rb +397 -0
- data/test/xml/test_document_encoding.rb +26 -0
- data/test/xml/test_document_fragment.rb +76 -0
- data/test/xml/test_dtd.rb +42 -0
- data/test/xml/test_dtd_encoding.rb +31 -0
- data/test/xml/test_entity_reference.rb +21 -0
- data/test/xml/test_namespace.rb +43 -0
- data/test/xml/test_node.rb +808 -0
- data/test/xml/test_node_attributes.rb +34 -0
- data/test/xml/test_node_encoding.rb +84 -0
- data/test/xml/test_node_set.rb +368 -0
- data/test/xml/test_parse_options.rb +52 -0
- data/test/xml/test_processing_instruction.rb +30 -0
- data/test/xml/test_reader_encoding.rb +126 -0
- data/test/xml/test_relax_ng.rb +60 -0
- data/test/xml/test_schema.rb +65 -0
- data/test/xml/test_text.rb +18 -0
- data/test/xml/test_unparented_node.rb +381 -0
- data/test/xml/test_xpath.rb +106 -0
- metadata +409 -0
@@ -0,0 +1,106 @@
|
|
1
|
+
require File.expand_path(File.join(File.dirname(__FILE__), '..', "helper"))
|
2
|
+
|
3
|
+
module Nokogiri
|
4
|
+
module XML
|
5
|
+
class TestXPath < Nokogiri::TestCase
|
6
|
+
def setup
|
7
|
+
super
|
8
|
+
@xml = Nokogiri::XML.parse(File.read(XML_FILE), XML_FILE)
|
9
|
+
|
10
|
+
@handler = Class.new {
|
11
|
+
attr_reader :things
|
12
|
+
|
13
|
+
def initialize
|
14
|
+
@things = []
|
15
|
+
end
|
16
|
+
|
17
|
+
def thing thing
|
18
|
+
@things << thing
|
19
|
+
thing
|
20
|
+
end
|
21
|
+
|
22
|
+
def returns_array node_set
|
23
|
+
@things << node_set.to_a
|
24
|
+
node_set.to_a
|
25
|
+
end
|
26
|
+
|
27
|
+
def my_filter set, attribute, value
|
28
|
+
set.find_all { |x| x[attribute] == value }
|
29
|
+
end
|
30
|
+
}.new
|
31
|
+
end
|
32
|
+
|
33
|
+
def test_css_search_uses_custom_selectors_with_arguments
|
34
|
+
set = @xml.css('employee > address:my_filter("domestic", "Yes")', @handler)
|
35
|
+
assert set.length > 0
|
36
|
+
set.each do |node|
|
37
|
+
assert_equal 'Yes', node['domestic']
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
def test_css_search_uses_custom_selectors
|
42
|
+
set = @xml.xpath('//employee')
|
43
|
+
css_set = @xml.css('employee:thing()', @handler)
|
44
|
+
assert_equal(set.length, @handler.things.length)
|
45
|
+
assert_equal(set.to_a, @handler.things.flatten)
|
46
|
+
end
|
47
|
+
|
48
|
+
def test_pass_self_to_function
|
49
|
+
set = @xml.xpath('//employee/address[my_filter(., "domestic", "Yes")]', @handler)
|
50
|
+
assert set.length > 0
|
51
|
+
set.each do |node|
|
52
|
+
assert_equal 'Yes', node['domestic']
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
def test_custom_xpath_function_gets_strings
|
57
|
+
set = @xml.xpath('//employee')
|
58
|
+
@xml.xpath('//employee[thing("asdf")]', @handler)
|
59
|
+
assert_equal(set.length, @handler.things.length)
|
60
|
+
assert_equal(['asdf'] * set.length, @handler.things)
|
61
|
+
end
|
62
|
+
|
63
|
+
def test_custom_xpath_gets_true_booleans
|
64
|
+
set = @xml.xpath('//employee')
|
65
|
+
@xml.xpath('//employee[thing(true())]', @handler)
|
66
|
+
assert_equal(set.length, @handler.things.length)
|
67
|
+
assert_equal([true] * set.length, @handler.things)
|
68
|
+
end
|
69
|
+
|
70
|
+
def test_custom_xpath_gets_false_booleans
|
71
|
+
set = @xml.xpath('//employee')
|
72
|
+
@xml.xpath('//employee[thing(false())]', @handler)
|
73
|
+
assert_equal(set.length, @handler.things.length)
|
74
|
+
assert_equal([false] * set.length, @handler.things)
|
75
|
+
end
|
76
|
+
|
77
|
+
def test_custom_xpath_gets_numbers
|
78
|
+
set = @xml.xpath('//employee')
|
79
|
+
@xml.xpath('//employee[thing(10)]', @handler)
|
80
|
+
assert_equal(set.length, @handler.things.length)
|
81
|
+
assert_equal([10] * set.length, @handler.things)
|
82
|
+
end
|
83
|
+
|
84
|
+
def test_custom_xpath_gets_node_sets
|
85
|
+
set = @xml.xpath('//employee/name')
|
86
|
+
@xml.xpath('//employee[thing(name)]', @handler)
|
87
|
+
assert_equal(set.length, @handler.things.length)
|
88
|
+
assert_equal(set.to_a, @handler.things.flatten)
|
89
|
+
end
|
90
|
+
|
91
|
+
def test_custom_xpath_gets_node_sets_and_returns_array
|
92
|
+
set = @xml.xpath('//employee/name')
|
93
|
+
@xml.xpath('//employee[returns_array(name)]', @handler)
|
94
|
+
assert_equal(set.length, @handler.things.length)
|
95
|
+
assert_equal(set.to_a, @handler.things.flatten)
|
96
|
+
end
|
97
|
+
|
98
|
+
def test_code_that_invokes_OP_RESET_inside_libxml2
|
99
|
+
doc = "<html><body id='foo'><foo>hi</foo></body></html>"
|
100
|
+
xpath = 'id("foo")//foo'
|
101
|
+
nokogiri = Nokogiri::HTML.parse(doc)
|
102
|
+
tree = nokogiri.xpath(xpath)
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
metadata
ADDED
@@ -0,0 +1,409 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: nokogiri
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.3.0
|
5
|
+
platform: x86-mswin32
|
6
|
+
authors:
|
7
|
+
- Aaron Patterson
|
8
|
+
- Mike Dalessio
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2009-06-01 00:00:00 -07:00
|
14
|
+
default_executable:
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: racc
|
18
|
+
type: :development
|
19
|
+
version_requirement:
|
20
|
+
version_requirements: !ruby/object:Gem::Requirement
|
21
|
+
requirements:
|
22
|
+
- - ">="
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: "0"
|
25
|
+
version:
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: tenderlove-frex
|
28
|
+
type: :development
|
29
|
+
version_requirement:
|
30
|
+
version_requirements: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: "0"
|
35
|
+
version:
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rake-compiler
|
38
|
+
type: :development
|
39
|
+
version_requirement:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: "0"
|
45
|
+
version:
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: hoe
|
48
|
+
type: :development
|
49
|
+
version_requirement:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.12.2
|
55
|
+
version:
|
56
|
+
description: "Nokogiri (\xE9\x8B\xB8) is an HTML, XML, SAX, and Reader parser."
|
57
|
+
email:
|
58
|
+
- aaronp@rubyforge.org
|
59
|
+
- mike.dalessio@gmail.com
|
60
|
+
executables:
|
61
|
+
- nokogiri
|
62
|
+
extensions: []
|
63
|
+
|
64
|
+
extra_rdoc_files:
|
65
|
+
- Manifest.txt
|
66
|
+
- CHANGELOG.ja.rdoc
|
67
|
+
- CHANGELOG.rdoc
|
68
|
+
- README.ja.rdoc
|
69
|
+
- README.rdoc
|
70
|
+
files:
|
71
|
+
- .autotest
|
72
|
+
- CHANGELOG.ja.rdoc
|
73
|
+
- CHANGELOG.rdoc
|
74
|
+
- Manifest.txt
|
75
|
+
- README.ja.rdoc
|
76
|
+
- README.rdoc
|
77
|
+
- Rakefile
|
78
|
+
- bin/nokogiri
|
79
|
+
- ext/nokogiri/extconf.rb
|
80
|
+
- ext/nokogiri/html_document.c
|
81
|
+
- ext/nokogiri/html_document.h
|
82
|
+
- ext/nokogiri/html_element_description.c
|
83
|
+
- ext/nokogiri/html_element_description.h
|
84
|
+
- ext/nokogiri/html_entity_lookup.c
|
85
|
+
- ext/nokogiri/html_entity_lookup.h
|
86
|
+
- ext/nokogiri/html_sax_parser.c
|
87
|
+
- ext/nokogiri/html_sax_parser.h
|
88
|
+
- ext/nokogiri/nokogiri.c
|
89
|
+
- ext/nokogiri/nokogiri.h
|
90
|
+
- ext/nokogiri/xml_attr.c
|
91
|
+
- ext/nokogiri/xml_attr.h
|
92
|
+
- ext/nokogiri/xml_cdata.c
|
93
|
+
- ext/nokogiri/xml_cdata.h
|
94
|
+
- ext/nokogiri/xml_comment.c
|
95
|
+
- ext/nokogiri/xml_comment.h
|
96
|
+
- ext/nokogiri/xml_document.c
|
97
|
+
- ext/nokogiri/xml_document.h
|
98
|
+
- ext/nokogiri/xml_document_fragment.c
|
99
|
+
- ext/nokogiri/xml_document_fragment.h
|
100
|
+
- ext/nokogiri/xml_dtd.c
|
101
|
+
- ext/nokogiri/xml_dtd.h
|
102
|
+
- ext/nokogiri/xml_entity_reference.c
|
103
|
+
- ext/nokogiri/xml_entity_reference.h
|
104
|
+
- ext/nokogiri/xml_io.c
|
105
|
+
- ext/nokogiri/xml_io.h
|
106
|
+
- ext/nokogiri/xml_namespace.c
|
107
|
+
- ext/nokogiri/xml_namespace.h
|
108
|
+
- ext/nokogiri/xml_node.c
|
109
|
+
- ext/nokogiri/xml_node.h
|
110
|
+
- ext/nokogiri/xml_node_set.c
|
111
|
+
- ext/nokogiri/xml_node_set.h
|
112
|
+
- ext/nokogiri/xml_processing_instruction.c
|
113
|
+
- ext/nokogiri/xml_processing_instruction.h
|
114
|
+
- ext/nokogiri/xml_reader.c
|
115
|
+
- ext/nokogiri/xml_reader.h
|
116
|
+
- ext/nokogiri/xml_relax_ng.c
|
117
|
+
- ext/nokogiri/xml_relax_ng.h
|
118
|
+
- ext/nokogiri/xml_sax_parser.c
|
119
|
+
- ext/nokogiri/xml_sax_parser.h
|
120
|
+
- ext/nokogiri/xml_sax_push_parser.c
|
121
|
+
- ext/nokogiri/xml_sax_push_parser.h
|
122
|
+
- ext/nokogiri/xml_schema.c
|
123
|
+
- ext/nokogiri/xml_schema.h
|
124
|
+
- ext/nokogiri/xml_syntax_error.c
|
125
|
+
- ext/nokogiri/xml_syntax_error.h
|
126
|
+
- ext/nokogiri/xml_text.c
|
127
|
+
- ext/nokogiri/xml_text.h
|
128
|
+
- ext/nokogiri/xml_xpath.c
|
129
|
+
- ext/nokogiri/xml_xpath.h
|
130
|
+
- ext/nokogiri/xml_xpath_context.c
|
131
|
+
- ext/nokogiri/xml_xpath_context.h
|
132
|
+
- ext/nokogiri/xslt_stylesheet.c
|
133
|
+
- ext/nokogiri/xslt_stylesheet.h
|
134
|
+
- lib/action-nokogiri.rb
|
135
|
+
- lib/nokogiri.rb
|
136
|
+
- lib/nokogiri/css.rb
|
137
|
+
- lib/nokogiri/css/generated_parser.rb
|
138
|
+
- lib/nokogiri/css/generated_tokenizer.rb
|
139
|
+
- lib/nokogiri/css/node.rb
|
140
|
+
- lib/nokogiri/css/parser.rb
|
141
|
+
- lib/nokogiri/css/parser.y
|
142
|
+
- lib/nokogiri/css/syntax_error.rb
|
143
|
+
- lib/nokogiri/css/tokenizer.rb
|
144
|
+
- lib/nokogiri/css/tokenizer.rex
|
145
|
+
- lib/nokogiri/css/xpath_visitor.rb
|
146
|
+
- lib/nokogiri/decorators.rb
|
147
|
+
- lib/nokogiri/decorators/hpricot.rb
|
148
|
+
- lib/nokogiri/decorators/hpricot/node.rb
|
149
|
+
- lib/nokogiri/decorators/hpricot/node_set.rb
|
150
|
+
- lib/nokogiri/decorators/hpricot/xpath_visitor.rb
|
151
|
+
- lib/nokogiri/decorators/slop.rb
|
152
|
+
- lib/nokogiri/ffi/html/document.rb
|
153
|
+
- lib/nokogiri/ffi/html/element_description.rb
|
154
|
+
- lib/nokogiri/ffi/html/entity_lookup.rb
|
155
|
+
- lib/nokogiri/ffi/html/sax/parser.rb
|
156
|
+
- lib/nokogiri/ffi/io_callbacks.rb
|
157
|
+
- lib/nokogiri/ffi/libxml.rb
|
158
|
+
- lib/nokogiri/ffi/structs/common_node.rb
|
159
|
+
- lib/nokogiri/ffi/structs/html_elem_desc.rb
|
160
|
+
- lib/nokogiri/ffi/structs/html_entity_desc.rb
|
161
|
+
- lib/nokogiri/ffi/structs/xml_alloc.rb
|
162
|
+
- lib/nokogiri/ffi/structs/xml_attr.rb
|
163
|
+
- lib/nokogiri/ffi/structs/xml_buffer.rb
|
164
|
+
- lib/nokogiri/ffi/structs/xml_document.rb
|
165
|
+
- lib/nokogiri/ffi/structs/xml_dtd.rb
|
166
|
+
- lib/nokogiri/ffi/structs/xml_node.rb
|
167
|
+
- lib/nokogiri/ffi/structs/xml_node_set.rb
|
168
|
+
- lib/nokogiri/ffi/structs/xml_notation.rb
|
169
|
+
- lib/nokogiri/ffi/structs/xml_ns.rb
|
170
|
+
- lib/nokogiri/ffi/structs/xml_relax_ng.rb
|
171
|
+
- lib/nokogiri/ffi/structs/xml_sax_handler.rb
|
172
|
+
- lib/nokogiri/ffi/structs/xml_sax_push_parser_context.rb
|
173
|
+
- lib/nokogiri/ffi/structs/xml_schema.rb
|
174
|
+
- lib/nokogiri/ffi/structs/xml_syntax_error.rb
|
175
|
+
- lib/nokogiri/ffi/structs/xml_text_reader.rb
|
176
|
+
- lib/nokogiri/ffi/structs/xml_xpath_context.rb
|
177
|
+
- lib/nokogiri/ffi/structs/xml_xpath_object.rb
|
178
|
+
- lib/nokogiri/ffi/structs/xml_xpath_parser_context.rb
|
179
|
+
- lib/nokogiri/ffi/structs/xslt_stylesheet.rb
|
180
|
+
- lib/nokogiri/ffi/xml/attr.rb
|
181
|
+
- lib/nokogiri/ffi/xml/cdata.rb
|
182
|
+
- lib/nokogiri/ffi/xml/comment.rb
|
183
|
+
- lib/nokogiri/ffi/xml/document.rb
|
184
|
+
- lib/nokogiri/ffi/xml/document_fragment.rb
|
185
|
+
- lib/nokogiri/ffi/xml/dtd.rb
|
186
|
+
- lib/nokogiri/ffi/xml/entity_reference.rb
|
187
|
+
- lib/nokogiri/ffi/xml/namespace.rb
|
188
|
+
- lib/nokogiri/ffi/xml/node.rb
|
189
|
+
- lib/nokogiri/ffi/xml/node_set.rb
|
190
|
+
- lib/nokogiri/ffi/xml/processing_instruction.rb
|
191
|
+
- lib/nokogiri/ffi/xml/reader.rb
|
192
|
+
- lib/nokogiri/ffi/xml/relax_ng.rb
|
193
|
+
- lib/nokogiri/ffi/xml/sax/parser.rb
|
194
|
+
- lib/nokogiri/ffi/xml/sax/push_parser.rb
|
195
|
+
- lib/nokogiri/ffi/xml/schema.rb
|
196
|
+
- lib/nokogiri/ffi/xml/syntax_error.rb
|
197
|
+
- lib/nokogiri/ffi/xml/text.rb
|
198
|
+
- lib/nokogiri/ffi/xml/xpath.rb
|
199
|
+
- lib/nokogiri/ffi/xml/xpath_context.rb
|
200
|
+
- lib/nokogiri/ffi/xslt/stylesheet.rb
|
201
|
+
- lib/nokogiri/hpricot.rb
|
202
|
+
- lib/nokogiri/html.rb
|
203
|
+
- lib/nokogiri/html/builder.rb
|
204
|
+
- lib/nokogiri/html/document.rb
|
205
|
+
- lib/nokogiri/html/document_fragment.rb
|
206
|
+
- lib/nokogiri/html/element_description.rb
|
207
|
+
- lib/nokogiri/html/entity_lookup.rb
|
208
|
+
- lib/nokogiri/html/sax/parser.rb
|
209
|
+
- lib/nokogiri/syntax_error.rb
|
210
|
+
- lib/nokogiri/version.rb
|
211
|
+
- lib/nokogiri/version_warning.rb
|
212
|
+
- lib/nokogiri/xml.rb
|
213
|
+
- lib/nokogiri/xml/attr.rb
|
214
|
+
- lib/nokogiri/xml/builder.rb
|
215
|
+
- lib/nokogiri/xml/cdata.rb
|
216
|
+
- lib/nokogiri/xml/document.rb
|
217
|
+
- lib/nokogiri/xml/document_fragment.rb
|
218
|
+
- lib/nokogiri/xml/dtd.rb
|
219
|
+
- lib/nokogiri/xml/entity_declaration.rb
|
220
|
+
- lib/nokogiri/xml/fragment_handler.rb
|
221
|
+
- lib/nokogiri/xml/namespace.rb
|
222
|
+
- lib/nokogiri/xml/node.rb
|
223
|
+
- lib/nokogiri/xml/node/save_options.rb
|
224
|
+
- lib/nokogiri/xml/node_set.rb
|
225
|
+
- lib/nokogiri/xml/notation.rb
|
226
|
+
- lib/nokogiri/xml/parse_options.rb
|
227
|
+
- lib/nokogiri/xml/processing_instruction.rb
|
228
|
+
- lib/nokogiri/xml/reader.rb
|
229
|
+
- lib/nokogiri/xml/relax_ng.rb
|
230
|
+
- lib/nokogiri/xml/sax.rb
|
231
|
+
- lib/nokogiri/xml/sax/document.rb
|
232
|
+
- lib/nokogiri/xml/sax/parser.rb
|
233
|
+
- lib/nokogiri/xml/sax/push_parser.rb
|
234
|
+
- lib/nokogiri/xml/schema.rb
|
235
|
+
- lib/nokogiri/xml/syntax_error.rb
|
236
|
+
- lib/nokogiri/xml/xpath.rb
|
237
|
+
- lib/nokogiri/xml/xpath/syntax_error.rb
|
238
|
+
- lib/nokogiri/xml/xpath_context.rb
|
239
|
+
- lib/nokogiri/xslt.rb
|
240
|
+
- lib/nokogiri/xslt/stylesheet.rb
|
241
|
+
- lib/xsd/xmlparser/nokogiri.rb
|
242
|
+
- tasks/test.rb
|
243
|
+
- test/css/test_nthiness.rb
|
244
|
+
- test/css/test_parser.rb
|
245
|
+
- test/css/test_tokenizer.rb
|
246
|
+
- test/css/test_xpath_visitor.rb
|
247
|
+
- test/ffi/test_document.rb
|
248
|
+
- test/files/address_book.rlx
|
249
|
+
- test/files/address_book.xml
|
250
|
+
- test/files/dont_hurt_em_why.xml
|
251
|
+
- test/files/exslt.xml
|
252
|
+
- test/files/exslt.xslt
|
253
|
+
- test/files/po.xml
|
254
|
+
- test/files/po.xsd
|
255
|
+
- test/files/staff.xml
|
256
|
+
- test/files/staff.xslt
|
257
|
+
- test/files/tlm.html
|
258
|
+
- test/helper.rb
|
259
|
+
- test/hpricot/files/basic.xhtml
|
260
|
+
- test/hpricot/files/boingboing.html
|
261
|
+
- test/hpricot/files/cy0.html
|
262
|
+
- test/hpricot/files/immob.html
|
263
|
+
- test/hpricot/files/pace_application.html
|
264
|
+
- test/hpricot/files/tenderlove.html
|
265
|
+
- test/hpricot/files/uswebgen.html
|
266
|
+
- test/hpricot/files/utf8.html
|
267
|
+
- test/hpricot/files/week9.html
|
268
|
+
- test/hpricot/files/why.xml
|
269
|
+
- test/hpricot/load_files.rb
|
270
|
+
- test/hpricot/test_alter.rb
|
271
|
+
- test/hpricot/test_builder.rb
|
272
|
+
- test/hpricot/test_parser.rb
|
273
|
+
- test/hpricot/test_paths.rb
|
274
|
+
- test/hpricot/test_preserved.rb
|
275
|
+
- test/hpricot/test_xml.rb
|
276
|
+
- test/html/sax/test_parser.rb
|
277
|
+
- test/html/test_builder.rb
|
278
|
+
- test/html/test_document.rb
|
279
|
+
- test/html/test_document_encoding.rb
|
280
|
+
- test/html/test_document_fragment.rb
|
281
|
+
- test/html/test_element_description.rb
|
282
|
+
- test/html/test_named_characters.rb
|
283
|
+
- test/html/test_node.rb
|
284
|
+
- test/test_convert_xpath.rb
|
285
|
+
- test/test_css_cache.rb
|
286
|
+
- test/test_gc.rb
|
287
|
+
- test/test_memory_leak.rb
|
288
|
+
- test/test_nokogiri.rb
|
289
|
+
- test/test_reader.rb
|
290
|
+
- test/test_xslt_transforms.rb
|
291
|
+
- test/xml/node/test_save_options.rb
|
292
|
+
- test/xml/node/test_subclass.rb
|
293
|
+
- test/xml/sax/test_parser.rb
|
294
|
+
- test/xml/sax/test_push_parser.rb
|
295
|
+
- test/xml/test_attr.rb
|
296
|
+
- test/xml/test_builder.rb
|
297
|
+
- test/xml/test_cdata.rb
|
298
|
+
- test/xml/test_comment.rb
|
299
|
+
- test/xml/test_document.rb
|
300
|
+
- test/xml/test_document_encoding.rb
|
301
|
+
- test/xml/test_document_fragment.rb
|
302
|
+
- test/xml/test_dtd.rb
|
303
|
+
- test/xml/test_dtd_encoding.rb
|
304
|
+
- test/xml/test_entity_reference.rb
|
305
|
+
- test/xml/test_namespace.rb
|
306
|
+
- test/xml/test_node.rb
|
307
|
+
- test/xml/test_node_attributes.rb
|
308
|
+
- test/xml/test_node_encoding.rb
|
309
|
+
- test/xml/test_node_set.rb
|
310
|
+
- test/xml/test_parse_options.rb
|
311
|
+
- test/xml/test_processing_instruction.rb
|
312
|
+
- test/xml/test_reader_encoding.rb
|
313
|
+
- test/xml/test_relax_ng.rb
|
314
|
+
- test/xml/test_schema.rb
|
315
|
+
- test/xml/test_text.rb
|
316
|
+
- test/xml/test_unparented_node.rb
|
317
|
+
- test/xml/test_xpath.rb
|
318
|
+
- lib/nokogiri/nokogiri.rb
|
319
|
+
- lib/nokogiri/1.8/nokogiri.so
|
320
|
+
- lib/nokogiri/1.9/nokogiri.so
|
321
|
+
- ext/nokogiri/iconv.dll
|
322
|
+
- ext/nokogiri/libexslt.dll
|
323
|
+
- ext/nokogiri/libxml2.dll
|
324
|
+
- ext/nokogiri/libxslt.dll
|
325
|
+
- ext/nokogiri/zlib1.dll
|
326
|
+
has_rdoc: true
|
327
|
+
homepage: http://nokogiri.rubyforge.org/
|
328
|
+
licenses: []
|
329
|
+
|
330
|
+
post_install_message:
|
331
|
+
rdoc_options:
|
332
|
+
- --main
|
333
|
+
- README.rdoc
|
334
|
+
require_paths:
|
335
|
+
- lib
|
336
|
+
- ext
|
337
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
338
|
+
requirements:
|
339
|
+
- - ">="
|
340
|
+
- !ruby/object:Gem::Version
|
341
|
+
version: "0"
|
342
|
+
version:
|
343
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
344
|
+
requirements:
|
345
|
+
- - ">="
|
346
|
+
- !ruby/object:Gem::Version
|
347
|
+
version: "0"
|
348
|
+
version:
|
349
|
+
requirements: []
|
350
|
+
|
351
|
+
rubyforge_project: nokogiri
|
352
|
+
rubygems_version: 1.3.3
|
353
|
+
signing_key:
|
354
|
+
specification_version: 3
|
355
|
+
summary: "Nokogiri (\xE9\x8B\xB8) is an HTML, XML, SAX, and Reader parser."
|
356
|
+
test_files:
|
357
|
+
- test/css/test_nthiness.rb
|
358
|
+
- test/css/test_parser.rb
|
359
|
+
- test/css/test_tokenizer.rb
|
360
|
+
- test/css/test_xpath_visitor.rb
|
361
|
+
- test/ffi/test_document.rb
|
362
|
+
- test/hpricot/test_alter.rb
|
363
|
+
- test/hpricot/test_builder.rb
|
364
|
+
- test/hpricot/test_parser.rb
|
365
|
+
- test/hpricot/test_paths.rb
|
366
|
+
- test/hpricot/test_preserved.rb
|
367
|
+
- test/hpricot/test_xml.rb
|
368
|
+
- test/html/sax/test_parser.rb
|
369
|
+
- test/html/test_builder.rb
|
370
|
+
- test/html/test_document.rb
|
371
|
+
- test/html/test_document_encoding.rb
|
372
|
+
- test/html/test_document_fragment.rb
|
373
|
+
- test/html/test_element_description.rb
|
374
|
+
- test/html/test_named_characters.rb
|
375
|
+
- test/html/test_node.rb
|
376
|
+
- test/test_convert_xpath.rb
|
377
|
+
- test/test_css_cache.rb
|
378
|
+
- test/test_gc.rb
|
379
|
+
- test/test_memory_leak.rb
|
380
|
+
- test/test_nokogiri.rb
|
381
|
+
- test/test_reader.rb
|
382
|
+
- test/test_xslt_transforms.rb
|
383
|
+
- test/xml/node/test_save_options.rb
|
384
|
+
- test/xml/node/test_subclass.rb
|
385
|
+
- test/xml/sax/test_parser.rb
|
386
|
+
- test/xml/sax/test_push_parser.rb
|
387
|
+
- test/xml/test_attr.rb
|
388
|
+
- test/xml/test_builder.rb
|
389
|
+
- test/xml/test_cdata.rb
|
390
|
+
- test/xml/test_comment.rb
|
391
|
+
- test/xml/test_document.rb
|
392
|
+
- test/xml/test_document_encoding.rb
|
393
|
+
- test/xml/test_document_fragment.rb
|
394
|
+
- test/xml/test_dtd.rb
|
395
|
+
- test/xml/test_dtd_encoding.rb
|
396
|
+
- test/xml/test_entity_reference.rb
|
397
|
+
- test/xml/test_namespace.rb
|
398
|
+
- test/xml/test_node.rb
|
399
|
+
- test/xml/test_node_attributes.rb
|
400
|
+
- test/xml/test_node_encoding.rb
|
401
|
+
- test/xml/test_node_set.rb
|
402
|
+
- test/xml/test_parse_options.rb
|
403
|
+
- test/xml/test_processing_instruction.rb
|
404
|
+
- test/xml/test_reader_encoding.rb
|
405
|
+
- test/xml/test_relax_ng.rb
|
406
|
+
- test/xml/test_schema.rb
|
407
|
+
- test/xml/test_text.rb
|
408
|
+
- test/xml/test_unparented_node.rb
|
409
|
+
- test/xml/test_xpath.rb
|