nokogiri-fitzsimmons 1.5.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (237) hide show
  1. data/.autotest +26 -0
  2. data/.gemtest +0 -0
  3. data/CHANGELOG.ja.rdoc +666 -0
  4. data/CHANGELOG.rdoc +659 -0
  5. data/C_CODING_STYLE.rdoc +33 -0
  6. data/Manifest.txt +295 -0
  7. data/README.ja.rdoc +106 -0
  8. data/README.rdoc +178 -0
  9. data/ROADMAP.md +86 -0
  10. data/Rakefile +194 -0
  11. data/STANDARD_RESPONSES.md +47 -0
  12. data/Y_U_NO_GEMSPEC.md +155 -0
  13. data/bin/nokogiri +63 -0
  14. data/build_all +58 -0
  15. data/ext/nokogiri/depend +358 -0
  16. data/ext/nokogiri/extconf.rb +142 -0
  17. data/ext/nokogiri/html_document.c +170 -0
  18. data/ext/nokogiri/html_document.h +10 -0
  19. data/ext/nokogiri/html_element_description.c +276 -0
  20. data/ext/nokogiri/html_element_description.h +10 -0
  21. data/ext/nokogiri/html_entity_lookup.c +32 -0
  22. data/ext/nokogiri/html_entity_lookup.h +8 -0
  23. data/ext/nokogiri/html_sax_parser_context.c +116 -0
  24. data/ext/nokogiri/html_sax_parser_context.h +11 -0
  25. data/ext/nokogiri/html_sax_push_parser.c +87 -0
  26. data/ext/nokogiri/html_sax_push_parser.h +9 -0
  27. data/ext/nokogiri/nokogiri.c +133 -0
  28. data/ext/nokogiri/nokogiri.h +160 -0
  29. data/ext/nokogiri/xml_attr.c +94 -0
  30. data/ext/nokogiri/xml_attr.h +9 -0
  31. data/ext/nokogiri/xml_attribute_decl.c +70 -0
  32. data/ext/nokogiri/xml_attribute_decl.h +9 -0
  33. data/ext/nokogiri/xml_cdata.c +56 -0
  34. data/ext/nokogiri/xml_cdata.h +9 -0
  35. data/ext/nokogiri/xml_comment.c +54 -0
  36. data/ext/nokogiri/xml_comment.h +9 -0
  37. data/ext/nokogiri/xml_document.c +576 -0
  38. data/ext/nokogiri/xml_document.h +23 -0
  39. data/ext/nokogiri/xml_document_fragment.c +48 -0
  40. data/ext/nokogiri/xml_document_fragment.h +10 -0
  41. data/ext/nokogiri/xml_dtd.c +202 -0
  42. data/ext/nokogiri/xml_dtd.h +10 -0
  43. data/ext/nokogiri/xml_element_content.c +123 -0
  44. data/ext/nokogiri/xml_element_content.h +10 -0
  45. data/ext/nokogiri/xml_element_decl.c +69 -0
  46. data/ext/nokogiri/xml_element_decl.h +9 -0
  47. data/ext/nokogiri/xml_encoding_handler.c +79 -0
  48. data/ext/nokogiri/xml_encoding_handler.h +8 -0
  49. data/ext/nokogiri/xml_entity_decl.c +110 -0
  50. data/ext/nokogiri/xml_entity_decl.h +10 -0
  51. data/ext/nokogiri/xml_entity_reference.c +52 -0
  52. data/ext/nokogiri/xml_entity_reference.h +9 -0
  53. data/ext/nokogiri/xml_io.c +56 -0
  54. data/ext/nokogiri/xml_io.h +11 -0
  55. data/ext/nokogiri/xml_libxml2_hacks.c +112 -0
  56. data/ext/nokogiri/xml_libxml2_hacks.h +12 -0
  57. data/ext/nokogiri/xml_namespace.c +78 -0
  58. data/ext/nokogiri/xml_namespace.h +13 -0
  59. data/ext/nokogiri/xml_node.c +1480 -0
  60. data/ext/nokogiri/xml_node.h +13 -0
  61. data/ext/nokogiri/xml_node_set.c +467 -0
  62. data/ext/nokogiri/xml_node_set.h +14 -0
  63. data/ext/nokogiri/xml_processing_instruction.c +56 -0
  64. data/ext/nokogiri/xml_processing_instruction.h +9 -0
  65. data/ext/nokogiri/xml_reader.c +684 -0
  66. data/ext/nokogiri/xml_reader.h +10 -0
  67. data/ext/nokogiri/xml_relax_ng.c +161 -0
  68. data/ext/nokogiri/xml_relax_ng.h +9 -0
  69. data/ext/nokogiri/xml_sax_parser.c +293 -0
  70. data/ext/nokogiri/xml_sax_parser.h +39 -0
  71. data/ext/nokogiri/xml_sax_parser_context.c +222 -0
  72. data/ext/nokogiri/xml_sax_parser_context.h +10 -0
  73. data/ext/nokogiri/xml_sax_push_parser.c +115 -0
  74. data/ext/nokogiri/xml_sax_push_parser.h +9 -0
  75. data/ext/nokogiri/xml_schema.c +205 -0
  76. data/ext/nokogiri/xml_schema.h +9 -0
  77. data/ext/nokogiri/xml_syntax_error.c +58 -0
  78. data/ext/nokogiri/xml_syntax_error.h +13 -0
  79. data/ext/nokogiri/xml_text.c +52 -0
  80. data/ext/nokogiri/xml_text.h +9 -0
  81. data/ext/nokogiri/xml_xpath_context.c +319 -0
  82. data/ext/nokogiri/xml_xpath_context.h +10 -0
  83. data/ext/nokogiri/xslt_stylesheet.c +270 -0
  84. data/ext/nokogiri/xslt_stylesheet.h +14 -0
  85. data/lib/nokogiri.rb +127 -0
  86. data/lib/nokogiri/css.rb +27 -0
  87. data/lib/nokogiri/css/node.rb +102 -0
  88. data/lib/nokogiri/css/parser.rb +720 -0
  89. data/lib/nokogiri/css/parser.y +258 -0
  90. data/lib/nokogiri/css/parser_extras.rb +91 -0
  91. data/lib/nokogiri/css/syntax_error.rb +7 -0
  92. data/lib/nokogiri/css/tokenizer.rb +152 -0
  93. data/lib/nokogiri/css/tokenizer.rex +55 -0
  94. data/lib/nokogiri/css/xpath_visitor.rb +171 -0
  95. data/lib/nokogiri/decorators/slop.rb +35 -0
  96. data/lib/nokogiri/html.rb +37 -0
  97. data/lib/nokogiri/html/builder.rb +35 -0
  98. data/lib/nokogiri/html/document.rb +254 -0
  99. data/lib/nokogiri/html/document_fragment.rb +41 -0
  100. data/lib/nokogiri/html/element_description.rb +23 -0
  101. data/lib/nokogiri/html/element_description_defaults.rb +671 -0
  102. data/lib/nokogiri/html/entity_lookup.rb +13 -0
  103. data/lib/nokogiri/html/sax/parser.rb +52 -0
  104. data/lib/nokogiri/html/sax/parser_context.rb +16 -0
  105. data/lib/nokogiri/html/sax/push_parser.rb +16 -0
  106. data/lib/nokogiri/syntax_error.rb +4 -0
  107. data/lib/nokogiri/version.rb +88 -0
  108. data/lib/nokogiri/xml.rb +73 -0
  109. data/lib/nokogiri/xml/attr.rb +14 -0
  110. data/lib/nokogiri/xml/attribute_decl.rb +18 -0
  111. data/lib/nokogiri/xml/builder.rb +431 -0
  112. data/lib/nokogiri/xml/cdata.rb +11 -0
  113. data/lib/nokogiri/xml/character_data.rb +7 -0
  114. data/lib/nokogiri/xml/document.rb +267 -0
  115. data/lib/nokogiri/xml/document_fragment.rb +103 -0
  116. data/lib/nokogiri/xml/dtd.rb +22 -0
  117. data/lib/nokogiri/xml/element_content.rb +36 -0
  118. data/lib/nokogiri/xml/element_decl.rb +13 -0
  119. data/lib/nokogiri/xml/entity_decl.rb +19 -0
  120. data/lib/nokogiri/xml/namespace.rb +13 -0
  121. data/lib/nokogiri/xml/node.rb +946 -0
  122. data/lib/nokogiri/xml/node/save_options.rb +61 -0
  123. data/lib/nokogiri/xml/node_set.rb +357 -0
  124. data/lib/nokogiri/xml/notation.rb +6 -0
  125. data/lib/nokogiri/xml/parse_options.rb +98 -0
  126. data/lib/nokogiri/xml/pp.rb +2 -0
  127. data/lib/nokogiri/xml/pp/character_data.rb +18 -0
  128. data/lib/nokogiri/xml/pp/node.rb +56 -0
  129. data/lib/nokogiri/xml/processing_instruction.rb +8 -0
  130. data/lib/nokogiri/xml/reader.rb +112 -0
  131. data/lib/nokogiri/xml/relax_ng.rb +32 -0
  132. data/lib/nokogiri/xml/sax.rb +4 -0
  133. data/lib/nokogiri/xml/sax/document.rb +164 -0
  134. data/lib/nokogiri/xml/sax/parser.rb +115 -0
  135. data/lib/nokogiri/xml/sax/parser_context.rb +16 -0
  136. data/lib/nokogiri/xml/sax/push_parser.rb +60 -0
  137. data/lib/nokogiri/xml/schema.rb +63 -0
  138. data/lib/nokogiri/xml/syntax_error.rb +47 -0
  139. data/lib/nokogiri/xml/text.rb +9 -0
  140. data/lib/nokogiri/xml/xpath.rb +10 -0
  141. data/lib/nokogiri/xml/xpath/syntax_error.rb +11 -0
  142. data/lib/nokogiri/xml/xpath_context.rb +16 -0
  143. data/lib/nokogiri/xslt.rb +56 -0
  144. data/lib/nokogiri/xslt/stylesheet.rb +25 -0
  145. data/lib/xsd/xmlparser/nokogiri.rb +90 -0
  146. data/tasks/cross_compile.rb +153 -0
  147. data/tasks/nokogiri.org.rb +24 -0
  148. data/tasks/test.rb +95 -0
  149. data/test/css/test_nthiness.rb +159 -0
  150. data/test/css/test_parser.rb +341 -0
  151. data/test/css/test_tokenizer.rb +198 -0
  152. data/test/css/test_xpath_visitor.rb +91 -0
  153. data/test/decorators/test_slop.rb +16 -0
  154. data/test/files/2ch.html +108 -0
  155. data/test/files/address_book.rlx +12 -0
  156. data/test/files/address_book.xml +10 -0
  157. data/test/files/bar/bar.xsd +4 -0
  158. data/test/files/dont_hurt_em_why.xml +422 -0
  159. data/test/files/encoding.html +82 -0
  160. data/test/files/encoding.xhtml +84 -0
  161. data/test/files/exslt.xml +8 -0
  162. data/test/files/exslt.xslt +35 -0
  163. data/test/files/foo/foo.xsd +4 -0
  164. data/test/files/metacharset.html +10 -0
  165. data/test/files/noencoding.html +47 -0
  166. data/test/files/po.xml +32 -0
  167. data/test/files/po.xsd +66 -0
  168. data/test/files/shift_jis.html +10 -0
  169. data/test/files/shift_jis.xml +5 -0
  170. data/test/files/snuggles.xml +3 -0
  171. data/test/files/staff.dtd +10 -0
  172. data/test/files/staff.xml +59 -0
  173. data/test/files/staff.xslt +32 -0
  174. data/test/files/tlm.html +850 -0
  175. data/test/files/to_be_xincluded.xml +2 -0
  176. data/test/files/valid_bar.xml +2 -0
  177. data/test/files/xinclude.xml +4 -0
  178. data/test/helper.rb +147 -0
  179. data/test/html/sax/test_parser.rb +138 -0
  180. data/test/html/sax/test_parser_context.rb +46 -0
  181. data/test/html/test_builder.rb +164 -0
  182. data/test/html/test_document.rb +529 -0
  183. data/test/html/test_document_encoding.rb +138 -0
  184. data/test/html/test_document_fragment.rb +254 -0
  185. data/test/html/test_element_description.rb +100 -0
  186. data/test/html/test_named_characters.rb +14 -0
  187. data/test/html/test_node.rb +188 -0
  188. data/test/html/test_node_encoding.rb +27 -0
  189. data/test/test_convert_xpath.rb +135 -0
  190. data/test/test_css_cache.rb +45 -0
  191. data/test/test_encoding_handler.rb +46 -0
  192. data/test/test_memory_leak.rb +152 -0
  193. data/test/test_nokogiri.rb +132 -0
  194. data/test/test_reader.rb +488 -0
  195. data/test/test_soap4r_sax.rb +52 -0
  196. data/test/test_xslt_transforms.rb +254 -0
  197. data/test/xml/node/test_save_options.rb +28 -0
  198. data/test/xml/node/test_subclass.rb +44 -0
  199. data/test/xml/sax/test_parser.rb +338 -0
  200. data/test/xml/sax/test_parser_context.rb +106 -0
  201. data/test/xml/sax/test_push_parser.rb +157 -0
  202. data/test/xml/test_attr.rb +64 -0
  203. data/test/xml/test_attribute_decl.rb +86 -0
  204. data/test/xml/test_builder.rb +248 -0
  205. data/test/xml/test_c14n.rb +151 -0
  206. data/test/xml/test_cdata.rb +48 -0
  207. data/test/xml/test_comment.rb +29 -0
  208. data/test/xml/test_document.rb +742 -0
  209. data/test/xml/test_document_encoding.rb +28 -0
  210. data/test/xml/test_document_fragment.rb +216 -0
  211. data/test/xml/test_dtd.rb +103 -0
  212. data/test/xml/test_dtd_encoding.rb +33 -0
  213. data/test/xml/test_element_content.rb +56 -0
  214. data/test/xml/test_element_decl.rb +73 -0
  215. data/test/xml/test_entity_decl.rb +122 -0
  216. data/test/xml/test_entity_reference.rb +235 -0
  217. data/test/xml/test_namespace.rb +75 -0
  218. data/test/xml/test_node.rb +1029 -0
  219. data/test/xml/test_node_attributes.rb +53 -0
  220. data/test/xml/test_node_encoding.rb +107 -0
  221. data/test/xml/test_node_inheritance.rb +32 -0
  222. data/test/xml/test_node_reparenting.rb +374 -0
  223. data/test/xml/test_node_set.rb +755 -0
  224. data/test/xml/test_parse_options.rb +64 -0
  225. data/test/xml/test_processing_instruction.rb +30 -0
  226. data/test/xml/test_reader_encoding.rb +142 -0
  227. data/test/xml/test_relax_ng.rb +60 -0
  228. data/test/xml/test_schema.rb +94 -0
  229. data/test/xml/test_syntax_error.rb +12 -0
  230. data/test/xml/test_text.rb +45 -0
  231. data/test/xml/test_unparented_node.rb +413 -0
  232. data/test/xml/test_xinclude.rb +83 -0
  233. data/test/xml/test_xpath.rb +295 -0
  234. data/test/xslt/test_custom_functions.rb +129 -0
  235. data/test/xslt/test_exception_handling.rb +37 -0
  236. data/test_all +84 -0
  237. metadata +534 -0
@@ -0,0 +1,33 @@
1
+ = C/C++ mode style for Nokogiri
2
+
3
+ Please don't propose commits that only change whitespace. However, if your
4
+ commit touches a function or section that is not using MRI Ruby conventions,
5
+ feel free to update whitespace in the surrounding code.
6
+
7
+
8
+ = WHITESPACE:
9
+
10
+ * indent level: 2
11
+ * indent type: Always spaces
12
+ * line Breaks: LF
13
+
14
+ This style can be automatically applied by running:
15
+
16
+ astyle --indent=spaces=2 --style=1tbs --keep-one-line-blocks $(ack -f --type=cpp --type=cc ext/nokogiri)
17
+
18
+
19
+ = FUNCTION DECLARATION:
20
+
21
+ ANSI C style:
22
+
23
+ type name(args)
24
+ {
25
+ declarations
26
+
27
+ code
28
+ }
29
+
30
+ = SOURCES:
31
+
32
+ * <3<3<3
33
+
data/Manifest.txt ADDED
@@ -0,0 +1,295 @@
1
+ .autotest
2
+ .gemtest
3
+ CHANGELOG.ja.rdoc
4
+ CHANGELOG.rdoc
5
+ C_CODING_STYLE.rdoc
6
+ Manifest.txt
7
+ README.ja.rdoc
8
+ README.rdoc
9
+ ROADMAP.md
10
+ Rakefile
11
+ STANDARD_RESPONSES.md
12
+ Y_U_NO_GEMSPEC.md
13
+ bin/nokogiri
14
+ build_all
15
+ ext/java/nokogiri/EncodingHandler.java
16
+ ext/java/nokogiri/HtmlDocument.java
17
+ ext/java/nokogiri/HtmlElementDescription.java
18
+ ext/java/nokogiri/HtmlEntityLookup.java
19
+ ext/java/nokogiri/HtmlSaxParserContext.java
20
+ ext/java/nokogiri/NokogiriService.java
21
+ ext/java/nokogiri/XmlAttr.java
22
+ ext/java/nokogiri/XmlAttributeDecl.java
23
+ ext/java/nokogiri/XmlCdata.java
24
+ ext/java/nokogiri/XmlComment.java
25
+ ext/java/nokogiri/XmlDocument.java
26
+ ext/java/nokogiri/XmlDocumentFragment.java
27
+ ext/java/nokogiri/XmlDtd.java
28
+ ext/java/nokogiri/XmlElement.java
29
+ ext/java/nokogiri/XmlElementContent.java
30
+ ext/java/nokogiri/XmlElementDecl.java
31
+ ext/java/nokogiri/XmlEntityDecl.java
32
+ ext/java/nokogiri/XmlEntityReference.java
33
+ ext/java/nokogiri/XmlNamespace.java
34
+ ext/java/nokogiri/XmlNode.java
35
+ ext/java/nokogiri/XmlNodeSet.java
36
+ ext/java/nokogiri/XmlProcessingInstruction.java
37
+ ext/java/nokogiri/XmlReader.java
38
+ ext/java/nokogiri/XmlRelaxng.java
39
+ ext/java/nokogiri/XmlSaxParserContext.java
40
+ ext/java/nokogiri/XmlSaxPushParser.java
41
+ ext/java/nokogiri/XmlSchema.java
42
+ ext/java/nokogiri/XmlSyntaxError.java
43
+ ext/java/nokogiri/XmlText.java
44
+ ext/java/nokogiri/XmlXpathContext.java
45
+ ext/java/nokogiri/XsltStylesheet.java
46
+ ext/java/nokogiri/internals/HtmlDomParserContext.java
47
+ ext/java/nokogiri/internals/NokogiriDocumentCache.java
48
+ ext/java/nokogiri/internals/NokogiriErrorHandler.java
49
+ ext/java/nokogiri/internals/NokogiriHandler.java
50
+ ext/java/nokogiri/internals/NokogiriHelpers.java
51
+ ext/java/nokogiri/internals/NokogiriNamespaceCache.java
52
+ ext/java/nokogiri/internals/NokogiriNamespaceContext.java
53
+ ext/java/nokogiri/internals/NokogiriNonStrictErrorHandler.java
54
+ ext/java/nokogiri/internals/NokogiriNonStrictErrorHandler4NekoHtml.java
55
+ ext/java/nokogiri/internals/NokogiriStrictErrorHandler.java
56
+ ext/java/nokogiri/internals/NokogiriXPathFunction.java
57
+ ext/java/nokogiri/internals/NokogiriXPathFunctionResolver.java
58
+ ext/java/nokogiri/internals/NokogiriXPathVariableResolver.java
59
+ ext/java/nokogiri/internals/NokogiriXsltErrorListener.java
60
+ ext/java/nokogiri/internals/ParserContext.java
61
+ ext/java/nokogiri/internals/ReaderNode.java
62
+ ext/java/nokogiri/internals/SaveContextVisitor.java
63
+ ext/java/nokogiri/internals/SchemaErrorHandler.java
64
+ ext/java/nokogiri/internals/XmlDeclHandler.java
65
+ ext/java/nokogiri/internals/XmlDomParser.java
66
+ ext/java/nokogiri/internals/XmlDomParserContext.java
67
+ ext/java/nokogiri/internals/XmlSaxParser.java
68
+ ext/java/nokogiri/internals/XsltExtensionFunction.java
69
+ ext/nokogiri/depend
70
+ ext/nokogiri/extconf.rb
71
+ ext/nokogiri/html_document.c
72
+ ext/nokogiri/html_document.h
73
+ ext/nokogiri/html_element_description.c
74
+ ext/nokogiri/html_element_description.h
75
+ ext/nokogiri/html_entity_lookup.c
76
+ ext/nokogiri/html_entity_lookup.h
77
+ ext/nokogiri/html_sax_parser_context.c
78
+ ext/nokogiri/html_sax_parser_context.h
79
+ ext/nokogiri/html_sax_push_parser.c
80
+ ext/nokogiri/html_sax_push_parser.h
81
+ ext/nokogiri/nokogiri.c
82
+ ext/nokogiri/nokogiri.h
83
+ ext/nokogiri/xml_attr.c
84
+ ext/nokogiri/xml_attr.h
85
+ ext/nokogiri/xml_attribute_decl.c
86
+ ext/nokogiri/xml_attribute_decl.h
87
+ ext/nokogiri/xml_cdata.c
88
+ ext/nokogiri/xml_cdata.h
89
+ ext/nokogiri/xml_comment.c
90
+ ext/nokogiri/xml_comment.h
91
+ ext/nokogiri/xml_document.c
92
+ ext/nokogiri/xml_document.h
93
+ ext/nokogiri/xml_document_fragment.c
94
+ ext/nokogiri/xml_document_fragment.h
95
+ ext/nokogiri/xml_dtd.c
96
+ ext/nokogiri/xml_dtd.h
97
+ ext/nokogiri/xml_element_content.c
98
+ ext/nokogiri/xml_element_content.h
99
+ ext/nokogiri/xml_element_decl.c
100
+ ext/nokogiri/xml_element_decl.h
101
+ ext/nokogiri/xml_encoding_handler.c
102
+ ext/nokogiri/xml_encoding_handler.h
103
+ ext/nokogiri/xml_entity_decl.c
104
+ ext/nokogiri/xml_entity_decl.h
105
+ ext/nokogiri/xml_entity_reference.c
106
+ ext/nokogiri/xml_entity_reference.h
107
+ ext/nokogiri/xml_io.c
108
+ ext/nokogiri/xml_io.h
109
+ ext/nokogiri/xml_libxml2_hacks.c
110
+ ext/nokogiri/xml_libxml2_hacks.h
111
+ ext/nokogiri/xml_namespace.c
112
+ ext/nokogiri/xml_namespace.h
113
+ ext/nokogiri/xml_node.c
114
+ ext/nokogiri/xml_node.h
115
+ ext/nokogiri/xml_node_set.c
116
+ ext/nokogiri/xml_node_set.h
117
+ ext/nokogiri/xml_processing_instruction.c
118
+ ext/nokogiri/xml_processing_instruction.h
119
+ ext/nokogiri/xml_reader.c
120
+ ext/nokogiri/xml_reader.h
121
+ ext/nokogiri/xml_relax_ng.c
122
+ ext/nokogiri/xml_relax_ng.h
123
+ ext/nokogiri/xml_sax_parser.c
124
+ ext/nokogiri/xml_sax_parser.h
125
+ ext/nokogiri/xml_sax_parser_context.c
126
+ ext/nokogiri/xml_sax_parser_context.h
127
+ ext/nokogiri/xml_sax_push_parser.c
128
+ ext/nokogiri/xml_sax_push_parser.h
129
+ ext/nokogiri/xml_schema.c
130
+ ext/nokogiri/xml_schema.h
131
+ ext/nokogiri/xml_syntax_error.c
132
+ ext/nokogiri/xml_syntax_error.h
133
+ ext/nokogiri/xml_text.c
134
+ ext/nokogiri/xml_text.h
135
+ ext/nokogiri/xml_xpath_context.c
136
+ ext/nokogiri/xml_xpath_context.h
137
+ ext/nokogiri/xslt_stylesheet.c
138
+ ext/nokogiri/xslt_stylesheet.h
139
+ lib/isorelax.jar
140
+ lib/jing.jar
141
+ lib/nekodtd.jar
142
+ lib/nekohtml.jar
143
+ lib/nokogiri.rb
144
+ lib/nokogiri/css.rb
145
+ lib/nokogiri/css/node.rb
146
+ lib/nokogiri/css/parser.rb
147
+ lib/nokogiri/css/parser.y
148
+ lib/nokogiri/css/parser_extras.rb
149
+ lib/nokogiri/css/syntax_error.rb
150
+ lib/nokogiri/css/tokenizer.rb
151
+ lib/nokogiri/css/tokenizer.rex
152
+ lib/nokogiri/css/xpath_visitor.rb
153
+ lib/nokogiri/decorators/slop.rb
154
+ lib/nokogiri/html.rb
155
+ lib/nokogiri/html/builder.rb
156
+ lib/nokogiri/html/document.rb
157
+ lib/nokogiri/html/document_fragment.rb
158
+ lib/nokogiri/html/element_description.rb
159
+ lib/nokogiri/html/element_description_defaults.rb
160
+ lib/nokogiri/html/entity_lookup.rb
161
+ lib/nokogiri/html/sax/parser.rb
162
+ lib/nokogiri/html/sax/parser_context.rb
163
+ lib/nokogiri/html/sax/push_parser.rb
164
+ lib/nokogiri/syntax_error.rb
165
+ lib/nokogiri/version.rb
166
+ lib/nokogiri/xml.rb
167
+ lib/nokogiri/xml/attr.rb
168
+ lib/nokogiri/xml/attribute_decl.rb
169
+ lib/nokogiri/xml/builder.rb
170
+ lib/nokogiri/xml/cdata.rb
171
+ lib/nokogiri/xml/character_data.rb
172
+ lib/nokogiri/xml/document.rb
173
+ lib/nokogiri/xml/document_fragment.rb
174
+ lib/nokogiri/xml/dtd.rb
175
+ lib/nokogiri/xml/element_content.rb
176
+ lib/nokogiri/xml/element_decl.rb
177
+ lib/nokogiri/xml/entity_decl.rb
178
+ lib/nokogiri/xml/namespace.rb
179
+ lib/nokogiri/xml/node.rb
180
+ lib/nokogiri/xml/node/save_options.rb
181
+ lib/nokogiri/xml/node_set.rb
182
+ lib/nokogiri/xml/notation.rb
183
+ lib/nokogiri/xml/parse_options.rb
184
+ lib/nokogiri/xml/pp.rb
185
+ lib/nokogiri/xml/pp/character_data.rb
186
+ lib/nokogiri/xml/pp/node.rb
187
+ lib/nokogiri/xml/processing_instruction.rb
188
+ lib/nokogiri/xml/reader.rb
189
+ lib/nokogiri/xml/relax_ng.rb
190
+ lib/nokogiri/xml/sax.rb
191
+ lib/nokogiri/xml/sax/document.rb
192
+ lib/nokogiri/xml/sax/parser.rb
193
+ lib/nokogiri/xml/sax/parser_context.rb
194
+ lib/nokogiri/xml/sax/push_parser.rb
195
+ lib/nokogiri/xml/schema.rb
196
+ lib/nokogiri/xml/syntax_error.rb
197
+ lib/nokogiri/xml/text.rb
198
+ lib/nokogiri/xml/xpath.rb
199
+ lib/nokogiri/xml/xpath/syntax_error.rb
200
+ lib/nokogiri/xml/xpath_context.rb
201
+ lib/nokogiri/xslt.rb
202
+ lib/nokogiri/xslt/stylesheet.rb
203
+ lib/xercesImpl.jar
204
+ lib/xsd/xmlparser/nokogiri.rb
205
+ tasks/cross_compile.rb
206
+ tasks/nokogiri.org.rb
207
+ tasks/test.rb
208
+ test/css/test_nthiness.rb
209
+ test/css/test_parser.rb
210
+ test/css/test_tokenizer.rb
211
+ test/css/test_xpath_visitor.rb
212
+ test/decorators/test_slop.rb
213
+ test/files/2ch.html
214
+ test/files/address_book.rlx
215
+ test/files/address_book.xml
216
+ test/files/bar/bar.xsd
217
+ test/files/dont_hurt_em_why.xml
218
+ test/files/encoding.html
219
+ test/files/encoding.xhtml
220
+ test/files/exslt.xml
221
+ test/files/exslt.xslt
222
+ test/files/foo/foo.xsd
223
+ test/files/metacharset.html
224
+ test/files/noencoding.html
225
+ test/files/po.xml
226
+ test/files/po.xsd
227
+ test/files/shift_jis.html
228
+ test/files/shift_jis.xml
229
+ test/files/snuggles.xml
230
+ test/files/staff.dtd
231
+ test/files/staff.xml
232
+ test/files/staff.xslt
233
+ test/files/tlm.html
234
+ test/files/to_be_xincluded.xml
235
+ test/files/valid_bar.xml
236
+ test/files/xinclude.xml
237
+ test/helper.rb
238
+ test/html/sax/test_parser.rb
239
+ test/html/sax/test_parser_context.rb
240
+ test/html/test_builder.rb
241
+ test/html/test_document.rb
242
+ test/html/test_document_encoding.rb
243
+ test/html/test_document_fragment.rb
244
+ test/html/test_element_description.rb
245
+ test/html/test_named_characters.rb
246
+ test/html/test_node.rb
247
+ test/html/test_node_encoding.rb
248
+ test/test_convert_xpath.rb
249
+ test/test_css_cache.rb
250
+ test/test_encoding_handler.rb
251
+ test/test_memory_leak.rb
252
+ test/test_nokogiri.rb
253
+ test/test_reader.rb
254
+ test/test_soap4r_sax.rb
255
+ test/test_xslt_transforms.rb
256
+ test/xml/node/test_save_options.rb
257
+ test/xml/node/test_subclass.rb
258
+ test/xml/sax/test_parser.rb
259
+ test/xml/sax/test_parser_context.rb
260
+ test/xml/sax/test_push_parser.rb
261
+ test/xml/test_attr.rb
262
+ test/xml/test_attribute_decl.rb
263
+ test/xml/test_builder.rb
264
+ test/xml/test_c14n.rb
265
+ test/xml/test_cdata.rb
266
+ test/xml/test_comment.rb
267
+ test/xml/test_document.rb
268
+ test/xml/test_document_encoding.rb
269
+ test/xml/test_document_fragment.rb
270
+ test/xml/test_dtd.rb
271
+ test/xml/test_dtd_encoding.rb
272
+ test/xml/test_element_content.rb
273
+ test/xml/test_element_decl.rb
274
+ test/xml/test_entity_decl.rb
275
+ test/xml/test_entity_reference.rb
276
+ test/xml/test_namespace.rb
277
+ test/xml/test_node.rb
278
+ test/xml/test_node_attributes.rb
279
+ test/xml/test_node_encoding.rb
280
+ test/xml/test_node_inheritance.rb
281
+ test/xml/test_node_reparenting.rb
282
+ test/xml/test_node_set.rb
283
+ test/xml/test_parse_options.rb
284
+ test/xml/test_processing_instruction.rb
285
+ test/xml/test_reader_encoding.rb
286
+ test/xml/test_relax_ng.rb
287
+ test/xml/test_schema.rb
288
+ test/xml/test_syntax_error.rb
289
+ test/xml/test_text.rb
290
+ test/xml/test_unparented_node.rb
291
+ test/xml/test_xinclude.rb
292
+ test/xml/test_xpath.rb
293
+ test/xslt/test_custom_functions.rb
294
+ test/xslt/test_exception_handling.rb
295
+ test_all
data/README.ja.rdoc ADDED
@@ -0,0 +1,106 @@
1
+ = Nokogiri (鋸)
2
+
3
+ * http://nokogiri.org/
4
+ * http://github.com/sparklemotion/nokogiri/wikis
5
+ * http://github.com/sparklemotion/nokogiri/tree/master
6
+ * http://groups.google.com/group/nokogiri-list
7
+ * http://github.com/sparklemotion/nokogiri/issues
8
+
9
+ == DESCRIPTION:
10
+
11
+ Nokogiri はHTMLとXMLとSAXとXSLTとReaderのパーサーです。とりわけ重要な特徴は、
12
+ ドキュメントをXPathやCSS3セレクター経由で探索する機能を持つことです。
13
+
14
+ XMLは暴力に似ている - XMLが君の問題を解決しないとしたら、君はXMLを十分に
15
+ 使いこなしていない事になる。
16
+
17
+ == FEATURES:
18
+
19
+ * XPath による探索
20
+ * CSS3 のセレクターによる探索
21
+ * XML/HTMLのビルダー
22
+
23
+ XML/HTMLの高速な解析と探索検索、ならびにCSS3セレクタとXPathをサポートしています。
24
+
25
+ == SUPPORT:
26
+
27
+ 日本語でNokogiriの
28
+ {メーリングリスト}[http://groups.google.com/group/nokogiri-list]
29
+
30
+ * http://groups.google.com/group/nokogiri-list
31
+
32
+ {バグ報告}[http://github.com/sparklemotion/nokogiri/issues]
33
+
34
+ * http://github.com/sparklemotion/nokogiri/issues
35
+
36
+ IRCのチャンネルはfreenodeの #nokogiri です。
37
+
38
+ == SYNOPSIS:
39
+
40
+ require 'nokogiri'
41
+ require 'open-uri'
42
+
43
+ doc = Nokogiri::HTML(open('http://www.google.com/search?q=tenderlove'))
44
+
45
+ ####
46
+ # Search for nodes by css
47
+ doc.css('h3.r a.l').each do |link|
48
+ puts link.content
49
+ end
50
+
51
+ ####
52
+ # Search for nodes by xpath
53
+ doc.xpath('//h3/a[@class="l"]').each do |link|
54
+ puts link.content
55
+ end
56
+
57
+ ####
58
+ # Or mix and match.
59
+ doc.search('h3.r a.l', '//h3/a[@class="l"]').each do |link|
60
+ puts link.content
61
+ end
62
+
63
+
64
+ == REQUIREMENTS:
65
+
66
+ * ruby 1.8 or 1.9
67
+ * libxml2
68
+ * libxml2-dev
69
+ * libxslt
70
+ * libxslt-dev
71
+
72
+ == INSTALL:
73
+
74
+ * sudo gem install nokogiri
75
+
76
+ == LICENSE:
77
+
78
+ (The MIT License)
79
+
80
+ Copyright (c) 2008 - 2010:
81
+
82
+ * {Aaron Patterson}[http://tenderlovemaking.com]
83
+ * {Mike Dalessio}[http://mike.daless.io]
84
+ * {Charles Nutter}[http://blog.headius.com]
85
+ * {Sergio Arbeo}[http://www.serabe.com]
86
+ * {Patrick Mahoney}[http://polycrystal.org]
87
+ * {Yoko Harada}[http://yokolet.blogspot.com]
88
+
89
+ Permission is hereby granted, free of charge, to any person obtaining
90
+ a copy of this software and associated documentation files (the
91
+ 'Software'), to deal in the Software without restriction, including
92
+ without limitation the rights to use, copy, modify, merge, publish,
93
+ distribute, sublicense, and/or sell copies of the Software, and to
94
+ permit persons to whom the Software is furnished to do so, subject to
95
+ the following conditions:
96
+
97
+ The above copyright notice and this permission notice shall be
98
+ included in all copies or substantial portions of the Software.
99
+
100
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
101
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
102
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
103
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
104
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
105
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
106
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,178 @@
1
+ = Nokogiri {<img src="https://secure.travis-ci.org/sparklemotion/nokogiri.png?rvm=1.9.3" />}[http://travis-ci.org/sparklemotion/nokogiri]
2
+
3
+ * http://nokogiri.org
4
+ * http://github.com/sparklemotion/nokogiri/wikis
5
+ * http://github.com/sparklemotion/nokogiri/tree/master
6
+ * http://groups.google.com/group/nokogiri-talk
7
+ * http://github.com/sparklemotion/nokogiri/issues
8
+
9
+ == DESCRIPTION:
10
+
11
+ Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser. Among Nokogiri's
12
+ many features is the ability to search documents via XPath or CSS3 selectors.
13
+
14
+ XML is like violence - if it doesn’t solve your problems, you are not using
15
+ enough of it.
16
+
17
+ == FEATURES:
18
+
19
+ * XPath support for document searching
20
+ * CSS3 selector support for document searching
21
+ * XML/HTML builder
22
+
23
+ Nokogiri parses and searches XML/HTML very quickly, and also has
24
+ correctly implemented CSS3 selector support as well as XPath support.
25
+
26
+ == SUPPORT:
27
+
28
+ Before filing a bug report, please read our {submission guidelines}[http://nokogiri.org/tutorials/getting_help.html] at:
29
+
30
+ * http://nokogiri.org/tutorials/getting_help.html
31
+
32
+ The Nokogiri {mailing list}[http://groups.google.com/group/nokogiri-talk]
33
+ is available here:
34
+
35
+ * http://groups.google.com/group/nokogiri-talk
36
+
37
+ The {bug tracker}[http://github.com/sparklemotion/nokogiri/issues]
38
+ is available here:
39
+
40
+ * http://github.com/sparklemotion/nokogiri/issues
41
+
42
+ The IRC channel is #nokogiri on freenode.
43
+
44
+ == SYNOPSIS:
45
+
46
+ require 'nokogiri'
47
+ require 'open-uri'
48
+
49
+ # Get a Nokogiri::HTML::Document for the page we’re interested in...
50
+
51
+ doc = Nokogiri::HTML(open('http://www.google.com/search?q=sparklemotion'))
52
+
53
+ # Do funky things with it using Nokogiri::XML::Node methods...
54
+
55
+ ####
56
+ # Search for nodes by css
57
+ doc.css('h3.r a').each do |link|
58
+ puts link.content
59
+ end
60
+
61
+ ####
62
+ # Search for nodes by xpath
63
+ doc.xpath('//h3/a').each do |link|
64
+ puts link.content
65
+ end
66
+
67
+ ####
68
+ # Or mix and match.
69
+ doc.search('h3.r a.l', '//h3/a').each do |link|
70
+ puts link.content
71
+ end
72
+
73
+
74
+ == REQUIREMENTS:
75
+
76
+ * ruby 1.8 or 1.9
77
+ * libxml2
78
+ * libxml2-dev
79
+ * libxslt
80
+ * libxslt-dev
81
+
82
+ == ENCODING:
83
+
84
+ Strings are always stored as UTF-8 internally. Methods that return
85
+ text values will always return UTF-8 encoded strings. Methods that
86
+ return XML (like to_xml, to_html and inner_html) will return a string
87
+ encoded like the source document.
88
+
89
+ *WARNING*
90
+
91
+ Some documents declare one particular encoding, but use a different
92
+ one. So, which encoding should the parser choose?
93
+
94
+ Remember that data is just a stream of bytes. Only we humans add
95
+ meaning to that stream. Any particular set of bytes could be valid
96
+ characters in multiple encodings, so detecting encoding with 100%
97
+ accuracy is not possible. libxml2 does its best, but it can't be right
98
+ 100% of the time.
99
+
100
+ If you want Nokogiri to handle the document encoding properly, your
101
+ best bet is to explicitly set the encoding. Here is an example of
102
+ explicitly setting the encoding to EUC-JP on the parser:
103
+
104
+ doc = Nokogiri.XML('<foo><bar /><foo>', nil, 'EUC-JP')
105
+
106
+ == INSTALL:
107
+
108
+ * sudo gem install nokogiri
109
+
110
+ === Binary packages
111
+
112
+ Binary packages are available for:
113
+
114
+ * SuSE[http://download.opensuse.org/repositories/devel:/languages:/ruby:/extensions/]
115
+ * Fedora[http://s390.koji.fedoraproject.org/koji/packageinfo?packageID=6756]
116
+
117
+ == DEVELOPMENT:
118
+
119
+ === Developing on C Ruby (MRI)
120
+
121
+ Developing Nokogiri requires racc and rexical to generate the parser and
122
+ tokenizer. To start development, make sure you have `libxml2` and `libxslt`
123
+ installed.
124
+
125
+ Then install hoe and rake-compiler:
126
+
127
+ $ gem install hoe rake-compiler racc rexical minitest
128
+
129
+ Then run rake:
130
+
131
+ $ rake
132
+
133
+ === Developing on JRuby
134
+
135
+ Currently, development with JRuby depends on CRuby being installed. With
136
+ CRuby, install racc and rexical:
137
+
138
+ $ gem install racc rexical
139
+
140
+ Make sure hoe and rake compiler are installed with JRuby:
141
+
142
+ $ jgem install hoe rake-compiler
143
+
144
+ Then run rake:
145
+
146
+ $ jruby -S rake
147
+
148
+ == LICENSE:
149
+
150
+ (The MIT License)
151
+
152
+ Copyright (c) 2008 - 2012:
153
+
154
+ * {Aaron Patterson}[http://sparklemotionmaking.com]
155
+ * {Mike Dalessio}[http://mike.daless.io]
156
+ * {Charles Nutter}[http://blog.headius.com]
157
+ * {Sergio Arbeo}[http://www.serabe.com]
158
+ * {Patrick Mahoney}[http://polycrystal.org]
159
+ * {Yoko Harada}[http://yokolet.blogspot.com]
160
+
161
+ Permission is hereby granted, free of charge, to any person obtaining
162
+ a copy of this software and associated documentation files (the
163
+ 'Software'), to deal in the Software without restriction, including
164
+ without limitation the rights to use, copy, modify, merge, publish,
165
+ distribute, sublicense, and/or sell copies of the Software, and to
166
+ permit persons to whom the Software is furnished to do so, subject to
167
+ the following conditions:
168
+
169
+ The above copyright notice and this permission notice shall be
170
+ included in all copies or substantial portions of the Software.
171
+
172
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
173
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
174
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
175
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
176
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
177
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
178
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.