lib/rack/env.rb in rack-env-0.1.2 vs lib/rack/env.rb in rack-env-0.1.3
- old
+ new
@@ -28,11 +28,11 @@
end
def read_env_file(envfile)
::File.readlines(envfile).each {|line|
next if line.chomp == "" || line =~ /^#/
- key, value = line.chomp.split('=')
- ENV[key] = value
+ parts = line.chomp.split('=')
+ ENV[parts[0]] = parts[1..-1].join('=')
} if ::File.exist?(envfile)
end
end
end