Permalink
Commits on Sep 14, 2011
  1. Merge pull request #84 from subelsky/master

    Add a small 3rd party API proxy example
    igrigorik committed Sep 14, 2011
Commits on Sep 13, 2011
  1. add 3rd party API proxy example

    subelsky committed Sep 13, 2011
Commits on Sep 6, 2011
Commits on Sep 5, 2011
  1. Merge branch 'new-api'

    Conflicts:
    	lib/goliath/connection.rb
    	lib/goliath/rack/builder.rb
    joshbuddy committed Sep 5, 2011
  2. proper eventhandler passing

    joshbuddy committed Sep 5, 2011
Commits on Sep 4, 2011
  1. add defer stack for handlers

    joshbuddy committed Sep 4, 2011
Commits on Sep 2, 2011
  1. Merge pull request #82 from endel/master

    Update em-synchrony and em-mongo on gemspec.
    igrigorik committed Sep 2, 2011
  2. Update em-mongo on gemspec.

    endel committed Sep 2, 2011
  3. Update em-synchrony on gemspec.

    endel committed Sep 2, 2011
Commits on Aug 14, 2011
  1. minor gemspec cleanup

    igrigorik committed Aug 14, 2011
Commits on Aug 13, 2011
  1. Merge pull request #79 from rafaelss/fix_required_param_regexp

    Improve the way RequiredParam validates a parameter
    igrigorik committed Aug 13, 2011
Commits on Aug 12, 2011
Commits on Aug 10, 2011
  1. Merge pull request #78 from radsaq/test_helper_fixes

    Don't use the default server port number for running tests
    dj2 committed Aug 10, 2011
  2. Allow a configurable port number for starting servers during tests, a…

    …nd by default use a port other than the default for non-test usage. Also remove some of the repetition in test_helper.rb.
    radsaq committed Aug 10, 2011
Commits on Aug 9, 2011
  1. Merge pull request #77 from sleeper/rake_test_fix

    Rake test fix
    dj2 committed Aug 9, 2011
  2. Merge pull request #74 from postrank-labs/new_aroundware

    Refactored aroundware
    Philip (flip) Kromer committed Aug 9, 2011
Commits on Aug 8, 2011
  1. Fix "rake test"

    Sets back the environment to 'test' whenever a spec does
    change it.
    sleeper committed Aug 8, 2011
  2. rake test now works again

    The environment was not correctly set before running
    the 'template' spec. Now it is forced to 'test' before
    actually running the specs
    sleeper committed Aug 8, 2011
Commits on Jul 31, 2011
  1. Refactoring aroundware, Part VI (the last): documentation cleanup in …

    …lib/; also, examples/auth_and_rate_limit now checks credentials beforehand (on non-GET/HEAD) or does so in parallel on idempotent requests
    Philip (flip) Kromer committed Jul 31, 2011
  2. Refactoring aroundware, Part V: Moved all the aroundware examples ove…

    …r to use the new aroundware, doing necessary cleanup along the way.
    
    * BarrierAroundware now store [req, resp] in the successes / failures hashes
    * mongo things now work with both old and future em-mongo gems, at the cost of a big conditional 'if' statement in the file
    * Added enqueue_acceptor to let you enqueue activities that take a block without yielding a deferrable
    Philip (flip) Kromer committed Jul 31, 2011
  3. Added a favicon interceptor to the examples, and used it in the raste…

    …rizer examples
    Philip (flip) Kromer committed Jul 31, 2011
Commits on Jul 30, 2011
  1. Refactoring aroundware, Part IV: Deprecated old AsyncAroundware, Resp…

    …onseReceiver, MultiReceiver, MongoReceiver. Examples still work with the old aroundwarez.
    Philip (flip) Kromer committed Jul 30, 2011
  2. Refactoring aroundware, Part III: added new SimpleAroundware and Barr…

    …ierAroundware, to replace the soon-deprecated (but still functional) AsyncAroundware and cronies.
    
    * In AsyncMiddleware, moved callback hook into own method making it easier to follow; also, post_process executes in a safely{} block, avoiding a source of hung calls.
    * Created two pairs of base modules for aroundware: SimpleAroundware and SimpleAroundwareFactory handle the case where you *may* want to share information across pre- and post-processing, but don't need to have a barrier to clear pending calls.
    * BarrierAroundware and BarrierAroundwareFactory respect the same interface, but add equivalent functionality to EM::Multi.
      - Any deferrable you #enqueue goes into a pending_requests pool; once #pre_process returns, the downstream callback's response also goes in the pending_requests pool.
      - The BarrierAroundware's post_process method will not resume until all pending_requests (the aroundware's and the downstream response) have completed.
      - You're free to at any time also call #perform!, which concurrently waits for the pending pool to clear and then resume.
      - Completed requests are added to the succeses or failures hash as appropriate; and passed to the instance setter named for that handle if any (so, enqueue(:shortened_url, su_req) will eventually call self.shortened_url = su_req on completion).
    In a following commit, I'll move AsyncAroundware, ResponseReceiver, MongoReciever to a deprecated/ directory and explain the differences
    Philip (flip) Kromer committed Jul 30, 2011
  3. Refactoring async_aroundware, Part II. Refactored to make the control…

    … flow clearer. This is mostly cosmetic, and sets the stage for a new interface that will reduce the distinction between AsyncAroundware and normal middleware.
    Philip (flip) Kromer committed Jul 30, 2011
  4. mongo aroundware must be 0.3.x version with current setup

    Philip (flip) Kromer committed Jul 30, 2011
  5. Refactoring async_aroundware, Part I. in ResponseReceiver, the defaul…

    …t pre_process returns Goliath::Connection::AsyncResponse; env is an attr_reader not attr_accessor; in examples/async_aroundware_demo.rb added a missing include. Otherwise, this commit is largely cosmetic.
    Philip (flip) Kromer committed Jul 30, 2011
  6. minor misspelling in async_middleware

    Philip (flip) Kromer committed Jul 30, 2011
Commits on Jul 28, 2011
  1. Merge pull request #73 from dougal/master

    Fixed README typo
    dj2 committed Jul 28, 2011
  2. Fixed typo.

    dougal committed Jul 28, 2011
Commits on Jul 24, 2011