FlexConf is a simple configuration utility that does its job and gets out of your way. It reads settings from a hash or YAML file ('config.yml' by default) but allows overrides from a '*_local.yml' file and from environment variables. Settings can be read as indifferent hash values (config['foo'] or config[:foo]) or method calls (config.foo) with recursive nesting (config.foo.bar). The code is lightweight and fast with no additional dependencies.
Gemfile gem 'flexconf', '~> 0.2.1'
install gem install flexconf