eshq/eshq-gem — pull request #2 by bittersweet (2012-09-17 08:44:10+00:00)
Title: Make settings configurable from Ruby as well

This is my first version of making the url, key and secret settings directly configurable next to setting ENV variables. I wanted to see what you thought before continuing :-)

``` ruby
ESHQ.configure do |config|
config.url = 'http://example.com'
config.key = 'key'
config.secret = 'secret'
end
```

I tried to follow the existing code style but we can probably wrap every method in `eshq.rb` in the `class << self`.

The check to make sure every ENV variable is present is removed for now, we will need to check that when we notice the user has not configured it via Ruby yet.