adhearsion/adhearsion — pull request #43 by juandebravo (2011-11-15 09:02:54+00:00)
Title: Feature/configuration

* Created classes BasicConfiguration (used as a wrapper that inherits from OpenStruct) and Configuration (specific Adhearsion configuration)

* Deprecated AHN_CONFIG and AHN_ROOT

* Added Adhearsion.config as the way to retrieve Adhearsion configuration. Adhearsion::Configuration.config still works but it's marked as deprecated. It can be deleted but we should change the application startup.rb template

* enable_{module} alias to load_{module}_configuration. module = [:rails, :database, :xmpp, :punchblock, :drb]

* ahnrc file logic keeps the same, not sure if we should deprecate that file and use startup.rb or a initializers folder

* Adhearsion.config.values return an Array list of configured keys

* Adhearsion.config accepts both method and Hash syntax to define config var