Sha256: da74581e89392dd0242ae73969ba755e379ae9cdb55aaa842ac46d81f998d4e4
Contents?: true
Size: 1.01 KB
Versions: 5
Compression:
Stored size: 1.01 KB
Contents
require 'msgr/version' require 'active_support' require 'active_support/core_ext/object/blank' require 'active_support/core_ext/module/delegation' require 'active_support/core_ext/string/inflections' require 'active_support/core_ext/hash/reverse_merge' require 'active_support/core_ext/hash/keys' require 'msgr/logging' require 'msgr/client' require 'msgr/connection' require 'msgr/consumer' require 'msgr/dispatcher' require 'msgr/errors' require 'msgr/message' require 'msgr/route' require 'msgr/routes' require 'msgr/railtie' if defined? Rails module Msgr class << self attr_writer :client, :config delegate :publish, to: :client def config @config ||= {} end def client @client ||= Msgr::Client.new config end def logger if @logger.nil? @logger = Logger.new $stdout @logger.level = Logger::Severity::INFO end @logger end def logger=(logger) @logger = logger end def start client.start client end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
msgr-0.9.0 | lib/msgr.rb |
msgr-0.8.0 | lib/msgr.rb |
msgr-0.7.0 | lib/msgr.rb |
msgr-0.6.0 | lib/msgr.rb |
msgr-0.5.0 | lib/msgr.rb |