lib/water_drop.rb in waterdrop-1.0.1 vs lib/water_drop.rb in waterdrop-1.2.0.beta1

- old
+ new

@@ -3,11 +3,13 @@ # External components %w[ json delivery_boy null_logger + singleton dry-configurable + dry/monitor/notifications dry-validation ].each { |lib| require lib } # Internal components base_path = File.dirname(__FILE__) + '/water_drop' @@ -42,18 +44,25 @@ # @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('../..', __FILE__)) end end end %w[ version + instrumentation/monitor + instrumentation/listener schemas/message_options schemas/config config errors base_producer