nokogiri-fitzsimmons 1.5.5.3-java
Sign up to get free protection for your applications and to get access to all the features.
- data/.autotest +26 -0
- data/.gemtest +0 -0
- data/CHANGELOG.ja.rdoc +666 -0
- data/CHANGELOG.rdoc +659 -0
- data/C_CODING_STYLE.rdoc +33 -0
- data/Manifest.txt +295 -0
- data/README.ja.rdoc +106 -0
- data/README.rdoc +178 -0
- data/ROADMAP.md +86 -0
- data/Rakefile +194 -0
- data/STANDARD_RESPONSES.md +47 -0
- data/Y_U_NO_GEMSPEC.md +155 -0
- data/bin/nokogiri +63 -0
- data/build_all +58 -0
- data/ext/java/nokogiri/EncodingHandler.java +124 -0
- data/ext/java/nokogiri/HtmlDocument.java +163 -0
- data/ext/java/nokogiri/HtmlElementDescription.java +145 -0
- data/ext/java/nokogiri/HtmlEntityLookup.java +79 -0
- data/ext/java/nokogiri/HtmlSaxParserContext.java +259 -0
- data/ext/java/nokogiri/NokogiriService.java +598 -0
- data/ext/java/nokogiri/XmlAttr.java +190 -0
- data/ext/java/nokogiri/XmlAttributeDecl.java +130 -0
- data/ext/java/nokogiri/XmlCdata.java +84 -0
- data/ext/java/nokogiri/XmlComment.java +95 -0
- data/ext/java/nokogiri/XmlDocument.java +580 -0
- data/ext/java/nokogiri/XmlDocumentFragment.java +234 -0
- data/ext/java/nokogiri/XmlDtd.java +469 -0
- data/ext/java/nokogiri/XmlElement.java +97 -0
- data/ext/java/nokogiri/XmlElementContent.java +382 -0
- data/ext/java/nokogiri/XmlElementDecl.java +152 -0
- data/ext/java/nokogiri/XmlEntityDecl.java +162 -0
- data/ext/java/nokogiri/XmlEntityReference.java +97 -0
- data/ext/java/nokogiri/XmlNamespace.java +215 -0
- data/ext/java/nokogiri/XmlNode.java +1534 -0
- data/ext/java/nokogiri/XmlNodeSet.java +270 -0
- data/ext/java/nokogiri/XmlProcessingInstruction.java +99 -0
- data/ext/java/nokogiri/XmlReader.java +456 -0
- data/ext/java/nokogiri/XmlRelaxng.java +144 -0
- data/ext/java/nokogiri/XmlSaxParserContext.java +356 -0
- data/ext/java/nokogiri/XmlSaxPushParser.java +215 -0
- data/ext/java/nokogiri/XmlSchema.java +324 -0
- data/ext/java/nokogiri/XmlSyntaxError.java +136 -0
- data/ext/java/nokogiri/XmlText.java +119 -0
- data/ext/java/nokogiri/XmlXpathContext.java +203 -0
- data/ext/java/nokogiri/XsltStylesheet.java +360 -0
- data/ext/java/nokogiri/internals/HtmlDomParserContext.java +243 -0
- data/ext/java/nokogiri/internals/NokogiriDocumentCache.java +73 -0
- data/ext/java/nokogiri/internals/NokogiriErrorHandler.java +86 -0
- data/ext/java/nokogiri/internals/NokogiriHandler.java +333 -0
- data/ext/java/nokogiri/internals/NokogiriHelpers.java +800 -0
- data/ext/java/nokogiri/internals/NokogiriNamespaceCache.java +163 -0
- data/ext/java/nokogiri/internals/NokogiriNamespaceContext.java +130 -0
- data/ext/java/nokogiri/internals/NokogiriNonStrictErrorHandler.java +74 -0
- data/ext/java/nokogiri/internals/NokogiriNonStrictErrorHandler4NekoHtml.java +121 -0
- data/ext/java/nokogiri/internals/NokogiriStrictErrorHandler.java +79 -0
- data/ext/java/nokogiri/internals/NokogiriXPathFunction.java +141 -0
- data/ext/java/nokogiri/internals/NokogiriXPathFunctionResolver.java +73 -0
- data/ext/java/nokogiri/internals/NokogiriXPathVariableResolver.java +67 -0
- data/ext/java/nokogiri/internals/NokogiriXsltErrorListener.java +87 -0
- data/ext/java/nokogiri/internals/ParserContext.java +288 -0
- data/ext/java/nokogiri/internals/ReaderNode.java +531 -0
- data/ext/java/nokogiri/internals/SaveContextVisitor.java +775 -0
- data/ext/java/nokogiri/internals/SchemaErrorHandler.java +76 -0
- data/ext/java/nokogiri/internals/XmlDeclHandler.java +42 -0
- data/ext/java/nokogiri/internals/XmlDomParser.java +105 -0
- data/ext/java/nokogiri/internals/XmlDomParserContext.java +266 -0
- data/ext/java/nokogiri/internals/XmlSaxParser.java +65 -0
- data/ext/java/nokogiri/internals/XsltExtensionFunction.java +72 -0
- data/ext/nokogiri/depend +358 -0
- data/ext/nokogiri/extconf.rb +142 -0
- data/ext/nokogiri/html_document.c +170 -0
- data/ext/nokogiri/html_document.h +10 -0
- data/ext/nokogiri/html_element_description.c +276 -0
- data/ext/nokogiri/html_element_description.h +10 -0
- data/ext/nokogiri/html_entity_lookup.c +32 -0
- data/ext/nokogiri/html_entity_lookup.h +8 -0
- data/ext/nokogiri/html_sax_parser_context.c +116 -0
- data/ext/nokogiri/html_sax_parser_context.h +11 -0
- data/ext/nokogiri/html_sax_push_parser.c +87 -0
- data/ext/nokogiri/html_sax_push_parser.h +9 -0
- data/ext/nokogiri/nokogiri.c +133 -0
- data/ext/nokogiri/nokogiri.h +160 -0
- data/ext/nokogiri/xml_attr.c +94 -0
- data/ext/nokogiri/xml_attr.h +9 -0
- data/ext/nokogiri/xml_attribute_decl.c +70 -0
- data/ext/nokogiri/xml_attribute_decl.h +9 -0
- data/ext/nokogiri/xml_cdata.c +56 -0
- data/ext/nokogiri/xml_cdata.h +9 -0
- data/ext/nokogiri/xml_comment.c +54 -0
- data/ext/nokogiri/xml_comment.h +9 -0
- data/ext/nokogiri/xml_document.c +576 -0
- data/ext/nokogiri/xml_document.h +23 -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 +202 -0
- data/ext/nokogiri/xml_dtd.h +10 -0
- data/ext/nokogiri/xml_element_content.c +123 -0
- data/ext/nokogiri/xml_element_content.h +10 -0
- data/ext/nokogiri/xml_element_decl.c +69 -0
- data/ext/nokogiri/xml_element_decl.h +9 -0
- data/ext/nokogiri/xml_encoding_handler.c +79 -0
- data/ext/nokogiri/xml_encoding_handler.h +8 -0
- data/ext/nokogiri/xml_entity_decl.c +110 -0
- data/ext/nokogiri/xml_entity_decl.h +10 -0
- data/ext/nokogiri/xml_entity_reference.c +52 -0
- data/ext/nokogiri/xml_entity_reference.h +9 -0
- data/ext/nokogiri/xml_io.c +56 -0
- data/ext/nokogiri/xml_io.h +11 -0
- data/ext/nokogiri/xml_libxml2_hacks.c +112 -0
- data/ext/nokogiri/xml_libxml2_hacks.h +12 -0
- data/ext/nokogiri/xml_namespace.c +78 -0
- data/ext/nokogiri/xml_namespace.h +13 -0
- data/ext/nokogiri/xml_node.c +1480 -0
- data/ext/nokogiri/xml_node.h +13 -0
- data/ext/nokogiri/xml_node_set.c +467 -0
- data/ext/nokogiri/xml_node_set.h +14 -0
- data/ext/nokogiri/xml_processing_instruction.c +56 -0
- data/ext/nokogiri/xml_processing_instruction.h +9 -0
- data/ext/nokogiri/xml_reader.c +684 -0
- data/ext/nokogiri/xml_reader.h +10 -0
- data/ext/nokogiri/xml_relax_ng.c +161 -0
- data/ext/nokogiri/xml_relax_ng.h +9 -0
- data/ext/nokogiri/xml_sax_parser.c +293 -0
- data/ext/nokogiri/xml_sax_parser.h +39 -0
- data/ext/nokogiri/xml_sax_parser_context.c +222 -0
- data/ext/nokogiri/xml_sax_parser_context.h +10 -0
- data/ext/nokogiri/xml_sax_push_parser.c +115 -0
- data/ext/nokogiri/xml_sax_push_parser.h +9 -0
- data/ext/nokogiri/xml_schema.c +205 -0
- data/ext/nokogiri/xml_schema.h +9 -0
- data/ext/nokogiri/xml_syntax_error.c +58 -0
- data/ext/nokogiri/xml_syntax_error.h +13 -0
- data/ext/nokogiri/xml_text.c +52 -0
- data/ext/nokogiri/xml_text.h +9 -0
- data/ext/nokogiri/xml_xpath_context.c +319 -0
- data/ext/nokogiri/xml_xpath_context.h +10 -0
- data/ext/nokogiri/xslt_stylesheet.c +270 -0
- data/ext/nokogiri/xslt_stylesheet.h +14 -0
- data/lib/isorelax.jar +0 -0
- data/lib/jing.jar +0 -0
- data/lib/nekodtd.jar +0 -0
- data/lib/nekohtml.jar +0 -0
- data/lib/nokogiri.rb +127 -0
- data/lib/nokogiri/css.rb +27 -0
- data/lib/nokogiri/css/node.rb +102 -0
- data/lib/nokogiri/css/parser.rb +720 -0
- data/lib/nokogiri/css/parser.y +258 -0
- data/lib/nokogiri/css/parser_extras.rb +91 -0
- data/lib/nokogiri/css/syntax_error.rb +7 -0
- data/lib/nokogiri/css/tokenizer.rb +152 -0
- data/lib/nokogiri/css/tokenizer.rex +55 -0
- data/lib/nokogiri/css/xpath_visitor.rb +171 -0
- data/lib/nokogiri/decorators/slop.rb +35 -0
- data/lib/nokogiri/html.rb +37 -0
- data/lib/nokogiri/html/builder.rb +35 -0
- data/lib/nokogiri/html/document.rb +254 -0
- data/lib/nokogiri/html/document_fragment.rb +41 -0
- data/lib/nokogiri/html/element_description.rb +23 -0
- data/lib/nokogiri/html/element_description_defaults.rb +671 -0
- data/lib/nokogiri/html/entity_lookup.rb +13 -0
- data/lib/nokogiri/html/sax/parser.rb +52 -0
- data/lib/nokogiri/html/sax/parser_context.rb +16 -0
- data/lib/nokogiri/html/sax/push_parser.rb +16 -0
- data/lib/nokogiri/nokogiri.jar +0 -0
- data/lib/nokogiri/syntax_error.rb +4 -0
- data/lib/nokogiri/version.rb +88 -0
- data/lib/nokogiri/xml.rb +73 -0
- data/lib/nokogiri/xml/attr.rb +14 -0
- data/lib/nokogiri/xml/attribute_decl.rb +18 -0
- data/lib/nokogiri/xml/builder.rb +431 -0
- data/lib/nokogiri/xml/cdata.rb +11 -0
- data/lib/nokogiri/xml/character_data.rb +7 -0
- data/lib/nokogiri/xml/document.rb +267 -0
- data/lib/nokogiri/xml/document_fragment.rb +103 -0
- data/lib/nokogiri/xml/dtd.rb +22 -0
- data/lib/nokogiri/xml/element_content.rb +36 -0
- data/lib/nokogiri/xml/element_decl.rb +13 -0
- data/lib/nokogiri/xml/entity_decl.rb +19 -0
- data/lib/nokogiri/xml/namespace.rb +13 -0
- data/lib/nokogiri/xml/node.rb +946 -0
- data/lib/nokogiri/xml/node/save_options.rb +61 -0
- data/lib/nokogiri/xml/node_set.rb +357 -0
- data/lib/nokogiri/xml/notation.rb +6 -0
- data/lib/nokogiri/xml/parse_options.rb +98 -0
- data/lib/nokogiri/xml/pp.rb +2 -0
- data/lib/nokogiri/xml/pp/character_data.rb +18 -0
- data/lib/nokogiri/xml/pp/node.rb +56 -0
- data/lib/nokogiri/xml/processing_instruction.rb +8 -0
- data/lib/nokogiri/xml/reader.rb +112 -0
- data/lib/nokogiri/xml/relax_ng.rb +32 -0
- data/lib/nokogiri/xml/sax.rb +4 -0
- data/lib/nokogiri/xml/sax/document.rb +164 -0
- data/lib/nokogiri/xml/sax/parser.rb +115 -0
- data/lib/nokogiri/xml/sax/parser_context.rb +16 -0
- data/lib/nokogiri/xml/sax/push_parser.rb +60 -0
- data/lib/nokogiri/xml/schema.rb +63 -0
- data/lib/nokogiri/xml/syntax_error.rb +47 -0
- data/lib/nokogiri/xml/text.rb +9 -0
- data/lib/nokogiri/xml/xpath.rb +10 -0
- data/lib/nokogiri/xml/xpath/syntax_error.rb +11 -0
- data/lib/nokogiri/xml/xpath_context.rb +16 -0
- data/lib/nokogiri/xslt.rb +56 -0
- data/lib/nokogiri/xslt/stylesheet.rb +25 -0
- data/lib/xercesImpl.jar +0 -0
- data/lib/xsd/xmlparser/nokogiri.rb +90 -0
- data/tasks/cross_compile.rb +153 -0
- data/tasks/nokogiri.org.rb +24 -0
- data/tasks/test.rb +95 -0
- data/test/css/test_nthiness.rb +159 -0
- data/test/css/test_parser.rb +341 -0
- data/test/css/test_tokenizer.rb +198 -0
- data/test/css/test_xpath_visitor.rb +91 -0
- data/test/decorators/test_slop.rb +16 -0
- data/test/files/2ch.html +108 -0
- data/test/files/address_book.rlx +12 -0
- data/test/files/address_book.xml +10 -0
- data/test/files/bar/bar.xsd +4 -0
- data/test/files/dont_hurt_em_why.xml +422 -0
- data/test/files/encoding.html +82 -0
- data/test/files/encoding.xhtml +84 -0
- data/test/files/exslt.xml +8 -0
- data/test/files/exslt.xslt +35 -0
- data/test/files/foo/foo.xsd +4 -0
- data/test/files/metacharset.html +10 -0
- data/test/files/noencoding.html +47 -0
- data/test/files/po.xml +32 -0
- data/test/files/po.xsd +66 -0
- data/test/files/shift_jis.html +10 -0
- data/test/files/shift_jis.xml +5 -0
- data/test/files/snuggles.xml +3 -0
- data/test/files/staff.dtd +10 -0
- data/test/files/staff.xml +59 -0
- data/test/files/staff.xslt +32 -0
- data/test/files/tlm.html +850 -0
- data/test/files/to_be_xincluded.xml +2 -0
- data/test/files/valid_bar.xml +2 -0
- data/test/files/xinclude.xml +4 -0
- data/test/helper.rb +147 -0
- data/test/html/sax/test_parser.rb +138 -0
- data/test/html/sax/test_parser_context.rb +46 -0
- data/test/html/test_builder.rb +164 -0
- data/test/html/test_document.rb +529 -0
- data/test/html/test_document_encoding.rb +138 -0
- data/test/html/test_document_fragment.rb +254 -0
- data/test/html/test_element_description.rb +100 -0
- data/test/html/test_named_characters.rb +14 -0
- data/test/html/test_node.rb +188 -0
- data/test/html/test_node_encoding.rb +27 -0
- data/test/test_convert_xpath.rb +135 -0
- data/test/test_css_cache.rb +45 -0
- data/test/test_encoding_handler.rb +46 -0
- data/test/test_memory_leak.rb +152 -0
- data/test/test_nokogiri.rb +132 -0
- data/test/test_reader.rb +488 -0
- data/test/test_soap4r_sax.rb +52 -0
- data/test/test_xslt_transforms.rb +254 -0
- data/test/xml/node/test_save_options.rb +28 -0
- data/test/xml/node/test_subclass.rb +44 -0
- data/test/xml/sax/test_parser.rb +338 -0
- data/test/xml/sax/test_parser_context.rb +106 -0
- data/test/xml/sax/test_push_parser.rb +157 -0
- data/test/xml/test_attr.rb +64 -0
- data/test/xml/test_attribute_decl.rb +86 -0
- data/test/xml/test_builder.rb +248 -0
- data/test/xml/test_c14n.rb +151 -0
- data/test/xml/test_cdata.rb +48 -0
- data/test/xml/test_comment.rb +29 -0
- data/test/xml/test_document.rb +742 -0
- data/test/xml/test_document_encoding.rb +28 -0
- data/test/xml/test_document_fragment.rb +216 -0
- data/test/xml/test_dtd.rb +103 -0
- data/test/xml/test_dtd_encoding.rb +33 -0
- data/test/xml/test_element_content.rb +56 -0
- data/test/xml/test_element_decl.rb +73 -0
- data/test/xml/test_entity_decl.rb +122 -0
- data/test/xml/test_entity_reference.rb +235 -0
- data/test/xml/test_namespace.rb +75 -0
- data/test/xml/test_node.rb +1029 -0
- data/test/xml/test_node_attributes.rb +53 -0
- data/test/xml/test_node_encoding.rb +107 -0
- data/test/xml/test_node_inheritance.rb +32 -0
- data/test/xml/test_node_reparenting.rb +374 -0
- data/test/xml/test_node_set.rb +755 -0
- data/test/xml/test_parse_options.rb +64 -0
- data/test/xml/test_processing_instruction.rb +30 -0
- data/test/xml/test_reader_encoding.rb +142 -0
- data/test/xml/test_relax_ng.rb +60 -0
- data/test/xml/test_schema.rb +94 -0
- data/test/xml/test_syntax_error.rb +12 -0
- data/test/xml/test_text.rb +45 -0
- data/test/xml/test_unparented_node.rb +413 -0
- data/test/xml/test_xinclude.rb +83 -0
- data/test/xml/test_xpath.rb +295 -0
- data/test/xslt/test_custom_functions.rb +129 -0
- data/test/xslt/test_exception_handling.rb +37 -0
- data/test_all +84 -0
- metadata +571 -0
data/C_CODING_STYLE.rdoc
ADDED
@@ -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.
|