Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Oct 4, 2009
  1. @nmerouze @rtomayko
  2. @vangberg @rtomayko

    test-spec is now a development dependency

    vangberg authored rtomayko committed
Commits on Aug 6, 2009
  1. @paul @josh

    Add Rack::Runtime to autoloads

    paul authored josh committed
    Signed-off-by: Joshua Peek <josh@joshpeek.com>
  2. @paul @josh

    test for setting multiple runtime middlewares

    paul authored josh committed
    Signed-off-by: Joshua Peek <josh@joshpeek.com>
  3. @paul @josh

    Middleware that sets an X-Runtime header

    paul authored josh committed
    Times how long it takes for the application to respond to the request
    and sets that to the X-Runtime header of the response.
    
    Also allows the user to provide a suffix, so that different things can
    be timed, eg, the just the app, or the app plug middleware stack.
    
        use Rack::Runtime, "All"
    
        # use more middleware's here
    
        use Rack::Runtime, "App"
    
        run Application
    
    will set "X-Runtime-All" and "X-Runtime-App" headers on the response.
    
    Signed-off-by: Joshua Peek <josh@joshpeek.com>
  4. @josh

    added Rack::Cookies to gemspec

    Stephen Delano authored josh committed
    Signed-off-by: Joshua Peek <josh@joshpeek.com>
Commits on Jul 9, 2009
  1. @josh

    Draft Expectation Cascade

    josh authored
Commits on Jun 12, 2009
  1. @jeremy
Commits on Jun 6, 2009
  1. @anupom @rtomayko

    Rack::StaticCache - auto cache headers for URLs with asset timestamps

    anupom authored rtomayko committed
    Modifies response headers for client and proxy caching of static
    files that minimizes http requests and improves overall load times
    for second time visitors.
    
    Signed-off-by: Ryan Tomayko <rtomayko@gmail.com>
  2. @kubicek @rtomayko
Commits on May 21, 2009
  1. @rtomayko
  2. @mynyml @rtomayko

    Normalize custom default extention.

    mynyml authored rtomayko committed
    i.e. handles '.xml', 'xml', ':xml', etc.
  3. @mynyml @rtomayko

    Fix parsing paths containing dots.

    mynyml authored rtomayko committed
  4. @mynyml @rtomayko

    Allow custom default extention.

    mynyml authored rtomayko committed
  5. @mynyml @rtomayko

    Don't use rescue as a control flow mechanism.

    mynyml authored rtomayko committed
  6. @mynyml @rtomayko

    Fix README typo (Rack::AcceptFormat)

    mynyml authored rtomayko committed
  7. @mynyml @rtomayko

    Autoload AcceptFormat

    mynyml authored rtomayko committed
  8. @jeremy @rtomayko

    SPEC: body.each yields values which to_s

    jeremy authored rtomayko committed
    Signed-off-by: Ryan Tomayko <rtomayko@gmail.com>
Commits on May 10, 2009
  1. @josh

    Rack::Cookies

    josh authored
Commits on May 3, 2009
  1. @manveru
Commits on Apr 29, 2009
  1. @jcrosby

    Add support for LRDD to Rack::HostMeta

    jcrosby authored
    This update adds support for Link-Pattern elements as
    described in the IETF draft:
    "Link-based Resource Descriptor Discovery"
    
    For more information, see:
      http://tools.ietf.org/html/draft-hammer-discovery
Commits on Apr 28, 2009
  1. @jcrosby

    Add Rack::HostMeta

    jcrosby authored
Commits on Mar 7, 2009
  1. @rtomayko
  2. @rtomayko
  3. @rtomayko

    Add 'rake spec' task

    rtomayko authored
  4. @rtomayko
  5. @rtomayko
Commits on Feb 21, 2009
  1. @rtomayko

    Rack::AcceptFormat - turns Accept into an file extension

    Cyril Rohr authored rtomayko committed
  2. @vangberg @rtomayko

    Rack::Backstage - maintenance page middleware

    vangberg authored rtomayko committed
    If specified file exists, serve that one. Convenient for
    maintenance pages.
Commits on Feb 9, 2009
  1. @jeremyevans @rtomayko

    Add Rack::RelativeRedirect

    jeremyevans authored rtomayko committed
    Transforms relative paths in redirects to absolute URLs.
    
    This allows your web applications to use simple relative paths in
    their redirects if they want, so they don't have to worry about
    the url scheme, server name, or port.  Absolute URLs are not
    modified.  This uses a sensible default based on the environment,
    but gives the user full control by allowing them to specify a block
    that provides the absolute part of the url (e.g. http://example.org).
    
    Currently, this only takes affect if the response code is 301-303,
    I'm not sure if other status codes should be considered, but they
    should be easy to add if so.  Also,  this currently only considers
    Locations starting with http:// or https:// as absolute URLs.  If
    other protocol schemes should be considered, those can be added
    later.
    
    This code will fail if the Location includes the server name part
    but not the protocol scheme (e.g. Location: //example.org/path).
    If those should be allowed, we can do so, but that's also a valid
    relative path, so it's not without its problems.
    
    This implementation works with both relative and absolute paths.
    If a relative path is given (not starting with a slash), it
    is made relative to the request path.  I'm not sure if this works
    perfectly, though it passes the specs I wrote.
  2. @jeremyevans @rtomayko

    Minor RDoc fix for Rack::ReponseCache#initialize

    jeremyevans authored rtomayko committed
  3. @rtomayko
  4. @tj @rtomayko

    Added Rack::Deflect - DOS protection middleware

    tj authored rtomayko committed
    Functional, yet expermental middleware for protecting
    against Denial-of-service attacks.
  5. @jeremyevans @rtomayko

    Add Rack::ResponseCache

    jeremyevans authored rtomayko committed
    The included RDoc gives a good description of the use of this.
    Basically, successful responses for GET requests without query
    strings are cached either to disk or to a user provided ruby object
    (such as a hash or memcache).
    
    In the most basic form, this does basically the same thing as Rails'
    page caching, but there is a lot more flexibility, since you can
    provide your own cache object as well as the block that maps request
    paths to file system paths or cache keys.
Commits on Feb 7, 2009
  1. @josh

    Add Signals middleware

    josh authored
Something went wrong with that request. Please try again.