Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Jan 7, 2009
  1. Ryan Tomayko
Commits on Dec 9, 2008
  1. Erik Kastner Ryan Tomayko

    mirroring Rack::Mime::MIME_TYPES to Rack::File::MIME_TYPES to make si…

    kastner authored rtomayko committed
    …natra compatable with the master/0.5 branchs of rack
Commits on Dec 1, 2008
  1. Ben Bleything Ryan Tomayko

    Return the correct status code when a NotFound is raised

    bleything authored rtomayko committed
Commits on Nov 17, 2008
  1. Ryan Tomayko
Commits on Nov 13, 2008
  1. Blake Mizerany
Commits on Nov 12, 2008
  1. Blake Mizerany
  2. Blake Mizerany
Commits on Nov 11, 2008
  1. Ryan Tomayko

    fix use_in_file_templates! on windows

    rtomayko authored
    We were splitting on ":" and grabbing the first element
    returned. i.e., the drive label.
  2. Ryan Tomayko

    merge bmizerany/master

    rtomayko authored
  3. Blake Mizerany
Commits on Nov 7, 2008
  1. Igal Koshevoy Ryan Tomayko

    fix root path detection under thin/passenger

    igal authored rtomayko committed
    Fixed how the Sinatra application's path is set. Previously it
    was derived exclusively from $0, but this was causing problems
    when running Sinatra under Rack because $0 is the web server
    (e.g., thin, passenger, etc) and thus Sinatra would incorrectly
    set things like the default views path. This fix adds a new
    locate_app_file method that uses a number of techniques to guess the
    Sinatra application's path.
  2. Ryan Tomayko
Commits on Nov 2, 2008
  1. Ryan Tomayko

    0.3.2 release

    rtomayko authored
  2. Ryan Tomayko

    simplify Static implementation; use 8K chunks instead of 4K

    rtomayko authored
    The Static event handler is now instantiated with a reference
    back to the Sinatra app instead of using the global singleton.
    While here, bump streaming buffer size from 4K to 8K -- word
    around the campfire is that reading in 8K chunks results in a bit
    less IO on most modern systems.
  3. Ryan Tomayko

    remove custom rack mongrel handler

    rtomayko authored
    This is the same (byte-for-byte) handler that's included with Rack
    0.4 which we've required since 0.3.
  4. Ryan Tomayko

    fix send_file reading entire file by default

    rtomayko authored
    The default :stream option value was not being picked up properly
    leading all calls to send_file (including those served with Static)
    to read the entire file into a string before sending. Further, the
    body was then being returned as a string, which causes Rack to
    iterate over the contents line-wise.
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

    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)
  6. Ryan Tomayko

    remove String#to_param and String#from_param

    rtomayko authored
    Use Rack::Util's unescape instead.
  7. 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.
  8. 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.
  9. 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.
  10. 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
  11. 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.
Something went wrong with that request. Please try again.