akamai_bookmarklet 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +21 -0
- data/Gemfile +3 -0
- data/LICENSE +20 -0
- data/README.rdoc +17 -0
- data/Rakefile +53 -0
- data/VERSION +1 -0
- data/bin/nokogiri +3 -0
- data/bin/rackup +3 -0
- data/config.ru +6 -0
- data/lib/akamai_bookmarklet.rb +2 -0
- data/lib/application/application.rb +34 -0
- data/lib/application/views/bookmarklet.html.erb +22 -0
- data/lib/application/views/purge.js.erb +32 -0
- data/test/helper.rb +10 -0
- data/test/test_akamai_bookmarklet.rb +7 -0
- data/vendor/gems/environment.rb +4 -0
- data/vendor/gems/ruby/1.8/cache/akamai-0.0.1.gem +0 -0
- data/vendor/gems/ruby/1.8/cache/casrack_the_authenticator-1.6.0.gem +0 -0
- data/vendor/gems/ruby/1.8/cache/nokogiri-1.3.3.gem +0 -0
- data/vendor/gems/ruby/1.8/cache/rack-1.1.0.gem +0 -0
- data/vendor/gems/ruby/1.8/cache/sinatra-0.9.4.gem +0 -0
- data/vendor/gems/ruby/1.8/environment.rb +112 -0
- data/vendor/gems/ruby/1.8/gems/akamai-0.0.1/.document +5 -0
- data/vendor/gems/ruby/1.8/gems/akamai-0.0.1/.gitignore +21 -0
- data/vendor/gems/ruby/1.8/gems/akamai-0.0.1/LICENSE +20 -0
- data/vendor/gems/ruby/1.8/gems/akamai-0.0.1/README.rdoc +17 -0
- data/vendor/gems/ruby/1.8/gems/akamai-0.0.1/Rakefile +53 -0
- data/vendor/gems/ruby/1.8/gems/akamai-0.0.1/VERSION +1 -0
- data/vendor/gems/ruby/1.8/gems/akamai-0.0.1/lib/akamai.rb +54 -0
- data/vendor/gems/ruby/1.8/gems/akamai-0.0.1/test/helper.rb +10 -0
- data/vendor/gems/ruby/1.8/gems/akamai-0.0.1/test/test_akamai.rb +7 -0
- data/vendor/gems/ruby/1.8/gems/casrack_the_authenticator-1.6.0/.gitignore +3 -0
- data/vendor/gems/ruby/1.8/gems/casrack_the_authenticator-1.6.0/README.rdoc +87 -0
- data/vendor/gems/ruby/1.8/gems/casrack_the_authenticator-1.6.0/Rakefile +7 -0
- data/vendor/gems/ruby/1.8/gems/casrack_the_authenticator-1.6.0/VERSION +1 -0
- data/vendor/gems/ruby/1.8/gems/casrack_the_authenticator-1.6.0/casrack_the_authenticator.gemspec +83 -0
- data/vendor/gems/ruby/1.8/gems/casrack_the_authenticator-1.6.0/developer_tasks/doc.rake +22 -0
- data/vendor/gems/ruby/1.8/gems/casrack_the_authenticator-1.6.0/developer_tasks/gem.rake +20 -0
- data/vendor/gems/ruby/1.8/gems/casrack_the_authenticator-1.6.0/developer_tasks/test.rake +24 -0
- data/vendor/gems/ruby/1.8/gems/casrack_the_authenticator-1.6.0/features/fake.feature +34 -0
- data/vendor/gems/ruby/1.8/gems/casrack_the_authenticator-1.6.0/features/require_cas.feature +19 -0
- data/vendor/gems/ruby/1.8/gems/casrack_the_authenticator-1.6.0/features/simple.feature +32 -0
- data/vendor/gems/ruby/1.8/gems/casrack_the_authenticator-1.6.0/features/step_definitions/fake_cas_steps.rb +14 -0
- data/vendor/gems/ruby/1.8/gems/casrack_the_authenticator-1.6.0/features/step_definitions/rack_steps.rb +69 -0
- data/vendor/gems/ruby/1.8/gems/casrack_the_authenticator-1.6.0/features/support/assertions.rb +3 -0
- data/vendor/gems/ruby/1.8/gems/casrack_the_authenticator-1.6.0/features/support/rack_support.rb +89 -0
- data/vendor/gems/ruby/1.8/gems/casrack_the_authenticator-1.6.0/lib/casrack_the_authenticator/configuration.rb +88 -0
- data/vendor/gems/ruby/1.8/gems/casrack_the_authenticator-1.6.0/lib/casrack_the_authenticator/fake.rb +49 -0
- data/vendor/gems/ruby/1.8/gems/casrack_the_authenticator-1.6.0/lib/casrack_the_authenticator/require_cas.rb +36 -0
- data/vendor/gems/ruby/1.8/gems/casrack_the_authenticator-1.6.0/lib/casrack_the_authenticator/service_ticket_validator.rb +55 -0
- data/vendor/gems/ruby/1.8/gems/casrack_the_authenticator-1.6.0/lib/casrack_the_authenticator/simple.rb +82 -0
- data/vendor/gems/ruby/1.8/gems/casrack_the_authenticator-1.6.0/lib/casrack_the_authenticator.rb +11 -0
- data/vendor/gems/ruby/1.8/gems/casrack_the_authenticator-1.6.0/test/configuration_test.rb +83 -0
- data/vendor/gems/ruby/1.8/gems/casrack_the_authenticator-1.6.0/test/fake_test.rb +94 -0
- data/vendor/gems/ruby/1.8/gems/casrack_the_authenticator-1.6.0/test/service_ticket_validator_test.rb +85 -0
- data/vendor/gems/ruby/1.8/gems/casrack_the_authenticator-1.6.0/test/simple_test.rb +131 -0
- data/vendor/gems/ruby/1.8/gems/casrack_the_authenticator-1.6.0/test/test_helper.rb +16 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/.autotest +27 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/.require_paths +3 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/CHANGELOG.ja.rdoc +285 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/CHANGELOG.rdoc +272 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/Manifest.txt +254 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/README.ja.rdoc +107 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/README.rdoc +121 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/Rakefile +208 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/bin/nokogiri +47 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/Makefile +150 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/conftest.dSYM/Contents/Info.plist +25 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/conftest.dSYM/Contents/Resources/DWARF/conftest +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/extconf.rb +161 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/html_document.c +181 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/html_document.h +10 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/html_document.o +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/html_element_description.c +272 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/html_element_description.h +10 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/html_element_description.o +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/html_entity_lookup.c +30 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/html_entity_lookup.h +8 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/html_entity_lookup.o +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/html_sax_parser.c +57 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/html_sax_parser.h +11 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/html_sax_parser.o +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/mkmf.log +248 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/nokogiri.bundle +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/nokogiri.c +83 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/nokogiri.h +149 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/nokogiri.o +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_attr.c +92 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_attr.h +9 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_attr.o +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_cdata.c +53 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_cdata.h +9 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_cdata.o +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_comment.c +51 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_comment.h +9 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_comment.o +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_document.c +318 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_document.h +24 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_document.o +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_document_fragment.c +48 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_document_fragment.h +10 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_document_fragment.o +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_dtd.c +135 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_dtd.h +10 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_dtd.o +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_entity_reference.c +50 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_entity_reference.h +9 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_entity_reference.o +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_io.c +24 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_io.h +10 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_io.o +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_namespace.c +74 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_namespace.h +12 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_namespace.o +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_node.c +955 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_node.h +14 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_node.o +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_node_set.c +390 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_node_set.h +9 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_node_set.o +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_processing_instruction.c +54 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_processing_instruction.h +9 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_processing_instruction.o +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_reader.c +565 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_reader.h +10 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_reader.o +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_relax_ng.c +159 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_relax_ng.h +9 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_relax_ng.o +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_sax_parser.c +345 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_sax_parser.h +10 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_sax_parser.o +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_sax_push_parser.c +86 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_sax_push_parser.h +9 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_sax_push_parser.o +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_schema.c +156 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_schema.h +9 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_schema.o +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_syntax_error.c +210 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_syntax_error.h +13 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_syntax_error.o +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_text.c +47 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_text.h +9 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_text.o +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_xpath.c +53 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_xpath.h +11 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_xpath.o +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_xpath_context.c +252 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_xpath_context.h +9 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xml_xpath_context.o +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xslt_stylesheet.c +131 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xslt_stylesheet.h +9 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/ext/nokogiri/xslt_stylesheet.o +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/action-nokogiri.rb +38 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/css/generated_parser.rb +646 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/css/generated_tokenizer.rb +142 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/css/node.rb +107 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/css/parser.rb +82 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/css/parser.y +227 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/css/syntax_error.rb +7 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/css/tokenizer.rb +7 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/css/tokenizer.rex +54 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/css/xpath_visitor.rb +172 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/css.rb +25 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/decorators/hpricot/node.rb +56 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/decorators/hpricot/node_set.rb +54 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/decorators/hpricot/xpath_visitor.rb +30 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/decorators/hpricot.rb +3 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/decorators/slop.rb +33 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/decorators.rb +2 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/html/document.rb +37 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/html/element_description.rb +85 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/html/entity_lookup.rb +16 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/html/sax/parser.rb +21 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/io_callbacks.rb +40 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/libxml.rb +322 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/structs/common_node.rb +26 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/structs/html_elem_desc.rb +24 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/structs/html_entity_desc.rb +13 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/structs/xml_alloc.rb +16 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/structs/xml_attr.rb +19 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/structs/xml_buffer.rb +16 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/structs/xml_document.rb +108 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/structs/xml_dtd.rb +26 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/structs/xml_node.rb +28 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/structs/xml_node_set.rb +53 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/structs/xml_notation.rb +11 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/structs/xml_ns.rb +15 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/structs/xml_relax_ng.rb +14 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/structs/xml_sax_handler.rb +51 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/structs/xml_sax_push_parser_context.rb +14 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/structs/xml_schema.rb +13 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/structs/xml_syntax_error.rb +31 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/structs/xml_text_reader.rb +12 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/structs/xml_xpath_context.rb +37 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/structs/xml_xpath_object.rb +35 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/structs/xml_xpath_parser_context.rb +20 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/structs/xslt_stylesheet.rb +13 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/xml/attr.rb +41 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/xml/cdata.rb +19 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/xml/comment.rb +18 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/xml/document.rb +118 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/xml/document_fragment.rb +26 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/xml/dtd.rb +58 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/xml/entity_reference.rb +19 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/xml/namespace.rb +44 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/xml/node.rb +404 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/xml/node_set.rb +133 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/xml/processing_instruction.rb +20 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/xml/reader.rb +206 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/xml/relax_ng.rb +85 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/xml/sax/parser.rb +149 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/xml/sax/push_parser.rb +38 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/xml/schema.rb +92 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/xml/syntax_error.rb +76 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/xml/text.rb +18 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/xml/xpath.rb +19 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/xml/xpath_context.rb +135 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/xslt/stylesheet.rb +47 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/hpricot.rb +92 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/html/builder.rb +35 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/html/document.rb +73 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/html/document_fragment.rb +15 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/html/element_description.rb +23 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/html/entity_lookup.rb +13 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/html/sax/parser.rb +48 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/html.rb +34 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/nokogiri.bundle +0 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/syntax_error.rb +4 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/version.rb +33 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/version_warning.rb +11 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/attr.rb +9 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/builder.rb +297 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/cdata.rb +11 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/document.rb +117 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/document_fragment.rb +49 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/dtd.rb +11 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/entity_declaration.rb +11 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/fragment_handler.rb +60 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/namespace.rb +7 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/node/save_options.rb +42 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/node.rb +647 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/node_set.rb +285 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/notation.rb +6 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/parse_options.rb +85 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/processing_instruction.rb +8 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/reader.rb +66 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/relax_ng.rb +32 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/sax/document.rb +143 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/sax/legacy_handlers.rb +65 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/sax/parser.rb +108 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/sax/push_parser.rb +63 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/sax.rb +4 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/schema.rb +61 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/syntax_error.rb +34 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/xpath/syntax_error.rb +8 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/xpath.rb +10 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml/xpath_context.rb +16 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xml.rb +62 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xslt/stylesheet.rb +25 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/xslt.rb +48 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri.rb +116 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/xsd/xmlparser/nokogiri.rb +71 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/tasks/test.rb +100 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/css/test_nthiness.rb +159 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/css/test_parser.rb +277 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/css/test_tokenizer.rb +183 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/css/test_xpath_visitor.rb +76 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/ffi/test_document.rb +35 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/files/2ch.html +108 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/files/address_book.rlx +12 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/files/address_book.xml +10 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/files/bar/bar.xsd +4 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/files/dont_hurt_em_why.xml +422 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/files/exslt.xml +8 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/files/exslt.xslt +35 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/files/foo/foo.xsd +4 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/files/po.xml +32 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/files/po.xsd +66 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/files/shift_jis.xml +5 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/files/snuggles.xml +3 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/files/staff.xml +59 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/files/staff.xslt +32 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/files/tlm.html +850 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/files/valid_bar.xml +2 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/helper.rb +127 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/hpricot/files/basic.xhtml +17 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/hpricot/files/boingboing.html +2266 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/hpricot/files/cy0.html +3653 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/hpricot/files/immob.html +400 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/hpricot/files/pace_application.html +1320 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/hpricot/files/tenderlove.html +16 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/hpricot/files/uswebgen.html +220 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/hpricot/files/utf8.html +1054 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/hpricot/files/week9.html +1723 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/hpricot/files/why.xml +19 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/hpricot/load_files.rb +11 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/hpricot/test_alter.rb +68 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/hpricot/test_builder.rb +20 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/hpricot/test_parser.rb +350 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/hpricot/test_paths.rb +15 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/hpricot/test_preserved.rb +77 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/hpricot/test_xml.rb +30 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/html/sax/test_parser.rb +64 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/html/test_builder.rb +158 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/html/test_document.rb +368 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/html/test_document_encoding.rb +63 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/html/test_document_fragment.rb +123 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/html/test_element_description.rb +95 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/html/test_named_characters.rb +14 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/html/test_node.rb +168 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/test_convert_xpath.rb +137 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/test_css_cache.rb +45 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/test_gc.rb +15 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/test_memory_leak.rb +77 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/test_nokogiri.rb +134 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/test_reader.rb +330 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/test_xslt_transforms.rb +131 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/node/test_save_options.rb +20 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/node/test_subclass.rb +44 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/sax/test_parser.rb +246 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/sax/test_push_parser.rb +96 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/test_attr.rb +38 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/test_builder.rb +73 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/test_cdata.rb +38 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/test_comment.rb +23 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/test_document.rb +466 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/test_document_encoding.rb +26 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/test_document_fragment.rb +88 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/test_dtd.rb +47 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/test_dtd_encoding.rb +31 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/test_entity_reference.rb +21 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/test_namespace.rb +48 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/test_node.rb +823 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/test_node_attributes.rb +34 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/test_node_encoding.rb +107 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/test_node_set.rb +397 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/test_parse_options.rb +52 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/test_processing_instruction.rb +30 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/test_reader_encoding.rb +126 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/test_relax_ng.rb +60 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/test_schema.rb +89 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/test_text.rb +18 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/test_unparented_node.rb +381 -0
- data/vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/test_xpath.rb +106 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/COPYING +18 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/KNOWN-ISSUES +21 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/RDOX +0 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/README +399 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/SPEC +171 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/bin/rackup +4 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/contrib/rack_logo.svg +111 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/example/lobster.ru +4 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/example/protectedlobster.rb +14 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/example/protectedlobster.ru +8 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/adapter/camping.rb +22 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/auth/abstract/handler.rb +37 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/auth/abstract/request.rb +37 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/auth/basic.rb +58 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/auth/digest/md5.rb +124 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/auth/digest/nonce.rb +51 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/auth/digest/params.rb +55 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/auth/digest/request.rb +40 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/builder.rb +80 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/cascade.rb +41 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/chunked.rb +49 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/commonlogger.rb +49 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/conditionalget.rb +47 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/config.rb +15 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/content_length.rb +29 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/content_type.rb +23 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/deflater.rb +96 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/directory.rb +157 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/etag.rb +23 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/file.rb +90 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/handler/cgi.rb +61 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/handler/evented_mongrel.rb +8 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/handler/fastcgi.rb +89 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/handler/lsws.rb +63 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb +90 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/handler/scgi.rb +62 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/handler/swiftiplied_mongrel.rb +8 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/handler/thin.rb +18 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/handler/webrick.rb +69 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/handler.rb +88 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/head.rb +19 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/lint.rb +575 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/lobster.rb +65 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/lock.rb +16 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/logger.rb +20 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/methodoverride.rb +27 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/mime.rb +206 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/mock.rb +189 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/nulllogger.rb +18 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/recursive.rb +57 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/reloader.rb +109 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/request.rb +271 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/response.rb +149 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/rewindable_input.rb +100 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/runtime.rb +27 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/sendfile.rb +142 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/server.rb +212 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/session/abstract/id.rb +140 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/session/cookie.rb +90 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/session/memcache.rb +119 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/session/pool.rb +100 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb +349 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/showstatus.rb +106 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/static.rb +38 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/urlmap.rb +56 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack/utils.rb +620 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/lib/rack.rb +92 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/rack.gemspec +38 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_auth_basic.rb +73 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_auth_digest.rb +226 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_builder.rb +84 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_camping.rb +51 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_cascade.rb +48 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_cgi.rb +89 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_chunked.rb +62 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_commonlogger.rb +61 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_conditionalget.rb +41 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_config.rb +24 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_content_length.rb +43 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_content_type.rb +30 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_deflater.rb +127 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_directory.rb +61 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_etag.rb +17 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_fastcgi.rb +89 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_file.rb +75 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_handler.rb +43 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_head.rb +30 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_lint.rb +528 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_lobster.rb +45 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_lock.rb +38 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_logger.rb +21 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_methodoverride.rb +60 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_mock.rb +243 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_mongrel.rb +189 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_nulllogger.rb +13 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_recursive.rb +77 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_request.rb +545 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_response.rb +221 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_rewindable_input.rb +118 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_runtime.rb +35 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_sendfile.rb +86 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_session_cookie.rb +73 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_session_memcache.rb +273 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_session_pool.rb +172 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_showexceptions.rb +21 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_showstatus.rb +72 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_static.rb +37 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_thin.rb +91 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_urlmap.rb +215 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_utils.rb +552 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rack_webrick.rb +130 -0
- data/vendor/gems/ruby/1.8/gems/rack-1.1.0/test/spec_rackup.rb +154 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/AUTHORS +41 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/CHANGES +385 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/LICENSE +22 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/README.rdoc +573 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/Rakefile +138 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/app_test.rb +282 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/application_test.rb +262 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/builder_test.rb +101 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/compat_test.rb +12 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/custom_error_test.rb +62 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/erb_test.rb +136 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/events_test.rb +78 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/filter_test.rb +30 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/haml_test.rb +236 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/helper.rb +33 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/mapped_error_test.rb +72 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/pipeline_test.rb +45 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/public/foo.xml +1 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/sass_test.rb +67 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/sessions_test.rb +42 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/streaming_test.rb +133 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/sym_params_test.rb +19 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/template_test.rb +30 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/use_in_file_templates_test.rb +47 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/views/foo.builder +1 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/views/foo.erb +1 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/views/foo.haml +1 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/views/foo.sass +2 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/views/foo_layout.erb +2 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/views/foo_layout.haml +2 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/views/layout_test/foo.builder +1 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/views/layout_test/foo.erb +1 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/views/layout_test/foo.haml +1 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/views/layout_test/foo.sass +2 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/views/layout_test/layout.builder +3 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/views/layout_test/layout.erb +1 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/views/layout_test/layout.haml +1 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/views/layout_test/layout.sass +2 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/views/no_layout/no_layout.builder +1 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/views/no_layout/no_layout.haml +1 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/lib/sinatra/base.rb +1119 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/lib/sinatra/compat.rb +266 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/lib/sinatra/images/404.png +0 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/lib/sinatra/images/500.png +0 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/lib/sinatra/main.rb +35 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/lib/sinatra/showexceptions.rb +303 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/lib/sinatra/test/bacon.rb +19 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/lib/sinatra/test/rspec.rb +13 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/lib/sinatra/test/spec.rb +11 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/lib/sinatra/test/unit.rb +13 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/lib/sinatra/test.rb +128 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/lib/sinatra.rb +8 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/sinatra.gemspec +125 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/base_test.rb +160 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/builder_test.rb +65 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/contest.rb +64 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/data/reload_app_file.rb +3 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/erb_test.rb +81 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/extensions_test.rb +100 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/filter_test.rb +99 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/haml_test.rb +90 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/helper.rb +76 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/helpers_test.rb +503 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/mapped_error_test.rb +155 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/middleware_test.rb +68 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/options_test.rb +372 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/render_backtrace_test.rb +145 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/request_test.rb +18 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/response_test.rb +42 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/result_test.rb +98 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/route_added_hook_test.rb +59 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/routing_test.rb +784 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/sass_test.rb +79 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/server_test.rb +47 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/sinatra_test.rb +13 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/static_test.rb +80 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/templates_test.rb +122 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/test_test.rb +152 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/views/error.builder +3 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/views/error.erb +3 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/views/error.haml +3 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/views/error.sass +2 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/views/foo/hello.test +1 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/views/hello.builder +1 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/views/hello.erb +1 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/views/hello.haml +1 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/views/hello.sass +2 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/views/hello.test +1 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/views/layout2.builder +3 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/views/layout2.erb +2 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/views/layout2.haml +2 -0
- data/vendor/gems/ruby/1.8/gems/sinatra-0.9.4/test/views/layout2.test +1 -0
- data/vendor/gems/ruby/1.8/specifications/akamai-0.0.1.gemspec +33 -0
- data/vendor/gems/ruby/1.8/specifications/casrack_the_authenticator-1.6.0.gemspec +45 -0
- data/vendor/gems/ruby/1.8/specifications/nokogiri-1.3.3.gemspec +50 -0
- data/vendor/gems/ruby/1.8/specifications/rack-1.1.0.gemspec +57 -0
- data/vendor/gems/ruby/1.8/specifications/sinatra-0.9.4.gemspec +40 -0
- metadata +621 -0
@@ -0,0 +1,620 @@
|
|
1
|
+
# -*- encoding: binary -*-
|
2
|
+
|
3
|
+
require 'set'
|
4
|
+
require 'tempfile'
|
5
|
+
|
6
|
+
module Rack
|
7
|
+
# Rack::Utils contains a grab-bag of useful methods for writing web
|
8
|
+
# applications adopted from all kinds of Ruby libraries.
|
9
|
+
|
10
|
+
module Utils
|
11
|
+
# Performs URI escaping so that you can construct proper
|
12
|
+
# query strings faster. Use this rather than the cgi.rb
|
13
|
+
# version since it's faster. (Stolen from Camping).
|
14
|
+
def escape(s)
|
15
|
+
s.to_s.gsub(/([^ a-zA-Z0-9_.-]+)/n) {
|
16
|
+
'%'+$1.unpack('H2'*bytesize($1)).join('%').upcase
|
17
|
+
}.tr(' ', '+')
|
18
|
+
end
|
19
|
+
module_function :escape
|
20
|
+
|
21
|
+
# Unescapes a URI escaped string. (Stolen from Camping).
|
22
|
+
def unescape(s)
|
23
|
+
s.tr('+', ' ').gsub(/((?:%[0-9a-fA-F]{2})+)/n){
|
24
|
+
[$1.delete('%')].pack('H*')
|
25
|
+
}
|
26
|
+
end
|
27
|
+
module_function :unescape
|
28
|
+
|
29
|
+
DEFAULT_SEP = /[&;] */n
|
30
|
+
|
31
|
+
# Stolen from Mongrel, with some small modifications:
|
32
|
+
# Parses a query string by breaking it up at the '&'
|
33
|
+
# and ';' characters. You can also use this to parse
|
34
|
+
# cookies by changing the characters used in the second
|
35
|
+
# parameter (which defaults to '&;').
|
36
|
+
def parse_query(qs, d = nil)
|
37
|
+
params = {}
|
38
|
+
|
39
|
+
(qs || '').split(d ? /[#{d}] */n : DEFAULT_SEP).each do |p|
|
40
|
+
k, v = p.split('=', 2).map { |x| unescape(x) }
|
41
|
+
if v =~ /^("|')(.*)\1$/
|
42
|
+
v = $2.gsub('\\'+$1, $1)
|
43
|
+
end
|
44
|
+
if cur = params[k]
|
45
|
+
if cur.class == Array
|
46
|
+
params[k] << v
|
47
|
+
else
|
48
|
+
params[k] = [cur, v]
|
49
|
+
end
|
50
|
+
else
|
51
|
+
params[k] = v
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
return params
|
56
|
+
end
|
57
|
+
module_function :parse_query
|
58
|
+
|
59
|
+
def parse_nested_query(qs, d = nil)
|
60
|
+
params = {}
|
61
|
+
|
62
|
+
(qs || '').split(d ? /[#{d}] */n : DEFAULT_SEP).each do |p|
|
63
|
+
k, v = unescape(p).split('=', 2)
|
64
|
+
normalize_params(params, k, v)
|
65
|
+
end
|
66
|
+
|
67
|
+
return params
|
68
|
+
end
|
69
|
+
module_function :parse_nested_query
|
70
|
+
|
71
|
+
def normalize_params(params, name, v = nil)
|
72
|
+
if v and v =~ /^("|')(.*)\1$/
|
73
|
+
v = $2.gsub('\\'+$1, $1)
|
74
|
+
end
|
75
|
+
name =~ %r(\A[\[\]]*([^\[\]]+)\]*)
|
76
|
+
k = $1 || ''
|
77
|
+
after = $' || ''
|
78
|
+
|
79
|
+
return if k.empty?
|
80
|
+
|
81
|
+
if after == ""
|
82
|
+
params[k] = v
|
83
|
+
elsif after == "[]"
|
84
|
+
params[k] ||= []
|
85
|
+
raise TypeError, "expected Array (got #{params[k].class.name}) for param `#{k}'" unless params[k].is_a?(Array)
|
86
|
+
params[k] << v
|
87
|
+
elsif after =~ %r(^\[\]\[([^\[\]]+)\]$) || after =~ %r(^\[\](.+)$)
|
88
|
+
child_key = $1
|
89
|
+
params[k] ||= []
|
90
|
+
raise TypeError, "expected Array (got #{params[k].class.name}) for param `#{k}'" unless params[k].is_a?(Array)
|
91
|
+
if params[k].last.is_a?(Hash) && !params[k].last.key?(child_key)
|
92
|
+
normalize_params(params[k].last, child_key, v)
|
93
|
+
else
|
94
|
+
params[k] << normalize_params({}, child_key, v)
|
95
|
+
end
|
96
|
+
else
|
97
|
+
params[k] ||= {}
|
98
|
+
raise TypeError, "expected Hash (got #{params[k].class.name}) for param `#{k}'" unless params[k].is_a?(Hash)
|
99
|
+
params[k] = normalize_params(params[k], after, v)
|
100
|
+
end
|
101
|
+
|
102
|
+
return params
|
103
|
+
end
|
104
|
+
module_function :normalize_params
|
105
|
+
|
106
|
+
def build_query(params)
|
107
|
+
params.map { |k, v|
|
108
|
+
if v.class == Array
|
109
|
+
build_query(v.map { |x| [k, x] })
|
110
|
+
else
|
111
|
+
"#{escape(k)}=#{escape(v)}"
|
112
|
+
end
|
113
|
+
}.join("&")
|
114
|
+
end
|
115
|
+
module_function :build_query
|
116
|
+
|
117
|
+
def build_nested_query(value, prefix = nil)
|
118
|
+
case value
|
119
|
+
when Array
|
120
|
+
value.map { |v|
|
121
|
+
build_nested_query(v, "#{prefix}[]")
|
122
|
+
}.join("&")
|
123
|
+
when Hash
|
124
|
+
value.map { |k, v|
|
125
|
+
build_nested_query(v, prefix ? "#{prefix}[#{escape(k)}]" : escape(k))
|
126
|
+
}.join("&")
|
127
|
+
when String
|
128
|
+
raise ArgumentError, "value must be a Hash" if prefix.nil?
|
129
|
+
"#{prefix}=#{escape(value)}"
|
130
|
+
else
|
131
|
+
prefix
|
132
|
+
end
|
133
|
+
end
|
134
|
+
module_function :build_nested_query
|
135
|
+
|
136
|
+
# Escape ampersands, brackets and quotes to their HTML/XML entities.
|
137
|
+
def escape_html(string)
|
138
|
+
string.to_s.gsub("&", "&").
|
139
|
+
gsub("<", "<").
|
140
|
+
gsub(">", ">").
|
141
|
+
gsub("'", "'").
|
142
|
+
gsub('"', """)
|
143
|
+
end
|
144
|
+
module_function :escape_html
|
145
|
+
|
146
|
+
def select_best_encoding(available_encodings, accept_encoding)
|
147
|
+
# http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
|
148
|
+
|
149
|
+
expanded_accept_encoding =
|
150
|
+
accept_encoding.map { |m, q|
|
151
|
+
if m == "*"
|
152
|
+
(available_encodings - accept_encoding.map { |m2, _| m2 }).map { |m2| [m2, q] }
|
153
|
+
else
|
154
|
+
[[m, q]]
|
155
|
+
end
|
156
|
+
}.inject([]) { |mem, list|
|
157
|
+
mem + list
|
158
|
+
}
|
159
|
+
|
160
|
+
encoding_candidates = expanded_accept_encoding.sort_by { |_, q| -q }.map { |m, _| m }
|
161
|
+
|
162
|
+
unless encoding_candidates.include?("identity")
|
163
|
+
encoding_candidates.push("identity")
|
164
|
+
end
|
165
|
+
|
166
|
+
expanded_accept_encoding.find_all { |m, q|
|
167
|
+
q == 0.0
|
168
|
+
}.each { |m, _|
|
169
|
+
encoding_candidates.delete(m)
|
170
|
+
}
|
171
|
+
|
172
|
+
return (encoding_candidates & available_encodings)[0]
|
173
|
+
end
|
174
|
+
module_function :select_best_encoding
|
175
|
+
|
176
|
+
def set_cookie_header!(header, key, value)
|
177
|
+
case value
|
178
|
+
when Hash
|
179
|
+
domain = "; domain=" + value[:domain] if value[:domain]
|
180
|
+
path = "; path=" + value[:path] if value[:path]
|
181
|
+
# According to RFC 2109, we need dashes here.
|
182
|
+
# N.B.: cgi.rb uses spaces...
|
183
|
+
expires = "; expires=" + value[:expires].clone.gmtime.
|
184
|
+
strftime("%a, %d-%b-%Y %H:%M:%S GMT") if value[:expires]
|
185
|
+
secure = "; secure" if value[:secure]
|
186
|
+
httponly = "; HttpOnly" if value[:httponly]
|
187
|
+
value = value[:value]
|
188
|
+
end
|
189
|
+
value = [value] unless Array === value
|
190
|
+
cookie = escape(key) + "=" +
|
191
|
+
value.map { |v| escape v }.join("&") +
|
192
|
+
"#{domain}#{path}#{expires}#{secure}#{httponly}"
|
193
|
+
|
194
|
+
case header["Set-Cookie"]
|
195
|
+
when Array
|
196
|
+
header["Set-Cookie"] << cookie
|
197
|
+
when String
|
198
|
+
header["Set-Cookie"] = [header["Set-Cookie"], cookie]
|
199
|
+
when nil
|
200
|
+
header["Set-Cookie"] = cookie
|
201
|
+
end
|
202
|
+
|
203
|
+
nil
|
204
|
+
end
|
205
|
+
module_function :set_cookie_header!
|
206
|
+
|
207
|
+
def delete_cookie_header!(header, key, value = {})
|
208
|
+
unless Array === header["Set-Cookie"]
|
209
|
+
header["Set-Cookie"] = [header["Set-Cookie"]].compact
|
210
|
+
end
|
211
|
+
|
212
|
+
header["Set-Cookie"].reject! { |cookie|
|
213
|
+
cookie =~ /\A#{escape(key)}=/
|
214
|
+
}
|
215
|
+
|
216
|
+
set_cookie_header!(header, key,
|
217
|
+
{:value => '', :path => nil, :domain => nil,
|
218
|
+
:expires => Time.at(0) }.merge(value))
|
219
|
+
|
220
|
+
nil
|
221
|
+
end
|
222
|
+
module_function :delete_cookie_header!
|
223
|
+
|
224
|
+
# Return the bytesize of String; uses String#length under Ruby 1.8 and
|
225
|
+
# String#bytesize under 1.9.
|
226
|
+
if ''.respond_to?(:bytesize)
|
227
|
+
def bytesize(string)
|
228
|
+
string.bytesize
|
229
|
+
end
|
230
|
+
else
|
231
|
+
def bytesize(string)
|
232
|
+
string.size
|
233
|
+
end
|
234
|
+
end
|
235
|
+
module_function :bytesize
|
236
|
+
|
237
|
+
# Context allows the use of a compatible middleware at different points
|
238
|
+
# in a request handling stack. A compatible middleware must define
|
239
|
+
# #context which should take the arguments env and app. The first of which
|
240
|
+
# would be the request environment. The second of which would be the rack
|
241
|
+
# application that the request would be forwarded to.
|
242
|
+
class Context
|
243
|
+
attr_reader :for, :app
|
244
|
+
|
245
|
+
def initialize(app_f, app_r)
|
246
|
+
raise 'running context does not respond to #context' unless app_f.respond_to? :context
|
247
|
+
@for, @app = app_f, app_r
|
248
|
+
end
|
249
|
+
|
250
|
+
def call(env)
|
251
|
+
@for.context(env, @app)
|
252
|
+
end
|
253
|
+
|
254
|
+
def recontext(app)
|
255
|
+
self.class.new(@for, app)
|
256
|
+
end
|
257
|
+
|
258
|
+
def context(env, app=@app)
|
259
|
+
recontext(app).call(env)
|
260
|
+
end
|
261
|
+
end
|
262
|
+
|
263
|
+
# A case-insensitive Hash that preserves the original case of a
|
264
|
+
# header when set.
|
265
|
+
class HeaderHash < Hash
|
266
|
+
def self.new(hash={})
|
267
|
+
HeaderHash === hash ? hash : super(hash)
|
268
|
+
end
|
269
|
+
|
270
|
+
def initialize(hash={})
|
271
|
+
super()
|
272
|
+
@names = {}
|
273
|
+
hash.each { |k, v| self[k] = v }
|
274
|
+
end
|
275
|
+
|
276
|
+
def each
|
277
|
+
super do |k, v|
|
278
|
+
yield(k, v.respond_to?(:to_ary) ? v.to_ary.join("\n") : v)
|
279
|
+
end
|
280
|
+
end
|
281
|
+
|
282
|
+
def to_hash
|
283
|
+
inject({}) do |hash, (k,v)|
|
284
|
+
if v.respond_to? :to_ary
|
285
|
+
hash[k] = v.to_ary.join("\n")
|
286
|
+
else
|
287
|
+
hash[k] = v
|
288
|
+
end
|
289
|
+
hash
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
293
|
+
def [](k)
|
294
|
+
super(@names[k] ||= @names[k.downcase])
|
295
|
+
end
|
296
|
+
|
297
|
+
def []=(k, v)
|
298
|
+
delete k
|
299
|
+
@names[k] = @names[k.downcase] = k
|
300
|
+
super k, v
|
301
|
+
end
|
302
|
+
|
303
|
+
def delete(k)
|
304
|
+
canonical = k.downcase
|
305
|
+
result = super @names.delete(canonical)
|
306
|
+
@names.delete_if { |name,| name.downcase == canonical }
|
307
|
+
result
|
308
|
+
end
|
309
|
+
|
310
|
+
def include?(k)
|
311
|
+
@names.include?(k) || @names.include?(k.downcase)
|
312
|
+
end
|
313
|
+
|
314
|
+
alias_method :has_key?, :include?
|
315
|
+
alias_method :member?, :include?
|
316
|
+
alias_method :key?, :include?
|
317
|
+
|
318
|
+
def merge!(other)
|
319
|
+
other.each { |k, v| self[k] = v }
|
320
|
+
self
|
321
|
+
end
|
322
|
+
|
323
|
+
def merge(other)
|
324
|
+
hash = dup
|
325
|
+
hash.merge! other
|
326
|
+
end
|
327
|
+
|
328
|
+
def replace(other)
|
329
|
+
clear
|
330
|
+
other.each { |k, v| self[k] = v }
|
331
|
+
self
|
332
|
+
end
|
333
|
+
end
|
334
|
+
|
335
|
+
# Every standard HTTP code mapped to the appropriate message.
|
336
|
+
# Generated with:
|
337
|
+
# curl -s http://www.iana.org/assignments/http-status-codes | \
|
338
|
+
# ruby -ane 'm = /^(\d{3}) +(\S[^\[(]+)/.match($_) and
|
339
|
+
# puts " #{m[1]} => \x27#{m[2].strip}x27,"'
|
340
|
+
HTTP_STATUS_CODES = {
|
341
|
+
100 => 'Continue',
|
342
|
+
101 => 'Switching Protocols',
|
343
|
+
102 => 'Processing',
|
344
|
+
200 => 'OK',
|
345
|
+
201 => 'Created',
|
346
|
+
202 => 'Accepted',
|
347
|
+
203 => 'Non-Authoritative Information',
|
348
|
+
204 => 'No Content',
|
349
|
+
205 => 'Reset Content',
|
350
|
+
206 => 'Partial Content',
|
351
|
+
207 => 'Multi-Status',
|
352
|
+
226 => 'IM Used',
|
353
|
+
300 => 'Multiple Choices',
|
354
|
+
301 => 'Moved Permanently',
|
355
|
+
302 => 'Found',
|
356
|
+
303 => 'See Other',
|
357
|
+
304 => 'Not Modified',
|
358
|
+
305 => 'Use Proxy',
|
359
|
+
306 => 'Reserved',
|
360
|
+
307 => 'Temporary Redirect',
|
361
|
+
400 => 'Bad Request',
|
362
|
+
401 => 'Unauthorized',
|
363
|
+
402 => 'Payment Required',
|
364
|
+
403 => 'Forbidden',
|
365
|
+
404 => 'Not Found',
|
366
|
+
405 => 'Method Not Allowed',
|
367
|
+
406 => 'Not Acceptable',
|
368
|
+
407 => 'Proxy Authentication Required',
|
369
|
+
408 => 'Request Timeout',
|
370
|
+
409 => 'Conflict',
|
371
|
+
410 => 'Gone',
|
372
|
+
411 => 'Length Required',
|
373
|
+
412 => 'Precondition Failed',
|
374
|
+
413 => 'Request Entity Too Large',
|
375
|
+
414 => 'Request-URI Too Long',
|
376
|
+
415 => 'Unsupported Media Type',
|
377
|
+
416 => 'Requested Range Not Satisfiable',
|
378
|
+
417 => 'Expectation Failed',
|
379
|
+
422 => 'Unprocessable Entity',
|
380
|
+
423 => 'Locked',
|
381
|
+
424 => 'Failed Dependency',
|
382
|
+
426 => 'Upgrade Required',
|
383
|
+
500 => 'Internal Server Error',
|
384
|
+
501 => 'Not Implemented',
|
385
|
+
502 => 'Bad Gateway',
|
386
|
+
503 => 'Service Unavailable',
|
387
|
+
504 => 'Gateway Timeout',
|
388
|
+
505 => 'HTTP Version Not Supported',
|
389
|
+
506 => 'Variant Also Negotiates',
|
390
|
+
507 => 'Insufficient Storage',
|
391
|
+
510 => 'Not Extended',
|
392
|
+
}
|
393
|
+
|
394
|
+
# Responses with HTTP status codes that should not have an entity body
|
395
|
+
STATUS_WITH_NO_ENTITY_BODY = Set.new((100..199).to_a << 204 << 304)
|
396
|
+
|
397
|
+
SYMBOL_TO_STATUS_CODE = HTTP_STATUS_CODES.inject({}) { |hash, (code, message)|
|
398
|
+
hash[message.downcase.gsub(/\s|-/, '_').to_sym] = code
|
399
|
+
hash
|
400
|
+
}
|
401
|
+
|
402
|
+
def status_code(status)
|
403
|
+
if status.is_a?(Symbol)
|
404
|
+
SYMBOL_TO_STATUS_CODE[status] || 500
|
405
|
+
else
|
406
|
+
status.to_i
|
407
|
+
end
|
408
|
+
end
|
409
|
+
module_function :status_code
|
410
|
+
|
411
|
+
# A multipart form data parser, adapted from IOWA.
|
412
|
+
#
|
413
|
+
# Usually, Rack::Request#POST takes care of calling this.
|
414
|
+
|
415
|
+
module Multipart
|
416
|
+
class UploadedFile
|
417
|
+
# The filename, *not* including the path, of the "uploaded" file
|
418
|
+
attr_reader :original_filename
|
419
|
+
|
420
|
+
# The content type of the "uploaded" file
|
421
|
+
attr_accessor :content_type
|
422
|
+
|
423
|
+
def initialize(path, content_type = "text/plain", binary = false)
|
424
|
+
raise "#{path} file does not exist" unless ::File.exist?(path)
|
425
|
+
@content_type = content_type
|
426
|
+
@original_filename = ::File.basename(path)
|
427
|
+
@tempfile = Tempfile.new(@original_filename)
|
428
|
+
@tempfile.set_encoding(Encoding::BINARY) if @tempfile.respond_to?(:set_encoding)
|
429
|
+
@tempfile.binmode if binary
|
430
|
+
FileUtils.copy_file(path, @tempfile.path)
|
431
|
+
end
|
432
|
+
|
433
|
+
def path
|
434
|
+
@tempfile.path
|
435
|
+
end
|
436
|
+
alias_method :local_path, :path
|
437
|
+
|
438
|
+
def method_missing(method_name, *args, &block) #:nodoc:
|
439
|
+
@tempfile.__send__(method_name, *args, &block)
|
440
|
+
end
|
441
|
+
end
|
442
|
+
|
443
|
+
EOL = "\r\n"
|
444
|
+
MULTIPART_BOUNDARY = "AaB03x"
|
445
|
+
|
446
|
+
def self.parse_multipart(env)
|
447
|
+
unless env['CONTENT_TYPE'] =~
|
448
|
+
%r|\Amultipart/.*boundary=\"?([^\";,]+)\"?|n
|
449
|
+
nil
|
450
|
+
else
|
451
|
+
boundary = "--#{$1}"
|
452
|
+
|
453
|
+
params = {}
|
454
|
+
buf = ""
|
455
|
+
content_length = env['CONTENT_LENGTH'].to_i
|
456
|
+
input = env['rack.input']
|
457
|
+
input.rewind
|
458
|
+
|
459
|
+
boundary_size = Utils.bytesize(boundary) + EOL.size
|
460
|
+
bufsize = 16384
|
461
|
+
|
462
|
+
content_length -= boundary_size
|
463
|
+
|
464
|
+
read_buffer = ''
|
465
|
+
|
466
|
+
status = input.read(boundary_size, read_buffer)
|
467
|
+
raise EOFError, "bad content body" unless status == boundary + EOL
|
468
|
+
|
469
|
+
rx = /(?:#{EOL})?#{Regexp.quote boundary}(#{EOL}|--)/n
|
470
|
+
|
471
|
+
loop {
|
472
|
+
head = nil
|
473
|
+
body = ''
|
474
|
+
filename = content_type = name = nil
|
475
|
+
|
476
|
+
until head && buf =~ rx
|
477
|
+
if !head && i = buf.index(EOL+EOL)
|
478
|
+
head = buf.slice!(0, i+2) # First \r\n
|
479
|
+
buf.slice!(0, 2) # Second \r\n
|
480
|
+
|
481
|
+
filename = head[/Content-Disposition:.* filename=(?:"((?:\\.|[^\"])*)"|([^;\s]*))/ni, 1]
|
482
|
+
content_type = head[/Content-Type: (.*)#{EOL}/ni, 1]
|
483
|
+
name = head[/Content-Disposition:.*\s+name="?([^\";]*)"?/ni, 1] || head[/Content-ID:\s*([^#{EOL}]*)/ni, 1]
|
484
|
+
|
485
|
+
if content_type || filename
|
486
|
+
body = Tempfile.new("RackMultipart")
|
487
|
+
body.binmode if body.respond_to?(:binmode)
|
488
|
+
end
|
489
|
+
|
490
|
+
next
|
491
|
+
end
|
492
|
+
|
493
|
+
# Save the read body part.
|
494
|
+
if head && (boundary_size+4 < buf.size)
|
495
|
+
body << buf.slice!(0, buf.size - (boundary_size+4))
|
496
|
+
end
|
497
|
+
|
498
|
+
c = input.read(bufsize < content_length ? bufsize : content_length, read_buffer)
|
499
|
+
raise EOFError, "bad content body" if c.nil? || c.empty?
|
500
|
+
buf << c
|
501
|
+
content_length -= c.size
|
502
|
+
end
|
503
|
+
|
504
|
+
# Save the rest.
|
505
|
+
if i = buf.index(rx)
|
506
|
+
body << buf.slice!(0, i)
|
507
|
+
buf.slice!(0, boundary_size+2)
|
508
|
+
|
509
|
+
content_length = -1 if $1 == "--"
|
510
|
+
end
|
511
|
+
|
512
|
+
if filename == ""
|
513
|
+
# filename is blank which means no file has been selected
|
514
|
+
data = nil
|
515
|
+
elsif filename
|
516
|
+
body.rewind
|
517
|
+
|
518
|
+
# Take the basename of the upload's original filename.
|
519
|
+
# This handles the full Windows paths given by Internet Explorer
|
520
|
+
# (and perhaps other broken user agents) without affecting
|
521
|
+
# those which give the lone filename.
|
522
|
+
filename =~ /^(?:.*[:\\\/])?(.*)/m
|
523
|
+
filename = $1
|
524
|
+
|
525
|
+
data = {:filename => filename, :type => content_type,
|
526
|
+
:name => name, :tempfile => body, :head => head}
|
527
|
+
elsif !filename && content_type
|
528
|
+
body.rewind
|
529
|
+
|
530
|
+
# Generic multipart cases, not coming from a form
|
531
|
+
data = {:type => content_type,
|
532
|
+
:name => name, :tempfile => body, :head => head}
|
533
|
+
else
|
534
|
+
data = body
|
535
|
+
end
|
536
|
+
|
537
|
+
Utils.normalize_params(params, name, data) unless data.nil?
|
538
|
+
|
539
|
+
# break if we're at the end of a buffer, but not if it is the end of a field
|
540
|
+
break if (buf.empty? && $1 != EOL) || content_length == -1
|
541
|
+
}
|
542
|
+
|
543
|
+
input.rewind
|
544
|
+
|
545
|
+
params
|
546
|
+
end
|
547
|
+
end
|
548
|
+
|
549
|
+
def self.build_multipart(params, first = true)
|
550
|
+
if first
|
551
|
+
unless params.is_a?(Hash)
|
552
|
+
raise ArgumentError, "value must be a Hash"
|
553
|
+
end
|
554
|
+
|
555
|
+
multipart = false
|
556
|
+
query = lambda { |value|
|
557
|
+
case value
|
558
|
+
when Array
|
559
|
+
value.each(&query)
|
560
|
+
when Hash
|
561
|
+
value.values.each(&query)
|
562
|
+
when UploadedFile
|
563
|
+
multipart = true
|
564
|
+
end
|
565
|
+
}
|
566
|
+
params.values.each(&query)
|
567
|
+
return nil unless multipart
|
568
|
+
end
|
569
|
+
|
570
|
+
flattened_params = Hash.new
|
571
|
+
|
572
|
+
params.each do |key, value|
|
573
|
+
k = first ? key.to_s : "[#{key}]"
|
574
|
+
|
575
|
+
case value
|
576
|
+
when Array
|
577
|
+
value.map { |v|
|
578
|
+
build_multipart(v, false).each { |subkey, subvalue|
|
579
|
+
flattened_params["#{k}[]#{subkey}"] = subvalue
|
580
|
+
}
|
581
|
+
}
|
582
|
+
when Hash
|
583
|
+
build_multipart(value, false).each { |subkey, subvalue|
|
584
|
+
flattened_params[k + subkey] = subvalue
|
585
|
+
}
|
586
|
+
else
|
587
|
+
flattened_params[k] = value
|
588
|
+
end
|
589
|
+
end
|
590
|
+
|
591
|
+
if first
|
592
|
+
flattened_params.map { |name, file|
|
593
|
+
if file.respond_to?(:original_filename)
|
594
|
+
::File.open(file.path, "rb") do |f|
|
595
|
+
f.set_encoding(Encoding::BINARY) if f.respond_to?(:set_encoding)
|
596
|
+
<<-EOF
|
597
|
+
--#{MULTIPART_BOUNDARY}\r
|
598
|
+
Content-Disposition: form-data; name="#{name}"; filename="#{Utils.escape(file.original_filename)}"\r
|
599
|
+
Content-Type: #{file.content_type}\r
|
600
|
+
Content-Length: #{::File.stat(file.path).size}\r
|
601
|
+
\r
|
602
|
+
#{f.read}\r
|
603
|
+
EOF
|
604
|
+
end
|
605
|
+
else
|
606
|
+
<<-EOF
|
607
|
+
--#{MULTIPART_BOUNDARY}\r
|
608
|
+
Content-Disposition: form-data; name="#{name}"\r
|
609
|
+
\r
|
610
|
+
#{file}\r
|
611
|
+
EOF
|
612
|
+
end
|
613
|
+
}.join + "--#{MULTIPART_BOUNDARY}--\r"
|
614
|
+
else
|
615
|
+
flattened_params
|
616
|
+
end
|
617
|
+
end
|
618
|
+
end
|
619
|
+
end
|
620
|
+
end
|
@@ -0,0 +1,92 @@
|
|
1
|
+
# Copyright (C) 2007, 2008, 2009, 2010 Christian Neukirchen <purl.org/net/chneukirchen>
|
2
|
+
#
|
3
|
+
# Rack is freely distributable under the terms of an MIT-style license.
|
4
|
+
# See COPYING or http://www.opensource.org/licenses/mit-license.php.
|
5
|
+
|
6
|
+
# The Rack main module, serving as a namespace for all core Rack
|
7
|
+
# modules and classes.
|
8
|
+
#
|
9
|
+
# All modules meant for use in your application are <tt>autoload</tt>ed here,
|
10
|
+
# so it should be enough just to <tt>require rack.rb</tt> in your code.
|
11
|
+
|
12
|
+
module Rack
|
13
|
+
# The Rack protocol version number implemented.
|
14
|
+
VERSION = [1,1]
|
15
|
+
|
16
|
+
# Return the Rack protocol version as a dotted string.
|
17
|
+
def self.version
|
18
|
+
VERSION.join(".")
|
19
|
+
end
|
20
|
+
|
21
|
+
# Return the Rack release as a dotted string.
|
22
|
+
def self.release
|
23
|
+
"1.1"
|
24
|
+
end
|
25
|
+
|
26
|
+
autoload :Builder, "rack/builder"
|
27
|
+
autoload :Cascade, "rack/cascade"
|
28
|
+
autoload :Chunked, "rack/chunked"
|
29
|
+
autoload :CommonLogger, "rack/commonlogger"
|
30
|
+
autoload :ConditionalGet, "rack/conditionalget"
|
31
|
+
autoload :Config, "rack/config"
|
32
|
+
autoload :ContentLength, "rack/content_length"
|
33
|
+
autoload :ContentType, "rack/content_type"
|
34
|
+
autoload :ETag, "rack/etag"
|
35
|
+
autoload :File, "rack/file"
|
36
|
+
autoload :Deflater, "rack/deflater"
|
37
|
+
autoload :Directory, "rack/directory"
|
38
|
+
autoload :ForwardRequest, "rack/recursive"
|
39
|
+
autoload :Handler, "rack/handler"
|
40
|
+
autoload :Head, "rack/head"
|
41
|
+
autoload :Lint, "rack/lint"
|
42
|
+
autoload :Lock, "rack/lock"
|
43
|
+
autoload :Logger, "rack/logger"
|
44
|
+
autoload :MethodOverride, "rack/methodoverride"
|
45
|
+
autoload :Mime, "rack/mime"
|
46
|
+
autoload :NullLogger, "rack/nulllogger"
|
47
|
+
autoload :Recursive, "rack/recursive"
|
48
|
+
autoload :Reloader, "rack/reloader"
|
49
|
+
autoload :Runtime, "rack/runtime"
|
50
|
+
autoload :Sendfile, "rack/sendfile"
|
51
|
+
autoload :Server, "rack/server"
|
52
|
+
autoload :ShowExceptions, "rack/showexceptions"
|
53
|
+
autoload :ShowStatus, "rack/showstatus"
|
54
|
+
autoload :Static, "rack/static"
|
55
|
+
autoload :URLMap, "rack/urlmap"
|
56
|
+
autoload :Utils, "rack/utils"
|
57
|
+
|
58
|
+
autoload :MockRequest, "rack/mock"
|
59
|
+
autoload :MockResponse, "rack/mock"
|
60
|
+
|
61
|
+
autoload :Request, "rack/request"
|
62
|
+
autoload :Response, "rack/response"
|
63
|
+
|
64
|
+
module Auth
|
65
|
+
autoload :Basic, "rack/auth/basic"
|
66
|
+
autoload :AbstractRequest, "rack/auth/abstract/request"
|
67
|
+
autoload :AbstractHandler, "rack/auth/abstract/handler"
|
68
|
+
module Digest
|
69
|
+
autoload :MD5, "rack/auth/digest/md5"
|
70
|
+
autoload :Nonce, "rack/auth/digest/nonce"
|
71
|
+
autoload :Params, "rack/auth/digest/params"
|
72
|
+
autoload :Request, "rack/auth/digest/request"
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
module Session
|
77
|
+
autoload :Cookie, "rack/session/cookie"
|
78
|
+
autoload :Pool, "rack/session/pool"
|
79
|
+
autoload :Memcache, "rack/session/memcache"
|
80
|
+
end
|
81
|
+
|
82
|
+
# *Adapters* connect Rack with third party web frameworks.
|
83
|
+
#
|
84
|
+
# Rack includes an adapter for Camping, see README for other
|
85
|
+
# frameworks supporting Rack in their code bases.
|
86
|
+
#
|
87
|
+
# Refer to the submodules for framework-specific calling details.
|
88
|
+
|
89
|
+
module Adapter
|
90
|
+
autoload :Camping, "rack/adapter/camping"
|
91
|
+
end
|
92
|
+
end
|