lib/rack_environment.rb in rack-environment-1.1.0 vs lib/rack_environment.rb in rack-environment-1.2.0

- old
+ new

@@ -10,10 +10,16 @@ def call(env) update_environment! app.call(env) end + def update_environment! + environment.each do |key, value| + ENV[key] = value + end + end + private ###################################################################### def default_config_file File.join(Dir.getwd, 'config', 'environment.yml') end @@ -33,14 +39,8 @@ end def read_config_file(filename) config = YAML::load_file(filename) config.is_a?(Hash) ? config : {} - end - - def update_environment! - environment.each do |key, value| - ENV[key] = value - end end end