mumukit-nuntius 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b628114d5d75791ab061e91e54dd671775a51adb
4
- data.tar.gz: e95e22d470c59814979b35f08d973fb1e7423bd9
3
+ metadata.gz: 631b1a56823a7ccf85d2b811838832f44b75e961
4
+ data.tar.gz: 9ce9b4d77f9f5f3e8929a5c81ab0f45435d31bb1
5
5
  SHA512:
6
- metadata.gz: 57bf24d1e930f9eaa29896841a9b77ff3109dbbd8e1ae148831dff174b8a3ea06ed6317dd7e953fef981d0a66115e9845a52474033fd752fb85a91d0cbecb284
7
- data.tar.gz: 4d19fff2f09fdc3f539474b74b484d3e8a0c662aeb9193521a5817f8b02cc500781d1dbb0752f54aa38127787cc2adc04e487971a8b51dfa114374fbb9e37bd6
6
+ metadata.gz: ab9d4105761b671b67e4398a39ff9a1f617451d7fb6415dcd61920c035bee47f485b43ff84af60108ca0d790bd2e5a740cd02ad81a049b8bb511e6c8a0e24a8d
7
+ data.tar.gz: d8c9b9278b0f7732ab27f1ad550a854b58a72a888fd9ef552f6aa2cfdf35df6580044a44dc6bc84a6237c99171e914604dcc3ac26fbab0672ac0382519bca382
@@ -6,7 +6,7 @@ module Mumukit::Nuntius::EventConsumer
6
6
  Mumukit::Nuntius::Consumer.start "#{name}-events", 'events' do |_delivery_info, properties, body|
7
7
  next if body['sender'] == Mumukit::Nuntius.config.app_name
8
8
  begin
9
- choose_event(name, properties).execute!(body['data'], body['action'])
9
+ choose_event(name, properties).execute!(body['data'])
10
10
  rescue NoMethodError => e
11
11
  log_exception(name, properties, e)
12
12
  rescue NameError => e
@@ -2,9 +2,9 @@ module Mumukit::Nuntius::EventPublisher
2
2
 
3
3
  class << self
4
4
 
5
- def publish(event, payload, action='')
6
- payload.merge!(sender: Mumukit::Nuntius.config.app_name)
7
- Mumukit::Nuntius::Publisher.publish "events", { data: payload, action: action }, { type: event }
5
+ def publish(event, payload)
6
+ payload.merge!(sender: ENV['MUMUKI_APPLICATION_NAME'])
7
+ Mumukit::Nuntius::Publisher.publish "events", { data: payload }, { type: event }
8
8
  end
9
9
 
10
10
  end
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Nuntius
3
- VERSION = '2.1.0'
3
+ VERSION = '2.1.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumukit-nuntius
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Agustin Pina