consul_watcher 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/consul_watcher/destination/amqp.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b2136120a341e84b974225fdab512d6a747a75971243c534f49a5e40e1a1ce3
|
4
|
+
data.tar.gz: ee676f09ce3c5bf73818c3949c1e4f59e0434c9c80b901b902c5fc989d45b1a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d8dd4a122ef96a690f41aae31424a0151ecf707772a2434f788f038708616507c6f363c46f3a7cdfdf0e3d0ed76cd72f4b41f15193b4c01ede86100f1325974
|
7
|
+
data.tar.gz: 309357fa18fc970647bcf5f1861f7db36bec52d483d05c4b80ae952b70a72ff9c6536416d5e816fde939e1db1b2f4b4041a02c9bf402b796e5624d027ca5288c
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.10
|
@@ -44,7 +44,7 @@ module ConsulWatcher
|
|
44
44
|
|
45
45
|
def send(change)
|
46
46
|
@logger.debug('publishing message')
|
47
|
-
routing_key = change['id'].
|
47
|
+
routing_key = change['id'].length > 255 ? "#{change['id'][0..244]}.truncated" : change['id']
|
48
48
|
@logger.debug("routing_key: #{routing_key}")
|
49
49
|
begin
|
50
50
|
@ex.publish(JSON.pretty_generate(change), routing_key: routing_key)
|