Sha256: 6cfcc26e26bc0d9c4cf505060d8eabe419e66e076289b18f900fdb1876e47045

Contents?: true

Size: 397 Bytes

Versions: 13

Compression:

Stored size: 397 Bytes

Contents

# frozen_string_literal: true

# ActiveSupport::Notifications will fail if concurrent isn't loaded
require 'concurrent'
require 'active_support/notifications'
require 'cased/publishers/base'

module Cased
  module Publishers
    class ActiveSupportPublisher < Base
      def publish(event)
        ::ActiveSupport::Notifications.instrument('event.cased', event: event)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
cased-ruby-0.5.2 lib/cased/publishers/active_support_publisher.rb
cased-ruby-0.5.1 lib/cased/publishers/active_support_publisher.rb
cased-ruby-0.5.0 lib/cased/publishers/active_support_publisher.rb
cased-ruby-0.4.8 lib/cased/publishers/active_support_publisher.rb
cased-ruby-0.4.7 lib/cased/publishers/active_support_publisher.rb
cased-ruby-0.4.6 lib/cased/publishers/active_support_publisher.rb
cased-ruby-0.4.5 lib/cased/publishers/active_support_publisher.rb
cased-ruby-0.4.4 lib/cased/publishers/active_support_publisher.rb
cased-ruby-0.4.3 lib/cased/publishers/active_support_publisher.rb
cased-ruby-0.4.2 lib/cased/publishers/active_support_publisher.rb
cased-ruby-0.4.1 lib/cased/publishers/active_support_publisher.rb
cased-ruby-0.4.0 lib/cased/publishers/active_support_publisher.rb
cased-ruby-0.3.3 lib/cased/publishers/active_support_publisher.rb