mattmueller/foursquare2 — pull request #41 by kellym (2012-09-09 21:17:55+00:00)
Title: Allows configuring at the class level

This adds the ability to keep configuration logic in an initializer to avoid passing in a client_id and client_secret every time a new Foursquare2::Client object is created, especially since Foursquare allows developers to access their API without an Oauth token. In addition, I think SSL and middleware configuration should be kept out of controllers and models.

I've created some tests around this feature as well. Usage is pretty self-explanatory:
```ruby
Foursquare2.configure do |config|
config.client_id = 'awesome'
config.client_secret = 'sauce'
config.api_version = 5551234
config.connection_middleware = [:middleware]
config.ssl = {:ca_file => 'path_to_ca_file'}
end
```