lib/waterdrop.rb in waterdrop-0.3.0 vs lib/waterdrop.rb in waterdrop-0.3.2

- old
+ new

@@ -1,47 +1,2 @@ -# External components -%w( - rake - rubygems - bundler - logger - pathname - json - kafka - forwardable - connection_pool - null_logger -).each { |lib| require lib } - -# Internal components -base_path = File.dirname(__FILE__) + '/water_drop' - -%w( - version - producer_proxy - pool - config - message -).each { |lib| require "#{base_path}/#{lib}" } - -# WaterDrop library -module WaterDrop - class << self - attr_writer :logger - - # @return [Logger] logger that we want to use - def logger - @logger ||= NullLogger.new - end - - # Sets up the whole configuration - # @param [Block] block configuration block - def setup(&block) - Config.setup(&block) - end - - # @return [WaterDrop::Config] config instance - def config - Config.config - end - end -end +# This file is used as a compatibility step +require 'water_drop'