Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Mar 12, 2009
  1. Simon Rozet Ryan Tomayko

    No need to wrap app_file detection code in a lambda anymore

    sr authored rtomayko committed
Commits on Mar 11, 2009
  1. Ryan Tomayko
Commits on Mar 10, 2009
  1. Blake Mizerany

    Hook mechanizm for route_added [help from rtomayko]

    bmizerany authored
    module Sinatra
      module RouteAddedExtSample
        def self.route_added(verb, path)
          p [verb, path]
      register RouteAddedExtSample
    post '/' do
    ["POST", "/"]
    move superclass logic into extensions attr reader
Commits on Mar 9, 2009
  1. Ryan Tomayko security release

    rtomayko authored
  2. Ryan Tomayko
Commits on Mar 3, 2009
  1. Ryan Tomayko

    0.9.1 release

    rtomayko authored
  2. Ryan Tomayko
Commits on Mar 2, 2009
  1. Ryan Tomayko
  2. Blake Mizerany
  3. Markus Prinz Ryan Tomayko

    Fix test_with_rack_env example in README

    cypher authored rtomayko committed
    First, there was a missing quote, and second :agent is more
    clear than HTTP_USER_AGENT.
  4. Blake Mizerany Ryan Tomayko
  5. Ryan Tomayko
  6. Ryan Tomayko
  7. Ryan Tomayko
Commits on Feb 27, 2009
  1. Ryan Tomayko
  2. Ryan Tomayko
  3. Ryan Tomayko

    Don't allow :session option in body/params arg; misc refactoring

    rtomayko authored
    This changes the parent commit's :session option semantics just
    slightly. The :session option must be passed as part of the options
    Hash -- the body arg is assumed to be params or a POST/PUT body.
    Also, the mapping from :session to HTTP_COOKIE has been switched to
    'rack.session' - mapping it to HTTP_COOKIE doesn't make any sense.
    While here, refactor the make_request method to make it more
    obvious that we're really just building up the options Hash for
  4. Simon Rozet Ryan Tomayko

    Trying to remove the pain out of session testing

    sr authored rtomayko committed
  5. Ryan Tomayko

    Fix middleware not running when app run as middleware [#161]

    rtomayko authored
    The app's middleware pipeline was ignored when the app itself was
    run as middleware. This was due to the separate call paths for
    middleware vs. endpoint apps. This change makes it so that both
    endpoint and middleware apps are invoked via the same instance
    level #call method.
    One potentially confusing aspect of this change is that now
    returns the head of the app's middleware pipeline. If no middleware
    is used by the app, this will be an instance of the Base class;
    however, if middleware is used, will return the head of
    the middleware chain leading to the Base instance.
Commits on Feb 25, 2009
  1. Ryan Tomayko

    Better Content-Length handling for HEAD requests

    rtomayko authored
    Responses to HEAD requests _should_ have a Content-Length header
    that's identical to GET requests. When a body is provided by the
    application, set the Content-Length header to the size of the body
    and replace the body with an empty Array; when no body is provided
    by the application in response to a HEAD request, and the
    Content-Length is calculated to be "0", remove the Content-Length
    header entirely to avoid mis-matched values.
    The idea here is that it's better to omit the header when we believe
    the Content-Length is not indicative of the same in response to GET
    than to send the Content-Length with a mismatched value. Logic
    taken from Apache and is generally in line with RFC 2616.
  2. Harry Vangberg Ryan Tomayko
Commits on Feb 24, 2009
  1. Ryan Tomayko

    yield the MockRequest to the block before invoking the app [#111]

    rtomayko authored
    sr commented this out during some refactoring but I'd like
    to leave it in for now.
  2. Ryan Tomayko

    Add registered callback for extension modules [#148]

    rtomayko authored
    The "registered" message is sent to extension modules immediately
    after the module is mixed into a Sinatra::Base class. This can be
    used to initialize the class with options, add templates, define
    error handlers, etc.
Commits on Feb 23, 2009
  1. Ryan Tomayko

    Remove disabled compat specs

    rtomayko authored
Commits on Feb 22, 2009
  1. Simon Rozet
  2. Simon Rozet
  3. Simon Rozet Ryan Tomayko

    Test for #head

    sr authored rtomayko committed
  4. Simon Rozet Ryan Tomayko

    Cosmetic change to test for #follow

    sr authored rtomayko committed
  5. Ryan Tomayko
  6. Ryan Tomayko
  7. Ryan Tomayko
  8. Ryan Tomayko
  9. Ryan Tomayko
  10. Simon Rozet Ryan Tomayko

    Little refactoring of Sinatra::Test

    sr authored rtomayko committed
  11. Simon Rozet Ryan Tomayko

    Started test for Sinatra::Test

    sr authored rtomayko committed
Something went wrong with that request. Please try again.