Sha256: d048d0748f0989cb82e066b72f4fc3a679e73f9e77328d4bf7ce2daaabfa81d2
Contents?: true
Size: 948 Bytes
Versions: 3
Compression:
Stored size: 948 Bytes
Contents
require 'uniform_notifier/base' require 'uniform_notifier/javascript_alert' require 'uniform_notifier/javascript_console' require 'uniform_notifier/growl' require 'uniform_notifier/xmpp' require 'uniform_notifier/rails_logger' require 'uniform_notifier/customized_logger' require 'uniform_notifier/airbrake' module UniformNotifier class NotificationError < StandardError; end class <<self attr_accessor :alert, :console, :growl, :rails_logger, :xmpp, :airbrake NOTIFIERS = [JavascriptAlert, JavascriptConsole, Growl, Xmpp, RailsLogger, CustomizedLogger, AirbrakeNotifier] def active_notifiers NOTIFIERS.select { |notifier| notifier.active? } end def growl=(growl) UniformNotifier::Growl.setup_connection(growl) end def xmpp=(xmpp) UniformNotifier::Xmpp.setup_connection(xmpp) end def customized_logger=(logdev) UniformNotifier::CustomizedLogger.setup(logdev) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
uniform_notifier-1.2.0 | lib/uniform_notifier.rb |
uniform_notifier-1.1.1 | lib/uniform_notifier.rb |
uniform_notifier-1.1.0 | lib/uniform_notifier.rb |