Releases: bkeepers/dotenv
Releases · bkeepers/dotenv
3.1.4
What's Changed
- Fix an error when only the
Spring::Client
is loaded by @alpaca-tc in #512
New Contributors
- @alpaca-tc made their first contribution in #512
Full Changelog: v3.1.3...v3.1.4
3.1.3
What's Changed
- Only use Spring if already loaded by @runephilosof-abtion in #511
- Doc Updates:
- Spell out 'FILENAME' in readme by @mikegee in #505
- Provide a 'Changelog' link on rubygems.org/gems/dotenv by @mark-young-atg in #506
- README.md: typo "exiting" by @olleolleolle in #508
- cleanup: Run standard:fix by @olleolleolle in #509
New Contributors
- @mikegee made their first contribution in #505
- @mark-young-atg made their first contribution in #506
- @olleolleolle made their first contribution in #508
- @runephilosof-abtion made their first contribution in #511
Full Changelog: v3.1.2...v3.1.3
3.1.2
3.1.1
What's Changed
- Require version file so VERSION is available by @javierjulio in #495
- Fix template (-t) handling of multi-line variables by @maxjacobson in #502
- Guard against restore being called with no previously saved state by @bkeepers in #503
New Contributors
- @javierjulio made their first contribution in #495
- @maxjacobson made their first contribution in #502
Full Changelog: v3.1.0...v3.1.1
3.1.0
What's Changed
- Fix regression with semantic-logger, allow setting custom logger by @bkeepers in #494
# config/application.rb # Set a custom dotenv logger Dotenv::Rails.logger = MyCustomLogger.new module YourApp class Application < Rails::Application # … end end
Full Changelog: v3.0.3...v3.1.0
v3.0.3
What's Changed
- Solve circular require warning by @martijnbolhuis in #491
- Use tagged logger already configured on Rails by @kriansa in #489
- Fix exception on startup for Rails 7.1.0 by @bkeepers and @zspencer in #492
New Contributors
- @zspencer made their first contribution in #492
- @martijnbolhuis made their first contribution in #491
- @kriansa made their first contribution in #489
Full Changelog: v3.0.2...v3.0.3
3.0.2
3.0.1
3.0.0
See #476 for more details and to discuss this release.
Breaking Changes
- Ruby >= 3.0 and Rails >= 6.1 are now required. Lock dotenv to
~> 2.0
if you are using an outdated Ruby or Rails version. #466, #471 \n
is no longer expanded into a newline in quoted strings. Use multi-line strings with real line breaks, or setDOTENV_LINEBREAK_MODE=legacy
to preserve the old behavior. @nitsujri #423ENV
will be automatically restored between tests (ActiveSupport::TestCase
andRspec
). #472, #475- Fixed precedence when using
Dotenv::Rails.overload
. So now.env.development.local
will overwrite.env.local
, which will overwrite.env.development
, which will overwrite.env
. @eriklovmo - #460 - The instrumentation event
dotenv.load
has been renamed toload.dotenv
to properly make use of namespaces in ActiveSupport::Notifications #472
Other improvements
- All changes to ENV will be logged in Rails apps. #473
- Fixed an issue where
rake
loaded development files (.env*development
) for test-related tasks. #470 - Add
-i
/--ignore
option todotenv
CLI to optionally ignore missing files. @stevenharman #463 - You can customize which files get loaded by setting
Dotenv::Rails.files
. #468
Deprecations
- The
dotenv-rails
gem is now superfluous. It's not technically deprecated yet and will continue to work, but thedotenv
gem does the same thing. #468 Dotenv::Railtie
has been deprecated. UseDotenv::Rails
. #468Dotenv.overload
has been replaced withoverwrite
.overload
will still work and is not technically deprecated, but documentation refers toDotenv.overwrite
now. #469
New Contributors
- @stevenharman made their first contribution in #463
- @eriklovmo made their first contribution in #460
- @nitsujri made their first contribution in #423
Full Changelog: v2.8.1...v3.0.0.beta
3.0.0.beta
Breaking Changes
- Ruby >= 3.0 and Rails >= 6.1 are now required. Lock dotenv to
~> 2.0
if you are using an outdated Ruby or Rails version. #466, #471 \n
is no longer expanded into a newline in quoted strings. Use multi-line strings with real line breaks, or setDOTENV_LINEBREAK_MODE=legacy
to preserve the old behavior. @nitsujri #423ENV
will be automatically restored between tests (ActiveSupport::TestCase
andRspec
). #472, #475- Fixed precedence when using
Dotenv::Rails.overload
. So now.env.development.local
will overwrite.env.local
, which will overwrite.env.development
, which will overwrite.env
. @eriklovmo - #460 - The instrumentation event
dotenv.load
has been renamed toload.dotenv
to properly make use of namespaces in ActiveSupport::Notifications #472
Other improvements
- All changes to ENV will be logged in Rails apps. #473
- Fixed an issue where
rake
loaded development files (.env*development
) for test-related tasks. #470 - Add
-i
/--ignore
option todotenv
CLI to optionally ignore missing files. @stevenharman #463 - You can customize which files get loaded by setting
Dotenv::Rails.files
. #468
Deprecations
- The
dotenv-rails
gem is now superfluous. It's not technically deprecated yet and will continue to work, but thedotenv
gem does the same thing. #468 Dotenv::Railtie
has been deprecated. UseDotenv::Rails
. #468Dotenv.overload
has been replaced withoverwrite
.overload
will still work and is not technically deprecated, but documentation refers toDotenv.overwrite
now. #469
New Contributors
- @stevenharman made their first contribution in #463
- @eriklovmo made their first contribution in #460
- @nitsujri made their first contribution in #423
Full Changelog: v2.8.1...v3.0.0.beta