stripe/stripe-ruby — pull request #41 by cowboyd (2012-09-18 14:23:10+00:00)
Title: Enable standard rails configuration mechanism

Whenever the stripe gem is required inside a
modern Rails environment, it will extend the
standard configuration with a `stripe` attribute
which can be used to set stripe parameters as
part of the standard Rails initialization process.

This makes it much easier to override config
parameters in a per-environment fashion. As well
as make stripe configurable by other railties and
engines.

e.g. development.rb:
config.stripe.api_base = 'http://localhost:3002'
config.stripe.verify_ssl_certs = false
config.stripe.api_key = 'DEV_KEY'

production.rb:
config.stripe.api_key = 'PRODUCTION_KEY'

## Testing Question

I didn't check in my testcase for this since it involves basically stubbing out the whole rails engine which is quite a bit more code than the railtie itself. Not sure how you feel about it faking it, or if you want to test it with a separate process that bring in rails or what.