Sha256: f77548832fb09eecf044ae0b4cdc5c7e301b3a0da0c7d1587443da71d127bf8a

Contents?: true

Size: 389 Bytes

Versions: 9

Compression:

Stored size: 389 Bytes

Contents

require 'logger'
require 'ostruct'

module Embedly
  VERSION = File.read(File.expand_path('../../VERSION', __FILE__)).strip
  Config = OpenStruct.new

  def self.logger(name)
    @_loggers ||= {}
    logging = Embedly::Config.logging
    logger = @_loggers[name] ||= Logger.new(STDERR)
    logger.level = logging ? Logger::DEBUG : Logger::ERROR
    logger
  end
end

require 'embedly/api'

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
embedly-1.1.0 lib/embedly.rb
embedly-1.0.0 lib/embedly.rb
embedly-0.4.0 lib/embedly.rb
embedly-0.3.3 lib/embedly.rb
embedly-0.3.2 lib/embedly.rb
embedly-0.3.1 lib/embedly.rb
embedly-0.3.0 lib/embedly.rb
embedly-0.2.0 lib/embedly.rb
embedly-0.1.0 lib/embedly.rb