lib/water_drop.rb in waterdrop-1.4.4 vs lib/water_drop.rb in waterdrop-2.0.0.rc1

- old
+ new

@@ -1,42 +1,22 @@ # frozen_string_literal: true # External components # delegate should be removed because we don't need it, we just add it because of ruby-kafka %w[ - delegate - json - delivery_boy - singleton + concurrent/array dry-configurable dry/monitor/notifications dry-validation + rdkafka + json zeitwerk + securerandom ].each { |lib| require lib } # WaterDrop library module WaterDrop class << self - attr_accessor :logger - - # Sets up the whole configuration - # @param [Block] block configuration block - def setup(&block) - Config.setup(&block) - DeliveryBoy.logger = self.logger = config.logger - ConfigApplier.call(DeliveryBoy.config, Config.config.to_h) - end - - # @return [WaterDrop::Config] config instance - def config - Config.config - end - - # @return [::WaterDrop::Monitor] monitor that we want to use - def monitor - config.monitor - end - # @return [String] root path of this gem def gem_root Pathname.new(File.expand_path('..', __dir__)) end end