lib/dry/system/components.rb in dry-system-0.22.0 vs lib/dry/system/components.rb in dry-system-0.23.0
- old
+ new
@@ -1,8 +1,12 @@
# frozen_string_literal: true
-require "dry/system"
+require "dry/core/deprecations"
-Dry::System.register_provider(
- :system,
- boot_path: Pathname(__dir__).join("system_components").realpath
+Dry::Core::Deprecations.announce(
+ "require \"dry/system/components\"",
+ "Use `require \"dry/system/provider_sources\"` instead",
+ tag: "dry-system",
+ uplevel: 1
)
+
+require_relative "provider_sources"