rabid_mq 0.1.26 → 0.1.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rabid_mq/publisher.rb +6 -2
- data/lib/rabid_mq/version.rb +1 -1
- data/lib/rabid_mq.rb +4 -0
- 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: 9ecfc5d583d6f32ad05bcd185929cea38fb263a2
|
4
|
+
data.tar.gz: 073e20e425e6d9f65c70e58a19b6be6bb1110538
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 768a52eb709f83a269851fe99e9ff80730605f90aeda9513714b25bd2c6b7abbcffde211cf655383cb10079df80367194867249f2f8f881e11a4147c600e44ae
|
7
|
+
data.tar.gz: acda51a5b5dd9e2591636fea705315ff5f38b2f8d6c238eaa11d3c278bb8a41762bd8d34da2da51062ddb090b04a110602e28351406eaa0581d43ff0c68230f8
|
data/lib/rabid_mq/publisher.rb
CHANGED
@@ -27,7 +27,11 @@ module RabidMQ
|
|
27
27
|
exchange = topic_exchange(topic)
|
28
28
|
exchange.publish(payload, routing_key: routing_key)
|
29
29
|
rescue => e
|
30
|
-
Rails
|
30
|
+
if defined? ::Rails
|
31
|
+
Rails.logger.error e.message
|
32
|
+
else
|
33
|
+
puts e.message
|
34
|
+
end
|
31
35
|
end
|
32
36
|
|
33
37
|
unless method_defined? :broadcast
|
@@ -66,7 +70,7 @@ module RabidMQ
|
|
66
70
|
def name_with_env(name)
|
67
71
|
return name unless defined?(::Rails)
|
68
72
|
return name if name.match /\[(development|test|production|integration|pod)\]/
|
69
|
-
name + "[#{
|
73
|
+
name + "[#{Config.environment}]"
|
70
74
|
end
|
71
75
|
|
72
76
|
# Provide a new or existing Bunny::Session
|
data/lib/rabid_mq/version.rb
CHANGED
data/lib/rabid_mq.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rabid_mq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tyrone Wilson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bunny
|