fde-rabbit-notification 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 88b271fc84719a643c4aa88d073cdde9273f9d37
4
- data.tar.gz: a1748ef7b8c06551283f644f0fc9aff7336d4ae7
2
+ SHA256:
3
+ metadata.gz: 6d90ef0396ea73083c46afb2f3182bf255d9e3adc9bf27f27e8253d29ea77e20
4
+ data.tar.gz: 9e1a7ca7ee14bd6eac7c0785bcd5ac8b4292ca6443fa103f4d63a7454ca03121
5
5
  SHA512:
6
- metadata.gz: c705ed2ffd978725efdcd3c7fb392a33fcfe71f49ee3b0af21af1a64b8cd4a3a1ea8488e570179410e8abaff78ba082f390745511c248713e9eccd2f7496f34b
7
- data.tar.gz: ba84f434a807dce4e21d9a9af1790233cd8864321582667c6ec8f7d79be878d9eb5726dda0d05a67c5ac7583645d8dac54ae18f8cd99fa9754123774f596490c
6
+ metadata.gz: 8b6c9db8d76c23307a6ae825305746a4c3caca2b7d969049f51af2a746a5dc34c823791fd153e7d0f85e1420810bbfbab6b7e0842ffa2121172720c04942134d
7
+ data.tar.gz: f8b69f84b326ffb4aadc19e0503338b5724344c3516c69e12af23c961c1d6f38d77f8356cb90412427fa9caae1b99ca3b76e2ef7ce6a4688161ed7ae9cec1012
@@ -4,15 +4,17 @@ module FDE
4
4
  attr_accessor :conneciton,
5
5
  :channel,
6
6
  :exchange,
7
- :name
7
+ :name,
8
+ :payload
8
9
 
9
- def initialize(exchange_name)
10
+ def initialize(payload, exchange_name)
11
+ @payload = payload
10
12
  @name = exchange_name
11
13
  end
12
14
 
13
- def send(message, key)
15
+ def deliver(key)
14
16
  start
15
- exchange.publish(message, routing_key: key)
17
+ exchange.publish(payload, routing_key: key)
16
18
  end
17
19
 
18
20
  def connection
@@ -1,7 +1,7 @@
1
1
  module FDE
2
2
  module Rabbit
3
3
  module Notification
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.0"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fde-rabbit-notification
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Langenegger
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-13 00:00:00.000000000 Z
11
+ date: 2019-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
171
  version: '0'
172
172
  requirements: []
173
173
  rubyforge_project:
174
- rubygems_version: 2.6.8
174
+ rubygems_version: 2.7.6
175
175
  signing_key:
176
176
  specification_version: 4
177
177
  summary: Send a Message to the Queue