Module: RailsEventStore

Defined in:
lib/rails_event_store/all.rb,
lib/rails_event_store/client.rb,
lib/rails_event_store/browser.rb,
lib/rails_event_store/railtie.rb,
lib/rails_event_store/version.rb,
lib/rails_event_store/middleware.rb,
lib/rails_event_store/json_client.rb,
lib/rails_event_store/link_by_metadata.rb,
lib/rails_event_store/active_job_scheduler.rb,
lib/rails_event_store/async_handler_helpers.rb,
lib/rails_event_store/after_commit_dispatcher.rb,
lib/generators/rails_event_store/rspec_generator.rb,
lib/rails_event_store/active_job_id_only_scheduler.rb,
lib/rails_event_store/after_commit_async_dispatcher.rb,
lib/generators/rails_event_store/test_unit_generator.rb,
lib/generators/rails_event_store/bounded_context_generator.rb

Defined Under Namespace

Modules: AsyncHandler, AsyncHandlerJobIdOnly, CorrelatedHandler, Generators Classes: ActiveJobIdOnlyScheduler, ActiveJobScheduler, AfterCommitAsyncDispatcher, AfterCommitDispatcher, Browser, Client, JSONClient, LinkByCausationId, LinkByCorrelationId, LinkByEventType, LinkByMetadata, Middleware, Railtie

Constant Summary collapse

DEPRECATED_CONSTANTS =
{
  Event: RubyEventStore::Event,
  InMemoryRepository: RubyEventStore::InMemoryRepository,
  Subscriptions: RubyEventStore::Subscriptions,
  Projection: RubyEventStore::Projection,
  WrongExpectedEventVersion: RubyEventStore::WrongExpectedEventVersion,
  InvalidExpectedVersion: RubyEventStore::InvalidExpectedVersion,
  IncorrectStreamData: RubyEventStore::IncorrectStreamData,
  EventNotFound: RubyEventStore::EventNotFound,
  SubscriberNotExist: RubyEventStore::SubscriberNotExist,
  InvalidHandler: RubyEventStore::InvalidHandler,
  InvalidPageStart: RubyEventStore::InvalidPageStart,
  InvalidPageStop: RubyEventStore::InvalidPageStop,
  InvalidPageSize: RubyEventStore::InvalidPageSize,
  CorrelatedCommands: RubyEventStore::CorrelatedCommands,
  GLOBAL_STREAM: RubyEventStore::GLOBAL_STREAM,
  PAGE_SIZE: RubyEventStore::PAGE_SIZE,
  ImmediateAsyncDispatcher: RubyEventStore::ImmediateAsyncDispatcher,
}.freeze
VERSION =
"2.19.1"

Class Method Summary collapse

Class Method Details

.const_missing(name) ⇒ Object



37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/rails_event_store/all.rb', line 37

def self.const_missing(name)
  if DEPRECATED_CONSTANTS.key?(name)
    warn <<~EOW
      RailsEventStore::#{name} is deprecated and will be removed in the next major release.

      Use RubyEventStore::#{name} instead.
    EOW
    DEPRECATED_CONSTANTS.fetch(name)
  else
    super
  end
end