Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on May 22, 2015
  1. @zzak
  2. @zzak

    Don't set cookie domain on localhost from #118

    zzak authored
    Closes #113
    Closes #115
  3. @zzak
  4. @zzak

    Merge pull request #128 from vipulnsward/fix-namespace-warnings

    zzak authored
    Fix namespace warnings
  5. @zzak
Commits on May 15, 2015
  1. @ashleygwilliams
  2. @ashleygwilliams

    fix specs to account for deprecation notices

    ashleygwilliams authored
    - use `be true` instead of `be_true`
    - use `be false` instead of `be_false`
Commits on Apr 27, 2015
  1. @zzak

    Remove comment [ci skip]

    zzak authored
Commits on Nov 25, 2014
  1. @lest
Commits on Jun 10, 2014
  1. @zzak

    specs for sinatra/sinatra-contrib#28

    zzak authored zzak committed
Commits on May 13, 2014
  1. @bjeanes
Commits on Apr 6, 2014
  1. @vipulnsward

    use rspec equality method `eq` instead of `==` to avoid warnings abou…

    vipulnsward authored
    …t using `==` in void context.
Commits on Apr 4, 2014
  1. @zzak
Commits on Mar 19, 2014
  1. @907th

    Add support for custom loggers (controlled via `logger` setting)

    907th authored
    CustomLogger extension allows you to define your own logger instance
    using +logger+ setting. That logger then will be available
    as #logger helper method in your routes and views.
    
    === Classic Application
    
    To define your custom logger instance in a classic application:
    
        require 'sinatra'
        require 'sinatra/custom_logger'
        require 'logger'
    
        set :logger, Logger.new(STDOUT)
    
        get '/' do
          logger.info 'Some message' # STDOUT logger is used
          # Other code...
        end
    
    === Modular Application
    
    The same for modular application:
    
        require 'sinatra/base'
        require 'sinatra/custom_logger'
        require 'logger'
    
        class MyApp < Sinatra::Base
          helpers Sinatra::CustomLogger
    
          configure :development, :production do
            logger = Logger.new(File.open("#{root}/log/#{environment}.log", 'a'))
            logger.level = Logger::DEBUG if development?
            set :logger, logger
          end
    
          get '/' do
            logger.info 'Some message' # File-based logger is used
            # Other code...
          end
        end
Commits on Aug 19, 2013
  1. @zzak

    add an actual failing test for #71

    zzak authored
Commits on Aug 16, 2013
  1. @zzak
  2. @zzak
  3. @zzak

    merge #96

    zzak authored
  4. @zzak

    get rid of stdlib warning

    zzak authored
Commits on Apr 5, 2013
  1. @patriciomacadden

    Fix tests for jruby.

    patriciomacadden authored
Commits on Apr 4, 2013
  1. @kgrz
Commits on Mar 26, 2013
  1. @zzak

    add test for #87

    zzak authored
  2. @zzak
Commits on Mar 16, 2013
  1. @rkh

    fix cookie extension for Rack 1.5

    rkh authored
Commits on Mar 10, 2013
  1. @rkh

    fix error handling in namespace

    rkh authored
Commits on Feb 20, 2013
  1. @TrevorBramble

    Reverting due to Ruby 1.8.7 incompatibility

    TrevorBramble authored
    Revert "Merge pull request #66 from kylewlacy/master"
    
    This reverts commit 1ad87b6, reversing
    changes made to 2141511.
  2. @TrevorBramble

    Merge pull request #66 from kylewlacy/master

    TrevorBramble authored
    Modify cookie[]= method to support additional options
  3. @TrevorBramble

    Merge pull request #90 from Ortuna/multi-json

    TrevorBramble authored
    multi-json implementation
Commits on Feb 19, 2013
  1. @TrevorBramble

    Merge branch 'polish-namespace-specs' of github.com:kytrinyx/sinatra-…

    TrevorBramble authored
    …contrib
    
    Conflicts:
    	spec/namespace_spec.rb
  2. @TrevorBramble

    Merge pull request #80 from kytrinyx/refactor-multi-route-specs

    TrevorBramble authored
    Refactor multi-route specs
Commits on Feb 12, 2013
  1. @Ortuna

    multi-json implementation

    Ortuna authored
Commits on Dec 10, 2012
  1. @kytrinyx

    Rework namespace specs for clarity

    kytrinyx authored
    I renamed most of the specs, with the goal of having a more readable
    `--format=documentation` output.
    
    I also added a couple of extra contexts and reordered to help group tests
    more logically.
Commits on Dec 9, 2012
  1. @kytrinyx
  2. @kytrinyx

    Clean up trailing whitespace

    kytrinyx authored
  3. @kytrinyx

    Refactor multi-route specs

    kytrinyx authored
    This makes the relationship between the setup and the spec explicit,
    clarifying which bit of setup is actually being tested.
Something went wrong with that request. Please try again.