Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Oct 24, 2010
  1. @rkh

    1.1.0 release

    rkh authored
Commits on Oct 23, 2010
  1. @rkh

    Increase Sinatra::VERSION.

    rkh authored
Commits on Oct 21, 2010
  1. @rkh
Commits on Oct 19, 2010
  1. @rkh

    Small content_type refactoring.

    rkh authored
    * Avoid setting charset twice if parameter is passed as string rather than symbol.
    * No need to check for empty params hash, there always is :charset.
    
    Tests still pass.
  2. @krekoten @rkh

    No need to double call #mime_type

    krekoten authored rkh committed
    Signed-off-by: Konstantin Haase <konstantin.mailinglists@googlemail.com>
  3. @rkh

    1.1.a release

    rkh authored
  4. @rkh
Commits on Oct 18, 2010
  1. @gnandretta @rkh

    quick fix for GH #94

    gnandretta authored rkh committed
    Signed-off-by: Konstantin Haase <konstantin.mailinglists@googlemail.com>
Commits on Oct 17, 2010
  1. @snej @rkh

    Re-implement byte-range support for static files.

    snej authored rkh committed
    Correct handling of "Range:" request header. Replaces buggy implementation (480b1e8, 44ab090) that was recently backed out.
    Fixes #93.
    
    NOTE: Does not yet support multiple ranges (e.g. "bytes=1-10,20-30") because that requires sending a multipart response, which is more complex than I want to get into now.
    
    Signed-off-by: Konstantin Haase <konstantin.mailinglists@googlemail.com>
  2. @rkh
Commits on Oct 16, 2010
  1. @rkh
  2. @rkh

    Use Request#ssl? for Request#secure? if available. Improve Request#se…

    rkh authored
    …cure? implementation (adjust to Request#ssl? in rack master).
Commits on Oct 12, 2010
  1. @rkh

    Only run error handlers if show_excetions is set to :after_handler, n…

    rkh authored
    …ot when it is set to true.
Commits on Oct 11, 2010
  1. @pangel @rkh

    Bugfix. show_exceptions used to override app-specified exceptions (er…

    pangel authored rkh committed
    …ror do ... end blocks).
    
    Signed-off-by: Konstantin Haase <konstantin.mailinglists@googlemail.com>
Commits on Oct 10, 2010
  1. @rkh

    Add nokogiri helper method. Tilt supports Nokogiri for quite some tim…

    rkh authored
    …e now, but it was not as easy to use as builder, and not documented. Tests and documentation included.
  2. @rkh

    Avoid relying on $1 for setting Content-Range header, as its value mi…

    rkh authored
    …ght be lost. Makes test pass.
  3. @jphastings @rkh

    send_file now copes with 'Range: bytes=100-400,500-600' headers

    jphastings authored rkh committed
    Signed-off-by: Konstantin Haase <konstantin.mailinglists@googlemail.com>
Commits on Oct 9, 2010
  1. @rkh
  2. @kektre @rkh

    removed unnecessary #send

    kektre authored rkh committed
    Signed-off-by: Konstantin Haase <konstantin.mailinglists@googlemail.com>
  3. @rkh

    Merge branch 'smart-templates'

    rkh authored
  4. @gnandretta @rkh

    changes the date comparison in last_modified

    gnandretta authored rkh committed
    last_modified was halting only when the 'If-Modified-Since' header date
    was equal to the time specified. Now, it halts when is equal or later
    than the time specified.
    
    Signed-off-by: Konstantin Haase <konstantin.mailinglists@googlemail.com>
Commits on Sep 27, 2010
  1. @rkh

    Sets default content type according to template engine used instead o…

    rkh authored
    …f just text/html.
    
    It does so by including a Mixin into the the returned string offering a content_type method. Therefore all of the following examples produce the expected results:
    
        # text/html
        get('/') do
          haml :index
        end
    
        # text/css
        get('/') do
          sass :index
        end
    
        # text/css
        get('/') do
          haml :index
          sass :index
        end
    
        # text/html
        get('/') do
          haml '= sass :index'
        end
    
    It also allows setting the default content type for a template engine:
    
        set :builder, :content_type => :html
    
    Tests and README adjustments (all languages) included.
  2. @rkh

    Skip implicit layouts for nested templates.

    rkh authored
    That way the following will produce valid HTML:
    
    @@ layout
    !!!
    = yield
    
    @@ content
    %html
      %head= haml :head
      %body= haml :body
    
    That way using render methods for partials is a lot easier.
    Tests included.
Commits on Sep 22, 2010
  1. @rkh
  2. @rkh
  3. @rkh

    increase inline documentation

    rkh authored
Commits on Sep 20, 2010
  1. @rkh

    Set outvar for any template engine (so it is usable from liquid, text…

    rkh authored
    …ile and markdown). Also, only set it if not present, allowing to override it.
Commits on Sep 19, 2010
  1. @shreeve @rkh

    correct the HTTP status code range

    shreeve authored rkh committed
  2. @rkh
Commits on Sep 16, 2010
  1. @rkh
Commits on Sep 13, 2010
  1. @rkh

    Fix params encoding.

    rkh authored
Commits on Sep 12, 2010
  1. @rkh

    Add coffee helper method. Tilt supports CoffeeScript again, but it wa…

    rkh authored
    …s not as easy to use as sass or scss, and not documented. Tests and documentation (English and German) included.
  2. @rkh

    Add markaby helper method. Tilt supports Markaby for quite some time …

    rkh authored
    …now, but it was not as easy to use as haml or erb, and not documented. Tests and documentation (English and German) included.
  3. @rkh

    Add radius helper method. Tilt supports radius for quite some time no…

    rkh authored
    …w, but it was not as easy to use as haml or erb, and not documented. Tests and documentation (English and German) included.
  4. @rkh

    Add rdoc helper method. Tilt supports RDoc for quite some time now, b…

    rkh authored
    …ut it was not as easy to use as haml or erb, and not documented. Tests and documentation (English and German) included.
Something went wrong with that request. Please try again.