Sha256: f3b28e8b582ff48d35ead7cd8ca0f0b6618fcb8ed0418110ea9bf271ac4440db

Contents?: true

Size: 674 Bytes

Versions: 1

Compression:

Stored size: 674 Bytes

Contents

require 'nokogiri'
require 'open-uri'
require 'tzinfo'
require 'unicode_utils/upcase'
require 'unicode_utils/downcase'
require 'forwardable'
require 'log4r'
require 'require_all'

require_rel 'wasserstand'

module Wasserstand
  AmbigousNameError = Class.new(StandardError)

  class << self
    attr_writer :provider

    def provider
      @provider ||= Provider::PegelOnline.new
    end

    def logger
      @logger ||= Log4r::Logger.new(self.name).tap do |logger|
        out = Log4r::Outputter.stderr
        out.formatter = Log4r::PatternFormatter.new(:pattern => "%l: %m")
        logger.outputters = out
        logger.level = Log4r::WARN
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wasserstand-0.0.10 lib/wasserstand.rb