lib/rack/env.rb in rack-env-0.0.3 vs lib/rack/env.rb in rack-env-0.1.0

- old
+ new

@@ -2,11 +2,10 @@ require "rack/env/version" module Rack class Env - def initialize(app, options = {}) @app = app @options = options end @@ -28,9 +27,10 @@ ::File.join(Dir.getwd, '.env') end def read_env_file(envfile) ::File.readlines(envfile).each {|line| + next if line.chomp == "" || line =~ /^#/ key, value = line.chomp.split('=') ENV[key] = value } if ::File.exist?(envfile) end end