Permalink
Commits on May 19, 2011
  1. Allow custom logger setup.

    dj2 committed May 19, 2011
    Defining a setup_logger method in the API will allow the API to
    override the standard Goliath logging. Note, if this is used, Goliath
    will not setup any loggers. It is your responsibility to deal with
    stdout and file logging if desired.
    
    [Issue #52]
Commits on May 17, 2011
  1. use RACK_EXCEPTION constant

    gregwebs committed May 17, 2011
  2. Merge pull request #51 from gregwebs/exception

    gregwebs committed May 17, 2011
    save exception in rack.exception
  3. Pass API to server block.

    dj2 committed May 17, 2011
    This allows the tests to access the api as a parameter to the with_api block.
    (Credit goes to Alexkwolfe for this one)
  4. don't spawn two fibers

    igrigorik committed May 17, 2011
Commits on May 16, 2011
  1. Merge branch 'default-env'

    dj2 committed May 16, 2011
Commits on May 15, 2011
Commits on May 12, 2011
  1. Demo of an authenticating and rate-limiting aroundware: aroundware se…

    Philip (flip) Kromer committed May 12, 2011
    …nds requests for account and rate limit info to a mongodb; when the downstream response and its pre_process requests complete, it either serves the content or denies access.
  2. AsyncAroundware now takes args, passed on to the receiver -- lets you…

    Philip (flip) Kromer committed May 12, 2011
    … specify eg. a database to use. Also gives you a chance to construct your own receiver in child class.
  3. reverted sort in trace stats -- unnecessary as dj2 points out

    Philip (flip) Kromer committed May 12, 2011
  4. Cleaned up error handling: Request#server_exception forces keep_alive…

    Philip (flip) Kromer committed May 12, 2011
    … false (addresses postrank-labs/goliath#43 -- connections would hang open on an error); error responses set a Content-Length header; Goliath::Validation::Errors are handled cleanly (become 4xx not 500 errors).  Also, Goliath::Rack::Validator.safely() accepts a headers arg, so that you can preserve headers even in a failed request.
  5. Goliath::API#use now takes *args, not one optional arg -- this makes …

    Philip (flip) Kromer committed May 12, 2011
    …it work the same as rack's #use
Commits on May 11, 2011
  1. Merge pull request #47 from blakesmith/master

    dj2 committed May 11, 2011
    RequiredParam can take a custom message string
  2. mongo_receiver takes a DB not a collection.

    Philip (flip) Kromer committed May 11, 2011
  3. two tweaks to tracer middleware: a) trace stats are sorted to read li…

    Philip (flip) Kromer committed May 11, 2011
    …ke a timeline; b) takes an initialize arg giving the header param to use (still 'X-Postrank' by default)
Commits on May 10, 2011
  1. (oops) formatting, namespacing

    Philip (flip) Kromer committed May 10, 2011
  2. an aroundware receiver for em-mongo

    Philip (flip) Kromer committed May 10, 2011
  3. Merge branch 'master' into aroundware

    Philip (flip) Kromer committed May 10, 2011
  4. Fixes #46 Rack::Reloader not working -- had to invoke ::Rack::Builder…

    Philip (flip) Kromer committed May 10, 2011
    ….app not ::Rack::Builder.new
  5. test_rig now gives a fully-descriptive response

    Philip (flip) Kromer committed May 10, 2011
  6. Merge pull request #45 from gregwebs/xml

    dj2 committed May 10, 2011
    more configurable to_xml, remove post-rankisms
Commits on May 5, 2011
  1. sugar for response_receiver

    Philip (flip) Kromer committed May 5, 2011
  2. Added 'safely' method to Goliath::Rack::Validator -- needed to insula…

    Philip (flip) Kromer committed May 5, 2011
    …te code in middlewares that happens in a callback
  3. Merge branch 'master' of github.com:postrank-labs/goliath into around…

    Philip (flip) Kromer committed May 5, 2011
    …ware
  4. sugar for response_receiver

    Philip (flip) Kromer committed May 5, 2011
Commits on May 4, 2011
  1. Merge pull request #42 from gregwebs/plist

    dj2 committed May 4, 2011
    Plist middleware formatter
  2. add test cases

    gregwebs committed May 4, 2011
  3. Merge pull request #44 from seancribbs/remove-git-from-gemspec.

    dj2 committed May 4, 2011
    Remove calls to git ls-files from the gemspec.