- Support charriage returns in addition to newlines in .env (#194)
- Add runtime dependency on rails 4 for dotenv-rails (#189)
- Fix for expansion of escaped variables (#181)
-
.env.localand.env.#{Rails.env}will be automatically be loaded with thedotenv-railsgem. -
Drop official support for Ruby 1.8.7 and REE. They may still continue to work, but will not be tested against. Lock to version "<= 1.1" if you are using Ruby 1.8.
-
dotenv-railsnow only supports Rails 4. Manually configure dotenv if you are using Rails 3. -
Support -f option to dotenv executable
dotenv -f /path/to/.env,/path/to/another/.env -
Fix issue calling
Dotenv::Railtie.loadin Rails 4.1 before application is defined (#155)
-
Define
#loadonDotenv::Railtie, which can be called to manually loaddotenvbefore Rails has initialized. -
add
dotenv/rails-now, which can be required in theGemfileto immediately load dotenv.gem 'dotenv-rails', :require => 'dotenv/rails-now' gem 'gem-that-requires-env-variables'
- Fix load error with Spring when running
rails server(#140)
-
dotenv-rails is now loaded during the
before_configurationcallback, which is fired when theApplicationconstant is defined (class Application < Rails::Application). -
Remove deprecated features. Upgrade to 0.11.0 and fix deprecation warnings before upgrading to 1.0.0.
-
Watch .env for changes with Spring in Rails 4 (#118)
-
Fix deprecation warnings for
File.exists?(#121) -
Use
Rails.rootto find.env(#122) -
Avoid substitutions inside single quotes (#124)
- Depend on dotenv-deployment ~>0.0.2, which fixes issues with 0.0.1
- Extract dotenv-deployment gem. https://github.com/bkeepers/dotenv-deployment
-
Add support for executing interpolated commands. (Ruby >= 1.9 only)
HEAD_SHA=$(git rev-parse HEAD) -
Add
dotenv_roleoption in Capistrano.set :dotenv_role, [:app, web] -
Add
Dotenv.overloadto overwrite existing environment values.
-
Add support for variable expansion.
HOST="example.com" URL="http://${USER}@${HOST}" ESCAPED_VARIABLE="this is \$NOT replaced" -
Allow setting variables without a value.
BLANK= -
Add
dotenvexecutable to load.envfor other scripts.$ dotenv ./script.py
-
Added a capistrano recipe to symlink in
.envon deploy. -
Allow inline comments
VARIABLE=value # this is a comment -
Raises Dotenv::FormatError when parsing fails
-
Remove deprectated autoloading. Upgrade to 0.6 first and fix any warnings.
-
Add Dotenv.load! which raises Errno::ENOENT if the file does not exist
-
Add dotenv-rails gem for autoloading in a Rails app
-
Deprecated autoloading with plain dotenv gem
-
Support for double quotes
A="some value" B="with \"escaped\" quotes" C="and newline\n expansion" -
Support for pow-style variables prefixed with export
export VARIABLE="some value"
-
Load immediately on require in Rails instead of waiting for initialization
-
Add YAML-style variables
VARIABLE: some value
-
Add support for quoted options, e.g.:
VARIABLE='some value' -
Fix rake deprecation warnings
- Avoid overriding existing ENV variables so values set before loading the app are maintained.