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,728 @@
|
|
1
|
+
require 'shellwords'
|
2
|
+
require 'optparse'
|
3
|
+
|
4
|
+
require 'rake/task_manager'
|
5
|
+
require 'rake/file_list'
|
6
|
+
require 'rake/thread_pool'
|
7
|
+
require 'rake/thread_history_display'
|
8
|
+
require 'rake/trace_output'
|
9
|
+
require 'rake/win32'
|
10
|
+
|
11
|
+
module Rake
|
12
|
+
|
13
|
+
CommandLineOptionError = Class.new(StandardError)
|
14
|
+
|
15
|
+
######################################################################
|
16
|
+
# Rake main application object. When invoking +rake+ from the
|
17
|
+
# command line, a Rake::Application object is created and run.
|
18
|
+
#
|
19
|
+
class Application
|
20
|
+
include TaskManager
|
21
|
+
include TraceOutput
|
22
|
+
|
23
|
+
# The name of the application (typically 'rake')
|
24
|
+
attr_reader :name
|
25
|
+
|
26
|
+
# The original directory where rake was invoked.
|
27
|
+
attr_reader :original_dir
|
28
|
+
|
29
|
+
# Name of the actual rakefile used.
|
30
|
+
attr_reader :rakefile
|
31
|
+
|
32
|
+
# Number of columns on the terminal
|
33
|
+
attr_accessor :terminal_columns
|
34
|
+
|
35
|
+
# List of the top level task names (task names from the command line).
|
36
|
+
attr_reader :top_level_tasks
|
37
|
+
|
38
|
+
DEFAULT_RAKEFILES = [
|
39
|
+
'rakefile',
|
40
|
+
'Rakefile',
|
41
|
+
'rakefile.rb',
|
42
|
+
'Rakefile.rb'
|
43
|
+
].freeze
|
44
|
+
|
45
|
+
# Initialize a Rake::Application object.
|
46
|
+
def initialize
|
47
|
+
super
|
48
|
+
@name = 'rake'
|
49
|
+
@rakefiles = DEFAULT_RAKEFILES.dup
|
50
|
+
@rakefile = nil
|
51
|
+
@pending_imports = []
|
52
|
+
@imported = []
|
53
|
+
@loaders = {}
|
54
|
+
@default_loader = Rake::DefaultLoader.new
|
55
|
+
@original_dir = Dir.pwd
|
56
|
+
@top_level_tasks = []
|
57
|
+
add_loader('rb', DefaultLoader.new)
|
58
|
+
add_loader('rf', DefaultLoader.new)
|
59
|
+
add_loader('rake', DefaultLoader.new)
|
60
|
+
@tty_output = STDOUT.tty?
|
61
|
+
@terminal_columns = ENV['RAKE_COLUMNS'].to_i
|
62
|
+
end
|
63
|
+
|
64
|
+
# Run the Rake application. The run method performs the following
|
65
|
+
# three steps:
|
66
|
+
#
|
67
|
+
# * Initialize the command line options (+init+).
|
68
|
+
# * Define the tasks (+load_rakefile+).
|
69
|
+
# * Run the top level tasks (+top_level+).
|
70
|
+
#
|
71
|
+
# If you wish to build a custom rake command, you should call
|
72
|
+
# +init+ on your application. Then define any tasks. Finally,
|
73
|
+
# call +top_level+ to run your top level tasks.
|
74
|
+
def run
|
75
|
+
standard_exception_handling do
|
76
|
+
init
|
77
|
+
load_rakefile
|
78
|
+
top_level
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
# Initialize the command line parameters and app name.
|
83
|
+
def init(app_name='rake')
|
84
|
+
standard_exception_handling do
|
85
|
+
@name = app_name
|
86
|
+
handle_options
|
87
|
+
collect_tasks
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
# Find the rakefile and then load it and any pending imports.
|
92
|
+
def load_rakefile
|
93
|
+
standard_exception_handling do
|
94
|
+
raw_load_rakefile
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
# Run the top level tasks of a Rake application.
|
99
|
+
def top_level
|
100
|
+
run_with_threads do
|
101
|
+
if options.show_tasks
|
102
|
+
display_tasks_and_comments
|
103
|
+
elsif options.show_prereqs
|
104
|
+
display_prerequisites
|
105
|
+
else
|
106
|
+
top_level_tasks.each { |task_name| invoke_task(task_name) }
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
# Run the given block with the thread startup and shutdown.
|
112
|
+
def run_with_threads
|
113
|
+
thread_pool.gather_history if options.job_stats == :history
|
114
|
+
|
115
|
+
yield
|
116
|
+
|
117
|
+
thread_pool.join
|
118
|
+
if options.job_stats
|
119
|
+
stats = thread_pool.statistics
|
120
|
+
puts "Maximum active threads: #{stats[:max_active_threads]}"
|
121
|
+
puts "Total threads in play: #{stats[:total_threads_in_play]}"
|
122
|
+
end
|
123
|
+
ThreadHistoryDisplay.new(thread_pool.history).show if
|
124
|
+
options.job_stats == :history
|
125
|
+
end
|
126
|
+
|
127
|
+
# Add a loader to handle imported files ending in the extension
|
128
|
+
# +ext+.
|
129
|
+
def add_loader(ext, loader)
|
130
|
+
ext = ".#{ext}" unless ext =~ /^\./
|
131
|
+
@loaders[ext] = loader
|
132
|
+
end
|
133
|
+
|
134
|
+
# Application options from the command line
|
135
|
+
def options
|
136
|
+
@options ||= OpenStruct.new
|
137
|
+
end
|
138
|
+
|
139
|
+
# Return the thread pool used for multithreaded processing.
|
140
|
+
def thread_pool # :nodoc:
|
141
|
+
@thread_pool ||= ThreadPool.new(options.thread_pool_size || FIXNUM_MAX)
|
142
|
+
end
|
143
|
+
|
144
|
+
# private ----------------------------------------------------------------
|
145
|
+
|
146
|
+
def invoke_task(task_string)
|
147
|
+
name, args = parse_task_string(task_string)
|
148
|
+
t = self[name]
|
149
|
+
t.invoke(*args)
|
150
|
+
end
|
151
|
+
|
152
|
+
def parse_task_string(string)
|
153
|
+
if string =~ /^([^\[]+)(\[(.*)\])$/
|
154
|
+
name = $1
|
155
|
+
args = $3.split(/\s*,\s*/)
|
156
|
+
else
|
157
|
+
name = string
|
158
|
+
args = []
|
159
|
+
end
|
160
|
+
[name, args]
|
161
|
+
end
|
162
|
+
|
163
|
+
# Provide standard exception handling for the given block.
|
164
|
+
def standard_exception_handling
|
165
|
+
yield
|
166
|
+
rescue SystemExit
|
167
|
+
# Exit silently with current status
|
168
|
+
raise
|
169
|
+
rescue OptionParser::InvalidOption => ex
|
170
|
+
$stderr.puts ex.message
|
171
|
+
exit(false)
|
172
|
+
rescue Exception => ex
|
173
|
+
# Exit with error message
|
174
|
+
display_error_message(ex)
|
175
|
+
exit_because_of_exception(ex)
|
176
|
+
end
|
177
|
+
|
178
|
+
# Exit the program because of an unhandle exception.
|
179
|
+
# (may be overridden by subclasses)
|
180
|
+
def exit_because_of_exception(ex)
|
181
|
+
exit(false)
|
182
|
+
end
|
183
|
+
|
184
|
+
# Display the error message that caused the exception.
|
185
|
+
def display_error_message(ex)
|
186
|
+
trace "#{name} aborted!"
|
187
|
+
trace ex.message
|
188
|
+
if options.backtrace
|
189
|
+
trace ex.backtrace.join("\n")
|
190
|
+
else
|
191
|
+
trace Backtrace.collapse(ex.backtrace).join("\n")
|
192
|
+
end
|
193
|
+
trace "Tasks: #{ex.chain}" if has_chain?(ex)
|
194
|
+
trace "(See full trace by running task with --trace)" unless
|
195
|
+
options.backtrace
|
196
|
+
end
|
197
|
+
|
198
|
+
# Warn about deprecated usage.
|
199
|
+
#
|
200
|
+
# Example:
|
201
|
+
# Rake.application.deprecate("import", "Rake.import", caller.first)
|
202
|
+
#
|
203
|
+
def deprecate(old_usage, new_usage, call_site)
|
204
|
+
unless options.ignore_deprecate
|
205
|
+
$stderr.puts "WARNING: '#{old_usage}' is deprecated. " +
|
206
|
+
"Please use '#{new_usage}' instead.\n" +
|
207
|
+
" at #{call_site}"
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
211
|
+
# Does the exception have a task invocation chain?
|
212
|
+
def has_chain?(exception)
|
213
|
+
exception.respond_to?(:chain) && exception.chain
|
214
|
+
end
|
215
|
+
private :has_chain?
|
216
|
+
|
217
|
+
# True if one of the files in RAKEFILES is in the current directory.
|
218
|
+
# If a match is found, it is copied into @rakefile.
|
219
|
+
def have_rakefile
|
220
|
+
@rakefiles.each do |fn|
|
221
|
+
if File.exist?(fn)
|
222
|
+
others = FileList.glob(fn, File::FNM_CASEFOLD)
|
223
|
+
return others.size == 1 ? others.first : fn
|
224
|
+
elsif fn == ''
|
225
|
+
return fn
|
226
|
+
end
|
227
|
+
end
|
228
|
+
return nil
|
229
|
+
end
|
230
|
+
|
231
|
+
# True if we are outputting to TTY, false otherwise
|
232
|
+
def tty_output?
|
233
|
+
@tty_output
|
234
|
+
end
|
235
|
+
|
236
|
+
# Override the detected TTY output state (mostly for testing)
|
237
|
+
def tty_output=(tty_output_state)
|
238
|
+
@tty_output = tty_output_state
|
239
|
+
end
|
240
|
+
|
241
|
+
# We will truncate output if we are outputting to a TTY or if we've been
|
242
|
+
# given an explicit column width to honor
|
243
|
+
def truncate_output?
|
244
|
+
tty_output? || @terminal_columns.nonzero?
|
245
|
+
end
|
246
|
+
|
247
|
+
# Display the tasks and comments.
|
248
|
+
def display_tasks_and_comments
|
249
|
+
displayable_tasks = tasks.select { |t|
|
250
|
+
(options.show_all_tasks || t.comment) &&
|
251
|
+
t.name =~ options.show_task_pattern
|
252
|
+
}
|
253
|
+
case options.show_tasks
|
254
|
+
when :tasks
|
255
|
+
width = displayable_tasks.map { |t| t.name_with_args.length }.max || 10
|
256
|
+
if truncate_output?
|
257
|
+
max_column = terminal_width - name.size - width - 7
|
258
|
+
else
|
259
|
+
max_column = nil
|
260
|
+
end
|
261
|
+
|
262
|
+
displayable_tasks.each do |t|
|
263
|
+
printf("#{name} %-#{width}s # %s\n",
|
264
|
+
t.name_with_args,
|
265
|
+
max_column ? truncate(t.comment, max_column) : t.comment)
|
266
|
+
end
|
267
|
+
when :describe
|
268
|
+
displayable_tasks.each do |t|
|
269
|
+
puts "#{name} #{t.name_with_args}"
|
270
|
+
comment = t.full_comment || ""
|
271
|
+
comment.split("\n").each do |line|
|
272
|
+
puts " #{line}"
|
273
|
+
end
|
274
|
+
puts
|
275
|
+
end
|
276
|
+
when :lines
|
277
|
+
displayable_tasks.each do |t|
|
278
|
+
t.locations.each do |loc|
|
279
|
+
printf "#{name} %-30s %s\n", t.name_with_args, loc
|
280
|
+
end
|
281
|
+
end
|
282
|
+
else
|
283
|
+
fail "Unknown show task mode: '#{options.show_tasks}'"
|
284
|
+
end
|
285
|
+
end
|
286
|
+
|
287
|
+
def terminal_width
|
288
|
+
if @terminal_columns.nonzero?
|
289
|
+
result = @terminal_columns
|
290
|
+
else
|
291
|
+
result = unix? ? dynamic_width : 80
|
292
|
+
end
|
293
|
+
(result < 10) ? 80 : result
|
294
|
+
rescue
|
295
|
+
80
|
296
|
+
end
|
297
|
+
|
298
|
+
# Calculate the dynamic width of the
|
299
|
+
def dynamic_width
|
300
|
+
@dynamic_width ||= (dynamic_width_stty.nonzero? || dynamic_width_tput)
|
301
|
+
end
|
302
|
+
|
303
|
+
def dynamic_width_stty
|
304
|
+
%x{stty size 2>/dev/null}.split[1].to_i
|
305
|
+
end
|
306
|
+
|
307
|
+
def dynamic_width_tput
|
308
|
+
%x{tput cols 2>/dev/null}.to_i
|
309
|
+
end
|
310
|
+
|
311
|
+
def unix?
|
312
|
+
RbConfig::CONFIG['host_os'] =~
|
313
|
+
/(aix|darwin|linux|(net|free|open)bsd|cygwin|solaris|irix|hpux)/i
|
314
|
+
end
|
315
|
+
|
316
|
+
def windows?
|
317
|
+
Win32.windows?
|
318
|
+
end
|
319
|
+
|
320
|
+
def truncate(string, width)
|
321
|
+
if string.nil?
|
322
|
+
""
|
323
|
+
elsif string.length <= width
|
324
|
+
string
|
325
|
+
else
|
326
|
+
(string[0, width - 3] || "") + "..."
|
327
|
+
end
|
328
|
+
end
|
329
|
+
|
330
|
+
# Display the tasks and prerequisites
|
331
|
+
def display_prerequisites
|
332
|
+
tasks.each do |t|
|
333
|
+
puts "#{name} #{t.name}"
|
334
|
+
t.prerequisites.each { |pre| puts " #{pre}" }
|
335
|
+
end
|
336
|
+
end
|
337
|
+
|
338
|
+
def trace(*strings)
|
339
|
+
options.trace_output ||= $stderr
|
340
|
+
trace_on(options.trace_output, *strings)
|
341
|
+
end
|
342
|
+
|
343
|
+
def sort_options(options)
|
344
|
+
options.sort_by { |opt|
|
345
|
+
opt.select { |o| o =~ /^-/ }.map { |o| o.downcase }.sort.reverse
|
346
|
+
}
|
347
|
+
end
|
348
|
+
private :sort_options
|
349
|
+
|
350
|
+
# A list of all the standard options used in rake, suitable for
|
351
|
+
# passing to OptionParser.
|
352
|
+
def standard_rake_options
|
353
|
+
sort_options(
|
354
|
+
[
|
355
|
+
['--all', '-A',
|
356
|
+
"Show all tasks, even uncommented ones",
|
357
|
+
lambda { |value|
|
358
|
+
options.show_all_tasks = value
|
359
|
+
}
|
360
|
+
],
|
361
|
+
['--backtrace=[OUT]',
|
362
|
+
"Enable full backtrace. OUT can be stderr (default) or stdout.",
|
363
|
+
lambda { |value|
|
364
|
+
options.backtrace = true
|
365
|
+
select_trace_output(options, 'backtrace', value)
|
366
|
+
}
|
367
|
+
],
|
368
|
+
['--comments',
|
369
|
+
"Show commented tasks only",
|
370
|
+
lambda { |value|
|
371
|
+
options.show_all_tasks = !value
|
372
|
+
}
|
373
|
+
],
|
374
|
+
['--describe', '-D [PATTERN]',
|
375
|
+
"Describe the tasks (matching optional PATTERN), then exit.",
|
376
|
+
lambda { |value|
|
377
|
+
select_tasks_to_show(options, :describe, value)
|
378
|
+
}
|
379
|
+
],
|
380
|
+
['--dry-run', '-n',
|
381
|
+
"Do a dry run without executing actions.",
|
382
|
+
lambda { |value|
|
383
|
+
Rake.verbose(true)
|
384
|
+
Rake.nowrite(true)
|
385
|
+
options.dryrun = true
|
386
|
+
options.trace = true
|
387
|
+
}
|
388
|
+
],
|
389
|
+
['--execute', '-e CODE',
|
390
|
+
"Execute some Ruby code and exit.",
|
391
|
+
lambda { |value|
|
392
|
+
eval(value)
|
393
|
+
exit
|
394
|
+
}
|
395
|
+
],
|
396
|
+
['--execute-print', '-p CODE',
|
397
|
+
"Execute some Ruby code, print the result, then exit.",
|
398
|
+
lambda { |value|
|
399
|
+
puts eval(value)
|
400
|
+
exit
|
401
|
+
}
|
402
|
+
],
|
403
|
+
['--execute-continue', '-E CODE',
|
404
|
+
"Execute some Ruby code, " +
|
405
|
+
"then continue with normal task processing.",
|
406
|
+
lambda { |value| eval(value) }
|
407
|
+
],
|
408
|
+
['--jobs', '-j [NUMBER]',
|
409
|
+
"Specifies the maximum number of tasks to execute in parallel. " +
|
410
|
+
"(default is 2)",
|
411
|
+
lambda { |value|
|
412
|
+
options.thread_pool_size = [(value || 2).to_i, 2].max
|
413
|
+
}
|
414
|
+
],
|
415
|
+
['--job-stats [LEVEL]',
|
416
|
+
"Display job statistics. " +
|
417
|
+
"LEVEL=history displays a complete job list",
|
418
|
+
lambda { |value|
|
419
|
+
if value =~ /^history/i
|
420
|
+
options.job_stats = :history
|
421
|
+
else
|
422
|
+
options.job_stats = true
|
423
|
+
end
|
424
|
+
}
|
425
|
+
],
|
426
|
+
['--libdir', '-I LIBDIR',
|
427
|
+
"Include LIBDIR in the search path for required modules.",
|
428
|
+
lambda { |value| $:.push(value) }
|
429
|
+
],
|
430
|
+
['--multitask', '-m',
|
431
|
+
"Treat all tasks as multitasks.",
|
432
|
+
lambda { |value| options.always_multitask = true }
|
433
|
+
],
|
434
|
+
['--no-search', '--nosearch',
|
435
|
+
'-N', "Do not search parent directories for the Rakefile.",
|
436
|
+
lambda { |value| options.nosearch = true }
|
437
|
+
],
|
438
|
+
['--prereqs', '-P',
|
439
|
+
"Display the tasks and dependencies, then exit.",
|
440
|
+
lambda { |value| options.show_prereqs = true }
|
441
|
+
],
|
442
|
+
['--quiet', '-q',
|
443
|
+
"Do not log messages to standard output.",
|
444
|
+
lambda { |value| Rake.verbose(false) }
|
445
|
+
],
|
446
|
+
['--rakefile', '-f [FILE]',
|
447
|
+
"Use FILE as the rakefile.",
|
448
|
+
lambda { |value|
|
449
|
+
value ||= ''
|
450
|
+
@rakefiles.clear
|
451
|
+
@rakefiles << value
|
452
|
+
}
|
453
|
+
],
|
454
|
+
['--rakelibdir', '--rakelib', '-R RAKELIBDIR',
|
455
|
+
"Auto-import any .rake files in RAKELIBDIR. " +
|
456
|
+
"(default is 'rakelib')",
|
457
|
+
lambda { |value|
|
458
|
+
options.rakelib = value.split(File::PATH_SEPARATOR)
|
459
|
+
}
|
460
|
+
],
|
461
|
+
['--require', '-r MODULE',
|
462
|
+
"Require MODULE before executing rakefile.",
|
463
|
+
lambda { |value|
|
464
|
+
begin
|
465
|
+
require value
|
466
|
+
rescue LoadError => ex
|
467
|
+
begin
|
468
|
+
rake_require value
|
469
|
+
rescue LoadError
|
470
|
+
raise ex
|
471
|
+
end
|
472
|
+
end
|
473
|
+
}
|
474
|
+
],
|
475
|
+
['--rules',
|
476
|
+
"Trace the rules resolution.",
|
477
|
+
lambda { |value| options.trace_rules = true }
|
478
|
+
],
|
479
|
+
['--silent', '-s',
|
480
|
+
"Like --quiet, but also suppresses the " +
|
481
|
+
"'in directory' announcement.",
|
482
|
+
lambda { |value|
|
483
|
+
Rake.verbose(false)
|
484
|
+
options.silent = true
|
485
|
+
}
|
486
|
+
],
|
487
|
+
['--suppress-backtrace PATTERN',
|
488
|
+
"Suppress backtrace lines matching regexp PATTERN. " +
|
489
|
+
"Ignored if --trace is on.",
|
490
|
+
lambda { |value|
|
491
|
+
options.suppress_backtrace_pattern = Regexp.new(value)
|
492
|
+
}
|
493
|
+
],
|
494
|
+
['--system', '-g',
|
495
|
+
"Using system wide (global) rakefiles " +
|
496
|
+
"(usually '~/.rake/*.rake').",
|
497
|
+
lambda { |value| options.load_system = true }
|
498
|
+
],
|
499
|
+
['--no-system', '--nosystem', '-G',
|
500
|
+
"Use standard project Rakefile search paths, " +
|
501
|
+
"ignore system wide rakefiles.",
|
502
|
+
lambda { |value| options.ignore_system = true }
|
503
|
+
],
|
504
|
+
['--tasks', '-T [PATTERN]',
|
505
|
+
"Display the tasks (matching optional PATTERN) " +
|
506
|
+
"with descriptions, then exit.",
|
507
|
+
lambda { |value|
|
508
|
+
select_tasks_to_show(options, :tasks, value)
|
509
|
+
}
|
510
|
+
],
|
511
|
+
['--trace=[OUT]', '-t',
|
512
|
+
"Turn on invoke/execute tracing, enable full backtrace. " +
|
513
|
+
"OUT can be stderr (default) or stdout.",
|
514
|
+
lambda { |value|
|
515
|
+
options.trace = true
|
516
|
+
options.backtrace = true
|
517
|
+
select_trace_output(options, 'trace', value)
|
518
|
+
Rake.verbose(true)
|
519
|
+
}
|
520
|
+
],
|
521
|
+
['--verbose', '-v',
|
522
|
+
"Log message to standard output.",
|
523
|
+
lambda { |value| Rake.verbose(true) }
|
524
|
+
],
|
525
|
+
['--version', '-V',
|
526
|
+
"Display the program version.",
|
527
|
+
lambda { |value|
|
528
|
+
puts "rake, version #{RAKEVERSION}"
|
529
|
+
exit
|
530
|
+
}
|
531
|
+
],
|
532
|
+
['--where', '-W [PATTERN]',
|
533
|
+
"Describe the tasks (matching optional PATTERN), then exit.",
|
534
|
+
lambda { |value|
|
535
|
+
select_tasks_to_show(options, :lines, value)
|
536
|
+
options.show_all_tasks = true
|
537
|
+
}
|
538
|
+
],
|
539
|
+
['--no-deprecation-warnings', '-X',
|
540
|
+
"Disable the deprecation warnings.",
|
541
|
+
lambda { |value|
|
542
|
+
options.ignore_deprecate = true
|
543
|
+
}
|
544
|
+
],
|
545
|
+
])
|
546
|
+
end
|
547
|
+
|
548
|
+
def select_tasks_to_show(options, show_tasks, value)
|
549
|
+
options.show_tasks = show_tasks
|
550
|
+
options.show_task_pattern = Regexp.new(value || '')
|
551
|
+
Rake::TaskManager.record_task_metadata = true
|
552
|
+
end
|
553
|
+
private :select_tasks_to_show
|
554
|
+
|
555
|
+
def select_trace_output(options, trace_option, value)
|
556
|
+
value = value.strip unless value.nil?
|
557
|
+
case value
|
558
|
+
when 'stdout'
|
559
|
+
options.trace_output = $stdout
|
560
|
+
when 'stderr', nil
|
561
|
+
options.trace_output = $stderr
|
562
|
+
else
|
563
|
+
fail CommandLineOptionError,
|
564
|
+
"Unrecognized --#{trace_option} option '#{value}'"
|
565
|
+
end
|
566
|
+
end
|
567
|
+
private :select_trace_output
|
568
|
+
|
569
|
+
# Read and handle the command line options.
|
570
|
+
def handle_options
|
571
|
+
options.rakelib = ['rakelib']
|
572
|
+
options.trace_output = $stderr
|
573
|
+
|
574
|
+
OptionParser.new do |opts|
|
575
|
+
opts.banner = "#{Rake.application.name} [-f rakefile] {options} targets..."
|
576
|
+
opts.separator ""
|
577
|
+
opts.separator "Options are ..."
|
578
|
+
|
579
|
+
opts.on_tail("-h", "--help", "-H", "Display this help message.") do
|
580
|
+
puts opts
|
581
|
+
exit
|
582
|
+
end
|
583
|
+
|
584
|
+
standard_rake_options.each { |args| opts.on(*args) }
|
585
|
+
opts.environment('RAKEOPT')
|
586
|
+
end.parse!
|
587
|
+
end
|
588
|
+
|
589
|
+
# Similar to the regular Ruby +require+ command, but will check
|
590
|
+
# for *.rake files in addition to *.rb files.
|
591
|
+
def rake_require(file_name, paths=$LOAD_PATH, loaded=$")
|
592
|
+
fn = file_name + ".rake"
|
593
|
+
return false if loaded.include?(fn)
|
594
|
+
paths.each do |path|
|
595
|
+
full_path = File.join(path, fn)
|
596
|
+
if File.exist?(full_path)
|
597
|
+
Rake.load_rakefile(full_path)
|
598
|
+
loaded << fn
|
599
|
+
return true
|
600
|
+
end
|
601
|
+
end
|
602
|
+
fail LoadError, "Can't find #{file_name}"
|
603
|
+
end
|
604
|
+
|
605
|
+
def find_rakefile_location
|
606
|
+
here = Dir.pwd
|
607
|
+
until (fn = have_rakefile)
|
608
|
+
Dir.chdir("..")
|
609
|
+
return nil if Dir.pwd == here || options.nosearch
|
610
|
+
here = Dir.pwd
|
611
|
+
end
|
612
|
+
[fn, here]
|
613
|
+
ensure
|
614
|
+
Dir.chdir(Rake.original_dir)
|
615
|
+
end
|
616
|
+
|
617
|
+
def print_rakefile_directory(location)
|
618
|
+
$stderr.puts "(in #{Dir.pwd})" unless
|
619
|
+
options.silent or original_dir == location
|
620
|
+
end
|
621
|
+
|
622
|
+
def raw_load_rakefile # :nodoc:
|
623
|
+
rakefile, location = find_rakefile_location
|
624
|
+
if (! options.ignore_system) &&
|
625
|
+
(options.load_system || rakefile.nil?) &&
|
626
|
+
system_dir && File.directory?(system_dir)
|
627
|
+
print_rakefile_directory(location)
|
628
|
+
glob("#{system_dir}/*.rake") do |name|
|
629
|
+
add_import name
|
630
|
+
end
|
631
|
+
else
|
632
|
+
fail "No Rakefile found (looking for: #{@rakefiles.join(', ')})" if
|
633
|
+
rakefile.nil?
|
634
|
+
@rakefile = rakefile
|
635
|
+
Dir.chdir(location)
|
636
|
+
print_rakefile_directory(location)
|
637
|
+
Rake.load_rakefile(File.expand_path(@rakefile)) if
|
638
|
+
@rakefile && @rakefile != ''
|
639
|
+
options.rakelib.each do |rlib|
|
640
|
+
glob("#{rlib}/*.rake") do |name|
|
641
|
+
add_import name
|
642
|
+
end
|
643
|
+
end
|
644
|
+
end
|
645
|
+
load_imports
|
646
|
+
end
|
647
|
+
|
648
|
+
def glob(path, &block)
|
649
|
+
FileList.glob(path.gsub("\\", '/')).each(&block)
|
650
|
+
end
|
651
|
+
private :glob
|
652
|
+
|
653
|
+
# The directory path containing the system wide rakefiles.
|
654
|
+
def system_dir
|
655
|
+
@system_dir ||=
|
656
|
+
begin
|
657
|
+
if ENV['RAKE_SYSTEM']
|
658
|
+
ENV['RAKE_SYSTEM']
|
659
|
+
else
|
660
|
+
standard_system_dir
|
661
|
+
end
|
662
|
+
end
|
663
|
+
end
|
664
|
+
|
665
|
+
# The standard directory containing system wide rake files.
|
666
|
+
if Win32.windows?
|
667
|
+
def standard_system_dir #:nodoc:
|
668
|
+
Win32.win32_system_dir
|
669
|
+
end
|
670
|
+
else
|
671
|
+
def standard_system_dir #:nodoc:
|
672
|
+
File.join(File.expand_path('~'), '.rake')
|
673
|
+
end
|
674
|
+
end
|
675
|
+
private :standard_system_dir
|
676
|
+
|
677
|
+
# Collect the list of tasks on the command line. If no tasks are
|
678
|
+
# given, return a list containing only the default task.
|
679
|
+
# Environmental assignments are processed at this time as well.
|
680
|
+
def collect_tasks
|
681
|
+
@top_level_tasks = []
|
682
|
+
ARGV.each do |arg|
|
683
|
+
if arg =~ /^(\w+)=(.*)$/m
|
684
|
+
ENV[$1] = $2
|
685
|
+
else
|
686
|
+
@top_level_tasks << arg unless arg =~ /^-/
|
687
|
+
end
|
688
|
+
end
|
689
|
+
@top_level_tasks.push(default_task_name) if @top_level_tasks.empty?
|
690
|
+
end
|
691
|
+
|
692
|
+
# Default task name ("default").
|
693
|
+
# (May be overridden by subclasses)
|
694
|
+
def default_task_name
|
695
|
+
"default"
|
696
|
+
end
|
697
|
+
|
698
|
+
# Add a file to the list of files to be imported.
|
699
|
+
def add_import(fn)
|
700
|
+
@pending_imports << fn
|
701
|
+
end
|
702
|
+
|
703
|
+
# Load the pending list of imported files.
|
704
|
+
def load_imports
|
705
|
+
while fn = @pending_imports.shift
|
706
|
+
next if @imported.member?(fn)
|
707
|
+
fn_task = lookup(fn) and fn_task.invoke
|
708
|
+
ext = File.extname(fn)
|
709
|
+
loader = @loaders[ext] || @default_loader
|
710
|
+
loader.load(fn)
|
711
|
+
@imported << fn
|
712
|
+
end
|
713
|
+
end
|
714
|
+
|
715
|
+
def rakefile_location(backtrace=caller)
|
716
|
+
backtrace.map { |t| t[/([^:]+):/, 1] }
|
717
|
+
|
718
|
+
re = /^#{@rakefile}$/
|
719
|
+
re = /#{re.source}/i if windows?
|
720
|
+
|
721
|
+
backtrace.find { |str| str =~ re } || ''
|
722
|
+
end
|
723
|
+
|
724
|
+
private
|
725
|
+
FIXNUM_MAX = (2**(0.size * 8 - 2) - 1) # :nodoc:
|
726
|
+
|
727
|
+
end
|
728
|
+
end
|