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 +5 -5
- data/lib/rabbit/message.rb +6 -4
- data/lib/rabbit/notification/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6d90ef0396ea73083c46afb2f3182bf255d9e3adc9bf27f27e8253d29ea77e20
|
4
|
+
data.tar.gz: 9e1a7ca7ee14bd6eac7c0785bcd5ac8b4292ca6443fa103f4d63a7454ca03121
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b6c9db8d76c23307a6ae825305746a4c3caca2b7d969049f51af2a746a5dc34c823791fd153e7d0f85e1420810bbfbab6b7e0842ffa2121172720c04942134d
|
7
|
+
data.tar.gz: f8b69f84b326ffb4aadc19e0503338b5724344c3516c69e12af23c961c1d6f38d77f8356cb90412427fa9caae1b99ca3b76e2ef7ce6a4688161ed7ae9cec1012
|
data/lib/rabbit/message.rb
CHANGED
@@ -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
|
15
|
+
def deliver(key)
|
14
16
|
start
|
15
|
-
exchange.publish(
|
17
|
+
exchange.publish(payload, routing_key: key)
|
16
18
|
end
|
17
19
|
|
18
20
|
def connection
|
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.
|
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:
|
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
|
174
|
+
rubygems_version: 2.7.6
|
175
175
|
signing_key:
|
176
176
|
specification_version: 4
|
177
177
|
summary: Send a Message to the Queue
|