Commits on Feb 15, 2009
  1. Bug Fix - https not working

    The regex scheme comparison wasn't working so I've changed it
    to straight string comparison.
    In addition, the net/http library doesn't assume port 443 for
    https, so you have to explictly state you want to use that
    committed Feb 15, 2009
  2. Bug fix - age response header was being treated incorrectly

    The age header's value is seconds, not a date as we were
    treating it.
    committed Feb 15, 2009
Commits on Feb 2, 2009
  1. More caching specs

    paul committed Feb 2, 2009
  2. Bug fix - host was not changing between redirects.

    The Host header is now always taken from the Resource's uri - any
    user-defined Host header is ignored. Previously, if you received a
    redirect with the only change being the host, you would end in an
    "infinite" loop (at least until you could no longer open connections).
    committed Feb 2, 2009
  3. Make rake spec work

    simple_sinatra_server_spec and the acceptance specs cant be run in the
    same go, so make the default spec runner not run them. Add a separate
    rake task for those.
    Also, added a rake server task that will spawn the server with some
    logging, so you can watch the requests being made by the acceptance
    specs. Useful for debugging.
    paul committed Feb 2, 2009
  4. Make `rake spec` work

    Also, you can run `ruby spec/simple_sinatra_server.rb` in another
    console, and watch the requests being made. The spec will attempt to
    spawn another server on the same port, and fail silently.
    paul committed Feb 2, 2009
Commits on Feb 1, 2009
  1. Version bump.Some pretty major changes since 0.3.2, so increment the …

    …minor version number to reflect that.
    paul committed Feb 1, 2009
  2. Remove the old simple http server

    It was a PITA to use, so I wrote one in sinatra, and some acceptance
    specs to use it instead. spec/acceptance_spec.rb should be considered
    obsolete, and only used as a reference while we rewrite it's specs
    against the sinatra server.
    paul committed Feb 1, 2009
  3. Lots more caching specs

    paul committed Feb 1, 2009
Commits on Jan 31, 2009
  1. Set user agent string

    paul committed Jan 31, 2009
  2. Compact the header spec

    paul committed Jan 31, 2009
Commits on Jan 28, 2009
  1. Show request headers in debug

    paul committed Jan 28, 2009
Commits on Jan 26, 2009
  1. Fix broken spec: Resources won't be revalidated unless you specifical…

    …ly ask them to be at the moment.
    committed Jan 26, 2009
Commits on Jan 25, 2009
  1. Factoring out checking for content type - also fixes a bug: Resource …

    …would incorrectly raise an Exception if the content type was specified in the default headers
    committed Jan 25, 2009
  2. Minor refactoring of Resource - extracting most of the get/put/post/d…

    …elete implementation to a private method, request
    committed Jan 25, 2009
Commits on Jan 23, 2009
Commits on Jan 22, 2009
  1. Mocks suck

    paul committed Jan 22, 2009
  2. Header constants enhancements

    paul committed Jan 22, 2009
Commits on Jan 21, 2009
  1. Add headers defined in rcf2616 to the Header class.

        irb(main):001:0>  require 'lib/resourceful/header'
        => true
        irb(main):002:0>  Resourceful::Header::ACCEPT
        => "Accept"
        irb(main):003:0> h = => 'text/html')
        => {"Accept"=>"text/html"}
        irb(main):004:0> h.accept
        => "text/html"
    paul committed Jan 21, 2009
Commits on Jan 20, 2009
  1. Fixing the intermitent problems running thin from specs.

    Seems that Rspec does a lot of magic etc. and fork is "odd" within specs.
    The test server now starts up once for *every* spec, and is cleanly removed
    in an at_exit hook. This has the benfit that the specs should run a bit faster
    as well
    committed Jan 20, 2009
  2. Changing proxy_details spec to use mocks instead of mutating ENV dire…

    …ctly; making proxy_details private
    committed Jan 20, 2009
Commits on Jan 19, 2009