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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 229edb91677150898553354f076ef07e1789d2adfe3b1a648a48d61778d474a2
4
- data.tar.gz: 665d041e916790682cb375795302f448c55dcf74b5e411a851b2d7e5e3962fb3
3
+ metadata.gz: 5c148da0642105504e63edbdfd24305a5cb5b02dee565e29a454cfd7e3b74028
4
+ data.tar.gz: e3002ef3cbfe83a701ca54b5ef870e6f30833a79bc6cc31dde2beb5bddfa9653
5
5
  SHA512:
6
- metadata.gz: e82d5923dab083db57f3d7c1a71641e8420ac0f52cd166d6acb06fc33b7149e3780c88b291996ff61f6e02982720800e36d7f4cbf7133826d1577ce5a3f05c03
7
- data.tar.gz: 5ff07f4b9ff6b5d5644db74acb4d9b72b864bf38db98a1e1130cc4e3faa992eb8323569a7b6a64df1aa494de40e2dea92a777017c801abe0a0a5f7272f691fbc
6
+ metadata.gz: ee21fde5130a58edeaa523496f60b191fb925ddbf8768f99686ff7a5f78290b31aea289d688e202eb8e415481653b92bdd5ff1d51f27cebb509b9b33516057a4
7
+ data.tar.gz: ab61940ac834d30135c0d91e262f72b3a67afba099987b7400fc8a9f254d63c610f0dbed1b6f37cd803c39a70c6a2001bea77c089ed11b8066b9b03a9f4e7b3c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.8
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: change['id'])
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: change['id'])
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.8
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: 2019-06-14 00:00:00.000000000 Z
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.8
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.