configuration.rb in departure-4.0.1 vs configuration.rb in departure-5.0.0

- old
+ new

@@ -1,13 +1,14 @@ require 'yaml' +require 'erb' class Configuration - CONFIG_PATH = 'config.yml' + CONFIG_PATH = 'config.yml.erb'.freeze attr_reader :config def initialize - @config = YAML.load_file(CONFIG_PATH) + @config = YAML.load(ERB.new(File.read(CONFIG_PATH)).result).freeze end def [](key) config[key] end