dotenv-rails breaking changes
dotenv-rails 3.0.0 (February 12, 2024) is its newest release with breaking changes, 5 of them. The first: dotenv-rails 3.0.0 requires Ruby 3.0 or later. Every breaking API change we have recorded in dotenv-rails on RubyGems: 15 breaking changes in 6 versions. Below, its 6 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 3.2.0. Source repository
Its 3.0.0 release requires Ruby 3.0 or later. Ruby end of life dates.
- From 2.0.0 to 3.0.0: 5 breaking changes in 1 version.
- From 0.7.0 to 3.0.0: 14 breaking changes in 5 versions.
dotenv-rails 3.0.0 breaking changes
- Removed
Ruby 3.0 or later is now required. Users on older Ruby must stay on dotenv 2.x. github.com - Renamed
dotenv.load
Code subscribing to the dotenv.load ActiveSupport::Notifications event must subscribe to load.dotenv instead. github.com - Behavior changed
ENV changes made in ActiveSupport::TestCase and RSpec tests are now reset automatically after each test. github.com - Behavior changed
Use real line breaks in multi-line strings, or set DOTENV_LINEBREAK_MODE=legacy to keep the old behavior. github.com - Behavior changed
Dotenv.Rails.overload
Files now override in this order: .env.development.local, then .env.local, then .env.development, then .env. github.com
dotenv-rails 2.0.0 breaking changes
- Removed
dotenv-rails now only supports Rails 4. Rails 3 users must configure dotenv manually. github.com - Removed
Ruby 1.8.7 and REE are no longer officially supported and are no longer tested. Ruby 1.8 users should lock the gem to a version at or below 1.1. github.com - Behavior changed
The dotenv-rails gem now automatically loads the .env.local and .env.#{Rails.env} files. Check that these files do not change settings your application already relies on. github.com
dotenv-rails 1.0.0 breaking changes
- Removed
Deprecated features were removed in this release. Upgrade to 0.11.0 and fix deprecation warnings before moving to 1.0.0. github.com - Behavior changed
The .env file is now located using Rails.root, so its location may change for some apps. github.com - Behavior changed
Variables inside single quotes are no longer substituted, so check values that relied on substitution there. github.com
dotenv-rails 0.11.0 breaking changes
- Removed
Deployment functionality is no longer part of dotenv-rails and now lives in the dotenv-deployment gem. Users who relied on it must add that gem to their project. github.com
dotenv-rails 0.8.0 breaking changes
- Behavior changed
Text after a value and a # is now treated as a comment, so values that contained a # after a space are shortened. Remove or escape such characters in existing values. github.com - Behavior changed
Dotenv.FormatError
Parsing a malformed .env file now raises Dotenv::FormatError instead of continuing silently. Code that loads untrusted or malformed files should rescue this error. github.com
dotenv-rails 0.7.0 breaking changes
- Removed
The deprecated autoloading behavior is removed in this release. Upgrade to 0.6 first and fix any warnings before moving to 0.7. github.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.