1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234
|
# Changelog
[Unreleased changes](https://github.com/bkeepers/dotenv/compare/v2.4.0...master)
## 2.4.0 - Apr 23, 2018
This release reverts `Parse multiline values` ([#318](https://github.com/bkeepers/dotenv/pull/318), [#329](https://github.com/bkeepers/dotenv/pull/329)) due to a parsing regression that was discovered after the last release ([#336](https://github.com/bkeepers/dotenv/issues/336), [#339](https://github.com/bkeepers/dotenv/issues/339), [#341](https://github.com/bkeepers/dotenv/issues/341)).
[Full Changelog](https://github.com/bkeepers/dotenv/compare/v2.3.0...v2.4.0)
## 2.3.0 - Apr 19, 2018
* Skip over lines that don't set an envvars ([#291](https://github.com/bkeepers/dotenv/pull/291))
* Document the -f flag ([#310](https://github.com/bkeepers/dotenv/pull/310))
* Existing variable takes precendence when performing substitution ([#313](https://github.com/bkeepers/dotenv/pull/313))
* Parse multiline values ([#318](https://github.com/bkeepers/dotenv/pull/318), [#329](https://github.com/bkeepers/dotenv/pull/329))
* Fix load to respect existing environment variables over env file when doing variable interpolation ([#323](https://github.com/bkeepers/dotenv/pull/323))
* Add gem version badge to README.md ([#328](https://github.com/bkeepers/dotenv/pull/328))
* Rescue from bundler require error ([#330](https://github.com/bkeepers/dotenv/pull/330))
[Full Changelog](https://github.com/bkeepers/dotenv/compare/v2.2.2...v2.3.0)
## 2.2.2 - Apr 9, 2018
* Support Rails 5.2 ([#325](https://github.com/bkeepers/dotenv/pull/325))
[Full Changelog](https://github.com/bkeepers/dotenv/compare/v2.2.1...v2.2.2)
## 2.2.1 - Apr 28, 2017
* Support Rails 5.1 ([#299](https://github.com/bkeepers/dotenv/pull/299))
[Full Changelog](https://github.com/bkeepers/dotenv/compare/v2.2.0...v2.2.1)
## 2.2.0 - Jan 27, 2017
* Drop official support for Ruby 1.9, jruby, and Rubinius. They may continue to work, but tests are not run against them. ([#283](https://github.com/bkeepers/dotenv/pull/283))
* Allow leading and trailing whitespace ([#276](https://github.com/bkeepers/dotenv/pull/276), [#277](https://github.com/bkeepers/dotenv/pull/277))
* [dotenv-rails] Fix for rspec rake tasks initializing in development ([#241](https://github.com/bkeepers/dotenv/pull/241))
* [dotenv-rails] Allow a local file per environment, e.g. `.env.development.local` ([#281](https://github.com/bkeepers/dotenv/pull/281))
* [dotenv-rails] No longer load `.env.local` in rails' test environment ([#280](https://github.com/bkeepers/dotenv/pull/280))
[Full Changelog](https://github.com/bkeepers/dotenv/compare/v2.1.2...v2.2.0)
## 2.1.2 - Jan 16, 2017
* Fix parser to allow leading whitespace before variables ([#276](https://github.com/bkeepers/dotenv/pull/276))
* [dotenv-rails] Fix bug with `require "dotenv/rails-now"` in older versions of rails ([#269](https://github.com/bkeepers/dotenv/pull/269))
[Full Changelog](https://github.com/bkeepers/dotenv/compare/v2.1.1...v2.1.2)
## 2.1.1 - Mar 28, 2016
* Fix load error when using Spring w/ custom config ([#246](https://github.com/bkeepers/dotenv/pull/246))
[Full Changelog](https://github.com/bkeepers/dotenv/compare/v2.1.0...v2.1.1)
## 2.1.0 - Jan 13, 2016
* Relax dependency on `railties` to allow Rails 5.0 apps. ([#226](https://github.com/bkeepers/dotenv/pull/226))
* Fix scenario where some escaped `$` would not be unescaped. ([#222](https://github.com/bkeepers/dotenv/pull/222))
* Gracefully handle files with UTF-8 BOM ([#225](https://github.com/bkeepers/dotenv/pull/225))
[Full Changelog](https://github.com/bkeepers/dotenv/compare/v2.0.2...v2.1.0)
## 2.0.2 - June 19, 2015
* Support carriage returns in addition to newlines in .env ([#194](https://github.com/bkeepers/dotenv/pull/194))
* Add runtime dependency on rails 4 for dotenv-rails ([#189](https://github.com/bkeepers/dotenv/pull/189))
[Full Changelog](https://github.com/bkeepers/dotenv/compare/v2.0.1...v2.0.2)
## 2.0.1 - Apr 3, 2015
* Fix for expansion of escaped variables ([#181](https://github.com/bkeepers/dotenv/pull/181))
[Full Changelog](https://github.com/bkeepers/dotenv/compare/v2.0.0...v2.0.1)
## 2.0.0 - Mar 5, 2015
* `.env.local` and `.env.#{Rails.env}` will be automatically be loaded with the `dotenv-rails` gem.
* 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-rails` now 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.load` in Rails 4.1 before application is defined (#155)
[Full Changelog](https://github.com/bkeepers/dotenv/compare/v1.0.2...v2.0.0)
## 1.0.2 - Oct 14, 2014
* Define `#load` on `Dotenv::Railtie`, which can be called to manually load `dotenv` before Rails has initialized.
* add `dotenv/rails-now`, which can be required in the `Gemfile` to immediately load dotenv.
gem 'dotenv-rails', require: 'dotenv/rails-now'
gem 'gem-that-requires-env-variables'
[Full Changelog](https://github.com/bkeepers/dotenv/compare/v1.0.1...v1.0.2)
## 1.0.1 - Oct 4, 2014
* Fix load error with Spring when running `rails server` ([#140](https://github.com/bkeepers/dotenv/issues/140))
[Full Changelog](https://github.com/bkeepers/dotenv/compare/v1.0.0...v1.0.1)
## 1.0.0 - Oct 3, 2014
* dotenv-rails is now loaded during the `before_configuration` callback, which is fired when the `Application` constant 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](https://github.com/bkeepers/dotenv/pull/118))
* Fix deprecation warnings for `File.exists?` ([#121](https://github.com/bkeepers/dotenv/pull/121/))
* Use `Rails.root` to find `.env` ([#122](https://github.com/bkeepers/dotenv/pull/122/files))
* Avoid substitutions inside single quotes ([#124](https://github.com/bkeepers/dotenv/pull/124))
[Full Changelog](https://github.com/bkeepers/dotenv/compare/v0.11.1...v1.0.0)
## 0.11.1 - Apr 22, 2014
* Depend on dotenv-deployment ~>0.0.2, which fixes issues with 0.0.1
[Full Changelog](https://github.com/bkeepers/dotenv/compare/v0.11.0...v0.11.1)
## 0.11.0 - Apr 21, 2014
* Extract dotenv-deployment gem. https://github.com/bkeepers/dotenv-deployment
[Full Changelog](https://github.com/bkeepers/dotenv/compare/v0.10.0...v0.11.0)
## 0.10.0 - Feb 22, 2014
* Add support for executing interpolated commands. (Ruby >= 1.9 only)
HEAD_SHA=$(git rev-parse HEAD)
* Add `dotenv_role` option in Capistrano.
set :dotenv_role, [:app, web]
* Add `Dotenv.overload` to overwrite existing environment values.
[Full Changelog](https://github.com/bkeepers/dotenv/compare/v0.9.0...v0.10.0)
## 0.9.0 - Aug 29, 2013
* 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 `dotenv` executable to load `.env` for other scripts.
$ dotenv ./script.py
[Full Changelog](https://github.com/bkeepers/dotenv/compare/v0.8.0...v0.9.0)
## 0.8.0 - June 12, 2013
* Added a capistrano recipe to symlink in `.env` on deploy.
* Allow inline comments
VARIABLE=value # this is a comment
* Raises Dotenv::FormatError when parsing fails
[Full Changelog](https://github.com/bkeepers/dotenv/compare/v0.7.0...v0.8.0)
## 0.7.0 - April 15, 2013
* 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
[Full Changelog](https://github.com/bkeepers/dotenv/compare/v0.6.0...v0.7.0)
## 0.6.0 - Mar 22, 2013
* 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"
[Full Changelog](https://github.com/bkeepers/dotenv/compare/v0.5.0...v0.6.0)
## 0.5.0 - Jan 25, 2013
* Load immediately on require in Rails instead of waiting for initialization
* Add YAML-style variables
VARIABLE: some value
[Full Changelog](https://github.com/bkeepers/dotenv/compare/v0.4.0...v0.5.0)
## 0.4.0 - Nov 13, 2012
* Add support for quoted options, e.g.:
VARIABLE='some value'
* Fix rake deprecation warnings
[Full Changelog](https://github.com/bkeepers/dotenv/compare/v0.3.0...v0.4.0)
## 0.3.0 - Oct 25, 2012
* Avoid overriding existing ENV variables so values set before loading the app are maintained.
[Full Changelog](https://github.com/bkeepers/dotenv/compare/v0.2.0...v0.3.0)
|