README.md in dotenv-rails-3.0.3 vs README.md in dotenv-rails-3.1.0

- old
+ new

@@ -52,11 +52,11 @@ ```ruby require 'dotenv' Dotenv.load('file1.env', 'file2.env') ``` -## Autorestore in tests +### Autorestore in tests Since 3.0, dotenv in a Rails app will automatically restore `ENV` after each test. This means you can modify `ENV` in your tests without fear of leaking state to other tests. It works with both `ActiveSupport::TestCase` and `Rspec`. To disable this behavior, set `config.dotenv.autorestore = false` in `config/application.rb` or `config/environments/test.rb`. It is disabled by default if your app uses [climate_control](https://github.com/thoughtbot/climate_control) or [ice_age](https://github.com/dpep/ice_age_rb). @@ -179,9 +179,11 @@ Available options: * `Dotenv::Rails.files` - list of files to be loaded, in order of precedence. * `Dotenv::Rails.overwrite` - Overwrite exiting `ENV` variables with contents of `.env*` files +* `Dotenv::Rails.logger` - The logger to use for dotenv's logging. Defaults to `Rails.logger` +* `Dotenv::Rails.autorestore` - Enable or disable [autorestore](#autorestore-in-tests) ### Multi-line values Multi-line values with line breaks must be surrounded with double quotes.