vtd_xml 0.0.3-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +23 -0
- data/LICENSE.txt +20 -0
- data/README.md +29 -0
- data/Rakefile +20 -0
- data/bundle/bundler/setup.rb +10 -0
- data/bundle/jruby/1.9/bin/convert_to_should_syntax +23 -0
- data/bundle/jruby/1.9/bin/nokogiri +23 -0
- data/bundle/jruby/1.9/bin/rake +23 -0
- data/bundle/jruby/1.9/build_info/mini_portile-0.5.2.info +1 -0
- data/bundle/jruby/1.9/build_info/nokogiri-1.6.1-java.info +1 -0
- data/bundle/jruby/1.9/build_info/rake-10.1.1.info +1 -0
- data/bundle/jruby/1.9/build_info/shoulda-context-1.1.6.info +1 -0
- data/bundle/jruby/1.9/cache/mini_portile-0.5.2.gem +0 -0
- data/bundle/jruby/1.9/cache/nokogiri-1.6.1-java.gem +0 -0
- data/bundle/jruby/1.9/cache/rake-10.1.1.gem +0 -0
- data/bundle/jruby/1.9/cache/shoulda-context-1.1.6.gem +0 -0
- data/bundle/jruby/1.9/gems/mini_portile-0.5.2/History.txt +65 -0
- data/bundle/jruby/1.9/gems/mini_portile-0.5.2/LICENSE.txt +20 -0
- data/bundle/jruby/1.9/gems/mini_portile-0.5.2/README.rdoc +169 -0
- data/bundle/jruby/1.9/gems/mini_portile-0.5.2/Rakefile +44 -0
- data/bundle/jruby/1.9/gems/mini_portile-0.5.2/examples/Rakefile +55 -0
- data/bundle/jruby/1.9/gems/mini_portile-0.5.2/lib/mini_portile.rb +404 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/CHANGELOG.ja.rdoc +828 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/CHANGELOG.rdoc +835 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/C_CODING_STYLE.rdoc +33 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/Gemfile +21 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/Manifest.txt +315 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/README.ja.rdoc +106 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/README.rdoc +175 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ROADMAP.md +90 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/Rakefile +248 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/STANDARD_RESPONSES.md +47 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/Y_U_NO_GEMSPEC.md +155 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/bin/nokogiri +78 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/build_all +105 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/dependencies.yml +4 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/EncodingHandler.java +124 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/HtmlDocument.java +189 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/HtmlElementDescription.java +145 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/HtmlEntityLookup.java +79 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/HtmlSaxParserContext.java +259 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/NokogiriService.java +605 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/XmlAttr.java +190 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/XmlAttributeDecl.java +130 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/XmlCdata.java +84 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/XmlComment.java +95 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/XmlDocument.java +598 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/XmlDocumentFragment.java +210 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/XmlDtd.java +480 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/XmlElement.java +88 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/XmlElementContent.java +382 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/XmlElementDecl.java +152 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/XmlEntityDecl.java +162 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/XmlEntityReference.java +101 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/XmlNamespace.java +216 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/XmlNode.java +1637 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/XmlNodeSet.java +270 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/XmlProcessingInstruction.java +99 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/XmlReader.java +532 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/XmlRelaxng.java +144 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/XmlSaxParserContext.java +356 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/XmlSaxPushParser.java +232 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/XmlSchema.java +324 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/XmlSyntaxError.java +136 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/XmlText.java +107 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/XmlXpathContext.java +203 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/XsltStylesheet.java +360 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/internals/ClosedStreamException.java +10 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/internals/HtmlDomParserContext.java +243 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/internals/NokogiriBlockingQueueInputStream.java +151 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/internals/NokogiriDocumentCache.java +73 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/internals/NokogiriDomParser.java +116 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/internals/NokogiriEncodingReaderWrapper.java +109 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/internals/NokogiriEntityResolver.java +123 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/internals/NokogiriErrorHandler.java +86 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/internals/NokogiriHandler.java +341 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/internals/NokogiriHelpers.java +826 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/internals/NokogiriNamespaceCache.java +180 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/internals/NokogiriNamespaceContext.java +130 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/internals/NokogiriNonStrictErrorHandler.java +98 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/internals/NokogiriNonStrictErrorHandler4NekoHtml.java +121 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/internals/NokogiriStrictErrorHandler.java +79 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/internals/NokogiriXPathFunction.java +141 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/internals/NokogiriXPathFunctionResolver.java +73 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/internals/NokogiriXPathVariableResolver.java +67 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/internals/NokogiriXsltErrorListener.java +87 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/internals/ParserContext.java +289 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/internals/ReaderNode.java +534 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/internals/SaveContextVisitor.java +780 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/internals/SchemaErrorHandler.java +76 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/internals/UncloseableInputStream.java +102 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/internals/XmlDeclHandler.java +42 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/internals/XmlDomParserContext.java +275 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/internals/XmlSaxParser.java +65 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/java/nokogiri/internals/XsltExtensionFunction.java +72 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/depend +358 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/extconf.rb +195 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/html_document.c +170 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/html_document.h +10 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/html_element_description.c +279 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/html_element_description.h +10 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/html_entity_lookup.c +32 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/html_entity_lookup.h +8 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/html_sax_parser_context.c +116 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/html_sax_parser_context.h +11 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/html_sax_push_parser.c +87 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/html_sax_push_parser.h +9 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/nokogiri.c +143 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/nokogiri.h +164 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_attr.c +94 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_attr.h +9 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_attribute_decl.c +70 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_attribute_decl.h +9 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_cdata.c +56 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_cdata.h +9 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_comment.c +54 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_comment.h +9 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_document.c +576 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_document.h +23 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_document_fragment.c +48 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_document_fragment.h +10 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_dtd.c +202 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_dtd.h +10 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_element_content.c +123 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_element_content.h +10 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_element_decl.c +69 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_element_decl.h +9 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_encoding_handler.c +79 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_encoding_handler.h +8 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_entity_decl.c +110 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_entity_decl.h +10 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_entity_reference.c +52 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_entity_reference.h +9 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_io.c +56 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_io.h +11 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_libxml2_hacks.c +112 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_libxml2_hacks.h +12 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_namespace.c +78 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_namespace.h +13 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_node.c +1534 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_node.h +13 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_node_set.c +467 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_node_set.h +14 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_processing_instruction.c +56 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_processing_instruction.h +9 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_reader.c +681 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_reader.h +10 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_relax_ng.c +161 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_relax_ng.h +9 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_sax_parser.c +312 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_sax_parser.h +39 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_sax_parser_context.c +222 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_sax_parser_context.h +10 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_sax_push_parser.c +115 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_sax_push_parser.h +9 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_schema.c +205 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_schema.h +9 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_syntax_error.c +58 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_syntax_error.h +13 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_text.c +52 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_text.h +9 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_xpath_context.c +319 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xml_xpath_context.h +10 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xslt_stylesheet.c +270 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/ext/nokogiri/xslt_stylesheet.h +14 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/isorelax.jar +0 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/jing.jar +0 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nekodtd.jar +0 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nekohtml.jar +0 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/css/node.rb +102 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/css/parser.rb +720 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/css/parser.y +258 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/css/parser_extras.rb +91 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/css/syntax_error.rb +7 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/css/tokenizer.rb +152 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/css/tokenizer.rex +55 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/css/xpath_visitor.rb +171 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/css.rb +27 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/decorators/slop.rb +35 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/html/builder.rb +35 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/html/document.rb +254 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/html/document_fragment.rb +41 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/html/element_description.rb +23 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/html/element_description_defaults.rb +671 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/html/entity_lookup.rb +13 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/html/sax/parser.rb +52 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/html/sax/parser_context.rb +16 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/html/sax/push_parser.rb +16 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/html.rb +37 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/nokogiri.jar +0 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/syntax_error.rb +4 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/version.rb +106 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/attr.rb +14 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/attribute_decl.rb +18 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/builder.rb +443 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/cdata.rb +11 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/character_data.rb +7 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/document.rb +279 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/document_fragment.rb +112 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/dtd.rb +22 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/element_content.rb +36 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/element_decl.rb +13 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/entity_decl.rb +19 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/namespace.rb +13 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/node/save_options.rb +61 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/node.rb +957 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/node_set.rb +355 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/notation.rb +6 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/parse_options.rb +98 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/pp/character_data.rb +18 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/pp/node.rb +56 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/pp.rb +2 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/processing_instruction.rb +8 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/reader.rb +112 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/relax_ng.rb +32 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/sax/document.rb +171 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/sax/parser.rb +123 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/sax/parser_context.rb +16 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/sax/push_parser.rb +60 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/sax.rb +4 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/schema.rb +63 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/syntax_error.rb +47 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/text.rb +9 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/xpath/syntax_error.rb +11 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/xpath.rb +10 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml/xpath_context.rb +16 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xml.rb +73 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xslt/stylesheet.rb +25 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri/xslt.rb +56 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/nokogiri.rb +128 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/xercesImpl.jar +0 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/lib/xsd/xmlparser/nokogiri.rb +102 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/tasks/cross_compile.rb +134 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/tasks/nokogiri.org.rb +24 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/tasks/test.rb +95 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/css/test_nthiness.rb +159 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/css/test_parser.rb +341 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/css/test_tokenizer.rb +198 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/css/test_xpath_visitor.rb +91 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/decorators/test_slop.rb +16 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/2ch.html +108 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/address_book.rlx +12 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/address_book.xml +10 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/bar/bar.xsd +4 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/bogus.xml +0 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/dont_hurt_em_why.xml +422 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/encoding.html +82 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/encoding.xhtml +84 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/exslt.xml +8 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/exslt.xslt +35 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/foo/foo.xsd +4 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/metacharset.html +10 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/noencoding.html +47 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/po.xml +32 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/po.xsd +66 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/saml/saml20assertion_schema.xsd +283 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/saml/saml20protocol_schema.xsd +302 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/saml/xenc_schema.xsd +146 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/saml/xmldsig_schema.xsd +318 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/shift_jis.html +10 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/shift_jis.xml +5 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/snuggles.xml +3 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/staff.dtd +10 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/staff.xml +59 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/staff.xslt +32 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/test_document_url/bar.xml +2 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/test_document_url/document.dtd +4 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/test_document_url/document.xml +6 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/tlm.html +850 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/to_be_xincluded.xml +2 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/valid_bar.xml +2 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/files/xinclude.xml +4 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/helper.rb +154 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/html/sax/test_parser.rb +141 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/html/sax/test_parser_context.rb +46 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/html/test_builder.rb +164 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/html/test_document.rb +552 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/html/test_document_encoding.rb +138 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/html/test_document_fragment.rb +261 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/html/test_element_description.rb +105 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/html/test_named_characters.rb +14 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/html/test_node.rb +196 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/html/test_node_encoding.rb +27 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/namespaces/test_additional_namespaces_in_builder_doc.rb +14 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/namespaces/test_namespaces_in_builder_doc.rb +75 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/namespaces/test_namespaces_in_created_doc.rb +75 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/namespaces/test_namespaces_in_parsed_doc.rb +66 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/test_convert_xpath.rb +135 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/test_css_cache.rb +45 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/test_encoding_handler.rb +46 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/test_memory_leak.rb +156 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/test_nokogiri.rb +132 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/test_reader.rb +555 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/test_soap4r_sax.rb +52 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/test_xslt_transforms.rb +254 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/node/test_save_options.rb +28 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/node/test_subclass.rb +44 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/sax/test_parser.rb +366 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/sax/test_parser_context.rb +106 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/sax/test_push_parser.rb +157 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_attr.rb +64 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_attribute_decl.rb +86 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_builder.rb +306 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_c14n.rb +151 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_cdata.rb +48 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_comment.rb +29 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_document.rb +868 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_document_encoding.rb +28 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_document_fragment.rb +223 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_dtd.rb +103 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_dtd_encoding.rb +33 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_element_content.rb +56 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_element_decl.rb +73 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_entity_decl.rb +122 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_entity_reference.rb +245 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_namespace.rb +95 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_node.rb +1137 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_node_attributes.rb +96 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_node_encoding.rb +107 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_node_inheritance.rb +32 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_node_reparenting.rb +374 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_node_set.rb +755 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_parse_options.rb +64 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_processing_instruction.rb +30 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_reader_encoding.rb +142 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_relax_ng.rb +60 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_schema.rb +103 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_syntax_error.rb +12 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_text.rb +45 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_unparented_node.rb +422 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_xinclude.rb +83 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xml/test_xpath.rb +295 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xslt/test_custom_functions.rb +133 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test/xslt/test_exception_handling.rb +37 -0
- data/bundle/jruby/1.9/gems/nokogiri-1.6.1-java/test_all +81 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/CHANGES +530 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/MIT-LICENSE +21 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/README.rdoc +187 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/Rakefile +374 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/TODO +21 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/bin/rake +33 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/command_line_usage.rdoc +152 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/example/Rakefile1 +38 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/example/Rakefile2 +35 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/example/a.c +6 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/example/b.c +6 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/example/main.c +11 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/glossary.rdoc +51 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/jamis.rb +591 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/proto_rake.rdoc +127 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/rake.1.gz +0 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/rakefile.rdoc +617 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/rational.rdoc +151 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-0.4.14.rdoc +23 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-0.4.15.rdoc +35 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-0.5.0.rdoc +53 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-0.5.3.rdoc +78 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-0.5.4.rdoc +46 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-0.6.0.rdoc +141 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-0.7.0.rdoc +119 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-0.7.1.rdoc +59 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-0.7.2.rdoc +121 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-0.7.3.rdoc +47 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-0.8.0.rdoc +114 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-0.8.2.rdoc +165 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-0.8.3.rdoc +112 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-0.8.4.rdoc +147 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-0.8.5.rdoc +53 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-0.8.6.rdoc +55 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-0.8.7.rdoc +55 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-0.9.0.rdoc +112 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-0.9.1.rdoc +52 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-0.9.2.2.rdoc +55 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-0.9.2.rdoc +49 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-0.9.3.rdoc +102 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-0.9.4.rdoc +110 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-0.9.5.rdoc +114 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-0.9.6.rdoc +127 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-10.0.0.rdoc +178 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-10.0.1.rdoc +187 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-10.0.2.rdoc +191 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-10.0.3.rdoc +191 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/doc/release_notes/rake-10.1.0.rdoc +61 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/install.rb +80 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/alt_system.rb +108 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/application.rb +728 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/backtrace.rb +20 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/clean.rb +55 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/cloneable.rb +16 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/contrib/compositepublisher.rb +21 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/contrib/ftptools.rb +139 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/contrib/publisher.rb +73 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/contrib/rubyforgepublisher.rb +16 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/contrib/sshpublisher.rb +50 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/contrib/sys.rb +2 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/default_loader.rb +10 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/dsl_definition.rb +157 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/early_time.rb +18 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/ext/core.rb +28 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/ext/module.rb +0 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/ext/string.rb +166 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/ext/time.rb +15 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/file_creation_task.rb +24 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/file_list.rb +416 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/file_task.rb +46 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/file_utils.rb +116 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/file_utils_ext.rb +144 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/gempackagetask.rb +2 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/invocation_chain.rb +57 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/invocation_exception_mixin.rb +16 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/linked_list.rb +103 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/loaders/makefile.rb +40 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/multi_task.rb +13 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/name_space.rb +25 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/packagetask.rb +190 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/pathmap.rb +1 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/phony.rb +15 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/private_reader.rb +20 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/promise.rb +99 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/pseudo_status.rb +29 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/rake_module.rb +37 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/rake_test_loader.rb +22 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/rdoctask.rb +2 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/ruby182_test_unit_fix.rb +27 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/rule_recursion_overflow_error.rb +20 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/runtest.rb +22 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/scope.rb +42 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/task.rb +378 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/task_argument_error.rb +7 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/task_arguments.rb +89 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/task_manager.rb +297 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/tasklib.rb +22 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/testtask.rb +201 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/thread_history_display.rb +48 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/thread_pool.rb +161 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/trace_output.rb +22 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/version.rb +9 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake/win32.rb +56 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/lib/rake.rb +73 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/file_creation.rb +34 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/helper.rb +128 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/support/rakefile_definitions.rb +444 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/support/ruby_runner.rb +33 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_private_reader.rb +42 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake.rb +40 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_application.rb +517 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_application_options.rb +457 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_backtrace.rb +113 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_clean.rb +46 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_definitions.rb +79 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_directory_task.rb +57 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_dsl.rb +40 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_early_time.rb +31 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_extension.rb +59 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_file_creation_task.rb +56 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_file_list.rb +627 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_file_list_path_map.rb +8 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_file_task.rb +122 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_file_utils.rb +309 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_ftp_file.rb +74 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_functional.rb +466 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_invocation_chain.rb +64 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_linked_list.rb +84 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_makefile_loader.rb +46 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_multi_task.rb +58 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_name_space.rb +43 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_package_task.rb +79 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_path_map.rb +168 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_path_map_explode.rb +34 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_path_map_partial.rb +18 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_pseudo_status.rb +21 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_rake_test_loader.rb +20 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_reduce_compat.rb +26 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_require.rb +40 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_rules.rb +362 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_scope.rb +44 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_task.rb +376 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_task_argument_parsing.rb +103 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_task_arguments.rb +121 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_task_lib.rb +9 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_task_manager.rb +158 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_task_manager_argument_resolution.rb +19 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_task_with_arguments.rb +171 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_test_task.rb +119 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_thread_pool.rb +142 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_top_level_functions.rb +71 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_rake_win32.rb +72 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_thread_history_display.rb +101 -0
- data/bundle/jruby/1.9/gems/rake-10.1.1/test/test_trace_output.rb +52 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/Appraisals +21 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/CONTRIBUTING.md +38 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/Gemfile +3 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/MIT-LICENSE +22 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/README.md +54 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/Rakefile +21 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/bin/convert_to_should_syntax +42 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/gemfiles/3.0.gemfile +7 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/gemfiles/3.0.gemfile.lock +91 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/gemfiles/3.1.gemfile +9 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/gemfiles/3.1.gemfile.lock +112 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/gemfiles/3.2.gemfile +9 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/gemfiles/3.2.gemfile.lock +111 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/gemfiles/4.0.gemfile +9 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/gemfiles/4.0.gemfile.lock +107 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/init.rb +1 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/lib/shoulda/context/assertions.rb +96 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/lib/shoulda/context/autoload_macros.rb +46 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/lib/shoulda/context/context.rb +481 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/lib/shoulda/context/proc_extensions.rb +14 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/lib/shoulda/context/tasks/list_tests.rake +29 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/lib/shoulda/context/tasks/yaml_to_shoulda.rake +28 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/lib/shoulda/context/tasks.rb +3 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/lib/shoulda/context/version.rb +5 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/lib/shoulda/context.rb +33 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/lib/shoulda-context.rb +1 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/rails/init.rb +4 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/shoulda-context.gemspec +27 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/tasks/shoulda.rake +1 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/test/fake_rails_root/test/shoulda_macros/custom_macro.rb +6 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/test/shoulda/autoload_macro_test.rb +18 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/test/shoulda/context_test.rb +360 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/test/shoulda/convert_to_should_syntax_test.rb +63 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/test/shoulda/helpers_test.rb +190 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/test/shoulda/should_test.rb +291 -0
- data/bundle/jruby/1.9/gems/shoulda-context-1.1.6/test/test_helper.rb +11 -0
- data/bundle/jruby/1.9/specifications/mini_portile-0.5.2.gemspec +22 -0
- data/bundle/jruby/1.9/specifications/nokogiri-1.6.1-java.gemspec +69 -0
- data/bundle/jruby/1.9/specifications/rake-10.1.1.gemspec +35 -0
- data/bundle/jruby/1.9/specifications/shoulda-context-1.1.6.gemspec +44 -0
- data/lib/vtd-xml-2.11.jar +0 -0
- data/lib/vtd_xml/document.rb +124 -0
- data/lib/vtd_xml/extraction_error.rb +4 -0
- data/lib/vtd_xml/modify_error.rb +5 -0
- data/lib/vtd_xml/parse_error.rb +5 -0
- data/lib/vtd_xml/version.rb +4 -0
- data/lib/vtd_xml/xpath_error.rb +4 -0
- data/lib/vtd_xml.rb +8 -0
- data/pkg/vtd_xml-0.0.3-java.gem +0 -0
- data/test/test_load_paths.rb +18 -0
- data/test/unit/vtd_xml/document_test.rb +266 -0
- data/vtd_xml.gemspec +25 -0
- data/vtd_xml.iml +16 -0
- metadata +648 -0
@@ -0,0 +1,617 @@
|
|
1
|
+
= Rakefile Format (as of version 0.8.7)
|
2
|
+
|
3
|
+
First of all, there is no special format for a Rakefile. A Rakefile
|
4
|
+
contains executable Ruby code. Anything legal in a ruby script is
|
5
|
+
allowed in a Rakefile.
|
6
|
+
|
7
|
+
Now that we understand there is no special syntax in a Rakefile, there
|
8
|
+
are some conventions that are used in a Rakefile that are a little
|
9
|
+
unusual in a typical Ruby program. Since a Rakefile is tailored to
|
10
|
+
specifying tasks and actions, the idioms used in a Rakefile are
|
11
|
+
designed to support that.
|
12
|
+
|
13
|
+
So, what goes into a Rakefile?
|
14
|
+
|
15
|
+
== Tasks
|
16
|
+
|
17
|
+
Tasks are the main unit of work in a Rakefile. Tasks have a name
|
18
|
+
(usually given as a symbol or a string), a list of prerequisites (more
|
19
|
+
symbols or strings) and a list of actions (given as a block).
|
20
|
+
|
21
|
+
=== Simple Tasks
|
22
|
+
|
23
|
+
A task is declared by using the +task+ method. +task+ takes a single
|
24
|
+
parameter that is the name of the task.
|
25
|
+
|
26
|
+
task :name
|
27
|
+
|
28
|
+
=== Tasks with Prerequisites
|
29
|
+
|
30
|
+
Any prerequisites are given as a list (enclosed in square brackets)
|
31
|
+
following the name and an arrow (=>).
|
32
|
+
|
33
|
+
task :name => [:prereq1, :prereq2]
|
34
|
+
|
35
|
+
<b>NOTE:</b> Although this syntax looks a little funky, it is legal
|
36
|
+
Ruby. We are constructing a hash where the key is :name and the value
|
37
|
+
for that key is the list of prerequisites. It is equivalent to the
|
38
|
+
following ...
|
39
|
+
|
40
|
+
hash = Hash.new
|
41
|
+
hash[:name] = [:prereq1, :prereq2]
|
42
|
+
task(hash)
|
43
|
+
|
44
|
+
=== Tasks with Actions
|
45
|
+
|
46
|
+
Actions are defined by passing a block to the +task+ method. Any Ruby
|
47
|
+
code can be placed in the block. The block may reference the task
|
48
|
+
object via the block parameter.
|
49
|
+
|
50
|
+
task :name => [:prereq1, :prereq2] do |t|
|
51
|
+
# actions (may reference t)
|
52
|
+
end
|
53
|
+
|
54
|
+
=== Multiple Definitions
|
55
|
+
|
56
|
+
A task may be specified more than once. Each specification adds its
|
57
|
+
prerequisites and actions to the existing definition. This allows one
|
58
|
+
part of a rakefile to specify the actions and a different rakefile
|
59
|
+
(perhaps separately generated) to specify the dependencies.
|
60
|
+
|
61
|
+
For example, the following is equivalent to the single task
|
62
|
+
specification given above.
|
63
|
+
|
64
|
+
task :name
|
65
|
+
task :name => [:prereq1]
|
66
|
+
task :name => [:prereq2]
|
67
|
+
task :name do |t|
|
68
|
+
# actions
|
69
|
+
end
|
70
|
+
|
71
|
+
== File Tasks
|
72
|
+
|
73
|
+
Some tasks are designed to create a file from one or more other files.
|
74
|
+
Tasks that generate these files may be skipped if the file already
|
75
|
+
exists. File tasks are used to specify file creation tasks.
|
76
|
+
|
77
|
+
File tasks are declared using the +file+ method (instead of the +task+
|
78
|
+
method). In addition, file tasks are usually named with a string
|
79
|
+
rather than a symbol.
|
80
|
+
|
81
|
+
The following file task creates a executable program (named +prog+)
|
82
|
+
given two object files named <tt>a.o</tt> and <tt>b.o</tt>. The tasks
|
83
|
+
for creating <tt>a.o</tt> and <tt>b.o</tt> are not shown.
|
84
|
+
|
85
|
+
file "prog" => ["a.o", "b.o"] do |t|
|
86
|
+
sh "cc -o #{t.name} #{t.prerequisites.join(' ')}"
|
87
|
+
end
|
88
|
+
|
89
|
+
== Directory Tasks
|
90
|
+
|
91
|
+
It is common to need to create directories upon demand. The
|
92
|
+
+directory+ convenience method is a short-hand for creating a FileTask
|
93
|
+
that creates the directory. For example, the following declaration
|
94
|
+
...
|
95
|
+
|
96
|
+
directory "testdata/examples/doc"
|
97
|
+
|
98
|
+
is equivalent to ...
|
99
|
+
|
100
|
+
file "testdata" do |t| mkdir t.name end
|
101
|
+
file "testdata/examples" do |t| mkdir t.name end
|
102
|
+
file "testdata/examples/doc" do |t| mkdir t.name end
|
103
|
+
|
104
|
+
The +directory+ method does not accept prerequisites or actions, but
|
105
|
+
both prerequisites and actions can be added later. For example ...
|
106
|
+
|
107
|
+
directory "testdata"
|
108
|
+
file "testdata" => ["otherdata"]
|
109
|
+
file "testdata" do
|
110
|
+
cp Dir["standard_data/*.data"], "testdata"
|
111
|
+
end
|
112
|
+
|
113
|
+
== Tasks with Parallel Prerequisites
|
114
|
+
|
115
|
+
Rake allows parallel execution of prerequisites using the following syntax:
|
116
|
+
|
117
|
+
multitask :copy_files => [:copy_src, :copy_doc, :copy_bin] do
|
118
|
+
puts "All Copies Complete"
|
119
|
+
end
|
120
|
+
|
121
|
+
In this example, +copy_files+ is a normal rake task. Its actions are
|
122
|
+
executed whenever all of its prerequisites are done. The big
|
123
|
+
difference is that the prerequisites (+copy_src+, +copy_bin+ and
|
124
|
+
+copy_doc+) are executed in parallel. Each of the prerequisites are
|
125
|
+
run in their own Ruby thread, possibly allowing faster overall runtime.
|
126
|
+
|
127
|
+
=== Secondary Prerequisites
|
128
|
+
|
129
|
+
If any of the primary prerequisites of a multitask have common secondary
|
130
|
+
prerequisites, all of the primary/parallel prerequisites will wait
|
131
|
+
until the common prerequisites have been run.
|
132
|
+
|
133
|
+
For example, if the <tt>copy_<em>xxx</em></tt> tasks have the
|
134
|
+
following prerequisites:
|
135
|
+
|
136
|
+
task :copy_src => [:prep_for_copy]
|
137
|
+
task :copy_bin => [:prep_for_copy]
|
138
|
+
task :copy_doc => [:prep_for_copy]
|
139
|
+
|
140
|
+
Then the +prep_for_copy+ task is run before starting all the copies in
|
141
|
+
parallel. Once +prep_for_copy+ is complete, +copy_src+, +copy_bin+,
|
142
|
+
and +copy_doc+ are all run in parallel. Note that +prep_for_copy+ is
|
143
|
+
run only once, even though it is referenced in multiple threads.
|
144
|
+
|
145
|
+
=== Thread Safety
|
146
|
+
|
147
|
+
The Rake internal data structures are thread-safe with respect
|
148
|
+
to the multitask parallel execution, so there is no need for the user
|
149
|
+
to do extra synchronization for Rake's benefit. However, if there are
|
150
|
+
user data structures shared between the parallel prerequisites, the
|
151
|
+
user must do whatever is necessary to prevent race conditions.
|
152
|
+
|
153
|
+
== Tasks with Arguments
|
154
|
+
|
155
|
+
Prior to version 0.8.0, rake was only able to handle command line
|
156
|
+
arguments of the form NAME=VALUE that were passed into Rake via the
|
157
|
+
ENV hash. Many folks had asked for some kind of simple command line
|
158
|
+
arguments, perhaps using "--" to separate regular task names from
|
159
|
+
argument values on the command line. The problem is that there was no
|
160
|
+
easy way to associate positional arguments on the command line with
|
161
|
+
different tasks. Suppose both tasks :a and :b expect a command line
|
162
|
+
argument: does the first value go with :a? What if :b is run first?
|
163
|
+
Should it then get the first command line argument.
|
164
|
+
|
165
|
+
Rake 0.8.0 solves this problem by explicitly passing values directly
|
166
|
+
to the tasks that need them. For example, if I had a release task
|
167
|
+
that required a version number, I could say:
|
168
|
+
|
169
|
+
rake release[0.8.2]
|
170
|
+
|
171
|
+
And the string "0.8.2" will be passed to the :release task. Multiple
|
172
|
+
arguments can be passed by separating them with a comma, for example:
|
173
|
+
|
174
|
+
rake name[john,doe]
|
175
|
+
|
176
|
+
Just a few words of caution. The rake task name and its arguments
|
177
|
+
need to be a single command line argument to rake. This generally
|
178
|
+
means no spaces. If spaces are needed, then the entire rake +
|
179
|
+
argument string should be quoted. Something like this:
|
180
|
+
|
181
|
+
rake "name[billy bob, smith]"
|
182
|
+
|
183
|
+
(Quoting rules vary between operating systems and shells, so make sure
|
184
|
+
you consult the proper docs for your OS/shell).
|
185
|
+
|
186
|
+
=== Tasks Arguments and the Environment
|
187
|
+
|
188
|
+
Task argument values can also be picked up from the environment. For
|
189
|
+
example, if the "release" task expected a parameter named
|
190
|
+
"release_version", then either
|
191
|
+
|
192
|
+
rake release[0.8.2]
|
193
|
+
|
194
|
+
or
|
195
|
+
|
196
|
+
RELEASE_VERSION=0.8.2 rake release
|
197
|
+
|
198
|
+
or, alternatively
|
199
|
+
|
200
|
+
rake release RELEASE_VERSION=0.8.2
|
201
|
+
|
202
|
+
will work. Environment variable names must either match the task
|
203
|
+
parameter exactly, or match an all-uppercase version of the task
|
204
|
+
parameter.
|
205
|
+
|
206
|
+
<b>NOTE:</b> A variable declared within a rake command will
|
207
|
+
not persist in the environment:
|
208
|
+
|
209
|
+
$ export VALUE=old
|
210
|
+
$ rake print_value VALUE=new
|
211
|
+
new
|
212
|
+
$ rake print_value
|
213
|
+
old
|
214
|
+
|
215
|
+
=== Tasks that Expect Parameters
|
216
|
+
|
217
|
+
Parameters are only given to tasks that are setup to expect them. In
|
218
|
+
order to handle named parameters, the task declaration syntax for
|
219
|
+
tasks has been extended slightly.
|
220
|
+
|
221
|
+
For example, a task that needs a first name and last name might be
|
222
|
+
declared as:
|
223
|
+
|
224
|
+
task :name, [:first_name, :last_name]
|
225
|
+
|
226
|
+
The first argument is still the name of the task (:name in this case).
|
227
|
+
The next two arguments are the names of the parameters expected by
|
228
|
+
:name in an array (:first_name and :last_name in the example).
|
229
|
+
|
230
|
+
To access the values of the parameters, the block defining the task
|
231
|
+
behaviour can now accept a second parameter:
|
232
|
+
|
233
|
+
task :name, [:first_name, :last_name] do |t, args|
|
234
|
+
puts "First name is #{args.first_name}"
|
235
|
+
puts "Last name is #{args.last_name}"
|
236
|
+
end
|
237
|
+
|
238
|
+
The first argument of the block "t" is always bound to the current
|
239
|
+
task object. The second argument "args" is an open-struct like object
|
240
|
+
that allows access to the task arguments. Extra command line
|
241
|
+
arguments to a task are ignored. Missing command line arguments are
|
242
|
+
picked up from matching environment variables. If there are no
|
243
|
+
matching environment variables, they are given the nil value.
|
244
|
+
|
245
|
+
If you wish to specify default values for the arguments, you can use
|
246
|
+
the with_defaults method in the task body. Here is the above example
|
247
|
+
where we specify default values for the first and last names:
|
248
|
+
|
249
|
+
task :name, [:first_name, :last_name] do |t, args|
|
250
|
+
args.with_defaults(:first_name => "John", :last_name => "Dough")
|
251
|
+
puts "First name is #{args.first_name}"
|
252
|
+
puts "Last name is #{args.last_name}"
|
253
|
+
end
|
254
|
+
|
255
|
+
=== Tasks that Expect Parameters and Have Prerequisites
|
256
|
+
|
257
|
+
Tasks that use parameters have a slightly different format for
|
258
|
+
prerequisites. Use the arrow notation to indicate the prerequisites
|
259
|
+
for tasks with arguments. For example:
|
260
|
+
|
261
|
+
task :name, [:first_name, :last_name] => [:pre_name] do |t, args|
|
262
|
+
args.with_defaults(:first_name => "John", :last_name => "Dough")
|
263
|
+
puts "First name is #{args.first_name}"
|
264
|
+
puts "Last name is #{args.last_name}"
|
265
|
+
end
|
266
|
+
|
267
|
+
=== Tasks that take Variable-length Parameters
|
268
|
+
|
269
|
+
Tasks that need to handle a list of values as a parameter can use the
|
270
|
+
extras method of the args variable. This allows for tasks that can
|
271
|
+
loop over a variable number of values, and its compatible with named
|
272
|
+
parameters as well:
|
273
|
+
|
274
|
+
task :email, [:message] do |t, args|
|
275
|
+
mail = Mail.new(args.message)
|
276
|
+
recipients = args.extras
|
277
|
+
recipients.each do |target|
|
278
|
+
mail.send_to(recipents)
|
279
|
+
end
|
280
|
+
end
|
281
|
+
|
282
|
+
There is also the convenience method to_a that returns all parameters
|
283
|
+
in the sequential order they were given, including those associated
|
284
|
+
with named parameters.
|
285
|
+
|
286
|
+
=== Deprecated Task Parameters Format
|
287
|
+
|
288
|
+
There is an older format for declaring task parameters that omitted
|
289
|
+
the task argument array and used the :needs keyword to introduce the
|
290
|
+
dependencies. That format is still supported for compatibility, but
|
291
|
+
is not recommended for use. The older format may be dropped in future
|
292
|
+
versions of rake.
|
293
|
+
|
294
|
+
== Accessing Task Programmatically
|
295
|
+
|
296
|
+
Sometimes it is useful to manipulate tasks programmatically in a
|
297
|
+
Rakefile. To find a task object, use the <tt>:[]</tt> operator on the
|
298
|
+
<tt>Rake::Task</tt>.
|
299
|
+
|
300
|
+
=== Programmatic Task Example
|
301
|
+
|
302
|
+
For example, the following Rakefile defines two tasks. The :doit task
|
303
|
+
simply prints a simple "DONE" message. The :dont class will lookup
|
304
|
+
the doit class and remove (clear) all of its prerequisites and
|
305
|
+
actions.
|
306
|
+
|
307
|
+
task :doit do
|
308
|
+
puts "DONE"
|
309
|
+
end
|
310
|
+
|
311
|
+
task :dont do
|
312
|
+
Rake::Task[:doit].clear
|
313
|
+
end
|
314
|
+
|
315
|
+
Running this example:
|
316
|
+
|
317
|
+
$ rake doit
|
318
|
+
(in /Users/jim/working/git/rake/x)
|
319
|
+
DONE
|
320
|
+
$ rake dont doit
|
321
|
+
(in /Users/jim/working/git/rake/x)
|
322
|
+
$
|
323
|
+
|
324
|
+
The ability to programmatically manipulate tasks gives rake very
|
325
|
+
powerful meta-programming capabilities w.r.t. task execution, but
|
326
|
+
should be used with caution.
|
327
|
+
|
328
|
+
== Rules
|
329
|
+
|
330
|
+
When a file is named as a prerequisite, but does not have a file task
|
331
|
+
defined for it, Rake will attempt to synthesize a task by looking at a
|
332
|
+
list of rules supplied in the Rakefile.
|
333
|
+
|
334
|
+
Suppose we were trying to invoke task "mycode.o", but no task is
|
335
|
+
defined for it. But the rakefile has a rule that look like this ...
|
336
|
+
|
337
|
+
rule '.o' => ['.c'] do |t|
|
338
|
+
sh "cc #{t.source} -c -o #{t.name}"
|
339
|
+
end
|
340
|
+
|
341
|
+
This rule will synthesize any task that ends in ".o". It has a
|
342
|
+
prerequisite a source file with an extension of ".c" must exist. If
|
343
|
+
Rake is able to find a file named "mycode.c", it will automatically
|
344
|
+
create a task that builds "mycode.o" from "mycode.c".
|
345
|
+
|
346
|
+
If the file "mycode.c" does not exist, rake will attempt
|
347
|
+
to recursively synthesize a rule for it.
|
348
|
+
|
349
|
+
When a task is synthesized from a rule, the +source+ attribute of the
|
350
|
+
task is set to the matching source file. This allows us to write
|
351
|
+
rules with actions that reference the source file.
|
352
|
+
|
353
|
+
=== Advanced Rules
|
354
|
+
|
355
|
+
Any regular expression may be used as the rule pattern. Additionally,
|
356
|
+
a proc may be used to calculate the name of the source file. This
|
357
|
+
allows for complex patterns and sources.
|
358
|
+
|
359
|
+
The following rule is equivalent to the example above.
|
360
|
+
|
361
|
+
rule( /\.o$/ => [
|
362
|
+
proc {|task_name| task_name.sub(/\.[^.]+$/, '.c') }
|
363
|
+
]) do |t|
|
364
|
+
sh "cc #{t.source} -c -o #{t.name}"
|
365
|
+
end
|
366
|
+
|
367
|
+
<b>NOTE:</b> Because of a _quirk_ in Ruby syntax, parenthesis are
|
368
|
+
required on *rule* when the first argument is a regular expression.
|
369
|
+
|
370
|
+
The following rule might be used for Java files ...
|
371
|
+
|
372
|
+
rule '.class' => [
|
373
|
+
proc { |tn| tn.sub(/\.class$/, '.java').sub(/^classes\//, 'src/') }
|
374
|
+
] do |t|
|
375
|
+
java_compile(t.source, t.name)
|
376
|
+
end
|
377
|
+
|
378
|
+
<b>NOTE:</b> +java_compile+ is a hypothetical method that invokes the
|
379
|
+
java compiler.
|
380
|
+
|
381
|
+
== Importing Dependencies
|
382
|
+
|
383
|
+
Any ruby file (including other rakefiles) can be included with a
|
384
|
+
standard Ruby +require+ command. The rules and declarations in the
|
385
|
+
required file are just added to the definitions already accumulated.
|
386
|
+
|
387
|
+
Because the files are loaded _before_ the rake targets are evaluated,
|
388
|
+
the loaded files must be "ready to go" when the rake command is
|
389
|
+
invoked. This makes generated dependency files difficult to use. By
|
390
|
+
the time rake gets around to updating the dependencies file, it is too
|
391
|
+
late to load it.
|
392
|
+
|
393
|
+
The +import+ command addresses this by specifying a file to be loaded
|
394
|
+
_after_ the main rakefile is loaded, but _before_ any targets on the
|
395
|
+
command line are invoked. In addition, if the file name matches an
|
396
|
+
explicit task, that task is invoked before loading the file. This
|
397
|
+
allows dependency files to be generated and used in a single rake
|
398
|
+
command invocation.
|
399
|
+
|
400
|
+
=== Example:
|
401
|
+
|
402
|
+
require 'rake/loaders/makefile'
|
403
|
+
|
404
|
+
file ".depends.mf" => [SRC_LIST] do |t|
|
405
|
+
sh "makedepend -f- -- #{CFLAGS} -- #{t.prerequisites} > #{t.name}"
|
406
|
+
end
|
407
|
+
|
408
|
+
import ".depends.mf"
|
409
|
+
|
410
|
+
If ".depends" does not exist, or is out of date w.r.t. the source
|
411
|
+
files, a new ".depends" file is generated using +makedepend+ before
|
412
|
+
loading.
|
413
|
+
|
414
|
+
== Comments
|
415
|
+
|
416
|
+
Standard Ruby comments (beginning with "#") can be used anywhere it is
|
417
|
+
legal in Ruby source code, including comments for tasks and rules.
|
418
|
+
However, if you wish a task to be described using the "-T" switch,
|
419
|
+
then you need to use the +desc+ command to describe the task.
|
420
|
+
|
421
|
+
=== Example:
|
422
|
+
|
423
|
+
desc "Create a distribution package"
|
424
|
+
task :package => [ ... ] do ... end
|
425
|
+
|
426
|
+
The "-T" switch (or "--tasks" if you like to spell things out) will
|
427
|
+
display a list of tasks that have a description. If you use +desc+ to
|
428
|
+
describe your major tasks, you have a semi-automatic way of generating
|
429
|
+
a summary of your Rake file.
|
430
|
+
|
431
|
+
traken$ rake -T
|
432
|
+
(in /home/.../rake)
|
433
|
+
rake clean # Remove any temporary products.
|
434
|
+
rake clobber # Remove any generated file.
|
435
|
+
rake clobber_rdoc # Remove rdoc products
|
436
|
+
rake contrib_test # Run tests for contrib_test
|
437
|
+
rake default # Default Task
|
438
|
+
rake install # Install the application
|
439
|
+
rake lines # Count lines in the main rake file
|
440
|
+
rake rdoc # Build the rdoc HTML Files
|
441
|
+
rake rerdoc # Force a rebuild of the RDOC files
|
442
|
+
rake test # Run tests
|
443
|
+
rake testall # Run all test targets
|
444
|
+
|
445
|
+
Only tasks with descriptions will be displayed with the "-T" switch.
|
446
|
+
Use "-P" (or "--prereqs") to get a list of all tasks and their
|
447
|
+
prerequisites.
|
448
|
+
|
449
|
+
== Namespaces
|
450
|
+
|
451
|
+
As projects grow (and along with it, the number of tasks), it is
|
452
|
+
common for task names to begin to clash. For example, if you might
|
453
|
+
have a main program and a set of sample programs built by a single
|
454
|
+
Rakefile. By placing the tasks related to the main program in one
|
455
|
+
namespace, and the tasks for building the sample programs in a
|
456
|
+
different namespace, the task names will not will not interfere with
|
457
|
+
each other.
|
458
|
+
|
459
|
+
For example:
|
460
|
+
|
461
|
+
namespace "main" do
|
462
|
+
task :build do
|
463
|
+
# Build the main program
|
464
|
+
end
|
465
|
+
end
|
466
|
+
|
467
|
+
namespace "samples" do
|
468
|
+
task :build do
|
469
|
+
# Build the sample programs
|
470
|
+
end
|
471
|
+
end
|
472
|
+
|
473
|
+
task :build => ["main:build", "samples:build"]
|
474
|
+
|
475
|
+
Referencing a task in a separate namespace can be achieved by
|
476
|
+
prefixing the task name with the namespace and a colon
|
477
|
+
(e.g. "main:build" refers to the :build task in the +main+ namespace).
|
478
|
+
Nested namespaces are supported, so
|
479
|
+
|
480
|
+
Note that the name given in the +task+ command is always the unadorned
|
481
|
+
task name without any namespace prefixes. The +task+ command always
|
482
|
+
defines a task in the current namespace.
|
483
|
+
|
484
|
+
=== FileTasks
|
485
|
+
|
486
|
+
File task names are not scoped by the namespace command. Since the
|
487
|
+
name of a file task is the name of an actual file in the file system,
|
488
|
+
it makes little sense to include file task names in name space.
|
489
|
+
Directory tasks (created by the +directory+ command) are a type of
|
490
|
+
file task and are also not affected by namespaces.
|
491
|
+
|
492
|
+
=== Name Resolution
|
493
|
+
|
494
|
+
When looking up a task name, rake will start with the current
|
495
|
+
namespace and attempt to find the name there. If it fails to find a
|
496
|
+
name in the current namespace, it will search the parent namespaces
|
497
|
+
until a match is found (or an error occurs if there is no match).
|
498
|
+
|
499
|
+
The "rake" namespace is a special implicit namespace that refers to
|
500
|
+
the toplevel names.
|
501
|
+
|
502
|
+
If a task name begins with a "^" character, the name resolution will
|
503
|
+
start in the parent namespace. Multiple "^" characters are allowed.
|
504
|
+
|
505
|
+
Here is an example file with multiple :run tasks and how various names
|
506
|
+
resolve in different locations.
|
507
|
+
|
508
|
+
task :run
|
509
|
+
|
510
|
+
namespace "one" do
|
511
|
+
task :run
|
512
|
+
|
513
|
+
namespace "two" do
|
514
|
+
task :run
|
515
|
+
|
516
|
+
# :run => "one:two:run"
|
517
|
+
# "two:run" => "one:two:run"
|
518
|
+
# "one:two:run" => "one:two:run"
|
519
|
+
# "one:run" => "one:run"
|
520
|
+
# "^run" => "one:run"
|
521
|
+
# "^^run" => "rake:run" (the top level task)
|
522
|
+
# "rake:run" => "rake:run" (the top level task)
|
523
|
+
end
|
524
|
+
|
525
|
+
# :run => "one:run"
|
526
|
+
# "two:run" => "one:two:run"
|
527
|
+
# "^run" => "rake:run"
|
528
|
+
end
|
529
|
+
|
530
|
+
# :run => "rake:run"
|
531
|
+
# "one:run" => "one:run"
|
532
|
+
# "one:two:run" => "one:two:run"
|
533
|
+
|
534
|
+
== FileLists
|
535
|
+
|
536
|
+
FileLists are the way Rake manages lists of files. You can treat a
|
537
|
+
FileList as an array of strings for the most part, but FileLists
|
538
|
+
support some additional operations.
|
539
|
+
|
540
|
+
=== Creating a FileList
|
541
|
+
|
542
|
+
Creating a file list is easy. Just give it the list of file names:
|
543
|
+
|
544
|
+
fl = FileList['file1.rb', file2.rb']
|
545
|
+
|
546
|
+
Or give it a glob pattern:
|
547
|
+
|
548
|
+
fl = FileList['*.rb']
|
549
|
+
|
550
|
+
== Odds and Ends
|
551
|
+
|
552
|
+
=== do/end versus { }
|
553
|
+
|
554
|
+
Blocks may be specified with either a +do+/+end+ pair, or with curly
|
555
|
+
braces in Ruby. We _strongly_ recommend using +do+/+end+ to specify the
|
556
|
+
actions for tasks and rules. Because the rakefile idiom tends to
|
557
|
+
leave off parentheses on the task/file/rule methods, unusual
|
558
|
+
ambiguities can arise when using curly braces.
|
559
|
+
|
560
|
+
For example, suppose that the method +object_files+ returns a list of
|
561
|
+
object files in a project. Now we use +object_files+ as the
|
562
|
+
prerequisites in a rule specified with actions in curly braces.
|
563
|
+
|
564
|
+
# DON'T DO THIS!
|
565
|
+
file "prog" => object_files {
|
566
|
+
# Actions are expected here (but it doesn't work)!
|
567
|
+
}
|
568
|
+
|
569
|
+
Because curly braces have a higher precedence than +do+/+end+, the
|
570
|
+
block is associated with the +object_files+ method rather than the
|
571
|
+
+file+ method.
|
572
|
+
|
573
|
+
This is the proper way to specify the task ...
|
574
|
+
|
575
|
+
# THIS IS FINE
|
576
|
+
file "prog" => object_files do
|
577
|
+
# Actions go here
|
578
|
+
end
|
579
|
+
|
580
|
+
== Rakefile Path
|
581
|
+
|
582
|
+
When issuing the <tt>rake</tt> command in a terminal, Rake will look
|
583
|
+
for a Rakefile in the current directory. If a Rakefile is not found,
|
584
|
+
it will search parent directories until one is found.
|
585
|
+
|
586
|
+
For example, if a Rakefile resides in the <tt>project/</tt> directory,
|
587
|
+
moving deeper into the project's directory tree will not have an adverse
|
588
|
+
effect on rake tasks:
|
589
|
+
|
590
|
+
$ pwd
|
591
|
+
/home/user/project
|
592
|
+
|
593
|
+
$ cd lib/foo/bar
|
594
|
+
$ pwd
|
595
|
+
/home/user/project/lib/foo/bar
|
596
|
+
|
597
|
+
$ rake run_pwd
|
598
|
+
/home/user/project
|
599
|
+
|
600
|
+
As far as rake is concerned, all tasks are run from the directory in
|
601
|
+
which the Rakefile resides.
|
602
|
+
|
603
|
+
=== Multiple Rake Files
|
604
|
+
|
605
|
+
Not all tasks need to be included in a single Rakefile. Additional
|
606
|
+
rake files (with the file extension "<tt>.rake</tt>") may be placed in
|
607
|
+
<tt>rakelib</tt> directory located at the top level of a project (i.e.
|
608
|
+
the same directory that contains the main <tt>Rakefile</tt>).
|
609
|
+
|
610
|
+
Also, rails projects may include additional rake files in the
|
611
|
+
<tt>lib/tasks</tt> directory.
|
612
|
+
|
613
|
+
----
|
614
|
+
|
615
|
+
== See
|
616
|
+
|
617
|
+
* README.rdoc -- Main documentation for Rake.
|