ElmerFudd 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ElmerFudd/publisher.rb +2 -2
- data/lib/ElmerFudd/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80a3673d88fbbefb0b836577e6d2ffccc8c11afb
|
4
|
+
data.tar.gz: 5892d35a62e42ea5cef5d881062cd5e5399207a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc6ba8d532aa4753b2b153dc4aefc22e6aab5a783590362a035527cbd179f57b7ef24c978ce2c507f76f6980f2d88e81fcdc02e0a149210a6a5139a595ca11f7
|
7
|
+
data.tar.gz: 6299bdbf7464dd75a2dfb2636b020d6792f6e58a2b779ddf2b0c3b00f399a44255ae6321b308ef1c24e7083acd46d7abd4ee6b48a84fb5f3e58ccfe34be3d584
|
data/lib/ElmerFudd/publisher.rb
CHANGED
@@ -38,7 +38,7 @@ module ElmerFudd
|
|
38
38
|
def notify(topic_exchange, routing_key, payload, content_type: ElmerFudd::DEFAULT_CONTENT_TYPE)
|
39
39
|
@exchange.with do |exchange|
|
40
40
|
@logger.debug "ElmerFudd: NOTIFY - topic_exchange: #{topic_exchange}, routing_key: #{routing_key}, payload: #{payload}"
|
41
|
-
exchange.topic(topic_exchange).publish payload.to_s, routing_key: routing_key
|
41
|
+
exchange.topic(topic_exchange).publish payload.to_s, routing_key: routing_key, content_type: content_type
|
42
42
|
end
|
43
43
|
nil
|
44
44
|
end
|
@@ -46,7 +46,7 @@ module ElmerFudd
|
|
46
46
|
def cast(queue_name, payload, content_type: ElmerFudd::DEFAULT_CONTENT_TYPE)
|
47
47
|
@exchange.with do |exchange|
|
48
48
|
@logger.debug "ElmerFudd: CAST - queue_name: #{queue_name}, payload: #{payload}"
|
49
|
-
exchange.direct.publish(payload.to_s, routing_key: queue_name)
|
49
|
+
exchange.direct.publish(payload.to_s, routing_key: queue_name, content_type: content_type)
|
50
50
|
end
|
51
51
|
nil
|
52
52
|
end
|
data/lib/ElmerFudd/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ElmerFudd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrzej Sliwa
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-03-
|
12
|
+
date: 2016-03-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bunny
|