Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Sep 8, 2008
  1. Jeremy Evans
  2. Ryan Tomayko
  3. Ryan Tomayko
Commits on Sep 7, 2008
  1. Ryan Tomayko
  2. Ryan Tomayko
  3. Simon Rozet Ryan Tomayko

    close opened pre tag in sinatra's html code

    sr authored rtomayko committed
  4. Simon Rozet Ryan Tomayko

    set correct content-type for sinatra's custom images

    sr authored rtomayko committed
  5. Ryan Tomayko

    add rspec test support [avdi]

    rtomayko authored
    require 'sinatra/test/rspec' instead of 'sinatra/test/spec'
    to use.
  6. Ryan Tomayko

    remove core extensions used for url escaping

    rtomayko authored
    The following methods were removed. All code that used them
    now uses Rack::Utils's escape methods directly:
    
      * Hash#from_params
      * Hash#to_params
      * Hash#symbolize_keys (not used)
      * Hash#pass (not used)
  7. Ryan Tomayko

    remove String#to_param and String#from_param

    rtomayko authored
    Use Rack::Util's unescape instead.
  8. Ryan Tomayko

    be smarter about forwarding methods to response

    rtomayko authored
    Only forward if the response object responds to the given
    message. This makes exceptions a bit easier to track down.
  9. Ryan Tomayko

    test refactoring and cleanup

    rtomayko authored
    Man. These tests kind of suck. Someone needs to organize
    this shit semi-logically.
  10. Ryan Tomayko

    before filters can modify request routing variables

    rtomayko authored
    Execute the before filters before looking up the
    event. Makes it possible for filters to rewrite request
    variables such as PATH_INFO and REQUEST_METHOD and have
    it effect which route is chosen.
  11. Ryan Tomayko

    make raise_errors option more reliable

    rtomayko authored
    The raise_errors option was implemented as part of
    the default error handler making it worthless in development
    mode or with a custom error handler. This moves the
    implementation to the core dispatch method.
    
    While here, clean up the Error class a bit, making it
    use the options provided and pass the correct HTTP status
    code.
  12. Ryan Tomayko

    register development error handlers during reload

    rtomayko authored
    Fixes case where development error handlers show up in
    non-development environments when the env option is set
    in code instead of on the command line.
    
    For example, the following app shows the development 404
    page:
    
        require 'sinatra'
        set :env, :production
  13. Ryan Tomayko
Commits on Sep 1, 2008
  1. Ryan Tomayko
Commits on Aug 31, 2008
  1. Ryan Tomayko

    add environment predicates

    rtomayko authored
  2. Ryan Tomayko
  3. Ryan Tomayko

    get rid of dslify_writer

    rtomayko authored
  4. Ryan Tomayko

    Fix whitespace errors across all source files and tests

    rtomayko authored
    I can't stand this shit anymore.
  5. Ryan Tomayko

    Rack 0.4 (remove vendor submodule)

    rtomayko authored
    Use Rack gem instead of freezing.
  6. Ryan Tomayko
Commits on Jul 25, 2008
  1. Blake Mizerany

    streaming with Mongrel

    bmizerany authored
    WARNING: Don't get attached to this commit.  I may not keep this here.
Commits on Jun 23, 2008
  1. Adam Wiggins
  2. Blake Mizerany

    converting env from command-line to symbol. [cypher]

    bmizerany authored
    This fixes the problem when running an app with -e development
Commits on Jun 22, 2008
  1. Ryan Tomayko
  2. Ryan Tomayko
Commits on Jun 8, 2008
  1. Chris Schneider

    Small tweak to server method to fall back on exactly what the user se…

    cschneid authored
    …ts via 'set :server, handler' if Rack::Handler::Thing doesn't exist. This lets special capitalziation cases like FastCGI, CGI, and WEBrick be handled easily.
  2. Ryan Tomayko
Commits on Jun 4, 2008
  1. Chris Schneider

    Add a host option to define the ip to bind to, defaults 0.0.0.0, whic…

    cschneid authored
    …h is code for 'all of them'
Commits on May 28, 2008
  1. Chris Schneider

    Add :locals option for erb. General approach and some of the code was…

    cschneid authored
    … borrowed from rails (compilable.rb)
  2. Blake Mizerany Chris Schneider

    added 'set' to FORWARD_METHODS

    bmizerany authored cschneid committed
Commits on May 24, 2008
  1. Ryan Tomayko

    Fix #18 by wrapping reload and pipeline in mutex lock

    rtomayko authored
    This fixes the issue of random errors and backtraces being
    dumped to STDERR in development when you hit the site too-fast.
    The problem seemed to be that reloading was not occuring within
    the Mutex lock so there's a chance that objects get into some
    kind of weird half-state.
    
    With this patch, the mutex lock is always enabled in development
    and I've moved the calls to run_safely out of Application#dispatch
    and into Application#call so that the entire reloading process and
    Rack pipeline run exclusively.
  2. Ryan Tomayko

    Fix blank error pages when error.messages has no to_str

    rtomayko authored
    When an exception whose #messages attribute is not a string is
    rescued, Sinatra fails to display the error page due to a
    TypeError. The problem is that Ruby's + implementation uses type-strong
    coercing (#to_str) instead of type-weak coercision (#to_s). This just
    forces to_s to be used, avoiding the problem.
    
    (An example of this type of exception is DataMapper::Errors. It doesn't
    respond to #to_str)
Something went wrong with that request. Please try again.