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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c148da0642105504e63edbdfd24305a5cb5b02dee565e29a454cfd7e3b74028
4
- data.tar.gz: e3002ef3cbfe83a701ca54b5ef870e6f30833a79bc6cc31dde2beb5bddfa9653
3
+ metadata.gz: 1b2136120a341e84b974225fdab512d6a747a75971243c534f49a5e40e1a1ce3
4
+ data.tar.gz: ee676f09ce3c5bf73818c3949c1e4f59e0434c9c80b901b902c5fc989d45b1a1
5
5
  SHA512:
6
- metadata.gz: ee21fde5130a58edeaa523496f60b191fb925ddbf8768f99686ff7a5f78290b31aea289d688e202eb8e415481653b92bdd5ff1d51f27cebb509b9b33516057a4
7
- data.tar.gz: ab61940ac834d30135c0d91e262f72b3a67afba099987b7400fc8a9f254d63c610f0dbed1b6f37cd803c39a70c6a2001bea77c089ed11b8066b9b03a9f4e7b3c
6
+ metadata.gz: 5d8dd4a122ef96a690f41aae31424a0151ecf707772a2434f788f038708616507c6f363c46f3a7cdfdf0e3d0ed76cd72f4b41f15193b4c01ede86100f1325974
7
+ data.tar.gz: 309357fa18fc970647bcf5f1861f7db36bec52d483d05c4b80ae952b70a72ff9c6536416d5e816fde939e1db1b2f4b4041a02c9bf402b796e5624d027ca5288c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.9
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'].truncate(255, omission: '.truncated')
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: consul_watcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Fortman