torquebox-console 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/tbconsole +1 -2
- data/lib/torquebox/console/client.rb +11 -10
- data/lib/torquebox/console/version.rb +1 -1
- data/stomplets/torque_box_console.rb +7 -0
- data/vendor/bundle/ruby/1.8/bin/catstomp +23 -0
- data/vendor/bundle/ruby/1.8/bin/haml +23 -0
- data/vendor/bundle/ruby/1.8/bin/html2haml +23 -0
- data/vendor/bundle/ruby/1.8/bin/rackup +23 -0
- data/vendor/bundle/ruby/1.8/bin/rake +23 -0
- data/vendor/bundle/ruby/1.8/bin/rake2thor +23 -0
- data/vendor/bundle/ruby/1.8/bin/stompcat +23 -0
- data/vendor/bundle/ruby/1.8/bin/thor +23 -0
- data/vendor/bundle/ruby/1.8/bin/tilt +23 -0
- data/vendor/bundle/ruby/1.8/cache/haml-3.1.8.gem +0 -0
- data/vendor/bundle/ruby/1.8/cache/rack-1.5.2.gem +0 -0
- data/vendor/bundle/ruby/1.8/cache/rack-protection-1.4.0.gem +0 -0
- data/vendor/bundle/ruby/1.8/cache/rake-10.0.3.gem +0 -0
- data/vendor/bundle/ruby/1.8/cache/sinatra-1.3.5.gem +0 -0
- data/vendor/bundle/ruby/1.8/cache/stomp-1.2.8.gem +0 -0
- data/vendor/bundle/ruby/1.8/cache/thor-0.17.0.gem +0 -0
- data/vendor/bundle/ruby/1.8/cache/tilt-1.3.4.gem +0 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/CONTRIBUTING +3 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/MIT-LICENSE +20 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/README.md +133 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/REVISION +1 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/Rakefile +419 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/VERSION +1 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/VERSION_NAME +1 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/bin/haml +9 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/bin/html2haml +7 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/extra/update_watch.rb +13 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/init.rb +18 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/lib/haml.rb +47 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/lib/haml/buffer.rb +301 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/lib/haml/compiler.rb +453 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/lib/haml/engine.rb +312 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/lib/haml/error.rb +22 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/lib/haml/exec.rb +362 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/lib/haml/filters.rb +385 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/lib/haml/helpers.rb +608 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/lib/haml/helpers/action_view_extensions.rb +57 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/lib/haml/helpers/action_view_mods.rb +260 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/lib/haml/helpers/rails_323_textarea_fix.rb +41 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/lib/haml/helpers/xss_mods.rb +165 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/lib/haml/html.rb +412 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/lib/haml/html/erb.rb +141 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/lib/haml/parser.rb +711 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/lib/haml/railtie.rb +19 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/lib/haml/root.rb +7 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/lib/haml/shared.rb +78 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/lib/haml/template.rb +99 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/lib/haml/template/options.rb +16 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/lib/haml/template/patch.rb +58 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/lib/haml/template/plugin.rb +123 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/lib/haml/util.rb +842 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/lib/haml/version.rb +109 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/lib/sass.rb +8 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/lib/sass/plugin.rb +10 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/lib/sass/rails2_shim.rb +9 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/lib/sass/rails3_shim.rb +16 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/rails/init.rb +1 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/benchmark.rb +91 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/gemfiles/Gemfile.rails-2.0.x +8 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/gemfiles/Gemfile.rails-2.0.x.lock +38 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/gemfiles/Gemfile.rails-2.1.x +8 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/gemfiles/Gemfile.rails-2.1.x.lock +38 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/gemfiles/Gemfile.rails-2.2.x +8 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/gemfiles/Gemfile.rails-2.2.x.lock +38 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/gemfiles/Gemfile.rails-2.3.x +8 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/gemfiles/Gemfile.rails-2.3.x.lock +40 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/gemfiles/Gemfile.rails-3.0.x +8 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/gemfiles/Gemfile.rails-3.0.x.lock +85 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/gemfiles/Gemfile.rails-3.1.x +8 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/gemfiles/Gemfile.rails-3.1.x.lock +97 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/gemfiles/Gemfile.rails-3.2.x +8 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/gemfiles/Gemfile.rails-3.2.x.lock +95 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/gemfiles/Gemfile.rails-xss-2.3.x +9 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/gemfiles/Gemfile.rails-xss-2.3.x.lock +42 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/engine_test.rb +1950 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/erb/_av_partial_1.erb +12 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/erb/_av_partial_2.erb +8 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/erb/action_view.erb +62 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/erb/standard.erb +55 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/helper_test.rb +467 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/html2haml/erb_tests.rb +440 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/html2haml_test.rb +336 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/markaby/standard.mab +52 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/mocks/article.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/results/content_for_layout.xhtml +12 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/results/eval_suppressed.xhtml +9 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/results/filters.xhtml +62 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/results/helpers.xhtml +70 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/results/helpful.xhtml +10 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/results/just_stuff.xhtml +70 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/results/list.xhtml +12 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/results/nuke_inner_whitespace.xhtml +40 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/results/nuke_outer_whitespace.xhtml +148 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/results/original_engine.xhtml +20 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/results/partial_layout.xhtml +5 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/results/partials.xhtml +21 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/results/render_layout.xhtml +3 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/results/silent_script.xhtml +74 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/results/standard.xhtml +162 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/results/tag_parsing.xhtml +23 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/results/very_basic.xhtml +5 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/results/whitespace_handling.xhtml +85 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/spec/README.md +97 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/spec/lua_haml_spec.lua +30 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/spec/ruby_haml_test.rb +19 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/spec/tests.json +534 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/spec_test.rb +44 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/template_test.rb +443 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/_av_partial_1.haml +9 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/_av_partial_1_ugly.haml +9 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/_av_partial_2.haml +5 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/_av_partial_2_ugly.haml +5 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/_layout.erb +3 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/_layout_for_partial.haml +3 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/_partial.haml +8 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/_text_area.haml +3 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/action_view.haml +47 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/action_view_ugly.haml +47 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/breakage.haml +8 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/content_for_layout.haml +8 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/eval_suppressed.haml +11 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/filters.haml +66 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/helpers.haml +55 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/helpful.haml +11 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/just_stuff.haml +85 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/list.haml +12 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/nuke_inner_whitespace.haml +32 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/nuke_outer_whitespace.haml +144 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/original_engine.haml +17 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/partial_layout.haml +10 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/partialize.haml +1 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/partials.haml +12 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/render_layout.haml +2 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/silent_script.haml +40 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/standard.haml +43 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/standard_ugly.haml +43 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/tag_parsing.haml +21 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/very_basic.haml +4 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/templates/whitespace_handling.haml +87 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/haml/util_test.rb +300 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/linked_rails.rb +42 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/test/test_helper.rb +75 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/CONTRIBUTING +3 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/MIT-LICENSE +20 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/README.md +201 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/Rakefile +339 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/TODO +39 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/VERSION +1 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/VERSION_NAME +1 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/bin/sass +8 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/bin/sass-convert +7 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/bin/scss +8 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/doc-src/FAQ.md +35 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/doc-src/INDENTED_SYNTAX.md +210 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/doc-src/SASS_CHANGELOG.md +2327 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/doc-src/SASS_REFERENCE.md +1965 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/doc-src/SCSS_FOR_SASS_USERS.md +155 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/ext/extconf.rb +10 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/extra/update_watch.rb +13 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/init.rb +18 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass.rb +73 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/cache_stores.rb +15 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/cache_stores/base.rb +86 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/cache_stores/chain.rb +33 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/cache_stores/filesystem.rb +60 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/cache_stores/memory.rb +47 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/cache_stores/null.rb +25 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/callbacks.rb +66 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/css.rb +295 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/engine.rb +878 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/environment.rb +166 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/error.rb +201 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/exec.rb +672 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/importers.rb +22 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/importers/base.rb +139 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/importers/filesystem.rb +149 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/less.rb +382 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/logger.rb +15 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/logger/base.rb +32 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/logger/log_level.rb +49 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/plugin.rb +132 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/plugin/compiler.rb +383 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/plugin/configuration.rb +123 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/plugin/generic.rb +15 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/plugin/merb.rb +48 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/plugin/rack.rb +60 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/plugin/rails.rb +47 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/plugin/staleness_checker.rb +173 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/railtie.rb +9 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/repl.rb +58 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/root.rb +7 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/script.rb +40 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/script/bool.rb +18 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/script/color.rb +480 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/script/css_lexer.rb +29 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/script/css_parser.rb +31 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/script/funcall.rb +175 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/script/functions.rb +1386 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/script/interpolation.rb +79 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/script/lexer.rb +339 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/script/list.rb +83 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/script/literal.rb +250 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/script/node.rb +99 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/script/number.rb +452 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/script/operation.rb +99 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/script/parser.rb +474 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/script/string.rb +51 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/script/string_interpolation.rb +103 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/script/unary_operation.rb +64 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/script/variable.rb +59 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/scss.rb +17 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/scss/css_parser.rb +46 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/scss/parser.rb +960 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/scss/rx.rb +128 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/scss/sass_parser.rb +11 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/scss/script_lexer.rb +15 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/scss/script_parser.rb +25 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/scss/static_parser.rb +40 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/selector.rb +361 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/selector/abstract_sequence.rb +62 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/selector/comma_sequence.rb +81 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/selector/sequence.rb +233 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/selector/simple.rb +113 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/selector/simple_sequence.rb +134 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/shared.rb +78 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/tree/charset_node.rb +22 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/tree/comment_node.rb +90 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/tree/debug_node.rb +18 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/tree/directive_node.rb +23 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/tree/each_node.rb +24 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/tree/extend_node.rb +29 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/tree/for_node.rb +36 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/tree/function_node.rb +27 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/tree/if_node.rb +52 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/tree/import_node.rb +68 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/tree/media_node.rb +32 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/tree/mixin_def_node.rb +27 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/tree/mixin_node.rb +32 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/tree/node.rb +201 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/tree/prop_node.rb +148 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/tree/return_node.rb +18 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/tree/root_node.rb +28 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/tree/rule_node.rb +136 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/tree/variable_node.rb +30 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/tree/visitors/base.rb +75 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/tree/visitors/check_nesting.rb +133 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/tree/visitors/convert.rb +260 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/tree/visitors/cssize.rb +175 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/tree/visitors/deep_copy.rb +87 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/tree/visitors/perform.rb +332 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/tree/visitors/set_options.rb +97 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/tree/visitors/to_css.rb +210 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/tree/warn_node.rb +18 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/tree/while_node.rb +18 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/util.rb +721 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/util/subset_map.rb +101 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/lib/sass/version.rb +112 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/rails/init.rb +1 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/sass.gemspec +33 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/Gemfile +4 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/Gemfile.lock +19 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/cache_test.rb +89 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/callbacks_test.rb +61 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/conversion_test.rb +1199 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/css2sass_test.rb +373 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/data/hsl-rgb.txt +319 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/engine_test.rb +2567 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/extend_test.rb +1348 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/fixtures/test_staleness_check_across_importers.css +1 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/fixtures/test_staleness_check_across_importers.scss +1 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/functions_test.rb +1038 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/importer_test.rb +192 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/less_conversion_test.rb +653 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/logger_test.rb +58 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/mock_importer.rb +49 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/more_results/more1.css +9 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/more_results/more1_with_line_comments.css +26 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/more_results/more_import.css +29 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/more_templates/_more_partial.sass +2 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/more_templates/more1.sass +23 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/more_templates/more_import.sass +11 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/plugin_test.rb +472 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/results/alt.css +4 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/results/basic.css +9 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/results/compact.css +5 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/results/complex.css +86 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/results/compressed.css +1 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/results/expanded.css +19 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/results/if.css +3 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/results/import.css +31 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/results/import_charset.css +4 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/results/import_charset_1_8.css +4 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/results/import_charset_ibm866.css +4 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/results/line_numbers.css +49 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/results/mixins.css +95 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/results/multiline.css +24 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/results/nested.css +22 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/results/options.css +1 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/results/parent_ref.css +13 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/results/script.css +16 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/results/scss_import.css +31 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/results/scss_importee.css +2 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/results/subdir/nested_subdir/nested_subdir.css +1 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/results/subdir/subdir.css +3 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/results/units.css +11 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/results/warn.css +0 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/results/warn_imported.css +0 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/script_conversion_test.rb +285 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/script_test.rb +514 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/scss/css_test.rb +922 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/scss/rx_test.rb +156 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/scss/scss_test.rb +1273 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/scss/test_helper.rb +37 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/_imported_charset_ibm866.sass +4 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/_imported_charset_utf8.sass +4 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/_partial.sass +2 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/alt.sass +16 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/basic.sass +23 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/bork1.sass +2 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/bork2.sass +2 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/bork3.sass +2 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/bork4.sass +2 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/bork5.sass +3 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/compact.sass +17 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/complex.sass +305 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/compressed.sass +15 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/expanded.sass +17 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/if.sass +11 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/import.sass +12 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/import_charset.sass +7 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/import_charset_1_8.sass +4 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/import_charset_ibm866.sass +9 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/importee.less +2 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/importee.sass +19 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/line_numbers.sass +13 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/mixin_bork.sass +5 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/mixins.sass +76 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/multiline.sass +20 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/nested.sass +25 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/nested_bork1.sass +2 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/nested_bork2.sass +2 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/nested_bork3.sass +2 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/nested_bork4.sass +2 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/nested_bork5.sass +2 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/nested_import.sass +2 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/nested_mixin_bork.sass +6 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/options.sass +2 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/parent_ref.sass +25 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/script.sass +101 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/scss_import.scss +11 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/scss_importee.scss +1 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/subdir/nested_subdir/_nested_partial.sass +2 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/subdir/nested_subdir/nested_subdir.sass +3 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/subdir/subdir.sass +6 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/units.sass +11 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/warn.sass +3 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/templates/warn_imported.sass +4 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/test_helper.rb +8 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/util/subset_map_test.rb +91 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/sass/util_test.rb +266 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/test/test_helper.rb +69 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/Gemfile +3 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/LICENSE +20 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/README.markdown +83 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/Rakefile +11 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/example.rb +12 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/fssm.gemspec +24 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/lib/fssm.rb +37 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/lib/fssm/backends/fsevents.rb +36 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/lib/fssm/backends/inotify.rb +26 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/lib/fssm/backends/polling.rb +25 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/lib/fssm/backends/rbfsevent.rb +42 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/lib/fssm/backends/rubycocoa/fsevents.rb +131 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/lib/fssm/monitor.rb +36 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/lib/fssm/path.rb +94 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/lib/fssm/pathname.rb +36 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/lib/fssm/state/directory.rb +75 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/lib/fssm/state/file.rb +24 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/lib/fssm/support.rb +92 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/lib/fssm/tree.rb +176 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/lib/fssm/version.rb +3 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/profile/prof-cache.rb +40 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/profile/prof-fssm-pathname.html +1231 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/profile/prof-pathname-rubinius.rb +35 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/profile/prof-pathname.rb +68 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/profile/prof-plain-pathname.html +988 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/profile/prof.html +2379 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/spec/count_down_latch.rb +151 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/spec/monitor_spec.rb +202 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/spec/path_spec.rb +96 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/spec/root/duck/quack.txt +0 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/spec/root/file.css +0 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/spec/root/file.rb +0 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/spec/root/file.yml +0 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/spec/root/moo/cow.txt +0 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/vendor/fssm/spec/spec_helper.rb +14 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/yard/callbacks.rb +29 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/yard/default/fulldoc/html/css/common.sass +26 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/yard/default/layout/html/footer.erb +12 -0
- data/vendor/bundle/ruby/1.8/gems/haml-3.1.8/vendor/sass/yard/inherited_hash.rb +41 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/COPYING +18 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/KNOWN-ISSUES +30 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/README.rdoc +624 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/Rakefile +125 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/SPEC +237 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/bin/rackup +4 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/contrib/rack.png +0 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/contrib/rack.svg +150 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/contrib/rack_logo.svg +111 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/contrib/rdoc.css +412 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/example/lobster.ru +4 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/example/protectedlobster.rb +14 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/example/protectedlobster.ru +8 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack.rb +87 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/auth/abstract/handler.rb +37 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/auth/abstract/request.rb +43 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/auth/basic.rb +58 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/auth/digest/md5.rb +129 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/auth/digest/nonce.rb +51 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/auth/digest/params.rb +53 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/auth/digest/request.rb +41 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/backports/uri/common_18.rb +56 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/backports/uri/common_192.rb +52 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/backports/uri/common_193.rb +29 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/body_proxy.rb +39 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/builder.rb +149 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/cascade.rb +52 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/chunked.rb +58 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/commonlogger.rb +64 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/conditionalget.rb +67 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/config.rb +20 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/content_length.rb +33 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/content_type.rb +29 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/deflater.rb +116 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/directory.rb +161 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/etag.rb +64 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/file.rb +138 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/handler.rb +107 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/handler/cgi.rb +61 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/handler/evented_mongrel.rb +8 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/handler/fastcgi.rb +98 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/handler/lsws.rb +61 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/handler/mongrel.rb +100 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/handler/scgi.rb +67 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/handler/swiftiplied_mongrel.rb +8 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/handler/thin.rb +27 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/handler/webrick.rb +81 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/head.rb +22 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/lint.rb +699 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/lobster.rb +65 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/lock.rb +26 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/logger.rb +18 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/methodoverride.rb +31 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/mime.rb +677 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/mock.rb +190 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/multipart.rb +34 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/multipart/generator.rb +93 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/multipart/parser.rb +176 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/multipart/uploaded_file.rb +34 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/nulllogger.rb +18 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/recursive.rb +61 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/reloader.rb +109 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/request.rb +380 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/response.rb +155 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/rewindable_input.rb +104 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/runtime.rb +27 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/sendfile.rb +155 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/server.rb +362 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/session/abstract/id.rb +398 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/session/cookie.rb +178 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/session/memcache.rb +93 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/session/pool.rb +79 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/showexceptions.rb +378 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/showstatus.rb +113 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/static.rb +153 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/urlmap.rb +76 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/utils.rb +628 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/utils/okjson.rb +599 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/rack.gemspec +33 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/builder/anything.rb +5 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/builder/comment.ru +4 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/builder/end.ru +5 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/builder/line.ru +1 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/builder/options.ru +2 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/cgi/assets/folder/test.js +1 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/cgi/assets/fonts/font.eot +1 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/cgi/assets/images/image.png +1 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/cgi/assets/index.html +1 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/cgi/assets/javascripts/app.js +1 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/cgi/assets/stylesheets/app.css +1 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/cgi/lighttpd.conf +26 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/cgi/rackup_stub.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/cgi/sample_rackup.ru +5 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/cgi/test +9 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/cgi/test+directory/test+file +1 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/cgi/test.fcgi +8 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/cgi/test.ru +5 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/gemloader.rb +10 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/multipart/bad_robots +259 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/multipart/binary +0 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/multipart/content_type_and_no_filename +6 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/multipart/empty +10 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/multipart/fail_16384_nofile +814 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/multipart/file1.txt +1 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/multipart/filename_and_modification_param +7 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/multipart/filename_with_escaped_quotes +6 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/multipart/filename_with_escaped_quotes_and_modification_param +7 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/multipart/filename_with_percent_escaped_quotes +6 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/multipart/filename_with_unescaped_percentages +6 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/multipart/filename_with_unescaped_percentages2 +6 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/multipart/filename_with_unescaped_percentages3 +6 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/multipart/filename_with_unescaped_quotes +6 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/multipart/ie +6 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/multipart/mixed_files +21 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/multipart/nested +10 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/multipart/none +9 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/multipart/semicolon +6 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/multipart/text +15 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/multipart/webkit +32 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/rackup/config.ru +31 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/registering_handler/rack/handler/registering_myself.rb +8 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_auth_basic.rb +81 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_auth_digest.rb +259 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_body_proxy.rb +69 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_builder.rb +214 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_cascade.rb +61 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_cgi.rb +102 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_chunked.rb +85 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_commonlogger.rb +57 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_conditionalget.rb +102 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_config.rb +22 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_content_length.rb +83 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_content_type.rb +45 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_deflater.rb +204 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_directory.rb +88 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_etag.rb +98 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_fastcgi.rb +107 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_file.rb +213 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_handler.rb +59 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_head.rb +43 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_lint.rb +522 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_lobster.rb +58 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_lock.rb +164 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_logger.rb +23 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_methodoverride.rb +75 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_mime.rb +51 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_mock.rb +269 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_mongrel.rb +182 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_multipart.rb +445 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_nulllogger.rb +20 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_recursive.rb +72 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_request.rb +1078 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_response.rb +313 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_rewindable_input.rb +118 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_runtime.rb +49 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_sendfile.rb +130 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_server.rb +143 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_session_abstract_id.rb +53 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_session_cookie.rb +367 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_session_memcache.rb +321 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_session_pool.rb +209 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_showexceptions.rb +92 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_showstatus.rb +84 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_static.rb +145 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_thin.rb +91 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_urlmap.rb +213 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_utils.rb +573 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/spec_webrick.rb +143 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/static/another/index.html +1 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/static/index.html +1 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/testrequest.rb +78 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/unregistered_handler/rack/handler/unregistered.rb +7 -0
- data/vendor/bundle/ruby/1.8/gems/rack-1.5.2/test/unregistered_handler/rack/handler/unregistered_long_one.rb +7 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/License +20 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/README.md +82 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/Rakefile +48 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/lib/rack-protection.rb +1 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/lib/rack/protection.rb +40 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/lib/rack/protection/authenticity_token.rb +24 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/lib/rack/protection/base.rb +107 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/lib/rack/protection/escaped_params.rb +87 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/lib/rack/protection/form_token.rb +23 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/lib/rack/protection/frame_options.rb +37 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/lib/rack/protection/http_origin.rb +32 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/lib/rack/protection/ip_spoofing.rb +23 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/lib/rack/protection/json_csrf.rb +35 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/lib/rack/protection/path_traversal.rb +36 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/lib/rack/protection/remote_referrer.rb +20 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/lib/rack/protection/remote_token.rb +22 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/lib/rack/protection/session_hijacking.rb +36 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/lib/rack/protection/version.rb +16 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/lib/rack/protection/xss_header.rb +25 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/rack-protection.gemspec +92 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/spec/authenticity_token_spec.rb +33 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/spec/escaped_params_spec.rb +44 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/spec/form_token_spec.rb +33 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/spec/frame_options_spec.rb +39 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/spec/http_origin_spec.rb +38 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/spec/ip_spoofing_spec.rb +35 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/spec/json_csrf_spec.rb +44 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/spec/path_traversal_spec.rb +28 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/spec/protection_spec.rb +37 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/spec/remote_referrer_spec.rb +31 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/spec/remote_token_spec.rb +42 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/spec/session_hijacking_spec.rb +54 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/spec/spec_helper.rb +163 -0
- data/vendor/bundle/ruby/1.8/gems/rack-protection-1.4.0/spec/xss_header_spec.rb +56 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/CHANGES +526 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/README.rdoc +187 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/Rakefile +374 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/TODO +21 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/bin/rake +33 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/command_line_usage.rdoc +152 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/example/Rakefile1 +38 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/example/Rakefile2 +35 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/example/a.c +6 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/example/b.c +6 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/example/main.c +11 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/glossary.rdoc +51 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/jamis.rb +591 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/proto_rake.rdoc +127 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/rake.1.gz +0 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/rakefile.rdoc +557 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/rational.rdoc +151 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/release_notes/rake-0.4.14.rdoc +23 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/release_notes/rake-0.4.15.rdoc +35 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/release_notes/rake-0.5.0.rdoc +53 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/release_notes/rake-0.5.3.rdoc +78 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/release_notes/rake-0.5.4.rdoc +46 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/release_notes/rake-0.6.0.rdoc +141 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/release_notes/rake-0.7.0.rdoc +119 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/release_notes/rake-0.7.1.rdoc +59 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/release_notes/rake-0.7.2.rdoc +121 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/release_notes/rake-0.7.3.rdoc +47 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/release_notes/rake-0.8.0.rdoc +114 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/release_notes/rake-0.8.2.rdoc +165 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/release_notes/rake-0.8.3.rdoc +112 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/release_notes/rake-0.8.4.rdoc +147 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/release_notes/rake-0.8.5.rdoc +53 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/release_notes/rake-0.8.6.rdoc +55 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/release_notes/rake-0.8.7.rdoc +55 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/release_notes/rake-0.9.0.rdoc +112 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/release_notes/rake-0.9.1.rdoc +52 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/release_notes/rake-0.9.2.2.rdoc +55 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/release_notes/rake-0.9.2.rdoc +49 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/release_notes/rake-0.9.3.rdoc +102 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/release_notes/rake-0.9.4.rdoc +110 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/release_notes/rake-0.9.5.rdoc +114 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/release_notes/rake-0.9.6.rdoc +127 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/release_notes/rake-10.0.0.rdoc +178 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/release_notes/rake-10.0.1.rdoc +187 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/release_notes/rake-10.0.2.rdoc +191 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/doc/release_notes/rake-10.0.3.rdoc +191 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/install.rb +90 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake.rb +71 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/alt_system.rb +109 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/application.rb +669 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/backtrace.rb +18 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/clean.rb +32 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/cloneable.rb +16 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/contrib/compositepublisher.rb +21 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/contrib/ftptools.rb +151 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/contrib/publisher.rb +73 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/contrib/rubyforgepublisher.rb +16 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/contrib/sshpublisher.rb +50 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/contrib/sys.rb +1 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/default_loader.rb +10 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/dsl_definition.rb +156 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/early_time.rb +18 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/ext/core.rb +27 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/ext/module.rb +0 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/ext/string.rb +168 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/ext/time.rb +15 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/file_creation_task.rb +24 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/file_list.rb +410 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/file_task.rb +47 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/file_utils.rb +114 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/file_utils_ext.rb +146 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/gempackagetask.rb +1 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/invocation_chain.rb +51 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/invocation_exception_mixin.rb +16 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/loaders/makefile.rb +40 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/multi_task.rb +13 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/name_space.rb +25 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/packagetask.rb +185 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/pathmap.rb +1 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/phony.rb +15 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/private_reader.rb +20 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/promise.rb +99 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/pseudo_status.rb +24 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/rake_module.rb +37 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/rake_test_loader.rb +22 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/rdoctask.rb +1 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/ruby182_test_unit_fix.rb +25 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/rule_recursion_overflow_error.rb +20 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/runtest.rb +22 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/task.rb +350 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/task_argument_error.rb +7 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/task_arguments.rb +78 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/task_manager.rb +296 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/tasklib.rb +22 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/testtask.rb +198 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/thread_history_display.rb +48 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/thread_pool.rb +155 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/trace_output.rb +19 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/version.rb +13 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/lib/rake/win32.rb +55 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/file_creation.rb +34 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/helper.rb +562 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_private_reader.rb +42 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake.rb +40 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_application.rb +515 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_application_options.rb +443 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_backtrace.rb +89 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_clean.rb +14 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_definitions.rb +80 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_directory_task.rb +57 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_dsl.rb +40 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_early_time.rb +31 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_extension.rb +59 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_file_creation_task.rb +56 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_file_list.rb +628 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_file_list_path_map.rb +8 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_file_task.rb +122 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_file_utils.rb +305 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_ftp_file.rb +59 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_functional.rb +496 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_invocation_chain.rb +52 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_makefile_loader.rb +44 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_multi_task.rb +59 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_name_space.rb +43 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_package_task.rb +79 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_path_map.rb +157 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_path_map_explode.rb +34 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_path_map_partial.rb +18 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_pseudo_status.rb +21 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_rake_test_loader.rb +21 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_reduce_compat.rb +30 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_require.rb +40 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_rules.rb +327 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_task.rb +316 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_task_argument_parsing.rb +103 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_task_arguments.rb +88 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_task_lib.rb +9 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_task_manager.rb +157 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_task_manager_argument_resolution.rb +19 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_task_with_arguments.rb +171 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_test_task.rb +120 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_thread_pool.rb +123 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_top_level_functions.rb +71 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_rake_win32.rb +72 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_thread_history_display.rb +91 -0
- data/vendor/bundle/ruby/1.8/gems/rake-10.0.3/test/test_trace_output.rb +43 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/AUTHORS +61 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/CHANGES +1063 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/Gemfile +82 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/LICENSE +22 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/README.de.rdoc +2097 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/README.es.rdoc +2078 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/README.fr.rdoc +2036 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/README.hu.rdoc +607 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/README.jp.rdoc +1043 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/README.ko.rdoc +1926 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/README.pt-br.rdoc +647 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/README.pt-pt.rdoc +646 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/README.rdoc +2017 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/README.ru.rdoc +1785 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/README.zh.rdoc +1816 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/Rakefile +183 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/examples/chat.rb +61 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/examples/simple.rb +3 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/examples/stream.ru +26 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/lib/sinatra.rb +4 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/lib/sinatra/base.rb +1728 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/lib/sinatra/images/404.png +0 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/lib/sinatra/images/500.png +0 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/lib/sinatra/main.rb +28 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/lib/sinatra/showexceptions.rb +340 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/lib/sinatra/version.rb +3 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/sinatra.gemspec +18 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/base_test.rb +160 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/builder_test.rb +95 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/coffee_test.rb +92 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/contest.rb +98 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/creole_test.rb +65 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/delegator_test.rb +162 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/encoding_test.rb +20 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/erb_test.rb +104 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/extensions_test.rb +100 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/filter_test.rb +428 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/haml_test.rb +101 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/helper.rb +123 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/helpers_test.rb +1783 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/integration/app.rb +62 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/integration_helper.rb +214 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/integration_test.rb +85 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/less_test.rb +67 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/liquid_test.rb +59 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/mapped_error_test.rb +259 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/markaby_test.rb +80 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/markdown_test.rb +82 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/middleware_test.rb +68 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/nokogiri_test.rb +69 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/public/favicon.ico +0 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/rack_test.rb +45 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/radius_test.rb +59 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/rdoc_test.rb +66 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/readme_test.rb +136 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/request_test.rb +45 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/response_test.rb +66 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/result_test.rb +98 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/route_added_hook_test.rb +59 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/routing_test.rb +1126 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/sass_test.rb +116 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/scss_test.rb +89 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/server_test.rb +48 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/settings_test.rb +538 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/sinatra_test.rb +17 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/slim_test.rb +88 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/static_test.rb +178 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/streaming_test.rb +140 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/templates_test.rb +298 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/textile_test.rb +65 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/a/in_a.str +1 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/ascii.erb +2 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/b/in_b.str +1 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/calc.html.erb +1 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/error.builder +3 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/error.erb +3 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/error.haml +3 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/error.sass +2 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/explicitly_nested.str +1 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/foo/hello.test +1 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/hello.builder +1 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/hello.coffee +1 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/hello.creole +1 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/hello.erb +1 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/hello.haml +1 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/hello.less +5 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/hello.liquid +1 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/hello.mab +1 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/hello.md +1 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/hello.nokogiri +1 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/hello.radius +1 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/hello.rdoc +1 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/hello.sass +2 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/hello.scss +3 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/hello.slim +1 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/hello.str +1 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/hello.test +1 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/hello.textile +1 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/layout2.builder +3 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/layout2.erb +2 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/layout2.haml +2 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/layout2.liquid +2 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/layout2.mab +2 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/layout2.nokogiri +3 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/layout2.radius +2 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/layout2.slim +3 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/layout2.str +2 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/layout2.test +1 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/nested.str +1 -0
- data/vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/views/utf8.erb +2 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/CHANGELOG.rdoc +196 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/LICENSE +202 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/README.rdoc +132 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/Rakefile +80 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/bin/catstomp +74 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/bin/stompcat +75 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/examples/client11_ex1.rb +89 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/examples/client11_putget1.rb +71 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/examples/conn11_ex1.rb +112 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/examples/conn11_ex2.rb +87 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/examples/conn11_hb1.rb +57 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/examples/consumer.rb +34 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/examples/get11conn_ex1.rb +117 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/examples/get11conn_ex2.rb +77 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/examples/logexamp.rb +81 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/examples/logexamp_ssl.rb +81 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/examples/publisher.rb +30 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/examples/put11conn_ex1.rb +56 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/examples/putget11_rh1.rb +93 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/examples/slogger.rb +222 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/examples/ssl_uc1.rb +46 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/examples/ssl_uc1_ciphers.rb +46 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/examples/ssl_uc2.rb +48 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/examples/ssl_uc2_ciphers.rb +47 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/examples/ssl_uc3.rb +50 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/examples/ssl_uc3_ciphers.rb +47 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/examples/ssl_uc4.rb +50 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/examples/ssl_uc4_ciphers.rb +48 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/examples/ssl_ucx_default_ciphers.rb +41 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/examples/stomp11_common.rb +48 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/examples/topic_consumer.rb +32 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/examples/topic_publisher.rb +29 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/lib/client/utils.rb +116 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/lib/connection/heartbeats.rb +175 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/lib/connection/netio.rb +360 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/lib/connection/utf8.rb +294 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/lib/connection/utils.rb +239 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/lib/stomp.rb +39 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/lib/stomp/client.rb +350 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/lib/stomp/codec.rb +44 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/lib/stomp/connection.rb +452 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/lib/stomp/constants.rb +114 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/lib/stomp/errors.rb +195 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/lib/stomp/ext/hash.rb +31 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/lib/stomp/message.rb +117 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/lib/stomp/sslparams.rb +84 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/lib/stomp/version.rb +12 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/spec/client_shared_examples.rb +71 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/spec/client_spec.rb +329 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/spec/connection_spec.rb +431 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/spec/message_spec.rb +58 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/spec/spec_helper.rb +8 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/stomp.gemspec +151 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/test/test_client.rb +531 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/test/test_codec.rb +119 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/test/test_connection.rb +517 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/test/test_connection1p.rb +396 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/test/test_helper.rb +168 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/test/test_message.rb +173 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/test/test_ssl.rb +81 -0
- data/vendor/bundle/ruby/1.8/gems/stomp-1.2.8/test/tlogger.rb +80 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/CHANGELOG.rdoc +142 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/Gemfile +19 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/LICENSE.md +20 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/README.md +28 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/Thorfile +30 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/bin/rake2thor +86 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/bin/thor +6 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/lib/thor.rb +448 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/lib/thor/actions.rb +318 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/lib/thor/actions/create_file.rb +105 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/lib/thor/actions/create_link.rb +57 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/lib/thor/actions/directory.rb +117 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/lib/thor/actions/empty_directory.rb +153 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/lib/thor/actions/file_manipulation.rb +314 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/lib/thor/actions/inject_into_file.rb +109 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/lib/thor/base.rb +654 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/lib/thor/core_ext/file_binary_read.rb +9 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/lib/thor/core_ext/hash_with_indifferent_access.rb +80 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/lib/thor/core_ext/ordered_hash.rb +100 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/lib/thor/error.rb +35 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/lib/thor/group.rb +285 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/lib/thor/invocation.rb +170 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/lib/thor/parser.rb +4 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/lib/thor/parser/argument.rb +74 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/lib/thor/parser/arguments.rb +171 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/lib/thor/parser/option.rb +121 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/lib/thor/parser/options.rb +216 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/lib/thor/rake_compat.rb +72 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/lib/thor/runner.rb +321 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/lib/thor/shell.rb +88 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/lib/thor/shell/basic.rb +389 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/lib/thor/shell/color.rb +144 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/lib/thor/shell/html.rb +123 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/lib/thor/task.rb +132 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/lib/thor/util.rb +266 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/lib/thor/version.rb +3 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/actions/create_file_spec.rb +170 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/actions/create_link_spec.rb +81 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/actions/directory_spec.rb +156 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/actions/empty_directory_spec.rb +130 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/actions/file_manipulation_spec.rb +382 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/actions/inject_into_file_spec.rb +135 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/actions_spec.rb +331 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/base_spec.rb +279 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/core_ext/hash_with_indifferent_access_spec.rb +48 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/core_ext/ordered_hash_spec.rb +115 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/exit_condition_spec.rb +19 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/fixtures/application.rb +2 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/fixtures/app{1}/README +3 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/fixtures/bundle/execute.rb +6 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/fixtures/bundle/main.thor +1 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/fixtures/doc/%file_name%.rb.tt +1 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/fixtures/doc/COMMENTER +11 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/fixtures/doc/README +3 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/fixtures/doc/block_helper.rb +3 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/fixtures/doc/config.rb +1 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/fixtures/doc/config.yaml.tt +1 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/fixtures/enum.thor +10 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/fixtures/group.thor +114 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/fixtures/invoke.thor +112 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/fixtures/path with spaces b/data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/fixtures/path with → spaces +0 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/fixtures/preserve/script.sh +3 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/fixtures/script.thor +195 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/fixtures/task.thor +10 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/group_spec.rb +216 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/invocation_spec.rb +100 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/parser/argument_spec.rb +53 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/parser/arguments_spec.rb +66 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/parser/option_spec.rb +202 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/parser/options_spec.rb +395 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/rake_compat_spec.rb +72 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/register_spec.rb +197 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/runner_spec.rb +241 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/shell/basic_spec.rb +312 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/shell/color_spec.rb +81 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/shell/html_spec.rb +32 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/shell_spec.rb +47 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/spec_helper.rb +63 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/task_spec.rb +80 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/thor_spec.rb +488 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/spec/util_spec.rb +196 -0
- data/vendor/bundle/ruby/1.8/gems/thor-0.17.0/thor.gemspec +20 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/COPYING +18 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/Gemfile +32 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/HACKING +16 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/README.md +211 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/Rakefile +104 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/TEMPLATES.md +516 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/bin/tilt +112 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/lib/tilt.rb +204 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/lib/tilt/asciidoc.rb +34 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/lib/tilt/builder.rb +40 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/lib/tilt/coffee.rb +54 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/lib/tilt/css.rb +80 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/lib/tilt/csv.rb +71 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/lib/tilt/erb.rb +110 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/lib/tilt/etanni.rb +27 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/lib/tilt/haml.rb +64 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/lib/tilt/liquid.rb +45 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/lib/tilt/markaby.rb +52 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/lib/tilt/markdown.rb +214 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/lib/tilt/nokogiri.rb +43 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/lib/tilt/plain.rb +20 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/lib/tilt/radius.rb +55 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/lib/tilt/rdoc.rb +47 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/lib/tilt/string.rb +21 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/lib/tilt/template.rb +246 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/lib/tilt/textile.rb +30 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/lib/tilt/wiki.rb +58 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/lib/tilt/yajl.rb +94 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/contest.rb +68 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/markaby/locals.mab +1 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/markaby/markaby.mab +1 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/markaby/markaby_other_static.mab +1 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/markaby/render_twice.mab +1 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/markaby/scope.mab +1 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/markaby/yielding.mab +2 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_asciidoctor_test.rb +44 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_blueclothtemplate_test.rb +45 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_buildertemplate_test.rb +59 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_cache_test.rb +32 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_coffeescripttemplate_test.rb +114 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_compilesite_test.rb +51 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_creoletemplate_test.rb +28 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_csv_test.rb +73 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_erbtemplate_test.rb +239 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_erubistemplate_test.rb +151 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_etannitemplate_test.rb +173 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_fallback_test.rb +122 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_hamltemplate_test.rb +144 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_kramdown_test.rb +42 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_lesstemplate_test.less +1 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_lesstemplate_test.rb +42 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_liquidtemplate_test.rb +78 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_markaby_test.rb +88 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_markdown_test.rb +172 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_marukutemplate_test.rb +48 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_nokogiritemplate_test.rb +87 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_radiustemplate_test.rb +75 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_rdiscounttemplate_test.rb +55 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_rdoctemplate_test.rb +31 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_redcarpettemplate_test.rb +71 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_redclothtemplate_test.rb +36 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_sasstemplate_test.rb +41 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_stringtemplate_test.rb +170 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_template_test.rb +167 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_test.rb +65 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_wikiclothtemplate_test.rb +32 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/test/tilt_yajltemplate_test.rb +101 -0
- data/vendor/bundle/ruby/1.8/gems/tilt-1.3.4/tilt.gemspec +119 -0
- data/vendor/bundle/ruby/1.8/specifications/haml-3.1.8.gemspec +34 -0
- data/vendor/bundle/ruby/1.8/specifications/rack-1.5.2.gemspec +36 -0
- data/vendor/bundle/ruby/1.8/specifications/rack-protection-1.4.0.gemspec +34 -0
- data/vendor/bundle/ruby/1.8/specifications/rake-10.0.3.gemspec +34 -0
- data/vendor/bundle/ruby/1.8/specifications/sinatra-1.3.5.gemspec +37 -0
- data/vendor/bundle/ruby/1.8/specifications/stomp-1.2.8.gemspec +31 -0
- data/vendor/bundle/ruby/1.8/specifications/thor-0.17.0.gemspec +30 -0
- data/vendor/bundle/ruby/1.8/specifications/tilt-1.3.4.gemspec +98 -0
- metadata +1263 -2
@@ -0,0 +1,101 @@
|
|
1
|
+
require File.expand_path('../helper', __FILE__)
|
2
|
+
|
3
|
+
begin
|
4
|
+
require 'haml'
|
5
|
+
|
6
|
+
class HAMLTest < Test::Unit::TestCase
|
7
|
+
def haml_app(&block)
|
8
|
+
mock_app {
|
9
|
+
set :views, File.dirname(__FILE__) + '/views'
|
10
|
+
get '/', &block
|
11
|
+
}
|
12
|
+
get '/'
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'renders inline HAML strings' do
|
16
|
+
haml_app { haml '%h1 Hiya' }
|
17
|
+
assert ok?
|
18
|
+
assert_equal "<h1>Hiya</h1>\n", body
|
19
|
+
end
|
20
|
+
|
21
|
+
it 'renders .haml files in views path' do
|
22
|
+
haml_app { haml :hello }
|
23
|
+
assert ok?
|
24
|
+
assert_equal "<h1>Hello From Haml</h1>\n", body
|
25
|
+
end
|
26
|
+
|
27
|
+
it "renders with inline layouts" do
|
28
|
+
mock_app {
|
29
|
+
layout { %q(%h1= 'THIS. IS. ' + yield.upcase) }
|
30
|
+
get('/') { haml '%em Sparta' }
|
31
|
+
}
|
32
|
+
get '/'
|
33
|
+
assert ok?
|
34
|
+
assert_equal "<h1>THIS. IS. <EM>SPARTA</EM></h1>\n", body
|
35
|
+
end
|
36
|
+
|
37
|
+
it "renders with file layouts" do
|
38
|
+
haml_app {
|
39
|
+
haml 'Hello World', :layout => :layout2
|
40
|
+
}
|
41
|
+
assert ok?
|
42
|
+
assert_equal "<h1>HAML Layout!</h1>\n<p>Hello World</p>\n", body
|
43
|
+
end
|
44
|
+
|
45
|
+
it "raises error if template not found" do
|
46
|
+
mock_app {
|
47
|
+
get('/') { haml :no_such_template }
|
48
|
+
}
|
49
|
+
assert_raise(Errno::ENOENT) { get('/') }
|
50
|
+
end
|
51
|
+
|
52
|
+
it "passes HAML options to the Haml engine" do
|
53
|
+
mock_app {
|
54
|
+
get '/' do
|
55
|
+
haml "!!!\n%h1 Hello World", :format => :html5
|
56
|
+
end
|
57
|
+
}
|
58
|
+
get '/'
|
59
|
+
assert ok?
|
60
|
+
assert_equal "<!DOCTYPE html>\n<h1>Hello World</h1>\n", body
|
61
|
+
end
|
62
|
+
|
63
|
+
it "passes default HAML options to the Haml engine" do
|
64
|
+
mock_app {
|
65
|
+
set :haml, {:format => :html5}
|
66
|
+
get '/' do
|
67
|
+
haml "!!!\n%h1 Hello World"
|
68
|
+
end
|
69
|
+
}
|
70
|
+
get '/'
|
71
|
+
assert ok?
|
72
|
+
assert_equal "<!DOCTYPE html>\n<h1>Hello World</h1>\n", body
|
73
|
+
end
|
74
|
+
|
75
|
+
it "merges the default HAML options with the overrides and passes them to the Haml engine" do
|
76
|
+
mock_app {
|
77
|
+
set :haml, {:format => :html5, :attr_wrapper => '"'} # default HAML attr are <tag attr='single-quoted'>
|
78
|
+
get '/' do
|
79
|
+
haml "!!!\n%h1{:class => :header} Hello World"
|
80
|
+
end
|
81
|
+
get '/html4' do
|
82
|
+
haml "!!!\n%h1{:class => 'header'} Hello World", :format => :html4
|
83
|
+
end
|
84
|
+
}
|
85
|
+
get '/'
|
86
|
+
assert ok?
|
87
|
+
assert_equal "<!DOCTYPE html>\n<h1 class=\"header\">Hello World</h1>\n", body
|
88
|
+
get '/html4'
|
89
|
+
assert ok?
|
90
|
+
assert_match(/^<!DOCTYPE html PUBLIC (.*) HTML 4.01/, body)
|
91
|
+
end
|
92
|
+
|
93
|
+
it "is possible to pass locals" do
|
94
|
+
haml_app { haml "= foo", :locals => { :foo => 'bar' }}
|
95
|
+
assert_equal "bar\n", body
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
rescue LoadError
|
100
|
+
warn "#{$!.to_s}: skipping haml tests"
|
101
|
+
end
|
@@ -0,0 +1,123 @@
|
|
1
|
+
ENV['RACK_ENV'] = 'test'
|
2
|
+
Encoding.default_external = "UTF-8" if defined? Encoding
|
3
|
+
|
4
|
+
RUBY_ENGINE = 'ruby' unless defined? RUBY_ENGINE
|
5
|
+
|
6
|
+
begin
|
7
|
+
require 'rack'
|
8
|
+
rescue LoadError
|
9
|
+
require 'rubygems'
|
10
|
+
require 'rack'
|
11
|
+
end
|
12
|
+
|
13
|
+
testdir = File.dirname(__FILE__)
|
14
|
+
$LOAD_PATH.unshift testdir unless $LOAD_PATH.include?(testdir)
|
15
|
+
|
16
|
+
libdir = File.dirname(File.dirname(__FILE__)) + '/lib'
|
17
|
+
$LOAD_PATH.unshift libdir unless $LOAD_PATH.include?(libdir)
|
18
|
+
|
19
|
+
require 'contest'
|
20
|
+
require 'rack/test'
|
21
|
+
require 'sinatra/base'
|
22
|
+
|
23
|
+
class Sinatra::Base
|
24
|
+
# Allow assertions in request context
|
25
|
+
include Test::Unit::Assertions
|
26
|
+
end
|
27
|
+
|
28
|
+
class Rack::Builder
|
29
|
+
def include?(middleware)
|
30
|
+
@ins.any? { |m| p m ; middleware === m }
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
Sinatra::Base.set :environment, :test
|
35
|
+
|
36
|
+
class Test::Unit::TestCase
|
37
|
+
include Rack::Test::Methods
|
38
|
+
|
39
|
+
class << self
|
40
|
+
alias_method :it, :test
|
41
|
+
alias_method :section, :context
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.example(desc = nil, &block)
|
45
|
+
@example_count = 0 unless instance_variable_defined? :@example_count
|
46
|
+
@example_count += 1
|
47
|
+
it(desc || "Example #{@example_count}", &block)
|
48
|
+
end
|
49
|
+
|
50
|
+
alias_method :response, :last_response
|
51
|
+
|
52
|
+
setup do
|
53
|
+
Sinatra::Base.set :environment, :test
|
54
|
+
end
|
55
|
+
|
56
|
+
# Sets up a Sinatra::Base subclass defined with the block
|
57
|
+
# given. Used in setup or individual spec methods to establish
|
58
|
+
# the application.
|
59
|
+
def mock_app(base=Sinatra::Base, &block)
|
60
|
+
@app = Sinatra.new(base, &block)
|
61
|
+
end
|
62
|
+
|
63
|
+
def app
|
64
|
+
Rack::Lint.new(@app)
|
65
|
+
end
|
66
|
+
|
67
|
+
def body
|
68
|
+
response.body.to_s
|
69
|
+
end
|
70
|
+
|
71
|
+
def assert_body(value)
|
72
|
+
if value.respond_to? :to_str
|
73
|
+
assert_equal value.lstrip.gsub(/\s*\n\s*/, ""), body.lstrip.gsub(/\s*\n\s*/, "")
|
74
|
+
else
|
75
|
+
assert_match value, body
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
def assert_status(expected)
|
80
|
+
assert_equal Integer(expected), Integer(status)
|
81
|
+
end
|
82
|
+
|
83
|
+
def assert_like(a,b)
|
84
|
+
pattern = /id=['"][^"']*["']|\s+/
|
85
|
+
assert_equal a.strip.gsub(pattern, ""), b.strip.gsub(pattern, "")
|
86
|
+
end
|
87
|
+
|
88
|
+
def assert_include(str, substr)
|
89
|
+
assert str.include?(substr), "expected #{str.inspect} to include #{substr.inspect}"
|
90
|
+
end
|
91
|
+
|
92
|
+
def options(uri, params = {}, env = {}, &block)
|
93
|
+
request(uri, env.merge(:method => "OPTIONS", :params => params), &block)
|
94
|
+
end
|
95
|
+
|
96
|
+
def patch(uri, params = {}, env = {}, &block)
|
97
|
+
request(uri, env.merge(:method => "PATCH", :params => params), &block)
|
98
|
+
end
|
99
|
+
|
100
|
+
# Delegate other missing methods to response.
|
101
|
+
def method_missing(name, *args, &block)
|
102
|
+
if response && response.respond_to?(name)
|
103
|
+
response.send(name, *args, &block)
|
104
|
+
else
|
105
|
+
super
|
106
|
+
end
|
107
|
+
rescue Rack::Test::Error
|
108
|
+
super
|
109
|
+
end
|
110
|
+
|
111
|
+
# Also check response since we delegate there.
|
112
|
+
def respond_to?(symbol, include_private=false)
|
113
|
+
super || (response && response.respond_to?(symbol, include_private))
|
114
|
+
end
|
115
|
+
|
116
|
+
# Do not output warnings for the duration of the block.
|
117
|
+
def silence_warnings
|
118
|
+
$VERBOSE, v = nil, $VERBOSE
|
119
|
+
yield
|
120
|
+
ensure
|
121
|
+
$VERBOSE = v
|
122
|
+
end
|
123
|
+
end
|
@@ -0,0 +1,1783 @@
|
|
1
|
+
require File.expand_path('../helper', __FILE__)
|
2
|
+
require 'date'
|
3
|
+
|
4
|
+
class HelpersTest < Test::Unit::TestCase
|
5
|
+
def test_default
|
6
|
+
assert true
|
7
|
+
end
|
8
|
+
|
9
|
+
def status_app(code, &block)
|
10
|
+
code += 2 if [204, 205, 304].include? code
|
11
|
+
block ||= proc { }
|
12
|
+
mock_app do
|
13
|
+
get '/' do
|
14
|
+
status code
|
15
|
+
instance_eval(&block).inspect
|
16
|
+
end
|
17
|
+
end
|
18
|
+
get '/'
|
19
|
+
end
|
20
|
+
|
21
|
+
describe 'status' do
|
22
|
+
it 'sets the response status code' do
|
23
|
+
status_app 207
|
24
|
+
assert_equal 207, response.status
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
describe 'not_found?' do
|
29
|
+
it 'is true for status == 404' do
|
30
|
+
status_app(404) { not_found? }
|
31
|
+
assert_body 'true'
|
32
|
+
end
|
33
|
+
|
34
|
+
it 'is false for status gt 404' do
|
35
|
+
status_app(405) { not_found? }
|
36
|
+
assert_body 'false'
|
37
|
+
end
|
38
|
+
|
39
|
+
it 'is false for status lt 404' do
|
40
|
+
status_app(403) { not_found? }
|
41
|
+
assert_body 'false'
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
describe 'informational?' do
|
46
|
+
it 'is true for 1xx status' do
|
47
|
+
status_app(100 + rand(100)) { informational? }
|
48
|
+
assert_body 'true'
|
49
|
+
end
|
50
|
+
|
51
|
+
it 'is false for status > 199' do
|
52
|
+
status_app(200 + rand(400)) { informational? }
|
53
|
+
assert_body 'false'
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
describe 'success?' do
|
58
|
+
it 'is true for 2xx status' do
|
59
|
+
status_app(200 + rand(100)) { success? }
|
60
|
+
assert_body 'true'
|
61
|
+
end
|
62
|
+
|
63
|
+
it 'is false for status < 200' do
|
64
|
+
status_app(100 + rand(100)) { success? }
|
65
|
+
assert_body 'false'
|
66
|
+
end
|
67
|
+
|
68
|
+
it 'is false for status > 299' do
|
69
|
+
status_app(300 + rand(300)) { success? }
|
70
|
+
assert_body 'false'
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
describe 'redirect?' do
|
75
|
+
it 'is true for 3xx status' do
|
76
|
+
status_app(300 + rand(100)) { redirect? }
|
77
|
+
assert_body 'true'
|
78
|
+
end
|
79
|
+
|
80
|
+
it 'is false for status < 300' do
|
81
|
+
status_app(200 + rand(100)) { redirect? }
|
82
|
+
assert_body 'false'
|
83
|
+
end
|
84
|
+
|
85
|
+
it 'is false for status > 399' do
|
86
|
+
status_app(400 + rand(200)) { redirect? }
|
87
|
+
assert_body 'false'
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
describe 'client_error?' do
|
92
|
+
it 'is true for 4xx status' do
|
93
|
+
status_app(400 + rand(100)) { client_error? }
|
94
|
+
assert_body 'true'
|
95
|
+
end
|
96
|
+
|
97
|
+
it 'is false for status < 400' do
|
98
|
+
status_app(200 + rand(200)) { client_error? }
|
99
|
+
assert_body 'false'
|
100
|
+
end
|
101
|
+
|
102
|
+
it 'is false for status > 499' do
|
103
|
+
status_app(500 + rand(100)) { client_error? }
|
104
|
+
assert_body 'false'
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
describe 'server_error?' do
|
109
|
+
it 'is true for 5xx status' do
|
110
|
+
status_app(500 + rand(100)) { server_error? }
|
111
|
+
assert_body 'true'
|
112
|
+
end
|
113
|
+
|
114
|
+
it 'is false for status < 500' do
|
115
|
+
status_app(200 + rand(300)) { server_error? }
|
116
|
+
assert_body 'false'
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
describe 'body' do
|
121
|
+
it 'takes a block for defered body generation' do
|
122
|
+
mock_app {
|
123
|
+
get '/' do
|
124
|
+
body { 'Hello World' }
|
125
|
+
end
|
126
|
+
}
|
127
|
+
|
128
|
+
get '/'
|
129
|
+
assert_equal 'Hello World', body
|
130
|
+
end
|
131
|
+
|
132
|
+
it 'takes a String, Array, or other object responding to #each' do
|
133
|
+
mock_app {
|
134
|
+
get '/' do
|
135
|
+
body 'Hello World'
|
136
|
+
end
|
137
|
+
}
|
138
|
+
|
139
|
+
get '/'
|
140
|
+
assert_equal 'Hello World', body
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
describe 'redirect' do
|
145
|
+
it 'uses a 302 when only a path is given' do
|
146
|
+
mock_app {
|
147
|
+
get '/' do
|
148
|
+
redirect '/foo'
|
149
|
+
fail 'redirect should halt'
|
150
|
+
end
|
151
|
+
}
|
152
|
+
|
153
|
+
get '/'
|
154
|
+
assert_equal 302, status
|
155
|
+
assert_equal '', body
|
156
|
+
assert_equal 'http://example.org/foo', response['Location']
|
157
|
+
end
|
158
|
+
|
159
|
+
it 'uses the code given when specified' do
|
160
|
+
mock_app {
|
161
|
+
get '/' do
|
162
|
+
redirect '/foo', 301
|
163
|
+
fail 'redirect should halt'
|
164
|
+
end
|
165
|
+
}
|
166
|
+
|
167
|
+
get '/'
|
168
|
+
assert_equal 301, status
|
169
|
+
assert_equal '', body
|
170
|
+
assert_equal 'http://example.org/foo', response['Location']
|
171
|
+
end
|
172
|
+
|
173
|
+
it 'redirects back to request.referer when passed back' do
|
174
|
+
mock_app {
|
175
|
+
get '/try_redirect' do
|
176
|
+
redirect back
|
177
|
+
end
|
178
|
+
}
|
179
|
+
|
180
|
+
request = Rack::MockRequest.new(@app)
|
181
|
+
response = request.get('/try_redirect', 'HTTP_REFERER' => '/foo')
|
182
|
+
assert_equal 302, response.status
|
183
|
+
assert_equal 'http://example.org/foo', response['Location']
|
184
|
+
end
|
185
|
+
|
186
|
+
it 'redirects using a non-standard HTTP port' do
|
187
|
+
mock_app {
|
188
|
+
get '/' do
|
189
|
+
redirect '/foo'
|
190
|
+
end
|
191
|
+
}
|
192
|
+
|
193
|
+
request = Rack::MockRequest.new(@app)
|
194
|
+
response = request.get('/', 'SERVER_PORT' => '81')
|
195
|
+
assert_equal 'http://example.org:81/foo', response['Location']
|
196
|
+
end
|
197
|
+
|
198
|
+
it 'redirects using a non-standard HTTPS port' do
|
199
|
+
mock_app {
|
200
|
+
get '/' do
|
201
|
+
redirect '/foo'
|
202
|
+
end
|
203
|
+
}
|
204
|
+
|
205
|
+
request = Rack::MockRequest.new(@app)
|
206
|
+
response = request.get('/', 'SERVER_PORT' => '444')
|
207
|
+
assert_equal 'http://example.org:444/foo', response['Location']
|
208
|
+
end
|
209
|
+
|
210
|
+
it 'uses 303 for post requests if request is HTTP 1.1' do
|
211
|
+
mock_app { post('/') { redirect '/'} }
|
212
|
+
post '/', {}, 'HTTP_VERSION' => 'HTTP/1.1'
|
213
|
+
assert_equal 303, status
|
214
|
+
assert_equal '', body
|
215
|
+
assert_equal 'http://example.org/', response['Location']
|
216
|
+
end
|
217
|
+
|
218
|
+
it 'uses 302 for post requests if request is HTTP 1.0' do
|
219
|
+
mock_app { post('/') { redirect '/'} }
|
220
|
+
post '/', {}, 'HTTP_VERSION' => 'HTTP/1.0'
|
221
|
+
assert_equal 302, status
|
222
|
+
assert_equal '', body
|
223
|
+
assert_equal 'http://example.org/', response['Location']
|
224
|
+
end
|
225
|
+
|
226
|
+
it 'works behind a reverse proxy' do
|
227
|
+
mock_app do
|
228
|
+
get '/' do
|
229
|
+
redirect '/foo'
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
233
|
+
request = Rack::MockRequest.new(@app)
|
234
|
+
response = request.get('/', 'HTTP_X_FORWARDED_HOST' => 'example.com', 'SERVER_PORT' => '8080')
|
235
|
+
assert_equal 'http://example.com/foo', response['Location']
|
236
|
+
end
|
237
|
+
|
238
|
+
it 'accepts absolute URIs' do
|
239
|
+
mock_app do
|
240
|
+
get '/' do
|
241
|
+
redirect 'http://google.com'
|
242
|
+
fail 'redirect should halt'
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
246
|
+
get '/'
|
247
|
+
assert_equal 302, status
|
248
|
+
assert_equal '', body
|
249
|
+
assert_equal 'http://google.com', response['Location']
|
250
|
+
end
|
251
|
+
|
252
|
+
it 'accepts absolute URIs with a different schema' do
|
253
|
+
mock_app do
|
254
|
+
get '/' do
|
255
|
+
redirect 'mailto:jsmith@example.com'
|
256
|
+
fail 'redirect should halt'
|
257
|
+
end
|
258
|
+
end
|
259
|
+
|
260
|
+
get '/'
|
261
|
+
assert_equal 302, status
|
262
|
+
assert_equal '', body
|
263
|
+
assert_equal 'mailto:jsmith@example.com', response['Location']
|
264
|
+
end
|
265
|
+
end
|
266
|
+
|
267
|
+
describe 'error' do
|
268
|
+
it 'sets a status code and halts' do
|
269
|
+
mock_app {
|
270
|
+
get '/' do
|
271
|
+
error 501
|
272
|
+
fail 'error should halt'
|
273
|
+
end
|
274
|
+
}
|
275
|
+
|
276
|
+
get '/'
|
277
|
+
assert_equal 501, status
|
278
|
+
assert_equal '', body
|
279
|
+
end
|
280
|
+
|
281
|
+
it 'takes an optional body' do
|
282
|
+
mock_app {
|
283
|
+
get '/' do
|
284
|
+
error 501, 'FAIL'
|
285
|
+
fail 'error should halt'
|
286
|
+
end
|
287
|
+
}
|
288
|
+
|
289
|
+
get '/'
|
290
|
+
assert_equal 501, status
|
291
|
+
assert_equal 'FAIL', body
|
292
|
+
end
|
293
|
+
|
294
|
+
it 'uses a 500 status code when first argument is a body' do
|
295
|
+
mock_app {
|
296
|
+
get '/' do
|
297
|
+
error 'FAIL'
|
298
|
+
fail 'error should halt'
|
299
|
+
end
|
300
|
+
}
|
301
|
+
|
302
|
+
get '/'
|
303
|
+
assert_equal 500, status
|
304
|
+
assert_equal 'FAIL', body
|
305
|
+
end
|
306
|
+
end
|
307
|
+
|
308
|
+
describe 'not_found' do
|
309
|
+
it 'halts with a 404 status' do
|
310
|
+
mock_app {
|
311
|
+
get '/' do
|
312
|
+
not_found
|
313
|
+
fail 'not_found should halt'
|
314
|
+
end
|
315
|
+
}
|
316
|
+
|
317
|
+
get '/'
|
318
|
+
assert_equal 404, status
|
319
|
+
assert_equal '', body
|
320
|
+
end
|
321
|
+
|
322
|
+
it 'does not set a X-Cascade header' do
|
323
|
+
mock_app {
|
324
|
+
get '/' do
|
325
|
+
not_found
|
326
|
+
fail 'not_found should halt'
|
327
|
+
end
|
328
|
+
}
|
329
|
+
|
330
|
+
get '/'
|
331
|
+
assert_equal 404, status
|
332
|
+
assert_equal nil, response.headers['X-Cascade']
|
333
|
+
end
|
334
|
+
end
|
335
|
+
|
336
|
+
describe 'headers' do
|
337
|
+
it 'sets headers on the response object when given a Hash' do
|
338
|
+
mock_app {
|
339
|
+
get '/' do
|
340
|
+
headers 'X-Foo' => 'bar', 'X-Baz' => 'bling'
|
341
|
+
'kthx'
|
342
|
+
end
|
343
|
+
}
|
344
|
+
|
345
|
+
get '/'
|
346
|
+
assert ok?
|
347
|
+
assert_equal 'bar', response['X-Foo']
|
348
|
+
assert_equal 'bling', response['X-Baz']
|
349
|
+
assert_equal 'kthx', body
|
350
|
+
end
|
351
|
+
|
352
|
+
it 'returns the response headers hash when no hash provided' do
|
353
|
+
mock_app {
|
354
|
+
get '/' do
|
355
|
+
headers['X-Foo'] = 'bar'
|
356
|
+
'kthx'
|
357
|
+
end
|
358
|
+
}
|
359
|
+
|
360
|
+
get '/'
|
361
|
+
assert ok?
|
362
|
+
assert_equal 'bar', response['X-Foo']
|
363
|
+
end
|
364
|
+
end
|
365
|
+
|
366
|
+
describe 'session' do
|
367
|
+
it 'uses the existing rack.session' do
|
368
|
+
mock_app {
|
369
|
+
get '/' do
|
370
|
+
session[:foo]
|
371
|
+
end
|
372
|
+
}
|
373
|
+
|
374
|
+
get '/', {}, { 'rack.session' => { :foo => 'bar' } }
|
375
|
+
assert_equal 'bar', body
|
376
|
+
end
|
377
|
+
|
378
|
+
it 'creates a new session when none provided' do
|
379
|
+
mock_app {
|
380
|
+
enable :sessions
|
381
|
+
|
382
|
+
get '/' do
|
383
|
+
assert session[:foo].nil?
|
384
|
+
session[:foo] = 'bar'
|
385
|
+
redirect '/hi'
|
386
|
+
end
|
387
|
+
|
388
|
+
get '/hi' do
|
389
|
+
"hi #{session[:foo]}"
|
390
|
+
end
|
391
|
+
}
|
392
|
+
|
393
|
+
get '/'
|
394
|
+
follow_redirect!
|
395
|
+
assert_equal 'hi bar', body
|
396
|
+
end
|
397
|
+
|
398
|
+
it 'inserts session middleware' do
|
399
|
+
mock_app do
|
400
|
+
enable :sessions
|
401
|
+
get '/' do
|
402
|
+
assert env['rack.session']
|
403
|
+
assert env['rack.session.options']
|
404
|
+
'ok'
|
405
|
+
end
|
406
|
+
end
|
407
|
+
|
408
|
+
get '/'
|
409
|
+
assert_body 'ok'
|
410
|
+
end
|
411
|
+
|
412
|
+
it 'sets a default session secret' do
|
413
|
+
mock_app do
|
414
|
+
enable :sessions
|
415
|
+
get '/' do
|
416
|
+
secret = env['rack.session.options'][:secret]
|
417
|
+
assert secret
|
418
|
+
assert_equal secret, settings.session_secret
|
419
|
+
'ok'
|
420
|
+
end
|
421
|
+
end
|
422
|
+
|
423
|
+
get '/'
|
424
|
+
assert_body 'ok'
|
425
|
+
end
|
426
|
+
|
427
|
+
it 'allows disabling session secret' do
|
428
|
+
mock_app do
|
429
|
+
enable :sessions
|
430
|
+
disable :session_secret
|
431
|
+
get '/' do
|
432
|
+
assert !env['rack.session.options'].include?(:session_secret)
|
433
|
+
'ok'
|
434
|
+
end
|
435
|
+
end
|
436
|
+
|
437
|
+
get '/'
|
438
|
+
assert_body 'ok'
|
439
|
+
end
|
440
|
+
|
441
|
+
it 'accepts an options hash' do
|
442
|
+
mock_app do
|
443
|
+
set :sessions, :foo => :bar
|
444
|
+
get '/' do
|
445
|
+
assert_equal env['rack.session.options'][:foo], :bar
|
446
|
+
'ok'
|
447
|
+
end
|
448
|
+
end
|
449
|
+
|
450
|
+
get '/'
|
451
|
+
assert_body 'ok'
|
452
|
+
end
|
453
|
+
end
|
454
|
+
|
455
|
+
describe 'mime_type' do
|
456
|
+
include Sinatra::Helpers
|
457
|
+
|
458
|
+
it "looks up mime types in Rack's MIME registry" do
|
459
|
+
Rack::Mime::MIME_TYPES['.foo'] = 'application/foo'
|
460
|
+
assert_equal 'application/foo', mime_type('foo')
|
461
|
+
assert_equal 'application/foo', mime_type('.foo')
|
462
|
+
assert_equal 'application/foo', mime_type(:foo)
|
463
|
+
end
|
464
|
+
|
465
|
+
it 'returns nil when given nil' do
|
466
|
+
assert mime_type(nil).nil?
|
467
|
+
end
|
468
|
+
|
469
|
+
it 'returns nil when media type not registered' do
|
470
|
+
assert mime_type(:bizzle).nil?
|
471
|
+
end
|
472
|
+
|
473
|
+
it 'returns the argument when given a media type string' do
|
474
|
+
assert_equal 'text/plain', mime_type('text/plain')
|
475
|
+
end
|
476
|
+
end
|
477
|
+
|
478
|
+
test 'Base.mime_type registers mime type' do
|
479
|
+
mock_app {
|
480
|
+
mime_type :foo, 'application/foo'
|
481
|
+
|
482
|
+
get '/' do
|
483
|
+
"foo is #{mime_type(:foo)}"
|
484
|
+
end
|
485
|
+
}
|
486
|
+
|
487
|
+
get '/'
|
488
|
+
assert_equal 'foo is application/foo', body
|
489
|
+
end
|
490
|
+
|
491
|
+
describe 'content_type' do
|
492
|
+
it 'sets the Content-Type header' do
|
493
|
+
mock_app {
|
494
|
+
get '/' do
|
495
|
+
content_type 'text/plain'
|
496
|
+
'Hello World'
|
497
|
+
end
|
498
|
+
}
|
499
|
+
|
500
|
+
get '/'
|
501
|
+
assert_equal 'text/plain;charset=utf-8', response['Content-Type']
|
502
|
+
assert_equal 'Hello World', body
|
503
|
+
end
|
504
|
+
|
505
|
+
it 'takes media type parameters (like charset=)' do
|
506
|
+
mock_app {
|
507
|
+
get '/' do
|
508
|
+
content_type 'text/html', :charset => 'latin1'
|
509
|
+
"<h1>Hello, World</h1>"
|
510
|
+
end
|
511
|
+
}
|
512
|
+
|
513
|
+
get '/'
|
514
|
+
assert ok?
|
515
|
+
assert_equal 'text/html;charset=latin1', response['Content-Type']
|
516
|
+
assert_equal "<h1>Hello, World</h1>", body
|
517
|
+
end
|
518
|
+
|
519
|
+
it "looks up symbols in Rack's mime types dictionary" do
|
520
|
+
Rack::Mime::MIME_TYPES['.foo'] = 'application/foo'
|
521
|
+
mock_app {
|
522
|
+
get '/foo.xml' do
|
523
|
+
content_type :foo
|
524
|
+
"I AM FOO"
|
525
|
+
end
|
526
|
+
}
|
527
|
+
|
528
|
+
get '/foo.xml'
|
529
|
+
assert ok?
|
530
|
+
assert_equal 'application/foo', response['Content-Type']
|
531
|
+
assert_equal 'I AM FOO', body
|
532
|
+
end
|
533
|
+
|
534
|
+
it 'fails when no mime type is registered for the argument provided' do
|
535
|
+
mock_app {
|
536
|
+
get '/foo.xml' do
|
537
|
+
content_type :bizzle
|
538
|
+
"I AM FOO"
|
539
|
+
end
|
540
|
+
}
|
541
|
+
|
542
|
+
assert_raise(RuntimeError) { get '/foo.xml' }
|
543
|
+
end
|
544
|
+
|
545
|
+
it 'only sets default charset for specific mime types' do
|
546
|
+
tests_ran = false
|
547
|
+
mock_app do
|
548
|
+
mime_type :foo, 'text/foo'
|
549
|
+
mime_type :bar, 'application/bar'
|
550
|
+
mime_type :baz, 'application/baz'
|
551
|
+
add_charset << mime_type(:baz)
|
552
|
+
get '/' do
|
553
|
+
assert_equal content_type(:txt), 'text/plain;charset=utf-8'
|
554
|
+
assert_equal content_type(:css), 'text/css;charset=utf-8'
|
555
|
+
assert_equal content_type(:html), 'text/html;charset=utf-8'
|
556
|
+
assert_equal content_type(:foo), 'text/foo;charset=utf-8'
|
557
|
+
assert_equal content_type(:xml), 'application/xml;charset=utf-8'
|
558
|
+
assert_equal content_type(:xhtml), 'application/xhtml+xml;charset=utf-8'
|
559
|
+
assert_equal content_type(:js), 'application/javascript;charset=utf-8'
|
560
|
+
assert_equal content_type(:json), 'application/json;charset=utf-8'
|
561
|
+
assert_equal content_type(:bar), 'application/bar'
|
562
|
+
assert_equal content_type(:png), 'image/png'
|
563
|
+
assert_equal content_type(:baz), 'application/baz;charset=utf-8'
|
564
|
+
tests_ran = true
|
565
|
+
"done"
|
566
|
+
end
|
567
|
+
end
|
568
|
+
get '/'
|
569
|
+
assert tests_ran
|
570
|
+
end
|
571
|
+
|
572
|
+
it 'handles already present params' do
|
573
|
+
mock_app do
|
574
|
+
get '/' do
|
575
|
+
content_type 'foo/bar;level=1', :charset => 'utf-8'
|
576
|
+
'ok'
|
577
|
+
end
|
578
|
+
end
|
579
|
+
get '/'
|
580
|
+
assert_equal 'foo/bar;level=1, charset=utf-8', response['Content-Type']
|
581
|
+
end
|
582
|
+
|
583
|
+
it 'does not add charset if present' do
|
584
|
+
mock_app do
|
585
|
+
get '/' do
|
586
|
+
content_type 'text/plain;charset=utf-16'
|
587
|
+
'ok'
|
588
|
+
end
|
589
|
+
end
|
590
|
+
get '/'
|
591
|
+
assert_equal 'text/plain;charset=utf-16', response['Content-Type']
|
592
|
+
end
|
593
|
+
end
|
594
|
+
|
595
|
+
describe 'attachment' do
|
596
|
+
def attachment_app(filename=nil)
|
597
|
+
mock_app {
|
598
|
+
get '/attachment' do
|
599
|
+
attachment filename
|
600
|
+
response.write("<sinatra></sinatra>")
|
601
|
+
end
|
602
|
+
}
|
603
|
+
end
|
604
|
+
|
605
|
+
it 'sets the Content-Type response header' do
|
606
|
+
attachment_app('test.xml')
|
607
|
+
get '/attachment'
|
608
|
+
assert_equal 'application/xml;charset=utf-8', response['Content-Type']
|
609
|
+
assert_equal '<sinatra></sinatra>', body
|
610
|
+
end
|
611
|
+
|
612
|
+
it 'sets the Content-Type response header without extname' do
|
613
|
+
attachment_app('test')
|
614
|
+
get '/attachment'
|
615
|
+
assert_equal 'text/html;charset=utf-8', response['Content-Type']
|
616
|
+
assert_equal '<sinatra></sinatra>', body
|
617
|
+
end
|
618
|
+
|
619
|
+
it 'sets the Content-Type response header with extname' do
|
620
|
+
mock_app do
|
621
|
+
get '/attachment' do
|
622
|
+
content_type :atom
|
623
|
+
attachment 'test.xml'
|
624
|
+
response.write("<sinatra></sinatra>")
|
625
|
+
end
|
626
|
+
end
|
627
|
+
get '/attachment'
|
628
|
+
assert_equal 'application/atom+xml', response['Content-Type']
|
629
|
+
assert_equal '<sinatra></sinatra>', body
|
630
|
+
end
|
631
|
+
|
632
|
+
end
|
633
|
+
|
634
|
+
describe 'send_file' do
|
635
|
+
setup do
|
636
|
+
@file = File.dirname(__FILE__) + '/file.txt'
|
637
|
+
File.open(@file, 'wb') { |io| io.write('Hello World') }
|
638
|
+
end
|
639
|
+
|
640
|
+
def teardown
|
641
|
+
File.unlink @file
|
642
|
+
@file = nil
|
643
|
+
end
|
644
|
+
|
645
|
+
def send_file_app(opts={})
|
646
|
+
path = @file
|
647
|
+
mock_app {
|
648
|
+
get '/file.txt' do
|
649
|
+
send_file path, opts
|
650
|
+
end
|
651
|
+
}
|
652
|
+
end
|
653
|
+
|
654
|
+
it "sends the contents of the file" do
|
655
|
+
send_file_app
|
656
|
+
get '/file.txt'
|
657
|
+
assert ok?
|
658
|
+
assert_equal 'Hello World', body
|
659
|
+
end
|
660
|
+
|
661
|
+
it 'sets the Content-Type response header if a mime-type can be located' do
|
662
|
+
send_file_app
|
663
|
+
get '/file.txt'
|
664
|
+
assert_equal 'text/plain;charset=utf-8', response['Content-Type']
|
665
|
+
end
|
666
|
+
|
667
|
+
it 'sets the Content-Type response header if type option is set to a file extesion' do
|
668
|
+
send_file_app :type => 'html'
|
669
|
+
get '/file.txt'
|
670
|
+
assert_equal 'text/html;charset=utf-8', response['Content-Type']
|
671
|
+
end
|
672
|
+
|
673
|
+
it 'sets the Content-Type response header if type option is set to a mime type' do
|
674
|
+
send_file_app :type => 'application/octet-stream'
|
675
|
+
get '/file.txt'
|
676
|
+
assert_equal 'application/octet-stream', response['Content-Type']
|
677
|
+
end
|
678
|
+
|
679
|
+
it 'sets the Content-Length response header' do
|
680
|
+
send_file_app
|
681
|
+
get '/file.txt'
|
682
|
+
assert_equal 'Hello World'.length.to_s, response['Content-Length']
|
683
|
+
end
|
684
|
+
|
685
|
+
it 'sets the Last-Modified response header' do
|
686
|
+
send_file_app
|
687
|
+
get '/file.txt'
|
688
|
+
assert_equal File.mtime(@file).httpdate, response['Last-Modified']
|
689
|
+
end
|
690
|
+
|
691
|
+
it 'allows passing in a differen Last-Modified response header with :last_modified' do
|
692
|
+
time = Time.now
|
693
|
+
send_file_app :last_modified => time
|
694
|
+
get '/file.txt'
|
695
|
+
assert_equal time.httpdate, response['Last-Modified']
|
696
|
+
end
|
697
|
+
|
698
|
+
it "returns a 404 when not found" do
|
699
|
+
mock_app {
|
700
|
+
get '/' do
|
701
|
+
send_file 'this-file-does-not-exist.txt'
|
702
|
+
end
|
703
|
+
}
|
704
|
+
get '/'
|
705
|
+
assert not_found?
|
706
|
+
end
|
707
|
+
|
708
|
+
it "does not set the Content-Disposition header by default" do
|
709
|
+
send_file_app
|
710
|
+
get '/file.txt'
|
711
|
+
assert_nil response['Content-Disposition']
|
712
|
+
end
|
713
|
+
|
714
|
+
it "sets the Content-Disposition header when :disposition set to 'attachment'" do
|
715
|
+
send_file_app :disposition => 'attachment'
|
716
|
+
get '/file.txt'
|
717
|
+
assert_equal 'attachment; filename="file.txt"', response['Content-Disposition']
|
718
|
+
end
|
719
|
+
|
720
|
+
it "sets the Content-Disposition header when :disposition set to 'inline'" do
|
721
|
+
send_file_app :disposition => 'inline'
|
722
|
+
get '/file.txt'
|
723
|
+
assert_equal 'inline', response['Content-Disposition']
|
724
|
+
end
|
725
|
+
|
726
|
+
it "sets the Content-Disposition header when :filename provided" do
|
727
|
+
send_file_app :filename => 'foo.txt'
|
728
|
+
get '/file.txt'
|
729
|
+
assert_equal 'attachment; filename="foo.txt"', response['Content-Disposition']
|
730
|
+
end
|
731
|
+
|
732
|
+
it "is able to send files with unkown mime type" do
|
733
|
+
@file = File.dirname(__FILE__) + '/file.foobar'
|
734
|
+
File.open(@file, 'wb') { |io| io.write('Hello World') }
|
735
|
+
send_file_app
|
736
|
+
get '/file.txt'
|
737
|
+
assert_equal 'application/octet-stream', response['Content-Type']
|
738
|
+
end
|
739
|
+
|
740
|
+
it "does not override Content-Type if already set and no explicit type is given" do
|
741
|
+
path = @file
|
742
|
+
mock_app do
|
743
|
+
get '/' do
|
744
|
+
content_type :png
|
745
|
+
send_file path
|
746
|
+
end
|
747
|
+
end
|
748
|
+
get '/'
|
749
|
+
assert_equal 'image/png', response['Content-Type']
|
750
|
+
end
|
751
|
+
|
752
|
+
it "does override Content-Type even if already set, if explicit type is given" do
|
753
|
+
path = @file
|
754
|
+
mock_app do
|
755
|
+
get '/' do
|
756
|
+
content_type :png
|
757
|
+
send_file path, :type => :gif
|
758
|
+
end
|
759
|
+
end
|
760
|
+
get '/'
|
761
|
+
assert_equal 'image/gif', response['Content-Type']
|
762
|
+
end
|
763
|
+
end
|
764
|
+
|
765
|
+
describe 'cache_control' do
|
766
|
+
setup do
|
767
|
+
mock_app do
|
768
|
+
get '/foo' do
|
769
|
+
cache_control :public, :no_cache, :max_age => 60.0
|
770
|
+
'Hello World'
|
771
|
+
end
|
772
|
+
|
773
|
+
get '/bar' do
|
774
|
+
cache_control :public, :no_cache
|
775
|
+
'Hello World'
|
776
|
+
end
|
777
|
+
end
|
778
|
+
end
|
779
|
+
|
780
|
+
it 'sets the Cache-Control header' do
|
781
|
+
get '/foo'
|
782
|
+
assert_equal ['public', 'no-cache', 'max-age=60'], response['Cache-Control'].split(', ')
|
783
|
+
end
|
784
|
+
|
785
|
+
it 'last argument does not have to be a hash' do
|
786
|
+
get '/bar'
|
787
|
+
assert_equal ['public', 'no-cache'], response['Cache-Control'].split(', ')
|
788
|
+
end
|
789
|
+
end
|
790
|
+
|
791
|
+
describe 'expires' do
|
792
|
+
setup do
|
793
|
+
mock_app do
|
794
|
+
get '/foo' do
|
795
|
+
expires 60, :public, :no_cache
|
796
|
+
'Hello World'
|
797
|
+
end
|
798
|
+
|
799
|
+
get '/bar' do
|
800
|
+
expires Time.now
|
801
|
+
end
|
802
|
+
|
803
|
+
get '/baz' do
|
804
|
+
expires Time.at(0)
|
805
|
+
end
|
806
|
+
|
807
|
+
get '/blah' do
|
808
|
+
obj = Object.new
|
809
|
+
def obj.method_missing(*a, &b) 60.send(*a, &b) end
|
810
|
+
def obj.is_a?(thing) 60.is_a?(thing) end
|
811
|
+
expires obj, :public, :no_cache
|
812
|
+
'Hello World'
|
813
|
+
end
|
814
|
+
|
815
|
+
get '/boom' do
|
816
|
+
expires '9999'
|
817
|
+
end
|
818
|
+
end
|
819
|
+
end
|
820
|
+
|
821
|
+
it 'sets the Cache-Control header' do
|
822
|
+
get '/foo'
|
823
|
+
assert_equal ['public', 'no-cache', 'max-age=60'], response['Cache-Control'].split(', ')
|
824
|
+
end
|
825
|
+
|
826
|
+
it 'sets the Expires header' do
|
827
|
+
get '/foo'
|
828
|
+
assert_not_nil response['Expires']
|
829
|
+
end
|
830
|
+
|
831
|
+
it 'allows passing Time.now objects' do
|
832
|
+
get '/bar'
|
833
|
+
assert_not_nil response['Expires']
|
834
|
+
end
|
835
|
+
|
836
|
+
it 'allows passing Time.at objects' do
|
837
|
+
get '/baz'
|
838
|
+
assert_equal 'Thu, 01 Jan 1970 00:00:00 GMT', response['Expires']
|
839
|
+
end
|
840
|
+
|
841
|
+
it 'accepts values pretending to be a Numeric (like ActiveSupport::Duration)' do
|
842
|
+
get '/blah'
|
843
|
+
assert_equal ['public', 'no-cache', 'max-age=60'], response['Cache-Control'].split(', ')
|
844
|
+
end
|
845
|
+
|
846
|
+
it 'fails when Time.parse raises an ArgumentError' do
|
847
|
+
assert_raise(ArgumentError) { get '/boom' }
|
848
|
+
end
|
849
|
+
end
|
850
|
+
|
851
|
+
describe 'last_modified' do
|
852
|
+
it 'ignores nil' do
|
853
|
+
mock_app do
|
854
|
+
get '/' do last_modified nil; 200; end
|
855
|
+
end
|
856
|
+
|
857
|
+
get '/'
|
858
|
+
assert ! response['Last-Modified']
|
859
|
+
end
|
860
|
+
|
861
|
+
it 'does not change a status other than 200' do
|
862
|
+
mock_app do
|
863
|
+
get '/' do
|
864
|
+
status 299
|
865
|
+
last_modified Time.at(0)
|
866
|
+
'ok'
|
867
|
+
end
|
868
|
+
end
|
869
|
+
|
870
|
+
get('/', {}, 'HTTP_IF_MODIFIED_SINCE' => 'Sun, 26 Sep 2030 23:43:52 GMT')
|
871
|
+
assert_status 299
|
872
|
+
assert_body 'ok'
|
873
|
+
end
|
874
|
+
|
875
|
+
[Time.now, DateTime.now, Date.today, Time.now.to_i,
|
876
|
+
Struct.new(:to_time).new(Time.now) ].each do |last_modified_time|
|
877
|
+
describe "with #{last_modified_time.class.name}" do
|
878
|
+
setup do
|
879
|
+
mock_app do
|
880
|
+
get '/' do
|
881
|
+
last_modified last_modified_time
|
882
|
+
'Boo!'
|
883
|
+
end
|
884
|
+
end
|
885
|
+
wrapper = Object.new.extend Sinatra::Helpers
|
886
|
+
@last_modified_time = wrapper.time_for last_modified_time
|
887
|
+
end
|
888
|
+
|
889
|
+
# fixes strange missing test error when running complete test suite.
|
890
|
+
it("does not complain about missing tests") { }
|
891
|
+
|
892
|
+
context "when there's no If-Modified-Since header" do
|
893
|
+
it 'sets the Last-Modified header to a valid RFC 2616 date value' do
|
894
|
+
get '/'
|
895
|
+
assert_equal @last_modified_time.httpdate, response['Last-Modified']
|
896
|
+
end
|
897
|
+
|
898
|
+
it 'conditional GET misses and returns a body' do
|
899
|
+
get '/'
|
900
|
+
assert_equal 200, status
|
901
|
+
assert_equal 'Boo!', body
|
902
|
+
end
|
903
|
+
end
|
904
|
+
|
905
|
+
context "when there's an invalid If-Modified-Since header" do
|
906
|
+
it 'sets the Last-Modified header to a valid RFC 2616 date value' do
|
907
|
+
get '/', {}, { 'HTTP_IF_MODIFIED_SINCE' => 'a really weird date' }
|
908
|
+
assert_equal @last_modified_time.httpdate, response['Last-Modified']
|
909
|
+
end
|
910
|
+
|
911
|
+
it 'conditional GET misses and returns a body' do
|
912
|
+
get '/', {}, { 'HTTP_IF_MODIFIED_SINCE' => 'a really weird date' }
|
913
|
+
assert_equal 200, status
|
914
|
+
assert_equal 'Boo!', body
|
915
|
+
end
|
916
|
+
end
|
917
|
+
|
918
|
+
context "when the resource has been modified since the If-Modified-Since header date" do
|
919
|
+
it 'sets the Last-Modified header to a valid RFC 2616 date value' do
|
920
|
+
get '/', {}, { 'HTTP_IF_MODIFIED_SINCE' => (@last_modified_time - 1).httpdate }
|
921
|
+
assert_equal @last_modified_time.httpdate, response['Last-Modified']
|
922
|
+
end
|
923
|
+
|
924
|
+
it 'conditional GET misses and returns a body' do
|
925
|
+
get '/', {}, { 'HTTP_IF_MODIFIED_SINCE' => (@last_modified_time - 1).httpdate }
|
926
|
+
assert_equal 200, status
|
927
|
+
assert_equal 'Boo!', body
|
928
|
+
end
|
929
|
+
|
930
|
+
it 'does not rely on string comparison' do
|
931
|
+
mock_app do
|
932
|
+
get '/compare' do
|
933
|
+
last_modified "Mon, 18 Oct 2010 20:57:11 GMT"
|
934
|
+
"foo"
|
935
|
+
end
|
936
|
+
end
|
937
|
+
|
938
|
+
get '/compare', {}, { 'HTTP_IF_MODIFIED_SINCE' => 'Sun, 26 Sep 2010 23:43:52 GMT' }
|
939
|
+
assert_equal 200, status
|
940
|
+
assert_equal 'foo', body
|
941
|
+
get '/compare', {}, { 'HTTP_IF_MODIFIED_SINCE' => 'Sun, 26 Sep 2030 23:43:52 GMT' }
|
942
|
+
assert_equal 304, status
|
943
|
+
assert_equal '', body
|
944
|
+
end
|
945
|
+
end
|
946
|
+
|
947
|
+
context "when the resource has been modified on the exact If-Modified-Since header date" do
|
948
|
+
it 'sets the Last-Modified header to a valid RFC 2616 date value' do
|
949
|
+
get '/', {}, { 'HTTP_IF_MODIFIED_SINCE' => @last_modified_time.httpdate }
|
950
|
+
assert_equal @last_modified_time.httpdate, response['Last-Modified']
|
951
|
+
end
|
952
|
+
|
953
|
+
it 'conditional GET matches and halts' do
|
954
|
+
get '/', {}, { 'HTTP_IF_MODIFIED_SINCE' => @last_modified_time.httpdate }
|
955
|
+
assert_equal 304, status
|
956
|
+
assert_equal '', body
|
957
|
+
end
|
958
|
+
end
|
959
|
+
|
960
|
+
context "when the resource hasn't been modified since the If-Modified-Since header date" do
|
961
|
+
it 'sets the Last-Modified header to a valid RFC 2616 date value' do
|
962
|
+
get '/', {}, { 'HTTP_IF_MODIFIED_SINCE' => (@last_modified_time + 1).httpdate }
|
963
|
+
assert_equal @last_modified_time.httpdate, response['Last-Modified']
|
964
|
+
end
|
965
|
+
|
966
|
+
it 'conditional GET matches and halts' do
|
967
|
+
get '/', {}, { 'HTTP_IF_MODIFIED_SINCE' => (@last_modified_time + 1).httpdate }
|
968
|
+
assert_equal 304, status
|
969
|
+
assert_equal '', body
|
970
|
+
end
|
971
|
+
end
|
972
|
+
|
973
|
+
context "If-Unmodified-Since" do
|
974
|
+
it 'results in 200 if resource has not been modified' do
|
975
|
+
get '/', {}, { 'HTTP_IF_UNMODIFIED_SINCE' => 'Sun, 26 Sep 2030 23:43:52 GMT' }
|
976
|
+
assert_equal 200, status
|
977
|
+
assert_equal 'Boo!', body
|
978
|
+
end
|
979
|
+
|
980
|
+
it 'results in 412 if resource has been modified' do
|
981
|
+
get '/', {}, { 'HTTP_IF_UNMODIFIED_SINCE' => Time.at(0).httpdate }
|
982
|
+
assert_equal 412, status
|
983
|
+
assert_equal '', body
|
984
|
+
end
|
985
|
+
end
|
986
|
+
end
|
987
|
+
end
|
988
|
+
end
|
989
|
+
|
990
|
+
describe 'etag' do
|
991
|
+
context "safe requests" do
|
992
|
+
it 'returns 200 for normal requests' do
|
993
|
+
mock_app do
|
994
|
+
get '/' do
|
995
|
+
etag 'foo'
|
996
|
+
'ok'
|
997
|
+
end
|
998
|
+
end
|
999
|
+
|
1000
|
+
get('/')
|
1001
|
+
assert_status 200
|
1002
|
+
assert_body 'ok'
|
1003
|
+
end
|
1004
|
+
|
1005
|
+
context "If-None-Match" do
|
1006
|
+
it 'returns 304 when If-None-Match is *' do
|
1007
|
+
mock_app do
|
1008
|
+
get '/' do
|
1009
|
+
etag 'foo'
|
1010
|
+
'ok'
|
1011
|
+
end
|
1012
|
+
end
|
1013
|
+
|
1014
|
+
get('/', {}, 'HTTP_IF_NONE_MATCH' => '*')
|
1015
|
+
assert_status 304
|
1016
|
+
assert_body ''
|
1017
|
+
end
|
1018
|
+
|
1019
|
+
it 'returns 200 when If-None-Match is * for new resources' do
|
1020
|
+
mock_app do
|
1021
|
+
get '/' do
|
1022
|
+
etag 'foo', :new_resource => true
|
1023
|
+
'ok'
|
1024
|
+
end
|
1025
|
+
end
|
1026
|
+
|
1027
|
+
get('/', {}, 'HTTP_IF_NONE_MATCH' => '*')
|
1028
|
+
assert_status 200
|
1029
|
+
assert_body 'ok'
|
1030
|
+
end
|
1031
|
+
|
1032
|
+
it 'returns 304 when If-None-Match is * for existing resources' do
|
1033
|
+
mock_app do
|
1034
|
+
get '/' do
|
1035
|
+
etag 'foo', :new_resource => false
|
1036
|
+
'ok'
|
1037
|
+
end
|
1038
|
+
end
|
1039
|
+
|
1040
|
+
get('/', {}, 'HTTP_IF_NONE_MATCH' => '*')
|
1041
|
+
assert_status 304
|
1042
|
+
assert_body ''
|
1043
|
+
end
|
1044
|
+
|
1045
|
+
it 'returns 304 when If-None-Match is the etag' do
|
1046
|
+
mock_app do
|
1047
|
+
get '/' do
|
1048
|
+
etag 'foo'
|
1049
|
+
'ok'
|
1050
|
+
end
|
1051
|
+
end
|
1052
|
+
|
1053
|
+
get('/', {}, 'HTTP_IF_NONE_MATCH' => '"foo"')
|
1054
|
+
assert_status 304
|
1055
|
+
assert_body ''
|
1056
|
+
end
|
1057
|
+
|
1058
|
+
it 'returns 304 when If-None-Match includes the etag' do
|
1059
|
+
mock_app do
|
1060
|
+
get '/' do
|
1061
|
+
etag 'foo'
|
1062
|
+
'ok'
|
1063
|
+
end
|
1064
|
+
end
|
1065
|
+
|
1066
|
+
get('/', {}, 'HTTP_IF_NONE_MATCH' => '"bar", "foo"')
|
1067
|
+
assert_status 304
|
1068
|
+
assert_body ''
|
1069
|
+
end
|
1070
|
+
|
1071
|
+
it 'returns 200 when If-None-Match does not include the etag' do
|
1072
|
+
mock_app do
|
1073
|
+
get '/' do
|
1074
|
+
etag 'foo'
|
1075
|
+
'ok'
|
1076
|
+
end
|
1077
|
+
end
|
1078
|
+
|
1079
|
+
get('/', {}, 'HTTP_IF_NONE_MATCH' => '"bar"')
|
1080
|
+
assert_status 200
|
1081
|
+
assert_body 'ok'
|
1082
|
+
end
|
1083
|
+
|
1084
|
+
it 'ignores If-Modified-Since if If-None-Match does not match' do
|
1085
|
+
mock_app do
|
1086
|
+
get '/' do
|
1087
|
+
etag 'foo'
|
1088
|
+
last_modified Time.at(0)
|
1089
|
+
'ok'
|
1090
|
+
end
|
1091
|
+
end
|
1092
|
+
|
1093
|
+
get('/', {}, 'HTTP_IF_NONE_MATCH' => '"bar"')
|
1094
|
+
assert_status 200
|
1095
|
+
assert_body 'ok'
|
1096
|
+
end
|
1097
|
+
|
1098
|
+
it 'does not change a status code other than 2xx or 304' do
|
1099
|
+
mock_app do
|
1100
|
+
get '/' do
|
1101
|
+
status 499
|
1102
|
+
etag 'foo'
|
1103
|
+
'ok'
|
1104
|
+
end
|
1105
|
+
end
|
1106
|
+
|
1107
|
+
get('/', {}, 'HTTP_IF_NONE_MATCH' => '"foo"')
|
1108
|
+
assert_status 499
|
1109
|
+
assert_body 'ok'
|
1110
|
+
end
|
1111
|
+
|
1112
|
+
it 'does change 2xx status codes' do
|
1113
|
+
mock_app do
|
1114
|
+
get '/' do
|
1115
|
+
status 299
|
1116
|
+
etag 'foo'
|
1117
|
+
'ok'
|
1118
|
+
end
|
1119
|
+
end
|
1120
|
+
|
1121
|
+
get('/', {}, 'HTTP_IF_NONE_MATCH' => '"foo"')
|
1122
|
+
assert_status 304
|
1123
|
+
assert_body ''
|
1124
|
+
end
|
1125
|
+
|
1126
|
+
it 'does not send a body on 304 status codes' do
|
1127
|
+
mock_app do
|
1128
|
+
get '/' do
|
1129
|
+
status 304
|
1130
|
+
etag 'foo'
|
1131
|
+
'ok'
|
1132
|
+
end
|
1133
|
+
end
|
1134
|
+
|
1135
|
+
get('/', {}, 'HTTP_IF_NONE_MATCH' => '"foo"')
|
1136
|
+
assert_status 304
|
1137
|
+
assert_body ''
|
1138
|
+
end
|
1139
|
+
end
|
1140
|
+
|
1141
|
+
context "If-Match" do
|
1142
|
+
it 'returns 200 when If-Match is the etag' do
|
1143
|
+
mock_app do
|
1144
|
+
get '/' do
|
1145
|
+
etag 'foo'
|
1146
|
+
'ok'
|
1147
|
+
end
|
1148
|
+
end
|
1149
|
+
|
1150
|
+
get('/', {}, 'HTTP_IF_MATCH' => '"foo"')
|
1151
|
+
assert_status 200
|
1152
|
+
assert_body 'ok'
|
1153
|
+
end
|
1154
|
+
|
1155
|
+
it 'returns 200 when If-Match includes the etag' do
|
1156
|
+
mock_app do
|
1157
|
+
get '/' do
|
1158
|
+
etag 'foo'
|
1159
|
+
'ok'
|
1160
|
+
end
|
1161
|
+
end
|
1162
|
+
|
1163
|
+
get('/', {}, 'HTTP_IF_MATCH' => '"foo", "bar"')
|
1164
|
+
assert_status 200
|
1165
|
+
assert_body 'ok'
|
1166
|
+
end
|
1167
|
+
|
1168
|
+
it 'returns 200 when If-Match is *' do
|
1169
|
+
mock_app do
|
1170
|
+
get '/' do
|
1171
|
+
etag 'foo'
|
1172
|
+
'ok'
|
1173
|
+
end
|
1174
|
+
end
|
1175
|
+
|
1176
|
+
get('/', {}, 'HTTP_IF_MATCH' => '*')
|
1177
|
+
assert_status 200
|
1178
|
+
assert_body 'ok'
|
1179
|
+
end
|
1180
|
+
|
1181
|
+
it 'returns 412 when If-Match is * for new resources' do
|
1182
|
+
mock_app do
|
1183
|
+
get '/' do
|
1184
|
+
etag 'foo', :new_resource => true
|
1185
|
+
'ok'
|
1186
|
+
end
|
1187
|
+
end
|
1188
|
+
|
1189
|
+
get('/', {}, 'HTTP_IF_MATCH' => '*')
|
1190
|
+
assert_status 412
|
1191
|
+
assert_body ''
|
1192
|
+
end
|
1193
|
+
|
1194
|
+
it 'returns 200 when If-Match is * for existing resources' do
|
1195
|
+
mock_app do
|
1196
|
+
get '/' do
|
1197
|
+
etag 'foo', :new_resource => false
|
1198
|
+
'ok'
|
1199
|
+
end
|
1200
|
+
end
|
1201
|
+
|
1202
|
+
get('/', {}, 'HTTP_IF_MATCH' => '*')
|
1203
|
+
assert_status 200
|
1204
|
+
assert_body 'ok'
|
1205
|
+
end
|
1206
|
+
|
1207
|
+
it 'returns 412 when If-Match does not include the etag' do
|
1208
|
+
mock_app do
|
1209
|
+
get '/' do
|
1210
|
+
etag 'foo'
|
1211
|
+
'ok'
|
1212
|
+
end
|
1213
|
+
end
|
1214
|
+
|
1215
|
+
get('/', {}, 'HTTP_IF_MATCH' => '"bar"')
|
1216
|
+
assert_status 412
|
1217
|
+
assert_body ''
|
1218
|
+
end
|
1219
|
+
end
|
1220
|
+
end
|
1221
|
+
|
1222
|
+
context "idempotent requests" do
|
1223
|
+
it 'returns 200 for normal requests' do
|
1224
|
+
mock_app do
|
1225
|
+
put '/' do
|
1226
|
+
etag 'foo'
|
1227
|
+
'ok'
|
1228
|
+
end
|
1229
|
+
end
|
1230
|
+
|
1231
|
+
put('/')
|
1232
|
+
assert_status 200
|
1233
|
+
assert_body 'ok'
|
1234
|
+
end
|
1235
|
+
|
1236
|
+
context "If-None-Match" do
|
1237
|
+
it 'returns 412 when If-None-Match is *' do
|
1238
|
+
mock_app do
|
1239
|
+
put '/' do
|
1240
|
+
etag 'foo'
|
1241
|
+
'ok'
|
1242
|
+
end
|
1243
|
+
end
|
1244
|
+
|
1245
|
+
put('/', {}, 'HTTP_IF_NONE_MATCH' => '*')
|
1246
|
+
assert_status 412
|
1247
|
+
assert_body ''
|
1248
|
+
end
|
1249
|
+
|
1250
|
+
it 'returns 200 when If-None-Match is * for new resources' do
|
1251
|
+
mock_app do
|
1252
|
+
put '/' do
|
1253
|
+
etag 'foo', :new_resource => true
|
1254
|
+
'ok'
|
1255
|
+
end
|
1256
|
+
end
|
1257
|
+
|
1258
|
+
put('/', {}, 'HTTP_IF_NONE_MATCH' => '*')
|
1259
|
+
assert_status 200
|
1260
|
+
assert_body 'ok'
|
1261
|
+
end
|
1262
|
+
|
1263
|
+
it 'returns 412 when If-None-Match is * for existing resources' do
|
1264
|
+
mock_app do
|
1265
|
+
put '/' do
|
1266
|
+
etag 'foo', :new_resource => false
|
1267
|
+
'ok'
|
1268
|
+
end
|
1269
|
+
end
|
1270
|
+
|
1271
|
+
put('/', {}, 'HTTP_IF_NONE_MATCH' => '*')
|
1272
|
+
assert_status 412
|
1273
|
+
assert_body ''
|
1274
|
+
end
|
1275
|
+
|
1276
|
+
it 'returns 412 when If-None-Match is the etag' do
|
1277
|
+
mock_app do
|
1278
|
+
put '/' do
|
1279
|
+
etag 'foo'
|
1280
|
+
'ok'
|
1281
|
+
end
|
1282
|
+
end
|
1283
|
+
|
1284
|
+
put('/', {}, 'HTTP_IF_NONE_MATCH' => '"foo"')
|
1285
|
+
assert_status 412
|
1286
|
+
assert_body ''
|
1287
|
+
end
|
1288
|
+
|
1289
|
+
it 'returns 412 when If-None-Match includes the etag' do
|
1290
|
+
mock_app do
|
1291
|
+
put '/' do
|
1292
|
+
etag 'foo'
|
1293
|
+
'ok'
|
1294
|
+
end
|
1295
|
+
end
|
1296
|
+
|
1297
|
+
put('/', {}, 'HTTP_IF_NONE_MATCH' => '"bar", "foo"')
|
1298
|
+
assert_status 412
|
1299
|
+
assert_body ''
|
1300
|
+
end
|
1301
|
+
|
1302
|
+
it 'returns 200 when If-None-Match does not include the etag' do
|
1303
|
+
mock_app do
|
1304
|
+
put '/' do
|
1305
|
+
etag 'foo'
|
1306
|
+
'ok'
|
1307
|
+
end
|
1308
|
+
end
|
1309
|
+
|
1310
|
+
put('/', {}, 'HTTP_IF_NONE_MATCH' => '"bar"')
|
1311
|
+
assert_status 200
|
1312
|
+
assert_body 'ok'
|
1313
|
+
end
|
1314
|
+
|
1315
|
+
it 'ignores If-Modified-Since if If-None-Match does not match' do
|
1316
|
+
mock_app do
|
1317
|
+
put '/' do
|
1318
|
+
etag 'foo'
|
1319
|
+
last_modified Time.at(0)
|
1320
|
+
'ok'
|
1321
|
+
end
|
1322
|
+
end
|
1323
|
+
|
1324
|
+
put('/', {}, 'HTTP_IF_NONE_MATCH' => '"bar"')
|
1325
|
+
assert_status 200
|
1326
|
+
assert_body 'ok'
|
1327
|
+
end
|
1328
|
+
end
|
1329
|
+
|
1330
|
+
context "If-Match" do
|
1331
|
+
it 'returns 200 when If-Match is the etag' do
|
1332
|
+
mock_app do
|
1333
|
+
put '/' do
|
1334
|
+
etag 'foo'
|
1335
|
+
'ok'
|
1336
|
+
end
|
1337
|
+
end
|
1338
|
+
|
1339
|
+
put('/', {}, 'HTTP_IF_MATCH' => '"foo"')
|
1340
|
+
assert_status 200
|
1341
|
+
assert_body 'ok'
|
1342
|
+
end
|
1343
|
+
|
1344
|
+
it 'returns 200 when If-Match includes the etag' do
|
1345
|
+
mock_app do
|
1346
|
+
put '/' do
|
1347
|
+
etag 'foo'
|
1348
|
+
'ok'
|
1349
|
+
end
|
1350
|
+
end
|
1351
|
+
|
1352
|
+
put('/', {}, 'HTTP_IF_MATCH' => '"foo", "bar"')
|
1353
|
+
assert_status 200
|
1354
|
+
assert_body 'ok'
|
1355
|
+
end
|
1356
|
+
|
1357
|
+
it 'returns 200 when If-Match is *' do
|
1358
|
+
mock_app do
|
1359
|
+
put '/' do
|
1360
|
+
etag 'foo'
|
1361
|
+
'ok'
|
1362
|
+
end
|
1363
|
+
end
|
1364
|
+
|
1365
|
+
put('/', {}, 'HTTP_IF_MATCH' => '*')
|
1366
|
+
assert_status 200
|
1367
|
+
assert_body 'ok'
|
1368
|
+
end
|
1369
|
+
|
1370
|
+
it 'returns 412 when If-Match is * for new resources' do
|
1371
|
+
mock_app do
|
1372
|
+
put '/' do
|
1373
|
+
etag 'foo', :new_resource => true
|
1374
|
+
'ok'
|
1375
|
+
end
|
1376
|
+
end
|
1377
|
+
|
1378
|
+
put('/', {}, 'HTTP_IF_MATCH' => '*')
|
1379
|
+
assert_status 412
|
1380
|
+
assert_body ''
|
1381
|
+
end
|
1382
|
+
|
1383
|
+
it 'returns 200 when If-Match is * for existing resources' do
|
1384
|
+
mock_app do
|
1385
|
+
put '/' do
|
1386
|
+
etag 'foo', :new_resource => false
|
1387
|
+
'ok'
|
1388
|
+
end
|
1389
|
+
end
|
1390
|
+
|
1391
|
+
put('/', {}, 'HTTP_IF_MATCH' => '*')
|
1392
|
+
assert_status 200
|
1393
|
+
assert_body 'ok'
|
1394
|
+
end
|
1395
|
+
|
1396
|
+
it 'returns 412 when If-Match does not include the etag' do
|
1397
|
+
mock_app do
|
1398
|
+
put '/' do
|
1399
|
+
etag 'foo'
|
1400
|
+
'ok'
|
1401
|
+
end
|
1402
|
+
end
|
1403
|
+
|
1404
|
+
put('/', {}, 'HTTP_IF_MATCH' => '"bar"')
|
1405
|
+
assert_status 412
|
1406
|
+
assert_body ''
|
1407
|
+
end
|
1408
|
+
end
|
1409
|
+
end
|
1410
|
+
|
1411
|
+
context "post requests" do
|
1412
|
+
it 'returns 200 for normal requests' do
|
1413
|
+
mock_app do
|
1414
|
+
post '/' do
|
1415
|
+
etag 'foo'
|
1416
|
+
'ok'
|
1417
|
+
end
|
1418
|
+
end
|
1419
|
+
|
1420
|
+
post('/')
|
1421
|
+
assert_status 200
|
1422
|
+
assert_body 'ok'
|
1423
|
+
end
|
1424
|
+
|
1425
|
+
context "If-None-Match" do
|
1426
|
+
it 'returns 200 when If-None-Match is *' do
|
1427
|
+
mock_app do
|
1428
|
+
post '/' do
|
1429
|
+
etag 'foo'
|
1430
|
+
'ok'
|
1431
|
+
end
|
1432
|
+
end
|
1433
|
+
|
1434
|
+
post('/', {}, 'HTTP_IF_NONE_MATCH' => '*')
|
1435
|
+
assert_status 200
|
1436
|
+
assert_body 'ok'
|
1437
|
+
end
|
1438
|
+
|
1439
|
+
it 'returns 200 when If-None-Match is * for new resources' do
|
1440
|
+
mock_app do
|
1441
|
+
post '/' do
|
1442
|
+
etag 'foo', :new_resource => true
|
1443
|
+
'ok'
|
1444
|
+
end
|
1445
|
+
end
|
1446
|
+
|
1447
|
+
post('/', {}, 'HTTP_IF_NONE_MATCH' => '*')
|
1448
|
+
assert_status 200
|
1449
|
+
assert_body 'ok'
|
1450
|
+
end
|
1451
|
+
|
1452
|
+
it 'returns 412 when If-None-Match is * for existing resources' do
|
1453
|
+
mock_app do
|
1454
|
+
post '/' do
|
1455
|
+
etag 'foo', :new_resource => false
|
1456
|
+
'ok'
|
1457
|
+
end
|
1458
|
+
end
|
1459
|
+
|
1460
|
+
post('/', {}, 'HTTP_IF_NONE_MATCH' => '*')
|
1461
|
+
assert_status 412
|
1462
|
+
assert_body ''
|
1463
|
+
end
|
1464
|
+
|
1465
|
+
it 'returns 412 when If-None-Match is the etag' do
|
1466
|
+
mock_app do
|
1467
|
+
post '/' do
|
1468
|
+
etag 'foo'
|
1469
|
+
'ok'
|
1470
|
+
end
|
1471
|
+
end
|
1472
|
+
|
1473
|
+
post('/', {}, 'HTTP_IF_NONE_MATCH' => '"foo"')
|
1474
|
+
assert_status 412
|
1475
|
+
assert_body ''
|
1476
|
+
end
|
1477
|
+
|
1478
|
+
it 'returns 412 when If-None-Match includes the etag' do
|
1479
|
+
mock_app do
|
1480
|
+
post '/' do
|
1481
|
+
etag 'foo'
|
1482
|
+
'ok'
|
1483
|
+
end
|
1484
|
+
end
|
1485
|
+
|
1486
|
+
post('/', {}, 'HTTP_IF_NONE_MATCH' => '"bar", "foo"')
|
1487
|
+
assert_status 412
|
1488
|
+
assert_body ''
|
1489
|
+
end
|
1490
|
+
|
1491
|
+
it 'returns 200 when If-None-Match does not include the etag' do
|
1492
|
+
mock_app do
|
1493
|
+
post '/' do
|
1494
|
+
etag 'foo'
|
1495
|
+
'ok'
|
1496
|
+
end
|
1497
|
+
end
|
1498
|
+
|
1499
|
+
post('/', {}, 'HTTP_IF_NONE_MATCH' => '"bar"')
|
1500
|
+
assert_status 200
|
1501
|
+
assert_body 'ok'
|
1502
|
+
end
|
1503
|
+
|
1504
|
+
it 'ignores If-Modified-Since if If-None-Match does not match' do
|
1505
|
+
mock_app do
|
1506
|
+
post '/' do
|
1507
|
+
etag 'foo'
|
1508
|
+
last_modified Time.at(0)
|
1509
|
+
'ok'
|
1510
|
+
end
|
1511
|
+
end
|
1512
|
+
|
1513
|
+
post('/', {}, 'HTTP_IF_NONE_MATCH' => '"bar"')
|
1514
|
+
assert_status 200
|
1515
|
+
assert_body 'ok'
|
1516
|
+
end
|
1517
|
+
end
|
1518
|
+
|
1519
|
+
context "If-Match" do
|
1520
|
+
it 'returns 200 when If-Match is the etag' do
|
1521
|
+
mock_app do
|
1522
|
+
post '/' do
|
1523
|
+
etag 'foo'
|
1524
|
+
'ok'
|
1525
|
+
end
|
1526
|
+
end
|
1527
|
+
|
1528
|
+
post('/', {}, 'HTTP_IF_MATCH' => '"foo"')
|
1529
|
+
assert_status 200
|
1530
|
+
assert_body 'ok'
|
1531
|
+
end
|
1532
|
+
|
1533
|
+
it 'returns 200 when If-Match includes the etag' do
|
1534
|
+
mock_app do
|
1535
|
+
post '/' do
|
1536
|
+
etag 'foo'
|
1537
|
+
'ok'
|
1538
|
+
end
|
1539
|
+
end
|
1540
|
+
|
1541
|
+
post('/', {}, 'HTTP_IF_MATCH' => '"foo", "bar"')
|
1542
|
+
assert_status 200
|
1543
|
+
assert_body 'ok'
|
1544
|
+
end
|
1545
|
+
|
1546
|
+
it 'returns 412 when If-Match is *' do
|
1547
|
+
mock_app do
|
1548
|
+
post '/' do
|
1549
|
+
etag 'foo'
|
1550
|
+
'ok'
|
1551
|
+
end
|
1552
|
+
end
|
1553
|
+
|
1554
|
+
post('/', {}, 'HTTP_IF_MATCH' => '*')
|
1555
|
+
assert_status 412
|
1556
|
+
assert_body ''
|
1557
|
+
end
|
1558
|
+
|
1559
|
+
it 'returns 412 when If-Match is * for new resources' do
|
1560
|
+
mock_app do
|
1561
|
+
post '/' do
|
1562
|
+
etag 'foo', :new_resource => true
|
1563
|
+
'ok'
|
1564
|
+
end
|
1565
|
+
end
|
1566
|
+
|
1567
|
+
post('/', {}, 'HTTP_IF_MATCH' => '*')
|
1568
|
+
assert_status 412
|
1569
|
+
assert_body ''
|
1570
|
+
end
|
1571
|
+
|
1572
|
+
it 'returns 200 when If-Match is * for existing resources' do
|
1573
|
+
mock_app do
|
1574
|
+
post '/' do
|
1575
|
+
etag 'foo', :new_resource => false
|
1576
|
+
'ok'
|
1577
|
+
end
|
1578
|
+
end
|
1579
|
+
|
1580
|
+
post('/', {}, 'HTTP_IF_MATCH' => '*')
|
1581
|
+
assert_status 200
|
1582
|
+
assert_body 'ok'
|
1583
|
+
end
|
1584
|
+
|
1585
|
+
it 'returns 412 when If-Match does not include the etag' do
|
1586
|
+
mock_app do
|
1587
|
+
post '/' do
|
1588
|
+
etag 'foo'
|
1589
|
+
'ok'
|
1590
|
+
end
|
1591
|
+
end
|
1592
|
+
|
1593
|
+
post('/', {}, 'HTTP_IF_MATCH' => '"bar"')
|
1594
|
+
assert_status 412
|
1595
|
+
assert_body ''
|
1596
|
+
end
|
1597
|
+
end
|
1598
|
+
end
|
1599
|
+
|
1600
|
+
it 'uses a weak etag with the :weak option' do
|
1601
|
+
mock_app do
|
1602
|
+
get '/' do
|
1603
|
+
etag 'FOO', :weak
|
1604
|
+
"that's weak, dude."
|
1605
|
+
end
|
1606
|
+
end
|
1607
|
+
get '/'
|
1608
|
+
assert_equal 'W/"FOO"', response['ETag']
|
1609
|
+
end
|
1610
|
+
|
1611
|
+
it 'raises an ArgumentError for an invalid strength' do
|
1612
|
+
mock_app do
|
1613
|
+
get '/' do
|
1614
|
+
etag 'FOO', :w00t
|
1615
|
+
"that's weak, dude."
|
1616
|
+
end
|
1617
|
+
end
|
1618
|
+
assert_raise(ArgumentError) { get '/' }
|
1619
|
+
end
|
1620
|
+
end
|
1621
|
+
|
1622
|
+
describe 'back' do
|
1623
|
+
it "makes redirecting back pretty" do
|
1624
|
+
mock_app {
|
1625
|
+
get '/foo' do
|
1626
|
+
redirect back
|
1627
|
+
end
|
1628
|
+
}
|
1629
|
+
|
1630
|
+
get '/foo', {}, 'HTTP_REFERER' => 'http://github.com'
|
1631
|
+
assert redirect?
|
1632
|
+
assert_equal "http://github.com", response.location
|
1633
|
+
end
|
1634
|
+
end
|
1635
|
+
|
1636
|
+
describe 'uri' do
|
1637
|
+
it 'generates absolute urls' do
|
1638
|
+
mock_app { get('/') { uri }}
|
1639
|
+
get '/'
|
1640
|
+
assert_equal 'http://example.org/', body
|
1641
|
+
end
|
1642
|
+
|
1643
|
+
it 'includes path_info' do
|
1644
|
+
mock_app { get('/:name') { uri }}
|
1645
|
+
get '/foo'
|
1646
|
+
assert_equal 'http://example.org/foo', body
|
1647
|
+
end
|
1648
|
+
|
1649
|
+
it 'allows passing an alternative to path_info' do
|
1650
|
+
mock_app { get('/:name') { uri '/bar' }}
|
1651
|
+
get '/foo'
|
1652
|
+
assert_equal 'http://example.org/bar', body
|
1653
|
+
end
|
1654
|
+
|
1655
|
+
it 'includes script_name' do
|
1656
|
+
mock_app { get('/:name') { uri '/bar' }}
|
1657
|
+
get '/foo', {}, { "SCRIPT_NAME" => '/foo' }
|
1658
|
+
assert_equal 'http://example.org/foo/bar', body
|
1659
|
+
end
|
1660
|
+
|
1661
|
+
it 'handles absolute URIs' do
|
1662
|
+
mock_app { get('/') { uri 'http://google.com' }}
|
1663
|
+
get '/'
|
1664
|
+
assert_equal 'http://google.com', body
|
1665
|
+
end
|
1666
|
+
|
1667
|
+
it 'handles different protocols' do
|
1668
|
+
mock_app { get('/') { uri 'mailto:jsmith@example.com' }}
|
1669
|
+
get '/'
|
1670
|
+
assert_equal 'mailto:jsmith@example.com', body
|
1671
|
+
end
|
1672
|
+
|
1673
|
+
it 'is aliased to #url' do
|
1674
|
+
mock_app { get('/') { url }}
|
1675
|
+
get '/'
|
1676
|
+
assert_equal 'http://example.org/', body
|
1677
|
+
end
|
1678
|
+
|
1679
|
+
it 'is aliased to #to' do
|
1680
|
+
mock_app { get('/') { to }}
|
1681
|
+
get '/'
|
1682
|
+
assert_equal 'http://example.org/', body
|
1683
|
+
end
|
1684
|
+
end
|
1685
|
+
|
1686
|
+
describe 'logger' do
|
1687
|
+
it 'logging works when logging is enabled' do
|
1688
|
+
mock_app do
|
1689
|
+
enable :logging
|
1690
|
+
get '/' do
|
1691
|
+
logger.info "Program started"
|
1692
|
+
logger.warn "Nothing to do!"
|
1693
|
+
end
|
1694
|
+
end
|
1695
|
+
io = StringIO.new
|
1696
|
+
get '/', {}, 'rack.errors' => io
|
1697
|
+
assert io.string.include?("INFO -- : Program started")
|
1698
|
+
assert io.string.include?("WARN -- : Nothing to do")
|
1699
|
+
end
|
1700
|
+
|
1701
|
+
it 'logging works when logging is disable, but no output is produced' do
|
1702
|
+
mock_app do
|
1703
|
+
disable :logging
|
1704
|
+
get '/' do
|
1705
|
+
logger.info "Program started"
|
1706
|
+
logger.warn "Nothing to do!"
|
1707
|
+
end
|
1708
|
+
end
|
1709
|
+
io = StringIO.new
|
1710
|
+
get '/', {}, 'rack.errors' => io
|
1711
|
+
assert !io.string.include?("INFO -- : Program started")
|
1712
|
+
assert !io.string.include?("WARN -- : Nothing to do")
|
1713
|
+
end
|
1714
|
+
|
1715
|
+
it 'does not create a logger when logging is set to nil' do
|
1716
|
+
mock_app do
|
1717
|
+
set :logging, nil
|
1718
|
+
get('/') { logger.inspect }
|
1719
|
+
end
|
1720
|
+
|
1721
|
+
get '/'
|
1722
|
+
assert_body 'nil'
|
1723
|
+
end
|
1724
|
+
end
|
1725
|
+
|
1726
|
+
module ::HelperOne; def one; '1'; end; end
|
1727
|
+
module ::HelperTwo; def two; '2'; end; end
|
1728
|
+
|
1729
|
+
describe 'Adding new helpers' do
|
1730
|
+
it 'takes a list of modules to mix into the app' do
|
1731
|
+
mock_app {
|
1732
|
+
helpers ::HelperOne, ::HelperTwo
|
1733
|
+
|
1734
|
+
get '/one' do
|
1735
|
+
one
|
1736
|
+
end
|
1737
|
+
|
1738
|
+
get '/two' do
|
1739
|
+
two
|
1740
|
+
end
|
1741
|
+
}
|
1742
|
+
|
1743
|
+
get '/one'
|
1744
|
+
assert_equal '1', body
|
1745
|
+
|
1746
|
+
get '/two'
|
1747
|
+
assert_equal '2', body
|
1748
|
+
end
|
1749
|
+
|
1750
|
+
it 'takes a block to mix into the app' do
|
1751
|
+
mock_app {
|
1752
|
+
helpers do
|
1753
|
+
def foo
|
1754
|
+
'foo'
|
1755
|
+
end
|
1756
|
+
end
|
1757
|
+
|
1758
|
+
get '/' do
|
1759
|
+
foo
|
1760
|
+
end
|
1761
|
+
}
|
1762
|
+
|
1763
|
+
get '/'
|
1764
|
+
assert_equal 'foo', body
|
1765
|
+
end
|
1766
|
+
|
1767
|
+
it 'evaluates the block in class context so that methods can be aliased' do
|
1768
|
+
mock_app {
|
1769
|
+
helpers do
|
1770
|
+
alias_method :h, :escape_html
|
1771
|
+
end
|
1772
|
+
|
1773
|
+
get '/' do
|
1774
|
+
h('42 < 43')
|
1775
|
+
end
|
1776
|
+
}
|
1777
|
+
|
1778
|
+
get '/'
|
1779
|
+
assert ok?
|
1780
|
+
assert_equal '42 < 43', body
|
1781
|
+
end
|
1782
|
+
end
|
1783
|
+
end
|