consul-templaterb 1.25.0 → 1.25.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +1 -0
- data/TemplateAPI.md +1 -1
- data/consul-templaterb.gemspec +1 -0
- data/lib/consul/async/version.rb +1 -1
- data/samples/members.json.erb +10 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 843ff091564cbe740f1c361034afad60013b7e45bd5233d739f1c58a8cecc3b1
|
4
|
+
data.tar.gz: 76cb1e9d465b9b931650ce8bb619e73bc32b1465d8af23549a214fef11ef17fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d21ceab1e12041c61c2323bcb4e6579a7255eb304f31f35a227ba4b2f100667fccff4af6e0a83852ecf614a511df7b0e78dc4927bdeaf3269bcb4d93b183631e
|
7
|
+
data.tar.gz: 7cdd5c4237f32907c5395e070131a4e2912526e5446923b903e95e5c4ab152040c08ffb95057bb9b91b0c5d2b7518d359d03e36a6359cc1755390aa4ce41bb22
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
[![Build Status](https://api.travis-ci.org/criteo/consul-templaterb.svg?branch=master)](https://travis-ci.org/criteo/consul-templaterb)
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/consul-templaterb.svg)](http://github.com/criteo/consul-templaterb/releases)
|
5
|
+
[![GEM Downloads](https://ruby-gem-downloads-badge.herokuapp.com/consul-templaterb?type=total&metric=true)](https://rubygems.org/gems/consul-templaterb)
|
5
6
|
[![License](https://img.shields.io/badge/license-ApacheV2-yellowgreen.svg)](#license)
|
6
7
|
|
7
8
|
The ruby GEM [consul-templaterb](https://rubygems.org/gems/consul-templaterb)
|
data/TemplateAPI.md
CHANGED
@@ -540,7 +540,7 @@ consul-templaterb --template "source.html.erb:dest.html:reload_command:params.ya
|
|
540
540
|
[...]
|
541
541
|
```
|
542
542
|
|
543
|
-
See [samples/
|
543
|
+
See [samples/consul-ui/consul-services-ui.html.erb](samples/consul-ui/consul-services-ui.html.erb) for example of usage.
|
544
544
|
|
545
545
|
## secrets(prefix)
|
546
546
|
|
data/consul-templaterb.gemspec
CHANGED
@@ -26,6 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
27
27
|
spec.extra_rdoc_files = ['README.md', 'CHANGELOG.md', 'TemplateAPI.md']
|
28
28
|
spec.require_paths = ['lib']
|
29
|
+
spec.required_ruby_version = '>= 2.4.0'
|
29
30
|
|
30
31
|
spec.add_runtime_dependency 'em-http-request', '>= 1.1.5'
|
31
32
|
spec.add_runtime_dependency 'eventmachine', '>= 1.2.7'
|
data/lib/consul/async/version.rb
CHANGED
@@ -0,0 +1,10 @@
|
|
1
|
+
<%= JSON.pretty_generate(agent_members.sort {|a,b| a['Name'] <=> b['Name']}.map do |m|
|
2
|
+
{
|
3
|
+
'Name' => m['Name'],
|
4
|
+
'Addr' => m['Addr'],
|
5
|
+
'Port' => m['Port'],
|
6
|
+
'Tags' => m['Tags'],
|
7
|
+
'state' => m.status # returns 'none', 'alive', 'leaving', 'left', 'failed'
|
8
|
+
}
|
9
|
+
end
|
10
|
+
) %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: consul-templaterb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.25.
|
4
|
+
version: 1.25.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SRE Core Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: em-http-request
|
@@ -231,6 +231,7 @@ files:
|
|
231
231
|
- samples/hosts_per_services.erb
|
232
232
|
- samples/kv_yaml_to_json.json.erb
|
233
233
|
- samples/list_ruby_versions_from_rubygems.txt.erb
|
234
|
+
- samples/members.json.erb
|
234
235
|
- samples/metrics.erb
|
235
236
|
- samples/prometheus_consul_coordinates.erb
|
236
237
|
- samples/render_template_from_kv.erb
|
@@ -256,7 +257,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
256
257
|
requirements:
|
257
258
|
- - ">="
|
258
259
|
- !ruby/object:Gem::Version
|
259
|
-
version:
|
260
|
+
version: 2.4.0
|
260
261
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
261
262
|
requirements:
|
262
263
|
- - ">="
|