customerio/customerio-ruby — pull request #5 by olery (2012-08-22 15:53:36+00:00)
Title: Backward compatible change in configuration using initialzers

In order to use CustomerIO gem in a rails project, I altered the way you can do the configuration. In the new way you can configure CustomerIO using a a configuration object instead of using a global variable (which is not common in rails land).

Example:

config/initializers/customerio.rb

Customerio.configure do |config|
config.api_key = "API_KEY"
config.site_id = "SITE_ID"
end

In the app you can then do:

client = Customerio::Client.new

Tests, and documentation have been updated.