consul_watcher 0.0.8 → 0.0.9
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 +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c148da0642105504e63edbdfd24305a5cb5b02dee565e29a454cfd7e3b74028
|
4
|
+
data.tar.gz: e3002ef3cbfe83a701ca54b5ef870e6f30833a79bc6cc31dde2beb5bddfa9653
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee21fde5130a58edeaa523496f60b191fb925ddbf8768f99686ff7a5f78290b31aea289d688e202eb8e415481653b92bdd5ff1d51f27cebb509b9b33516057a4
|
7
|
+
data.tar.gz: ab61940ac834d30135c0d91e262f72b3a67afba099987b7400fc8a9f254d63c610f0dbed1b6f37cd803c39a70c6a2001bea77c089ed11b8066b9b03a9f4e7b3c
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.9
|
@@ -44,14 +44,14 @@ 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'].truncate(255, omission: '.truncated')
|
48
48
|
@logger.debug("routing_key: #{routing_key}")
|
49
49
|
begin
|
50
|
-
@ex.publish(JSON.pretty_generate(change), routing_key:
|
50
|
+
@ex.publish(JSON.pretty_generate(change), routing_key: routing_key)
|
51
51
|
rescue Encoding::UndefinedConversionError
|
52
52
|
change['forced_utf8'] = true
|
53
53
|
data = change.to_s.encode('UTF-8', invalid: :replace, undef: :replace, replace: '?')
|
54
|
-
@ex.publish(JSON.pretty_generate(data), routing_key:
|
54
|
+
@ex.publish(JSON.pretty_generate(data), routing_key: routing_key)
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: consul_watcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Fortman
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -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.7.
|
174
|
+
rubygems_version: 2.7.9
|
175
175
|
signing_key:
|
176
176
|
specification_version: 4
|
177
177
|
summary: Send consul watch events to an amqp.
|