jeremytregunna/ruby-trello — pull request #2 by ben-biddington (2012-01-20 09:21:11+00:00)
Title: Authorization (basic + partial oauth)

Hi Jeremy,

Take a look and see what you think. Most of the changes are around client and how it authorizes and makes requests. I wanted it to be isolated from the network and authorization mechanisms.

I took it right back to clean slate, it only contains things that're actually used -- no extra verbs. I figure they'll come in the next piece you're doing.

Have added a basic authorizer for reads, and started on an oauth one, see `spec/oauth_policy_spec`. There is proof that basic authorization works in `spec/integration/how_to_authorize_spec`.

(You'll need to set some environment variables to get integration tests to pass.)