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,291 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class ShouldTest < Test::Unit::TestCase # :nodoc:
|
4
|
+
should "be able to define a should statement outside of a context" do
|
5
|
+
assert true
|
6
|
+
end
|
7
|
+
|
8
|
+
should "see the name of my class as ShouldTest" do
|
9
|
+
assert_equal "ShouldTest", self.class.name
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.should_see_class_methods
|
13
|
+
should "be able to see class methods" do
|
14
|
+
assert true
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.should_be_able_to_setup_a_should_eventually_in_a_class_method
|
19
|
+
should "be able to setup a should eventually in a class method"
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.should_see_a_context_block_like_a_Test_Unit_class
|
23
|
+
should "see a context block as a Test::Unit class" do
|
24
|
+
assert_equal "ShouldTest", self.class.name
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.should_see_blah
|
29
|
+
should "see @blah through a macro" do
|
30
|
+
assert @blah
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
def self.should_not_see_blah
|
35
|
+
should "not see @blah through a macro" do
|
36
|
+
assert !instance_variable_defined?(:@blah)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.should_be_able_to_make_context_macros(prefix = nil)
|
41
|
+
context "a macro" do
|
42
|
+
should "have the tests named correctly" do
|
43
|
+
assert_match(/^test: #{prefix}a macro should have the tests named correctly/, self.to_s)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
context "Context" do
|
49
|
+
should_see_class_methods
|
50
|
+
should_see_a_context_block_like_a_Test_Unit_class
|
51
|
+
should_be_able_to_make_context_macros("Context ")
|
52
|
+
should_be_able_to_setup_a_should_eventually_in_a_class_method
|
53
|
+
|
54
|
+
should "not define @blah" do
|
55
|
+
assert ! self.instance_variables.include?("@blah")
|
56
|
+
end
|
57
|
+
|
58
|
+
should_not_see_blah
|
59
|
+
|
60
|
+
should "be able to define a should statement" do
|
61
|
+
assert true
|
62
|
+
end
|
63
|
+
|
64
|
+
should "see the name of my class as ShouldTest" do
|
65
|
+
assert_equal "ShouldTest", self.class.name
|
66
|
+
end
|
67
|
+
|
68
|
+
context "with a subcontext" do
|
69
|
+
should_be_able_to_make_context_macros("Context with a subcontext ")
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
context "Context with setup block" do
|
74
|
+
setup do
|
75
|
+
@blah = "blah"
|
76
|
+
end
|
77
|
+
|
78
|
+
should "have @blah == 'blah'" do
|
79
|
+
assert_equal "blah", @blah
|
80
|
+
end
|
81
|
+
should_see_blah
|
82
|
+
|
83
|
+
should "have name set right" do
|
84
|
+
assert_match(/^test: Context with setup block/, self.to_s)
|
85
|
+
end
|
86
|
+
|
87
|
+
context "and a subcontext" do
|
88
|
+
setup do
|
89
|
+
@blah = "#{@blah} twice"
|
90
|
+
end
|
91
|
+
|
92
|
+
should "be named correctly" do
|
93
|
+
assert_match(/^test: Context with setup block and a subcontext should be named correctly/, self.to_s)
|
94
|
+
end
|
95
|
+
|
96
|
+
should "run the setup methods in order" do
|
97
|
+
assert_equal @blah, "blah twice"
|
98
|
+
end
|
99
|
+
should_see_blah
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
context "Another context with setup block" do
|
104
|
+
setup do
|
105
|
+
@blah = "foo"
|
106
|
+
end
|
107
|
+
|
108
|
+
should "have @blah == 'foo'" do
|
109
|
+
assert_equal "foo", @blah
|
110
|
+
end
|
111
|
+
|
112
|
+
should "have name set right" do
|
113
|
+
assert_match(/^test: Another context with setup block/, self.to_s)
|
114
|
+
end
|
115
|
+
should_see_blah
|
116
|
+
end
|
117
|
+
|
118
|
+
should_eventually "pass, since it's a should_eventually" do
|
119
|
+
flunk "what?"
|
120
|
+
end
|
121
|
+
|
122
|
+
# Context creation and naming
|
123
|
+
|
124
|
+
def test_should_create_a_new_context
|
125
|
+
assert_nothing_raised do
|
126
|
+
Shoulda::Context::Context.new("context name", self) do; end
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
def test_should_create_a_new_context_even_if_block_is_omitted
|
131
|
+
old_verbose, $VERBOSE = $VERBOSE, nil
|
132
|
+
assert_nothing_raised do
|
133
|
+
Shoulda::Context::Context.new("context without a block", self)
|
134
|
+
end
|
135
|
+
ensure
|
136
|
+
$VERBOSE = old_verbose
|
137
|
+
end
|
138
|
+
|
139
|
+
def test_should_create_a_nested_context
|
140
|
+
assert_nothing_raised do
|
141
|
+
parent = Shoulda::Context::Context.new("Parent", self) do; end
|
142
|
+
child = Shoulda::Context::Context.new("Child", parent) do; end
|
143
|
+
raise unless child.instance_of? Shoulda::Context::Context
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
def test_should_name_a_contexts_correctly
|
148
|
+
parent = Shoulda::Context::Context.new("Parent", self) do; end
|
149
|
+
child = Shoulda::Context::Context.new("Child", parent) do; end
|
150
|
+
grandchild = Shoulda::Context::Context.new("GrandChild", child) do; end
|
151
|
+
|
152
|
+
assert_equal "Parent", parent.full_name
|
153
|
+
assert_equal "Parent Child", child.full_name
|
154
|
+
assert_equal "Parent Child GrandChild", grandchild.full_name
|
155
|
+
end
|
156
|
+
|
157
|
+
def test_should_raise_on_duplicate_naming
|
158
|
+
tu_class = Test::Unit::TestCase
|
159
|
+
context = Shoulda::Context::Context.new("DupContext", tu_class) do
|
160
|
+
should "dup" do; end
|
161
|
+
should "dup" do; end
|
162
|
+
end
|
163
|
+
assert_raise DuplicateTestError do
|
164
|
+
context.build
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
# Should statements
|
169
|
+
|
170
|
+
def test_should_have_should_hashes_when_given_should_statements
|
171
|
+
context = Shoulda::Context::Context.new("name", self) do
|
172
|
+
should "be good" do; end
|
173
|
+
should "another" do; end
|
174
|
+
end
|
175
|
+
|
176
|
+
names = context.shoulds.map {|s| s[:name]}
|
177
|
+
assert_equal ["another", "be good"], names.sort
|
178
|
+
end
|
179
|
+
|
180
|
+
# setup and teardown
|
181
|
+
|
182
|
+
def test_should_capture_setup_and_teardown_blocks
|
183
|
+
context = Shoulda::Context::Context.new("name", self) do
|
184
|
+
setup do; "setup"; end
|
185
|
+
teardown do; "teardown"; end
|
186
|
+
end
|
187
|
+
|
188
|
+
assert_equal "setup", context.setup_blocks.first.call
|
189
|
+
assert_equal "teardown", context.teardown_blocks.first.call
|
190
|
+
end
|
191
|
+
|
192
|
+
# building
|
193
|
+
|
194
|
+
def test_should_create_shoulda_test_for_each_should_on_build
|
195
|
+
context = Shoulda::Context::Context.new("name", self) do
|
196
|
+
should "one" do; end
|
197
|
+
should "two" do; end
|
198
|
+
end
|
199
|
+
context.expects(:create_test_from_should_hash).with(has_entry(:name => "one"))
|
200
|
+
context.expects(:create_test_from_should_hash).with(has_entry(:name => "two"))
|
201
|
+
context.build
|
202
|
+
end
|
203
|
+
|
204
|
+
def test_should_create_test_methods_on_build
|
205
|
+
tu_class = Test::Unit::TestCase
|
206
|
+
context = Shoulda::Context::Context.new("A Context", tu_class) do
|
207
|
+
should "define the test" do; end
|
208
|
+
end
|
209
|
+
|
210
|
+
tu_class.expects(:define_method).with(:"test: A Context should define the test. ")
|
211
|
+
context.build
|
212
|
+
end
|
213
|
+
|
214
|
+
def test_should_create_test_methods_on_build_when_subcontext
|
215
|
+
tu_class = Test::Unit::TestCase
|
216
|
+
context = Shoulda::Context::Context.new("A Context", tu_class) do
|
217
|
+
context "with a child" do
|
218
|
+
should "define the test" do; end
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
tu_class.expects(:define_method).with(:"test: A Context with a child should define the test. ")
|
223
|
+
context.build
|
224
|
+
end
|
225
|
+
|
226
|
+
# Test::Unit integration
|
227
|
+
|
228
|
+
def test_should_create_a_new_context_and_build_it_on_Test_Unit_context
|
229
|
+
c = mock("context")
|
230
|
+
c.expects(:build)
|
231
|
+
Shoulda::Context::Context.expects(:new).with("foo", kind_of(Class)).returns(c)
|
232
|
+
self.class.context "foo" do; end
|
233
|
+
end
|
234
|
+
|
235
|
+
def test_should_create_a_one_off_context_and_build_it_on_Test_Unit_should
|
236
|
+
s = mock("test")
|
237
|
+
Shoulda::Context::Context.any_instance.expects(:should).with("rock", {}).returns(s)
|
238
|
+
Shoulda::Context::Context.any_instance.expects(:build)
|
239
|
+
self.class.should "rock" do; end
|
240
|
+
end
|
241
|
+
|
242
|
+
def test_should_create_a_one_off_context_and_build_it_on_Test_Unit_should_eventually
|
243
|
+
s = mock("test")
|
244
|
+
Shoulda::Context::Context.any_instance.expects(:should_eventually).with("rock").returns(s)
|
245
|
+
Shoulda::Context::Context.any_instance.expects(:build)
|
246
|
+
self.class.should_eventually "rock" do; end
|
247
|
+
end
|
248
|
+
|
249
|
+
should "run a :before proc", :before => lambda { @value = "before" } do
|
250
|
+
assert_equal "before", @value
|
251
|
+
end
|
252
|
+
|
253
|
+
context "A :before proc" do
|
254
|
+
setup do
|
255
|
+
assert_equal "before", @value
|
256
|
+
@value = "setup"
|
257
|
+
end
|
258
|
+
|
259
|
+
should "run before the current setup", :before => lambda { @value = "before" } do
|
260
|
+
assert_equal "setup", @value
|
261
|
+
end
|
262
|
+
end
|
263
|
+
|
264
|
+
context "a before statement" do
|
265
|
+
setup do
|
266
|
+
assert_equal "before", @value
|
267
|
+
@value = "setup"
|
268
|
+
end
|
269
|
+
|
270
|
+
before_should "run before the current setup" do
|
271
|
+
@value = "before"
|
272
|
+
end
|
273
|
+
end
|
274
|
+
|
275
|
+
context "A context" do
|
276
|
+
setup do
|
277
|
+
@value = "outer"
|
278
|
+
end
|
279
|
+
|
280
|
+
context "with a subcontext and a :before proc" do
|
281
|
+
before = lambda do
|
282
|
+
assert "outer", @value
|
283
|
+
@value = "before"
|
284
|
+
end
|
285
|
+
should "run after the parent setup", :before => before do
|
286
|
+
assert_equal "before", @value
|
287
|
+
end
|
288
|
+
end
|
289
|
+
end
|
290
|
+
|
291
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
require 'test/unit'
|
3
|
+
require 'mocha'
|
4
|
+
|
5
|
+
shoulda_path = File.join(File.dirname(__FILE__), '..', 'lib')
|
6
|
+
$LOAD_PATH << shoulda_path
|
7
|
+
require "shoulda/context"
|
8
|
+
|
9
|
+
Shoulda.autoload_macros File.join(File.dirname(__FILE__), 'fake_rails_root'),
|
10
|
+
File.join("vendor", "{plugins,gems}", "*")
|
11
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# stub: mini_portile 0.5.2 ruby lib
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = "mini_portile"
|
6
|
+
s.version = "0.5.2"
|
7
|
+
|
8
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 1.3.5") if s.respond_to? :required_rubygems_version=
|
9
|
+
s.authors = ["Luis Lavena"]
|
10
|
+
s.date = "2013-10-24"
|
11
|
+
s.description = "Simplistic port-like solution for developers. It provides a standard and simplified way to compile against dependency libraries without messing up your system."
|
12
|
+
s.email = "luislavena@gmail.com"
|
13
|
+
s.extra_rdoc_files = ["README.rdoc", "History.txt", "LICENSE.txt"]
|
14
|
+
s.files = ["README.rdoc", "History.txt", "LICENSE.txt"]
|
15
|
+
s.homepage = "http://github.com/luislavena/mini_portile"
|
16
|
+
s.licenses = ["MIT"]
|
17
|
+
s.rdoc_options = ["--main", "README.rdoc", "--title", "MiniPortile -- Documentation"]
|
18
|
+
s.require_paths = ["lib"]
|
19
|
+
s.required_ruby_version = Gem::Requirement.new(">= 1.8.7")
|
20
|
+
s.rubygems_version = "2.1.9"
|
21
|
+
s.summary = "Simplistic port-like solution for developers"
|
22
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# stub: nokogiri 1.6.1 java lib
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = "nokogiri"
|
6
|
+
s.version = "1.6.1"
|
7
|
+
s.platform = "java"
|
8
|
+
|
9
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
10
|
+
s.authors = ["Aaron Patterson", "Mike Dalessio", "Yoko Harada", "Tim Elliott"]
|
11
|
+
s.date = "2013-12-14"
|
12
|
+
s.description = "Nokogiri (\u{92f8}) is an HTML, XML, SAX, and Reader parser. Among Nokogiri's\nmany features is the ability to search documents via XPath or CSS3 selectors.\n\nXML is like violence - if it doesn\u{2019}t solve your problems, you are not using\nenough of it."
|
13
|
+
s.email = ["aaronp@rubyforge.org", "mike.dalessio@gmail.com", "yokolet@gmail.com", "tle@holymonkey.com"]
|
14
|
+
s.executables = ["nokogiri"]
|
15
|
+
s.extra_rdoc_files = ["CHANGELOG.ja.rdoc", "CHANGELOG.rdoc", "C_CODING_STYLE.rdoc", "Manifest.txt", "README.ja.rdoc", "README.rdoc", "ROADMAP.md", "STANDARD_RESPONSES.md", "Y_U_NO_GEMSPEC.md", "ext/nokogiri/html_document.c", "ext/nokogiri/html_element_description.c", "ext/nokogiri/html_entity_lookup.c", "ext/nokogiri/html_sax_parser_context.c", "ext/nokogiri/html_sax_push_parser.c", "ext/nokogiri/nokogiri.c", "ext/nokogiri/xml_attr.c", "ext/nokogiri/xml_attribute_decl.c", "ext/nokogiri/xml_cdata.c", "ext/nokogiri/xml_comment.c", "ext/nokogiri/xml_document.c", "ext/nokogiri/xml_document_fragment.c", "ext/nokogiri/xml_dtd.c", "ext/nokogiri/xml_element_content.c", "ext/nokogiri/xml_element_decl.c", "ext/nokogiri/xml_encoding_handler.c", "ext/nokogiri/xml_entity_decl.c", "ext/nokogiri/xml_entity_reference.c", "ext/nokogiri/xml_io.c", "ext/nokogiri/xml_libxml2_hacks.c", "ext/nokogiri/xml_namespace.c", "ext/nokogiri/xml_node.c", "ext/nokogiri/xml_node_set.c", "ext/nokogiri/xml_processing_instruction.c", "ext/nokogiri/xml_reader.c", "ext/nokogiri/xml_relax_ng.c", "ext/nokogiri/xml_sax_parser.c", "ext/nokogiri/xml_sax_parser_context.c", "ext/nokogiri/xml_sax_push_parser.c", "ext/nokogiri/xml_schema.c", "ext/nokogiri/xml_syntax_error.c", "ext/nokogiri/xml_text.c", "ext/nokogiri/xml_xpath_context.c", "ext/nokogiri/xslt_stylesheet.c"]
|
16
|
+
s.files = ["bin/nokogiri", "CHANGELOG.ja.rdoc", "CHANGELOG.rdoc", "C_CODING_STYLE.rdoc", "Manifest.txt", "README.ja.rdoc", "README.rdoc", "ROADMAP.md", "STANDARD_RESPONSES.md", "Y_U_NO_GEMSPEC.md", "ext/nokogiri/html_document.c", "ext/nokogiri/html_element_description.c", "ext/nokogiri/html_entity_lookup.c", "ext/nokogiri/html_sax_parser_context.c", "ext/nokogiri/html_sax_push_parser.c", "ext/nokogiri/nokogiri.c", "ext/nokogiri/xml_attr.c", "ext/nokogiri/xml_attribute_decl.c", "ext/nokogiri/xml_cdata.c", "ext/nokogiri/xml_comment.c", "ext/nokogiri/xml_document.c", "ext/nokogiri/xml_document_fragment.c", "ext/nokogiri/xml_dtd.c", "ext/nokogiri/xml_element_content.c", "ext/nokogiri/xml_element_decl.c", "ext/nokogiri/xml_encoding_handler.c", "ext/nokogiri/xml_entity_decl.c", "ext/nokogiri/xml_entity_reference.c", "ext/nokogiri/xml_io.c", "ext/nokogiri/xml_libxml2_hacks.c", "ext/nokogiri/xml_namespace.c", "ext/nokogiri/xml_node.c", "ext/nokogiri/xml_node_set.c", "ext/nokogiri/xml_processing_instruction.c", "ext/nokogiri/xml_reader.c", "ext/nokogiri/xml_relax_ng.c", "ext/nokogiri/xml_sax_parser.c", "ext/nokogiri/xml_sax_parser_context.c", "ext/nokogiri/xml_sax_push_parser.c", "ext/nokogiri/xml_schema.c", "ext/nokogiri/xml_syntax_error.c", "ext/nokogiri/xml_text.c", "ext/nokogiri/xml_xpath_context.c", "ext/nokogiri/xslt_stylesheet.c"]
|
17
|
+
s.homepage = "http://nokogiri.org"
|
18
|
+
s.licenses = ["MIT"]
|
19
|
+
s.rdoc_options = ["--main", "README.rdoc"]
|
20
|
+
s.require_paths = ["lib"]
|
21
|
+
s.rubyforge_project = "nokogiri"
|
22
|
+
s.rubygems_version = "2.1.9"
|
23
|
+
s.summary = "Nokogiri (\u{92f8}) is an HTML, XML, SAX, and Reader parser"
|
24
|
+
|
25
|
+
if s.respond_to? :specification_version then
|
26
|
+
s.specification_version = 4
|
27
|
+
|
28
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
29
|
+
s.add_runtime_dependency(%q<mini_portile>, ["~> 0.5.0"])
|
30
|
+
s.add_development_dependency(%q<rdoc>, ["~> 4.0"])
|
31
|
+
s.add_development_dependency(%q<hoe-bundler>, [">= 1.1"])
|
32
|
+
s.add_development_dependency(%q<hoe-debugging>, [">= 1.0.3"])
|
33
|
+
s.add_development_dependency(%q<hoe-gemspec>, [">= 1.0"])
|
34
|
+
s.add_development_dependency(%q<hoe-git>, [">= 1.4"])
|
35
|
+
s.add_development_dependency(%q<minitest>, ["~> 2.2.2"])
|
36
|
+
s.add_development_dependency(%q<rake>, [">= 0.9"])
|
37
|
+
s.add_development_dependency(%q<rake-compiler>, ["~> 0.8.0"])
|
38
|
+
s.add_development_dependency(%q<racc>, [">= 1.4.6"])
|
39
|
+
s.add_development_dependency(%q<rexical>, [">= 1.0.5"])
|
40
|
+
s.add_development_dependency(%q<hoe>, ["~> 3.7"])
|
41
|
+
else
|
42
|
+
s.add_dependency(%q<mini_portile>, ["~> 0.5.0"])
|
43
|
+
s.add_dependency(%q<rdoc>, ["~> 4.0"])
|
44
|
+
s.add_dependency(%q<hoe-bundler>, [">= 1.1"])
|
45
|
+
s.add_dependency(%q<hoe-debugging>, [">= 1.0.3"])
|
46
|
+
s.add_dependency(%q<hoe-gemspec>, [">= 1.0"])
|
47
|
+
s.add_dependency(%q<hoe-git>, [">= 1.4"])
|
48
|
+
s.add_dependency(%q<minitest>, ["~> 2.2.2"])
|
49
|
+
s.add_dependency(%q<rake>, [">= 0.9"])
|
50
|
+
s.add_dependency(%q<rake-compiler>, ["~> 0.8.0"])
|
51
|
+
s.add_dependency(%q<racc>, [">= 1.4.6"])
|
52
|
+
s.add_dependency(%q<rexical>, [">= 1.0.5"])
|
53
|
+
s.add_dependency(%q<hoe>, ["~> 3.7"])
|
54
|
+
end
|
55
|
+
else
|
56
|
+
s.add_dependency(%q<mini_portile>, ["~> 0.5.0"])
|
57
|
+
s.add_dependency(%q<rdoc>, ["~> 4.0"])
|
58
|
+
s.add_dependency(%q<hoe-bundler>, [">= 1.1"])
|
59
|
+
s.add_dependency(%q<hoe-debugging>, [">= 1.0.3"])
|
60
|
+
s.add_dependency(%q<hoe-gemspec>, [">= 1.0"])
|
61
|
+
s.add_dependency(%q<hoe-git>, [">= 1.4"])
|
62
|
+
s.add_dependency(%q<minitest>, ["~> 2.2.2"])
|
63
|
+
s.add_dependency(%q<rake>, [">= 0.9"])
|
64
|
+
s.add_dependency(%q<rake-compiler>, ["~> 0.8.0"])
|
65
|
+
s.add_dependency(%q<racc>, [">= 1.4.6"])
|
66
|
+
s.add_dependency(%q<rexical>, [">= 1.0.5"])
|
67
|
+
s.add_dependency(%q<hoe>, ["~> 3.7"])
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# stub: rake 10.1.1 ruby lib
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = "rake"
|
6
|
+
s.version = "10.1.1"
|
7
|
+
|
8
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 1.3.2") if s.respond_to? :required_rubygems_version=
|
9
|
+
s.authors = ["Jim Weirich"]
|
10
|
+
s.date = "2013-12-20"
|
11
|
+
s.description = "Rake is a Make-like program implemented in Ruby. Tasks and dependencies arespecified in standard Ruby syntax."
|
12
|
+
s.email = "jim.weirich@gmail.com"
|
13
|
+
s.executables = ["rake"]
|
14
|
+
s.extra_rdoc_files = ["README.rdoc", "MIT-LICENSE", "TODO", "CHANGES", "doc/command_line_usage.rdoc", "doc/glossary.rdoc", "doc/proto_rake.rdoc", "doc/rakefile.rdoc", "doc/rational.rdoc", "doc/release_notes/rake-0.4.14.rdoc", "doc/release_notes/rake-0.4.15.rdoc", "doc/release_notes/rake-0.5.0.rdoc", "doc/release_notes/rake-0.5.3.rdoc", "doc/release_notes/rake-0.5.4.rdoc", "doc/release_notes/rake-0.6.0.rdoc", "doc/release_notes/rake-0.7.0.rdoc", "doc/release_notes/rake-0.7.1.rdoc", "doc/release_notes/rake-0.7.2.rdoc", "doc/release_notes/rake-0.7.3.rdoc", "doc/release_notes/rake-0.8.0.rdoc", "doc/release_notes/rake-0.8.2.rdoc", "doc/release_notes/rake-0.8.3.rdoc", "doc/release_notes/rake-0.8.4.rdoc", "doc/release_notes/rake-0.8.5.rdoc", "doc/release_notes/rake-0.8.6.rdoc", "doc/release_notes/rake-0.8.7.rdoc", "doc/release_notes/rake-0.9.0.rdoc", "doc/release_notes/rake-0.9.1.rdoc", "doc/release_notes/rake-0.9.2.2.rdoc", "doc/release_notes/rake-0.9.2.rdoc", "doc/release_notes/rake-0.9.3.rdoc", "doc/release_notes/rake-0.9.4.rdoc", "doc/release_notes/rake-0.9.5.rdoc", "doc/release_notes/rake-0.9.6.rdoc", "doc/release_notes/rake-10.0.0.rdoc", "doc/release_notes/rake-10.0.1.rdoc", "doc/release_notes/rake-10.0.2.rdoc", "doc/release_notes/rake-10.0.3.rdoc", "doc/release_notes/rake-10.1.0.rdoc"]
|
15
|
+
s.files = ["bin/rake", "README.rdoc", "MIT-LICENSE", "TODO", "CHANGES", "doc/command_line_usage.rdoc", "doc/glossary.rdoc", "doc/proto_rake.rdoc", "doc/rakefile.rdoc", "doc/rational.rdoc", "doc/release_notes/rake-0.4.14.rdoc", "doc/release_notes/rake-0.4.15.rdoc", "doc/release_notes/rake-0.5.0.rdoc", "doc/release_notes/rake-0.5.3.rdoc", "doc/release_notes/rake-0.5.4.rdoc", "doc/release_notes/rake-0.6.0.rdoc", "doc/release_notes/rake-0.7.0.rdoc", "doc/release_notes/rake-0.7.1.rdoc", "doc/release_notes/rake-0.7.2.rdoc", "doc/release_notes/rake-0.7.3.rdoc", "doc/release_notes/rake-0.8.0.rdoc", "doc/release_notes/rake-0.8.2.rdoc", "doc/release_notes/rake-0.8.3.rdoc", "doc/release_notes/rake-0.8.4.rdoc", "doc/release_notes/rake-0.8.5.rdoc", "doc/release_notes/rake-0.8.6.rdoc", "doc/release_notes/rake-0.8.7.rdoc", "doc/release_notes/rake-0.9.0.rdoc", "doc/release_notes/rake-0.9.1.rdoc", "doc/release_notes/rake-0.9.2.2.rdoc", "doc/release_notes/rake-0.9.2.rdoc", "doc/release_notes/rake-0.9.3.rdoc", "doc/release_notes/rake-0.9.4.rdoc", "doc/release_notes/rake-0.9.5.rdoc", "doc/release_notes/rake-0.9.6.rdoc", "doc/release_notes/rake-10.0.0.rdoc", "doc/release_notes/rake-10.0.1.rdoc", "doc/release_notes/rake-10.0.2.rdoc", "doc/release_notes/rake-10.0.3.rdoc", "doc/release_notes/rake-10.1.0.rdoc"]
|
16
|
+
s.homepage = "http://github.com/jimweirich/rake"
|
17
|
+
s.licenses = ["MIT"]
|
18
|
+
s.rdoc_options = ["--line-numbers", "--show-hash", "--main", "README.rdoc", "--title", "Rake -- Ruby Make"]
|
19
|
+
s.require_paths = ["lib"]
|
20
|
+
s.required_ruby_version = Gem::Requirement.new(">= 1.8.6")
|
21
|
+
s.rubygems_version = "2.1.9"
|
22
|
+
s.summary = "Ruby based make-like utility."
|
23
|
+
|
24
|
+
if s.respond_to? :specification_version then
|
25
|
+
s.specification_version = 4
|
26
|
+
|
27
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
28
|
+
s.add_development_dependency(%q<minitest>, ["~> 2.1"])
|
29
|
+
else
|
30
|
+
s.add_dependency(%q<minitest>, ["~> 2.1"])
|
31
|
+
end
|
32
|
+
else
|
33
|
+
s.add_dependency(%q<minitest>, ["~> 2.1"])
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# stub: shoulda-context 1.1.6 ruby lib
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = "shoulda-context"
|
6
|
+
s.version = "1.1.6"
|
7
|
+
|
8
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
9
|
+
s.authors = ["thoughtbot, inc.", "Tammer Saleh", "Joe Ferris", "Ryan McGeary", "Dan Croak", "Matt Jankowski"]
|
10
|
+
s.date = "2013-11-04"
|
11
|
+
s.description = "Context framework extracted from Shoulda"
|
12
|
+
s.email = "support@thoughtbot.com"
|
13
|
+
s.executables = ["convert_to_should_syntax"]
|
14
|
+
s.files = ["bin/convert_to_should_syntax"]
|
15
|
+
s.homepage = "http://thoughtbot.com/community/"
|
16
|
+
s.licenses = ["MIT"]
|
17
|
+
s.require_paths = ["lib"]
|
18
|
+
s.rubygems_version = "2.1.9"
|
19
|
+
s.summary = "Context framework extracted from Shoulda"
|
20
|
+
|
21
|
+
if s.respond_to? :specification_version then
|
22
|
+
s.specification_version = 4
|
23
|
+
|
24
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
25
|
+
s.add_development_dependency(%q<appraisal>, ["~> 0.5"])
|
26
|
+
s.add_development_dependency(%q<rails>, [">= 3.0"])
|
27
|
+
s.add_development_dependency(%q<mocha>, ["~> 0.9.10"])
|
28
|
+
s.add_development_dependency(%q<rake>, [">= 0"])
|
29
|
+
s.add_development_dependency(%q<test-unit>, ["~> 2.1.0"])
|
30
|
+
else
|
31
|
+
s.add_dependency(%q<appraisal>, ["~> 0.5"])
|
32
|
+
s.add_dependency(%q<rails>, [">= 3.0"])
|
33
|
+
s.add_dependency(%q<mocha>, ["~> 0.9.10"])
|
34
|
+
s.add_dependency(%q<rake>, [">= 0"])
|
35
|
+
s.add_dependency(%q<test-unit>, ["~> 2.1.0"])
|
36
|
+
end
|
37
|
+
else
|
38
|
+
s.add_dependency(%q<appraisal>, ["~> 0.5"])
|
39
|
+
s.add_dependency(%q<rails>, [">= 3.0"])
|
40
|
+
s.add_dependency(%q<mocha>, ["~> 0.9.10"])
|
41
|
+
s.add_dependency(%q<rake>, [">= 0"])
|
42
|
+
s.add_dependency(%q<test-unit>, ["~> 2.1.0"])
|
43
|
+
end
|
44
|
+
end
|
Binary file
|
@@ -0,0 +1,124 @@
|
|
1
|
+
module VtdXml
|
2
|
+
|
3
|
+
class Document
|
4
|
+
include_package 'com.ximpleware'
|
5
|
+
include_package 'java.lang'
|
6
|
+
include_package 'java.io'
|
7
|
+
|
8
|
+
WITH_NAMESPACE_AWARE = true
|
9
|
+
|
10
|
+
def initialize(contents)
|
11
|
+
@generator = VTDGen.new
|
12
|
+
@generator.doc = contents.to_s.to_java_bytes
|
13
|
+
@generator.parse(WITH_NAMESPACE_AWARE)
|
14
|
+
|
15
|
+
@navigator = @generator.nav
|
16
|
+
@pilot = AutoPilot.new(@navigator)
|
17
|
+
@modifier = XMLModifier.new(@navigator)
|
18
|
+
|
19
|
+
|
20
|
+
rescue IllegalArgumentException, ParseException, EOFException => e
|
21
|
+
raise ParseError, e.message
|
22
|
+
end
|
23
|
+
|
24
|
+
def xpath(*xpaths)
|
25
|
+
namespaces = Hash === xpaths.last ? xpaths.pop : {}
|
26
|
+
register_namespaces(namespaces)
|
27
|
+
|
28
|
+
results = xpaths.map { |xpath| search(xpath) }
|
29
|
+
results.flatten!
|
30
|
+
results.compact!
|
31
|
+
results
|
32
|
+
|
33
|
+
rescue XPathParseException => e
|
34
|
+
raise XPathError, '%s for xpath: %s' % [e.message, xpaths.inspect]
|
35
|
+
ensure
|
36
|
+
clear_xpath_namespaces
|
37
|
+
end
|
38
|
+
|
39
|
+
def register_namespaces(namespaces)
|
40
|
+
namespaces.each do |prefix, url|
|
41
|
+
@pilot.declare_xpath_name_space(prefix.to_s, url.to_s)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
def insert_after(xpath, xml, namespaces = {})
|
46
|
+
register_namespaces(namespaces)
|
47
|
+
@pilot.select_xpath(xpath)
|
48
|
+
found = @pilot.eval_xpath() != -1
|
49
|
+
@modifier.insert_after_element(xml) if found
|
50
|
+
found
|
51
|
+
rescue XPathParseException => e
|
52
|
+
raise XPathError, e.message
|
53
|
+
rescue Java::ComXimpleware::ModifyException => e
|
54
|
+
raise ModifyError, e.message
|
55
|
+
ensure
|
56
|
+
@pilot.reset_xpath
|
57
|
+
clear_xpath_namespaces
|
58
|
+
end
|
59
|
+
|
60
|
+
def select_node(xpath, namespaces={})
|
61
|
+
register_namespaces(namespaces)
|
62
|
+
@pilot.select_xpath(xpath)
|
63
|
+
@navigator.to_raw_string(*offset_and_length_for(@navigator.element_fragment)) if @pilot.eval_xpath() != -1
|
64
|
+
rescue XPathParseException => e
|
65
|
+
raise XPathError, e.message
|
66
|
+
rescue Java::ComXimpleware::ModifyException => e
|
67
|
+
raise ModifyError, e.message
|
68
|
+
ensure
|
69
|
+
@pilot.reset_xpath
|
70
|
+
clear_xpath_namespaces
|
71
|
+
end
|
72
|
+
|
73
|
+
def to_xml
|
74
|
+
os = ByteArrayOutputStream.new(@modifier.get_updated_document_size)
|
75
|
+
@modifier.output(os)
|
76
|
+
os.to_string('UTF-8')
|
77
|
+
end
|
78
|
+
|
79
|
+
private
|
80
|
+
|
81
|
+
def offset_and_length_for(fragment)
|
82
|
+
return (fragment & 0b0000000000000000000000000000000011111111111111111111111111111111), (fragment >> 32)
|
83
|
+
end
|
84
|
+
|
85
|
+
def search(xpath)
|
86
|
+
@pilot.select_xpath(xpath)
|
87
|
+
|
88
|
+
results = []
|
89
|
+
while (result = @pilot.eval_xpath()) != -1
|
90
|
+
results << text_for(result)
|
91
|
+
end
|
92
|
+
results
|
93
|
+
|
94
|
+
ensure
|
95
|
+
@pilot.reset_xpath
|
96
|
+
end
|
97
|
+
|
98
|
+
# Beware of TCO!
|
99
|
+
def text_for(index)
|
100
|
+
if index != -1
|
101
|
+
case @navigator.token_type(index)
|
102
|
+
when VTDGen::TOKEN_STARTING_TAG #element node
|
103
|
+
text_for(@navigator.text())
|
104
|
+
when VTDGen::TOKEN_ATTR_NAME #attribute node
|
105
|
+
text_for(@navigator.get_attr_val(@navigator.to_string(index)))
|
106
|
+
when VTDGen::TOKEN_ATTR_VAL #attribute value
|
107
|
+
@navigator.to_normalized_string(index)
|
108
|
+
when VTDGen::TOKEN_CHARACTER_DATA #text node
|
109
|
+
@navigator.to_normalized_string(index)
|
110
|
+
when VTDGen::TOKEN_DOCUMENT #root node, don't think they can have text values
|
111
|
+
@navigator.to_normalized_string(index)
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
def clear_xpath_namespaces
|
117
|
+
begin
|
118
|
+
@pilot.clear_xpath_name_spaces()
|
119
|
+
rescue NullPointerException
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
data/lib/vtd_xml.rb
ADDED
Binary file
|
@@ -0,0 +1,18 @@
|
|
1
|
+
ENV['RACK_ENV'] = 'test'
|
2
|
+
require 'java'
|
3
|
+
|
4
|
+
lib = File.expand_path('../../lib', __FILE__)
|
5
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
6
|
+
|
7
|
+
jars = File.expand_path('../../vendor/jars', __FILE__)
|
8
|
+
$LOAD_PATH.unshift(jars) unless $LOAD_PATH.include?(jars)
|
9
|
+
|
10
|
+
test = File.expand_path('../../test', __FILE__)
|
11
|
+
$LOAD_PATH.unshift(test) unless $LOAD_PATH.include?(test)
|
12
|
+
|
13
|
+
require 'bundler/setup'
|
14
|
+
Bundler.require(:test)
|
15
|
+
|
16
|
+
require 'test/unit'
|
17
|
+
require 'nokogiri'
|
18
|
+
require 'shoulda-context'
|