Sha256: aa1fb9439e3baa76e557e2d914ef4f5f3b4d46c4fc8f0130b09baa98e023da08

Contents?: true

Size: 1.12 KB

Versions: 3

Compression:

Stored size: 1.12 KB

Contents

# frozen_string_literal: true

require "securerandom"

require "spicery"
require "stenotype/version"

require "stenotype/adapters"
require "stenotype/dispatcher"
require "stenotype/configuration"
require "stenotype/context_handlers"
require "stenotype/event"
require "stenotype/event_serializer"
require "stenotype/emitter"

#
# A top level namespace for the freshly-events gem
#
module Stenotype
  # A wrapper class for Stenotype specific errors
  class Error < StandardError; end
  # This exception is being raised upon unsuccessful publishing of an event.
  class MessageNotPublishedError < Error; end
  # This exception is being raised in case no targets are
  # specified {Stenotype::Configuration}.
  class NoTargetsSpecifiedError < Error; end
  # This exception is being raised upon using a context handler which
  # has never been registered in known handlers in {Stenotype::ContextHandlers::Collection}.
  class UnknownHandlerError < Error; end

  include Directive::ConfigDelegation
  delegates_to_configuration
end

Stenotype::ContextHandlers.register(Stenotype::ContextHandlers::Klass)

require "stenotype/railtie" if defined?(Rails)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stenotype-0.1.13 lib/stenotype.rb
stenotype-0.1.12 lib/stenotype.rb
stenotype-0.1.10 lib/stenotype.rb