Commits on May 10, 2011
  1. @sferik

    Release 0.7.0

    sferik committed May 10, 2011
  2. @sferik

    Bump version to 0.7.0

    sferik committed May 10, 2011
Commits on May 9, 2011
  1. @sferik

    Merge pull request #55 from mislav/requests

    Caches middleware stack; refactors Request class
    sferik committed May 9, 2011
  2. @mislav

    support PATCH and OPTIONS methods

    Added a `patch` helper method, but OPTIONS requests need to be done manually.
    mislav committed May 9, 2011
Commits on May 8, 2011
  1. @mislav

    refactor how Requests are ran

    The Request class is not responsible for running itself anymore.
    Its `run` methods (both class and instance) are gone.
    
    The actual running of the request is handled by Connection in the
    `run_request` method.
    mislav committed May 8, 2011
  2. @mislav

    cache middleware stack instead of rebuilding it on every request

    The downside is, middleware can't be modified after making the first request:
    
      conn.use MyMiddleware       # => OK
      conn.get('/')
      conn.use AnotherMiddleware  # => raises a Builder::StackLocked error
    
    On the plus side, the middleware stack is built only once and then cached as
    the Connection#app object.
    
    The Connection instance can always be "forked off" with the `dup` method and
    modified as if it were fresh.
    mislav committed May 8, 2011
  3. @mislav

    refactor query params hash handling

     - Connection#params is now an instance of Faraday::Utils::ParamsHash
     - get rid of `merge_params`, `merge_headers` methods
     - don't mix in Faraday::Utils into Connection
    
    Fixes #48
    mislav committed May 7, 2011
Commits on May 6, 2011
  1. @sferik
Commits on Apr 27, 2011
  1. @sferik
Commits on Apr 13, 2011
  1. @sferik

    Release 0.6.1

    sferik committed Apr 13, 2011
  2. @sferik

    Release 0.6.1

    sferik committed Apr 13, 2011
  3. @sferik

    Add ca_path to SSL options hash

    Alex Kremer committed with sferik Apr 10, 2011
Commits on Apr 4, 2011
  1. @mislav

    refactor how adapters save response params to `env`

    Ensures :response_headers always get initialized
    
    Closes #50
    mislav committed Apr 4, 2011
Commits on Apr 1, 2011
  1. Release 0.6.0

    committed Mar 31, 2011
Commits on Mar 28, 2011
  1. @mislav
  2. @mislav
  3. @mislav

    typo in README

    mislav committed Mar 28, 2011
Commits on Mar 27, 2011
  1. @mislav

    add `Response.apply_request` method

    Useful, for example, to re-apply the current request environment after
    a response object was restored from cache.
    mislav committed Mar 27, 2011
  2. @mislav

    more love for response headers; handle ones with multiple values

    Also:
      - ensure that env[:response_headers] is not available during request phase
      - fix headers from "Test" adapter
    
    Closes #43
    mislav committed Mar 27, 2011
  3. @mislav
Commits on Mar 26, 2011
  1. @mislav

    add excon to bundle

    mislav committed Mar 27, 2011
  2. @mislav
  3. @mislav
  4. @mislav

    fix syntax warning

    mislav committed Mar 15, 2011
  5. @mislav
  6. @mislav

    tweak Gemfile for jruby

    mislav committed Mar 13, 2011
  7. @mislav
  8. @mislav
  9. @gregspurrier @mislav
  10. @mislav
  11. @mislav
  12. @mislav

    optimize request/response cycle for parallel (asynchronous) mode

    Changes:
     - there is no `env[:response]` during the request phase
     - middleware should attach `on_complete` handlers to the response object
       returned from `@app.call(env)` call
     - `on_complete` handlers execute immediately if the request is finished
     - Builder doesn't have the `run` method anymore
     - the default stack is now setup as soon as the Builder object has been initialized
     - the inner app for the stack is set when creating the request
    mislav committed Mar 3, 2011
  13. @mislav

    cleanup Patron adapter

    mislav committed Mar 3, 2011
  14. @mislav

    filter adapters used in tests with "ADAPTER" env variable

      LIVE=1 ADAPTER=typhoeus bundle exec ruby test/adapters/live_test.rb
    mislav committed Mar 3, 2011
  15. @mislav