Sha256: 668a2946e6f1ee3244f45da806fd049828bfbb6c8eb00b6a2d3398fd2b1ff890

Contents?: true

Size: 885 Bytes

Versions: 26

Compression:

Stored size: 885 Bytes

Contents

require 'rabbit_feed'
require_relative 'non_rails_app/event_handler'

EventRouting do
  accept_from('rails_app') do
    event('user_creates_beaver') do |event|
      NonRailsApp::EventHandler.handle_event event
    end
    event('user_updates_beaver') do |event|
      NonRailsApp::EventHandler.handle_event event
    end
    event('user_deletes_beaver') do |event|
      NonRailsApp::EventHandler.handle_event event
    end
  end
  accept_from('non_rails_app') do
    event('test_event') do |event|
    end
  end
end

EventDefinitions do
  define_event('application_acknowledges_event', version: '1.0.0') do
    defined_as do
      'An event has been acknowledged'
    end
    payload_contains do
      field('beaver_name', type: 'string', definition: 'The name of the beaver')
      field('event_name', type: 'string', definition: 'The name of the original event')
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
rabbit_feed-3.0.3 example/non_rails_app/lib/non_rails_app.rb
rabbit_feed-3.0.2 example/non_rails_app/lib/non_rails_app.rb
rabbit_feed-3.0.1 example/non_rails_app/lib/non_rails_app.rb
rabbit_feed-3.0.0 example/non_rails_app/lib/non_rails_app.rb
rabbit_feed-2.4.4 example/non_rails_app/lib/non_rails_app.rb
rabbit_feed-2.4.3 example/non_rails_app/lib/non_rails_app.rb
rabbit_feed-2.4.2 example/non_rails_app/lib/non_rails_app.rb
rabbit_feed-2.4.1 example/non_rails_app/lib/non_rails_app.rb
rabbit_feed-2.4.0 example/non_rails_app/lib/non_rails_app.rb
rabbit_feed-2.3.10 example/non_rails_app/lib/non_rails_app.rb
rabbit_feed-2.3.9 example/non_rails_app/lib/non_rails_app.rb
rabbit_feed-2.3.7 example/non_rails_app/lib/non_rails_app.rb
rabbit_feed-2.3.6 example/non_rails_app/lib/non_rails_app.rb
rabbit_feed-2.3.5 example/non_rails_app/lib/non_rails_app.rb
rabbit_feed-2.3.4 example/non_rails_app/lib/non_rails_app.rb
rabbit_feed-2.3.3 example/non_rails_app/lib/non_rails_app.rb
rabbit_feed-2.3.2 example/non_rails_app/lib/non_rails_app.rb
rabbit_feed-2.1.5 example/non_rails_app/lib/non_rails_app.rb
rabbit_feed-2.1.2 example/non_rails_app/lib/non_rails_app.rb
rabbit_feed-2.1.1 example/non_rails_app/lib/non_rails_app.rb