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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6fc3cc1a95abd4ab256ec11a4ac3926ee326ee19
4
- data.tar.gz: d9932a4afdfe4d8e1565c7db8960a9bd491af4c2
3
+ metadata.gz: 80a3673d88fbbefb0b836577e6d2ffccc8c11afb
4
+ data.tar.gz: 5892d35a62e42ea5cef5d881062cd5e5399207a6
5
5
  SHA512:
6
- metadata.gz: 1f555023cf6f2bd03d2f6fcb707247bceaa32f6e9be4e47d8fe51692d3c941884613b248e06b2386cd3b8d7312b6b887f41a1bf20ef7453c980d682c08db62e6
7
- data.tar.gz: eb6ca5e463ffc71e9cecbd549c9a4a8d769f52206e7f06bc22de08f432d8f9cebcd6b1d79ecfbbb44e7a47718fcd83c625d07a25e5310fae7148154c09af5da5
6
+ metadata.gz: fc6ba8d532aa4753b2b153dc4aefc22e6aab5a783590362a035527cbd179f57b7ef24c978ce2c507f76f6980f2d88e81fcdc02e0a149210a6a5139a595ca11f7
7
+ data.tar.gz: 6299bdbf7464dd75a2dfb2636b020d6792f6e58a2b779ddf2b0c3b00f399a44255ae6321b308ef1c24e7083acd46d7abd4ee6b48a84fb5f3e58ccfe34be3d584
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ElmerFudd
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
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.3
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-14 00:00:00.000000000 Z
12
+ date: 2016-03-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bunny