lib/dry/system/provider_sources/settings/loader.rb in dry-system-0.27.2 vs lib/dry/system/provider_sources/settings/loader.rb in dry-system-1.0.0.rc1
- old
+ new
@@ -24,15 +24,9 @@
def load_dotenv(root, env)
require "dotenv"
Dotenv.load(*dotenv_files(root, env)) if defined?(Dotenv)
rescue LoadError
- Dry::Core::Deprecations.announce(
- "Dry::System :settings provider now requires dotenv to to load settings from .env files`", # rubocop:disable Layout/LineLength
- "Add `gem \"dotenv\"` to your application's `Gemfile`",
- tag: "dry-system",
- uplevel: 3
- )
# Do nothing if dotenv is unavailable
end
def dotenv_files(root, env)
[