consul_syncer 0.7.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/consul_syncer.rb +1 -1
- data/lib/consul_syncer/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6354e9ee4ccdf46a22fd97263f8008da145c27a92ff766b501b15f8431303585
|
4
|
+
data.tar.gz: a93e69e00dbcba1cb4d7ee4f5ab4f0fe7cd32ec1e8d3521ca6e11c6278868675
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87b9d3375f8e6aa9ce4e7f7055117ddc2e743b86e410f2367ab748ed3795e0f48a763a4b620e40fe703fab7b250a99d2855016c2d2e4170244061ef7aa54b2dc
|
7
|
+
data.tar.gz: a53abb227735ead7f9c0d7f44a95c856cbce43a6e346f40a0977ed4feaad22caa76c9342888d6d135fa99722fd508c30e0743fd44dea426fd1dd35e5200a4c48
|
data/lib/consul_syncer.rb
CHANGED
@@ -81,7 +81,7 @@ class ConsulSyncer
|
|
81
81
|
private
|
82
82
|
|
83
83
|
def consul_endpoints(requested_tags)
|
84
|
-
services = @consul.request(:get, "/v1/catalog/services?tag=#{requested_tags.first}")
|
84
|
+
services = @consul.request(:get, "/v1/catalog/services?cached&stale&tag=#{requested_tags.first}")
|
85
85
|
services.each_with_object([]) do |(name, tags), all|
|
86
86
|
# cannot query for multiple tags via query, so handle multi-matching manually
|
87
87
|
next if (requested_tags - tags).any?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: consul_syncer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -54,8 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
56
|
requirements: []
|
57
|
-
|
58
|
-
rubygems_version: 2.7.6
|
57
|
+
rubygems_version: 3.0.3
|
59
58
|
signing_key:
|
60
59
|
specification_version: 4
|
61
60
|
summary: Sync remote services into consul
|