superfeedr-nokogiri 1.4.0.20091116183308

Sign up to get free protection for your applications and to get access to all the features.
Files changed (270) hide show
  1. data/.autotest +27 -0
  2. data/CHANGELOG.ja.rdoc +330 -0
  3. data/CHANGELOG.rdoc +314 -0
  4. data/Manifest.txt +269 -0
  5. data/README.ja.rdoc +105 -0
  6. data/README.rdoc +118 -0
  7. data/Rakefile +244 -0
  8. data/bin/nokogiri +49 -0
  9. data/ext/nokogiri/extconf.rb +145 -0
  10. data/ext/nokogiri/html_document.c +145 -0
  11. data/ext/nokogiri/html_document.h +10 -0
  12. data/ext/nokogiri/html_element_description.c +272 -0
  13. data/ext/nokogiri/html_element_description.h +10 -0
  14. data/ext/nokogiri/html_entity_lookup.c +32 -0
  15. data/ext/nokogiri/html_entity_lookup.h +8 -0
  16. data/ext/nokogiri/html_sax_parser_context.c +92 -0
  17. data/ext/nokogiri/html_sax_parser_context.h +11 -0
  18. data/ext/nokogiri/nokogiri.c +89 -0
  19. data/ext/nokogiri/nokogiri.h +145 -0
  20. data/ext/nokogiri/xml_attr.c +92 -0
  21. data/ext/nokogiri/xml_attr.h +9 -0
  22. data/ext/nokogiri/xml_attribute_decl.c +67 -0
  23. data/ext/nokogiri/xml_attribute_decl.h +9 -0
  24. data/ext/nokogiri/xml_cdata.c +54 -0
  25. data/ext/nokogiri/xml_cdata.h +9 -0
  26. data/ext/nokogiri/xml_comment.c +52 -0
  27. data/ext/nokogiri/xml_comment.h +9 -0
  28. data/ext/nokogiri/xml_document.c +388 -0
  29. data/ext/nokogiri/xml_document.h +24 -0
  30. data/ext/nokogiri/xml_document_fragment.c +46 -0
  31. data/ext/nokogiri/xml_document_fragment.h +10 -0
  32. data/ext/nokogiri/xml_dtd.c +192 -0
  33. data/ext/nokogiri/xml_dtd.h +10 -0
  34. data/ext/nokogiri/xml_element_content.c +123 -0
  35. data/ext/nokogiri/xml_element_content.h +10 -0
  36. data/ext/nokogiri/xml_element_decl.c +69 -0
  37. data/ext/nokogiri/xml_element_decl.h +9 -0
  38. data/ext/nokogiri/xml_entity_decl.c +97 -0
  39. data/ext/nokogiri/xml_entity_decl.h +10 -0
  40. data/ext/nokogiri/xml_entity_reference.c +50 -0
  41. data/ext/nokogiri/xml_entity_reference.h +9 -0
  42. data/ext/nokogiri/xml_io.c +31 -0
  43. data/ext/nokogiri/xml_io.h +11 -0
  44. data/ext/nokogiri/xml_namespace.c +74 -0
  45. data/ext/nokogiri/xml_namespace.h +12 -0
  46. data/ext/nokogiri/xml_node.c +1060 -0
  47. data/ext/nokogiri/xml_node.h +13 -0
  48. data/ext/nokogiri/xml_node_set.c +397 -0
  49. data/ext/nokogiri/xml_node_set.h +9 -0
  50. data/ext/nokogiri/xml_processing_instruction.c +54 -0
  51. data/ext/nokogiri/xml_processing_instruction.h +9 -0
  52. data/ext/nokogiri/xml_reader.c +593 -0
  53. data/ext/nokogiri/xml_reader.h +10 -0
  54. data/ext/nokogiri/xml_relax_ng.c +159 -0
  55. data/ext/nokogiri/xml_relax_ng.h +9 -0
  56. data/ext/nokogiri/xml_sax_parser.c +286 -0
  57. data/ext/nokogiri/xml_sax_parser.h +43 -0
  58. data/ext/nokogiri/xml_sax_parser_context.c +155 -0
  59. data/ext/nokogiri/xml_sax_parser_context.h +10 -0
  60. data/ext/nokogiri/xml_sax_push_parser.c +114 -0
  61. data/ext/nokogiri/xml_sax_push_parser.h +9 -0
  62. data/ext/nokogiri/xml_schema.c +156 -0
  63. data/ext/nokogiri/xml_schema.h +9 -0
  64. data/ext/nokogiri/xml_syntax_error.c +261 -0
  65. data/ext/nokogiri/xml_syntax_error.h +13 -0
  66. data/ext/nokogiri/xml_text.c +48 -0
  67. data/ext/nokogiri/xml_text.h +9 -0
  68. data/ext/nokogiri/xml_xpath.c +53 -0
  69. data/ext/nokogiri/xml_xpath.h +11 -0
  70. data/ext/nokogiri/xml_xpath_context.c +239 -0
  71. data/ext/nokogiri/xml_xpath_context.h +9 -0
  72. data/ext/nokogiri/xslt_stylesheet.c +131 -0
  73. data/ext/nokogiri/xslt_stylesheet.h +9 -0
  74. data/lib/nokogiri.rb +116 -0
  75. data/lib/nokogiri/css.rb +25 -0
  76. data/lib/nokogiri/css/generated_parser.rb +646 -0
  77. data/lib/nokogiri/css/generated_tokenizer.rb +142 -0
  78. data/lib/nokogiri/css/node.rb +99 -0
  79. data/lib/nokogiri/css/parser.rb +82 -0
  80. data/lib/nokogiri/css/parser.y +227 -0
  81. data/lib/nokogiri/css/syntax_error.rb +7 -0
  82. data/lib/nokogiri/css/tokenizer.rb +7 -0
  83. data/lib/nokogiri/css/tokenizer.rex +54 -0
  84. data/lib/nokogiri/css/xpath_visitor.rb +162 -0
  85. data/lib/nokogiri/decorators/slop.rb +33 -0
  86. data/lib/nokogiri/ffi/html/document.rb +28 -0
  87. data/lib/nokogiri/ffi/html/element_description.rb +85 -0
  88. data/lib/nokogiri/ffi/html/entity_lookup.rb +16 -0
  89. data/lib/nokogiri/ffi/html/sax/parser_context.rb +38 -0
  90. data/lib/nokogiri/ffi/io_callbacks.rb +42 -0
  91. data/lib/nokogiri/ffi/libxml.rb +356 -0
  92. data/lib/nokogiri/ffi/structs/common_node.rb +26 -0
  93. data/lib/nokogiri/ffi/structs/html_elem_desc.rb +24 -0
  94. data/lib/nokogiri/ffi/structs/html_entity_desc.rb +13 -0
  95. data/lib/nokogiri/ffi/structs/xml_alloc.rb +16 -0
  96. data/lib/nokogiri/ffi/structs/xml_attr.rb +19 -0
  97. data/lib/nokogiri/ffi/structs/xml_attribute.rb +27 -0
  98. data/lib/nokogiri/ffi/structs/xml_buffer.rb +16 -0
  99. data/lib/nokogiri/ffi/structs/xml_document.rb +108 -0
  100. data/lib/nokogiri/ffi/structs/xml_dtd.rb +28 -0
  101. data/lib/nokogiri/ffi/structs/xml_element.rb +26 -0
  102. data/lib/nokogiri/ffi/structs/xml_element_content.rb +17 -0
  103. data/lib/nokogiri/ffi/structs/xml_entity.rb +32 -0
  104. data/lib/nokogiri/ffi/structs/xml_enumeration.rb +12 -0
  105. data/lib/nokogiri/ffi/structs/xml_node.rb +28 -0
  106. data/lib/nokogiri/ffi/structs/xml_node_set.rb +53 -0
  107. data/lib/nokogiri/ffi/structs/xml_notation.rb +11 -0
  108. data/lib/nokogiri/ffi/structs/xml_ns.rb +15 -0
  109. data/lib/nokogiri/ffi/structs/xml_parser_context.rb +19 -0
  110. data/lib/nokogiri/ffi/structs/xml_relax_ng.rb +14 -0
  111. data/lib/nokogiri/ffi/structs/xml_sax_handler.rb +51 -0
  112. data/lib/nokogiri/ffi/structs/xml_sax_push_parser_context.rb +15 -0
  113. data/lib/nokogiri/ffi/structs/xml_schema.rb +13 -0
  114. data/lib/nokogiri/ffi/structs/xml_syntax_error.rb +31 -0
  115. data/lib/nokogiri/ffi/structs/xml_text_reader.rb +12 -0
  116. data/lib/nokogiri/ffi/structs/xml_xpath_context.rb +37 -0
  117. data/lib/nokogiri/ffi/structs/xml_xpath_object.rb +35 -0
  118. data/lib/nokogiri/ffi/structs/xml_xpath_parser_context.rb +20 -0
  119. data/lib/nokogiri/ffi/structs/xslt_stylesheet.rb +13 -0
  120. data/lib/nokogiri/ffi/xml/attr.rb +41 -0
  121. data/lib/nokogiri/ffi/xml/attribute_decl.rb +27 -0
  122. data/lib/nokogiri/ffi/xml/cdata.rb +19 -0
  123. data/lib/nokogiri/ffi/xml/comment.rb +18 -0
  124. data/lib/nokogiri/ffi/xml/document.rb +135 -0
  125. data/lib/nokogiri/ffi/xml/document_fragment.rb +21 -0
  126. data/lib/nokogiri/ffi/xml/dtd.rb +69 -0
  127. data/lib/nokogiri/ffi/xml/element_content.rb +43 -0
  128. data/lib/nokogiri/ffi/xml/element_decl.rb +19 -0
  129. data/lib/nokogiri/ffi/xml/entity_decl.rb +27 -0
  130. data/lib/nokogiri/ffi/xml/entity_reference.rb +19 -0
  131. data/lib/nokogiri/ffi/xml/namespace.rb +44 -0
  132. data/lib/nokogiri/ffi/xml/node.rb +444 -0
  133. data/lib/nokogiri/ffi/xml/node_set.rb +133 -0
  134. data/lib/nokogiri/ffi/xml/processing_instruction.rb +20 -0
  135. data/lib/nokogiri/ffi/xml/reader.rb +227 -0
  136. data/lib/nokogiri/ffi/xml/relax_ng.rb +85 -0
  137. data/lib/nokogiri/ffi/xml/sax/parser.rb +142 -0
  138. data/lib/nokogiri/ffi/xml/sax/parser_context.rb +67 -0
  139. data/lib/nokogiri/ffi/xml/sax/push_parser.rb +39 -0
  140. data/lib/nokogiri/ffi/xml/schema.rb +92 -0
  141. data/lib/nokogiri/ffi/xml/syntax_error.rb +91 -0
  142. data/lib/nokogiri/ffi/xml/text.rb +18 -0
  143. data/lib/nokogiri/ffi/xml/xpath.rb +19 -0
  144. data/lib/nokogiri/ffi/xml/xpath_context.rb +135 -0
  145. data/lib/nokogiri/ffi/xslt/stylesheet.rb +47 -0
  146. data/lib/nokogiri/html.rb +35 -0
  147. data/lib/nokogiri/html/builder.rb +35 -0
  148. data/lib/nokogiri/html/document.rb +88 -0
  149. data/lib/nokogiri/html/document_fragment.rb +15 -0
  150. data/lib/nokogiri/html/element_description.rb +23 -0
  151. data/lib/nokogiri/html/entity_lookup.rb +13 -0
  152. data/lib/nokogiri/html/sax/parser.rb +48 -0
  153. data/lib/nokogiri/html/sax/parser_context.rb +16 -0
  154. data/lib/nokogiri/syntax_error.rb +4 -0
  155. data/lib/nokogiri/version.rb +33 -0
  156. data/lib/nokogiri/version_warning.rb +11 -0
  157. data/lib/nokogiri/xml.rb +67 -0
  158. data/lib/nokogiri/xml/attr.rb +14 -0
  159. data/lib/nokogiri/xml/attribute_decl.rb +18 -0
  160. data/lib/nokogiri/xml/builder.rb +405 -0
  161. data/lib/nokogiri/xml/cdata.rb +11 -0
  162. data/lib/nokogiri/xml/character_data.rb +7 -0
  163. data/lib/nokogiri/xml/document.rb +131 -0
  164. data/lib/nokogiri/xml/document_fragment.rb +69 -0
  165. data/lib/nokogiri/xml/dtd.rb +11 -0
  166. data/lib/nokogiri/xml/element_content.rb +36 -0
  167. data/lib/nokogiri/xml/element_decl.rb +13 -0
  168. data/lib/nokogiri/xml/entity_decl.rb +15 -0
  169. data/lib/nokogiri/xml/fragment_handler.rb +71 -0
  170. data/lib/nokogiri/xml/namespace.rb +13 -0
  171. data/lib/nokogiri/xml/node.rb +665 -0
  172. data/lib/nokogiri/xml/node/save_options.rb +42 -0
  173. data/lib/nokogiri/xml/node_set.rb +307 -0
  174. data/lib/nokogiri/xml/notation.rb +6 -0
  175. data/lib/nokogiri/xml/parse_options.rb +85 -0
  176. data/lib/nokogiri/xml/pp.rb +2 -0
  177. data/lib/nokogiri/xml/pp/character_data.rb +18 -0
  178. data/lib/nokogiri/xml/pp/node.rb +56 -0
  179. data/lib/nokogiri/xml/processing_instruction.rb +8 -0
  180. data/lib/nokogiri/xml/reader.rb +74 -0
  181. data/lib/nokogiri/xml/relax_ng.rb +32 -0
  182. data/lib/nokogiri/xml/sax.rb +4 -0
  183. data/lib/nokogiri/xml/sax/document.rb +160 -0
  184. data/lib/nokogiri/xml/sax/parser.rb +115 -0
  185. data/lib/nokogiri/xml/sax/parser_context.rb +16 -0
  186. data/lib/nokogiri/xml/sax/push_parser.rb +60 -0
  187. data/lib/nokogiri/xml/schema.rb +61 -0
  188. data/lib/nokogiri/xml/syntax_error.rb +38 -0
  189. data/lib/nokogiri/xml/xpath.rb +10 -0
  190. data/lib/nokogiri/xml/xpath/syntax_error.rb +8 -0
  191. data/lib/nokogiri/xml/xpath_context.rb +16 -0
  192. data/lib/nokogiri/xslt.rb +48 -0
  193. data/lib/nokogiri/xslt/stylesheet.rb +25 -0
  194. data/lib/xsd/xmlparser/nokogiri.rb +71 -0
  195. data/tasks/test.rb +100 -0
  196. data/test/css/test_nthiness.rb +159 -0
  197. data/test/css/test_parser.rb +277 -0
  198. data/test/css/test_tokenizer.rb +183 -0
  199. data/test/css/test_xpath_visitor.rb +76 -0
  200. data/test/ffi/test_document.rb +35 -0
  201. data/test/files/2ch.html +108 -0
  202. data/test/files/address_book.rlx +12 -0
  203. data/test/files/address_book.xml +10 -0
  204. data/test/files/bar/bar.xsd +4 -0
  205. data/test/files/dont_hurt_em_why.xml +422 -0
  206. data/test/files/exslt.xml +8 -0
  207. data/test/files/exslt.xslt +35 -0
  208. data/test/files/foo/foo.xsd +4 -0
  209. data/test/files/po.xml +32 -0
  210. data/test/files/po.xsd +66 -0
  211. data/test/files/shift_jis.html +10 -0
  212. data/test/files/shift_jis.xml +5 -0
  213. data/test/files/snuggles.xml +3 -0
  214. data/test/files/staff.dtd +10 -0
  215. data/test/files/staff.xml +59 -0
  216. data/test/files/staff.xslt +32 -0
  217. data/test/files/tlm.html +850 -0
  218. data/test/files/valid_bar.xml +2 -0
  219. data/test/helper.rb +136 -0
  220. data/test/html/sax/test_parser.rb +64 -0
  221. data/test/html/sax/test_parser_context.rb +48 -0
  222. data/test/html/test_builder.rb +164 -0
  223. data/test/html/test_document.rb +390 -0
  224. data/test/html/test_document_encoding.rb +77 -0
  225. data/test/html/test_document_fragment.rb +132 -0
  226. data/test/html/test_element_description.rb +94 -0
  227. data/test/html/test_named_characters.rb +14 -0
  228. data/test/html/test_node.rb +228 -0
  229. data/test/html/test_node_encoding.rb +27 -0
  230. data/test/test_convert_xpath.rb +135 -0
  231. data/test/test_css_cache.rb +45 -0
  232. data/test/test_gc.rb +15 -0
  233. data/test/test_memory_leak.rb +77 -0
  234. data/test/test_nokogiri.rb +134 -0
  235. data/test/test_reader.rb +358 -0
  236. data/test/test_xslt_transforms.rb +131 -0
  237. data/test/xml/node/test_save_options.rb +20 -0
  238. data/test/xml/node/test_subclass.rb +44 -0
  239. data/test/xml/sax/test_parser.rb +307 -0
  240. data/test/xml/sax/test_parser_context.rb +56 -0
  241. data/test/xml/sax/test_push_parser.rb +131 -0
  242. data/test/xml/test_attr.rb +38 -0
  243. data/test/xml/test_attribute_decl.rb +82 -0
  244. data/test/xml/test_builder.rb +167 -0
  245. data/test/xml/test_cdata.rb +38 -0
  246. data/test/xml/test_comment.rb +29 -0
  247. data/test/xml/test_document.rb +607 -0
  248. data/test/xml/test_document_encoding.rb +26 -0
  249. data/test/xml/test_document_fragment.rb +138 -0
  250. data/test/xml/test_dtd.rb +82 -0
  251. data/test/xml/test_dtd_encoding.rb +33 -0
  252. data/test/xml/test_element_content.rb +56 -0
  253. data/test/xml/test_element_decl.rb +73 -0
  254. data/test/xml/test_entity_decl.rb +83 -0
  255. data/test/xml/test_entity_reference.rb +21 -0
  256. data/test/xml/test_namespace.rb +68 -0
  257. data/test/xml/test_node.rb +889 -0
  258. data/test/xml/test_node_attributes.rb +34 -0
  259. data/test/xml/test_node_encoding.rb +107 -0
  260. data/test/xml/test_node_set.rb +531 -0
  261. data/test/xml/test_parse_options.rb +52 -0
  262. data/test/xml/test_processing_instruction.rb +30 -0
  263. data/test/xml/test_reader_encoding.rb +126 -0
  264. data/test/xml/test_relax_ng.rb +60 -0
  265. data/test/xml/test_schema.rb +89 -0
  266. data/test/xml/test_syntax_error.rb +27 -0
  267. data/test/xml/test_text.rb +30 -0
  268. data/test/xml/test_unparented_node.rb +381 -0
  269. data/test/xml/test_xpath.rb +106 -0
  270. metadata +430 -0
@@ -0,0 +1,106 @@
1
+ require "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,430 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: superfeedr-nokogiri
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.4.0.20091116183308
5
+ platform: ruby
6
+ authors:
7
+ - Aaron Patterson
8
+ - Mike Dalessio
9
+ - Stephan Maka
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+
14
+ date: 2009-11-16 00:00:00 +01:00
15
+ default_executable: nokogiri
16
+ dependencies:
17
+ - !ruby/object:Gem::Dependency
18
+ name: racc
19
+ type: :development
20
+ version_requirement:
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: "0"
26
+ version:
27
+ - !ruby/object:Gem::Dependency
28
+ name: rexical
29
+ type: :development
30
+ version_requirement:
31
+ version_requirements: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: "0"
36
+ version:
37
+ - !ruby/object:Gem::Dependency
38
+ name: rake-compiler
39
+ type: :development
40
+ version_requirement:
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: "0"
46
+ version:
47
+ - !ruby/object:Gem::Dependency
48
+ name: hoe
49
+ type: :development
50
+ version_requirement:
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: 2.3.3
56
+ version:
57
+ description: "Nokogiri (\xE9\x8B\xB8) is an HTML, XML, SAX, and Reader parser. Among Nokogiri's\n\
58
+ many features is the ability to search documents via XPath or CSS3 selectors.\n\n\
59
+ XML is like violence - if it doesn\xE2\x80\x99t solve your problems, you are not using\n\
60
+ enough of it."
61
+ email:
62
+ - aaronp@rubyforge.org
63
+ - mike.dalessio@gmail.com
64
+ - stephan@spaceboyz.net
65
+ executables:
66
+ - nokogiri
67
+ extensions:
68
+ - ext/nokogiri/extconf.rb
69
+ extra_rdoc_files:
70
+ - Manifest.txt
71
+ - README.ja.rdoc
72
+ - CHANGELOG.ja.rdoc
73
+ - CHANGELOG.rdoc
74
+ - README.rdoc
75
+ files:
76
+ - .autotest
77
+ - CHANGELOG.ja.rdoc
78
+ - CHANGELOG.rdoc
79
+ - Manifest.txt
80
+ - README.ja.rdoc
81
+ - README.rdoc
82
+ - Rakefile
83
+ - bin/nokogiri
84
+ - ext/nokogiri/extconf.rb
85
+ - ext/nokogiri/html_document.c
86
+ - ext/nokogiri/html_document.h
87
+ - ext/nokogiri/html_element_description.c
88
+ - ext/nokogiri/html_element_description.h
89
+ - ext/nokogiri/html_entity_lookup.c
90
+ - ext/nokogiri/html_entity_lookup.h
91
+ - ext/nokogiri/html_sax_parser_context.c
92
+ - ext/nokogiri/html_sax_parser_context.h
93
+ - ext/nokogiri/nokogiri.c
94
+ - ext/nokogiri/nokogiri.h
95
+ - ext/nokogiri/xml_attr.c
96
+ - ext/nokogiri/xml_attr.h
97
+ - ext/nokogiri/xml_attribute_decl.c
98
+ - ext/nokogiri/xml_attribute_decl.h
99
+ - ext/nokogiri/xml_cdata.c
100
+ - ext/nokogiri/xml_cdata.h
101
+ - ext/nokogiri/xml_comment.c
102
+ - ext/nokogiri/xml_comment.h
103
+ - ext/nokogiri/xml_document.c
104
+ - ext/nokogiri/xml_document.h
105
+ - ext/nokogiri/xml_document_fragment.c
106
+ - ext/nokogiri/xml_document_fragment.h
107
+ - ext/nokogiri/xml_dtd.c
108
+ - ext/nokogiri/xml_dtd.h
109
+ - ext/nokogiri/xml_element_content.c
110
+ - ext/nokogiri/xml_element_content.h
111
+ - ext/nokogiri/xml_element_decl.c
112
+ - ext/nokogiri/xml_element_decl.h
113
+ - ext/nokogiri/xml_entity_decl.c
114
+ - ext/nokogiri/xml_entity_decl.h
115
+ - ext/nokogiri/xml_entity_reference.c
116
+ - ext/nokogiri/xml_entity_reference.h
117
+ - ext/nokogiri/xml_io.c
118
+ - ext/nokogiri/xml_io.h
119
+ - ext/nokogiri/xml_namespace.c
120
+ - ext/nokogiri/xml_namespace.h
121
+ - ext/nokogiri/xml_node.c
122
+ - ext/nokogiri/xml_node.h
123
+ - ext/nokogiri/xml_node_set.c
124
+ - ext/nokogiri/xml_node_set.h
125
+ - ext/nokogiri/xml_processing_instruction.c
126
+ - ext/nokogiri/xml_processing_instruction.h
127
+ - ext/nokogiri/xml_reader.c
128
+ - ext/nokogiri/xml_reader.h
129
+ - ext/nokogiri/xml_relax_ng.c
130
+ - ext/nokogiri/xml_relax_ng.h
131
+ - ext/nokogiri/xml_sax_parser.c
132
+ - ext/nokogiri/xml_sax_parser.h
133
+ - ext/nokogiri/xml_sax_parser_context.c
134
+ - ext/nokogiri/xml_sax_parser_context.h
135
+ - ext/nokogiri/xml_sax_push_parser.c
136
+ - ext/nokogiri/xml_sax_push_parser.h
137
+ - ext/nokogiri/xml_schema.c
138
+ - ext/nokogiri/xml_schema.h
139
+ - ext/nokogiri/xml_syntax_error.c
140
+ - ext/nokogiri/xml_syntax_error.h
141
+ - ext/nokogiri/xml_text.c
142
+ - ext/nokogiri/xml_text.h
143
+ - ext/nokogiri/xml_xpath.c
144
+ - ext/nokogiri/xml_xpath.h
145
+ - ext/nokogiri/xml_xpath_context.c
146
+ - ext/nokogiri/xml_xpath_context.h
147
+ - ext/nokogiri/xslt_stylesheet.c
148
+ - ext/nokogiri/xslt_stylesheet.h
149
+ - lib/nokogiri.rb
150
+ - lib/nokogiri/css.rb
151
+ - lib/nokogiri/css/generated_parser.rb
152
+ - lib/nokogiri/css/generated_tokenizer.rb
153
+ - lib/nokogiri/css/node.rb
154
+ - lib/nokogiri/css/parser.rb
155
+ - lib/nokogiri/css/parser.y
156
+ - lib/nokogiri/css/syntax_error.rb
157
+ - lib/nokogiri/css/tokenizer.rb
158
+ - lib/nokogiri/css/tokenizer.rex
159
+ - lib/nokogiri/css/xpath_visitor.rb
160
+ - lib/nokogiri/decorators/slop.rb
161
+ - lib/nokogiri/ffi/html/document.rb
162
+ - lib/nokogiri/ffi/html/element_description.rb
163
+ - lib/nokogiri/ffi/html/entity_lookup.rb
164
+ - lib/nokogiri/ffi/html/sax/parser_context.rb
165
+ - lib/nokogiri/ffi/io_callbacks.rb
166
+ - lib/nokogiri/ffi/libxml.rb
167
+ - lib/nokogiri/ffi/structs/common_node.rb
168
+ - lib/nokogiri/ffi/structs/html_elem_desc.rb
169
+ - lib/nokogiri/ffi/structs/html_entity_desc.rb
170
+ - lib/nokogiri/ffi/structs/xml_alloc.rb
171
+ - lib/nokogiri/ffi/structs/xml_attr.rb
172
+ - lib/nokogiri/ffi/structs/xml_attribute.rb
173
+ - lib/nokogiri/ffi/structs/xml_buffer.rb
174
+ - lib/nokogiri/ffi/structs/xml_document.rb
175
+ - lib/nokogiri/ffi/structs/xml_dtd.rb
176
+ - lib/nokogiri/ffi/structs/xml_element.rb
177
+ - lib/nokogiri/ffi/structs/xml_element_content.rb
178
+ - lib/nokogiri/ffi/structs/xml_entity.rb
179
+ - lib/nokogiri/ffi/structs/xml_enumeration.rb
180
+ - lib/nokogiri/ffi/structs/xml_node.rb
181
+ - lib/nokogiri/ffi/structs/xml_node_set.rb
182
+ - lib/nokogiri/ffi/structs/xml_notation.rb
183
+ - lib/nokogiri/ffi/structs/xml_ns.rb
184
+ - lib/nokogiri/ffi/structs/xml_parser_context.rb
185
+ - lib/nokogiri/ffi/structs/xml_relax_ng.rb
186
+ - lib/nokogiri/ffi/structs/xml_sax_handler.rb
187
+ - lib/nokogiri/ffi/structs/xml_sax_push_parser_context.rb
188
+ - lib/nokogiri/ffi/structs/xml_schema.rb
189
+ - lib/nokogiri/ffi/structs/xml_syntax_error.rb
190
+ - lib/nokogiri/ffi/structs/xml_text_reader.rb
191
+ - lib/nokogiri/ffi/structs/xml_xpath_context.rb
192
+ - lib/nokogiri/ffi/structs/xml_xpath_object.rb
193
+ - lib/nokogiri/ffi/structs/xml_xpath_parser_context.rb
194
+ - lib/nokogiri/ffi/structs/xslt_stylesheet.rb
195
+ - lib/nokogiri/ffi/xml/attr.rb
196
+ - lib/nokogiri/ffi/xml/attribute_decl.rb
197
+ - lib/nokogiri/ffi/xml/cdata.rb
198
+ - lib/nokogiri/ffi/xml/comment.rb
199
+ - lib/nokogiri/ffi/xml/document.rb
200
+ - lib/nokogiri/ffi/xml/document_fragment.rb
201
+ - lib/nokogiri/ffi/xml/dtd.rb
202
+ - lib/nokogiri/ffi/xml/element_content.rb
203
+ - lib/nokogiri/ffi/xml/element_decl.rb
204
+ - lib/nokogiri/ffi/xml/entity_decl.rb
205
+ - lib/nokogiri/ffi/xml/entity_reference.rb
206
+ - lib/nokogiri/ffi/xml/namespace.rb
207
+ - lib/nokogiri/ffi/xml/node.rb
208
+ - lib/nokogiri/ffi/xml/node_set.rb
209
+ - lib/nokogiri/ffi/xml/processing_instruction.rb
210
+ - lib/nokogiri/ffi/xml/reader.rb
211
+ - lib/nokogiri/ffi/xml/relax_ng.rb
212
+ - lib/nokogiri/ffi/xml/sax/parser.rb
213
+ - lib/nokogiri/ffi/xml/sax/parser_context.rb
214
+ - lib/nokogiri/ffi/xml/sax/push_parser.rb
215
+ - lib/nokogiri/ffi/xml/schema.rb
216
+ - lib/nokogiri/ffi/xml/syntax_error.rb
217
+ - lib/nokogiri/ffi/xml/text.rb
218
+ - lib/nokogiri/ffi/xml/xpath.rb
219
+ - lib/nokogiri/ffi/xml/xpath_context.rb
220
+ - lib/nokogiri/ffi/xslt/stylesheet.rb
221
+ - lib/nokogiri/html.rb
222
+ - lib/nokogiri/html/builder.rb
223
+ - lib/nokogiri/html/document.rb
224
+ - lib/nokogiri/html/document_fragment.rb
225
+ - lib/nokogiri/html/element_description.rb
226
+ - lib/nokogiri/html/entity_lookup.rb
227
+ - lib/nokogiri/html/sax/parser.rb
228
+ - lib/nokogiri/html/sax/parser_context.rb
229
+ - lib/nokogiri/syntax_error.rb
230
+ - lib/nokogiri/version.rb
231
+ - lib/nokogiri/version_warning.rb
232
+ - lib/nokogiri/xml.rb
233
+ - lib/nokogiri/xml/attr.rb
234
+ - lib/nokogiri/xml/attribute_decl.rb
235
+ - lib/nokogiri/xml/builder.rb
236
+ - lib/nokogiri/xml/cdata.rb
237
+ - lib/nokogiri/xml/character_data.rb
238
+ - lib/nokogiri/xml/document.rb
239
+ - lib/nokogiri/xml/document_fragment.rb
240
+ - lib/nokogiri/xml/dtd.rb
241
+ - lib/nokogiri/xml/element_content.rb
242
+ - lib/nokogiri/xml/element_decl.rb
243
+ - lib/nokogiri/xml/entity_decl.rb
244
+ - lib/nokogiri/xml/fragment_handler.rb
245
+ - lib/nokogiri/xml/namespace.rb
246
+ - lib/nokogiri/xml/node.rb
247
+ - lib/nokogiri/xml/node/save_options.rb
248
+ - lib/nokogiri/xml/node_set.rb
249
+ - lib/nokogiri/xml/notation.rb
250
+ - lib/nokogiri/xml/parse_options.rb
251
+ - lib/nokogiri/xml/pp.rb
252
+ - lib/nokogiri/xml/pp/character_data.rb
253
+ - lib/nokogiri/xml/pp/node.rb
254
+ - lib/nokogiri/xml/processing_instruction.rb
255
+ - lib/nokogiri/xml/reader.rb
256
+ - lib/nokogiri/xml/relax_ng.rb
257
+ - lib/nokogiri/xml/sax.rb
258
+ - lib/nokogiri/xml/sax/document.rb
259
+ - lib/nokogiri/xml/sax/parser.rb
260
+ - lib/nokogiri/xml/sax/parser_context.rb
261
+ - lib/nokogiri/xml/sax/push_parser.rb
262
+ - lib/nokogiri/xml/schema.rb
263
+ - lib/nokogiri/xml/syntax_error.rb
264
+ - lib/nokogiri/xml/xpath.rb
265
+ - lib/nokogiri/xml/xpath/syntax_error.rb
266
+ - lib/nokogiri/xml/xpath_context.rb
267
+ - lib/nokogiri/xslt.rb
268
+ - lib/nokogiri/xslt/stylesheet.rb
269
+ - lib/xsd/xmlparser/nokogiri.rb
270
+ - tasks/test.rb
271
+ - test/css/test_nthiness.rb
272
+ - test/css/test_parser.rb
273
+ - test/css/test_tokenizer.rb
274
+ - test/css/test_xpath_visitor.rb
275
+ - test/ffi/test_document.rb
276
+ - test/files/2ch.html
277
+ - test/files/address_book.rlx
278
+ - test/files/address_book.xml
279
+ - test/files/bar/bar.xsd
280
+ - test/files/dont_hurt_em_why.xml
281
+ - test/files/exslt.xml
282
+ - test/files/exslt.xslt
283
+ - test/files/foo/foo.xsd
284
+ - test/files/po.xml
285
+ - test/files/po.xsd
286
+ - test/files/shift_jis.html
287
+ - test/files/shift_jis.xml
288
+ - test/files/snuggles.xml
289
+ - test/files/staff.dtd
290
+ - test/files/staff.xml
291
+ - test/files/staff.xslt
292
+ - test/files/tlm.html
293
+ - test/files/valid_bar.xml
294
+ - test/helper.rb
295
+ - test/html/sax/test_parser.rb
296
+ - test/html/sax/test_parser_context.rb
297
+ - test/html/test_builder.rb
298
+ - test/html/test_document.rb
299
+ - test/html/test_document_encoding.rb
300
+ - test/html/test_document_fragment.rb
301
+ - test/html/test_element_description.rb
302
+ - test/html/test_named_characters.rb
303
+ - test/html/test_node.rb
304
+ - test/html/test_node_encoding.rb
305
+ - test/test_convert_xpath.rb
306
+ - test/test_css_cache.rb
307
+ - test/test_gc.rb
308
+ - test/test_memory_leak.rb
309
+ - test/test_nokogiri.rb
310
+ - test/test_reader.rb
311
+ - test/test_xslt_transforms.rb
312
+ - test/xml/node/test_save_options.rb
313
+ - test/xml/node/test_subclass.rb
314
+ - test/xml/sax/test_parser.rb
315
+ - test/xml/sax/test_parser_context.rb
316
+ - test/xml/sax/test_push_parser.rb
317
+ - test/xml/test_attr.rb
318
+ - test/xml/test_attribute_decl.rb
319
+ - test/xml/test_builder.rb
320
+ - test/xml/test_cdata.rb
321
+ - test/xml/test_comment.rb
322
+ - test/xml/test_document.rb
323
+ - test/xml/test_document_encoding.rb
324
+ - test/xml/test_document_fragment.rb
325
+ - test/xml/test_dtd.rb
326
+ - test/xml/test_dtd_encoding.rb
327
+ - test/xml/test_element_content.rb
328
+ - test/xml/test_element_decl.rb
329
+ - test/xml/test_entity_decl.rb
330
+ - test/xml/test_entity_reference.rb
331
+ - test/xml/test_namespace.rb
332
+ - test/xml/test_node.rb
333
+ - test/xml/test_node_attributes.rb
334
+ - test/xml/test_node_encoding.rb
335
+ - test/xml/test_node_set.rb
336
+ - test/xml/test_parse_options.rb
337
+ - test/xml/test_processing_instruction.rb
338
+ - test/xml/test_reader_encoding.rb
339
+ - test/xml/test_relax_ng.rb
340
+ - test/xml/test_schema.rb
341
+ - test/xml/test_syntax_error.rb
342
+ - test/xml/test_text.rb
343
+ - test/xml/test_unparented_node.rb
344
+ - test/xml/test_xpath.rb
345
+ has_rdoc: true
346
+ homepage: http://nokogiri.org
347
+ licenses: []
348
+
349
+ post_install_message:
350
+ rdoc_options:
351
+ - --main
352
+ - README.rdoc
353
+ require_paths:
354
+ - lib
355
+ - ext
356
+ required_ruby_version: !ruby/object:Gem::Requirement
357
+ requirements:
358
+ - - ">="
359
+ - !ruby/object:Gem::Version
360
+ version: "0"
361
+ version:
362
+ required_rubygems_version: !ruby/object:Gem::Requirement
363
+ requirements:
364
+ - - ">="
365
+ - !ruby/object:Gem::Version
366
+ version: "0"
367
+ version:
368
+ requirements: []
369
+
370
+ rubyforge_project: nokogiri
371
+ rubygems_version: 1.3.5
372
+ signing_key:
373
+ specification_version: 3
374
+ summary: "Nokogiri (\xE9\x8B\xB8) is an HTML, XML, SAX, and Reader parser"
375
+ test_files:
376
+ - test/css/test_nthiness.rb
377
+ - test/css/test_parser.rb
378
+ - test/css/test_tokenizer.rb
379
+ - test/css/test_xpath_visitor.rb
380
+ - test/html/sax/test_parser.rb
381
+ - test/html/sax/test_parser_context.rb
382
+ - test/html/test_builder.rb
383
+ - test/html/test_document.rb
384
+ - test/html/test_document_encoding.rb
385
+ - test/html/test_element_description.rb
386
+ - test/html/test_named_characters.rb
387
+ - test/html/test_node_encoding.rb
388
+ - test/html/test_document_fragment.rb
389
+ - test/html/test_node.rb
390
+ - test/xml/node/test_save_options.rb
391
+ - test/xml/node/test_subclass.rb
392
+ - test/xml/sax/test_parser.rb
393
+ - test/xml/sax/test_parser_context.rb
394
+ - test/xml/sax/test_push_parser.rb
395
+ - test/xml/test_attr.rb
396
+ - test/xml/test_attribute_decl.rb
397
+ - test/xml/test_builder.rb
398
+ - test/xml/test_cdata.rb
399
+ - test/xml/test_comment.rb
400
+ - test/xml/test_document_encoding.rb
401
+ - test/xml/test_dtd.rb
402
+ - test/xml/test_dtd_encoding.rb
403
+ - test/xml/test_element_content.rb
404
+ - test/xml/test_element_decl.rb
405
+ - test/xml/test_entity_decl.rb
406
+ - test/xml/test_entity_reference.rb
407
+ - test/xml/test_namespace.rb
408
+ - test/xml/test_node_attributes.rb
409
+ - test/xml/test_node_encoding.rb
410
+ - test/xml/test_node_set.rb
411
+ - test/xml/test_parse_options.rb
412
+ - test/xml/test_processing_instruction.rb
413
+ - test/xml/test_reader_encoding.rb
414
+ - test/xml/test_relax_ng.rb
415
+ - test/xml/test_schema.rb
416
+ - test/xml/test_text.rb
417
+ - test/xml/test_unparented_node.rb
418
+ - test/xml/test_xpath.rb
419
+ - test/xml/test_document.rb
420
+ - test/xml/test_document_fragment.rb
421
+ - test/xml/test_node.rb
422
+ - test/xml/test_syntax_error.rb
423
+ - test/ffi/test_document.rb
424
+ - test/test_convert_xpath.rb
425
+ - test/test_css_cache.rb
426
+ - test/test_gc.rb
427
+ - test/test_memory_leak.rb
428
+ - test/test_reader.rb
429
+ - test/test_nokogiri.rb
430
+ - test/test_xslt_transforms.rb