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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb96ca2831db9d4320c6363153b38f83273d8d4f5f9b1505f581fbf868a825e5
4
- data.tar.gz: a5549d23034f13b2cc683694bf2f4e93c339dde7a1b146e1b282a250e4ea1728
3
+ metadata.gz: 843ff091564cbe740f1c361034afad60013b7e45bd5233d739f1c58a8cecc3b1
4
+ data.tar.gz: 76cb1e9d465b9b931650ce8bb619e73bc32b1465d8af23549a214fef11ef17fd
5
5
  SHA512:
6
- metadata.gz: 9ce7de28e8e8596abfadb913b14a9423782f97920842122ce8fae30d902f48f1c2238d3189107da097f69ce9cf24286c297fe192a8a66cd4ea4411a765f55e65
7
- data.tar.gz: fab0163e3b4ba25fdc0ab0a447a74accafdf7f8dff889fabfad4a82baab787a9f7d5f73372e6abe4468be8a247c88f744adb0790250c40f39f013e4a1bc59e38
6
+ metadata.gz: d21ceab1e12041c61c2323bcb4e6579a7255eb304f31f35a227ba4b2f100667fccff4af6e0a83852ecf614a511df7b0e78dc4927bdeaf3269bcb4d93b183631e
7
+ data.tar.gz: 7cdd5c4237f32907c5395e070131a4e2912526e5446923b903e95e5c4ab152040c08ffb95057bb9b91b0c5d2b7518d359d03e36a6359cc1755390aa4ce41bb22
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## (UNRELEASED)
4
4
 
5
+ ## 1.25.1 (February 28, 2020)
6
+
7
+ NEW FEATURES:
8
+
9
+ * Properly declare minimum Ruby version to 2.4 in GEM spec
10
+
5
11
  ## 1.25.0 (February 27, 2020)
6
12
 
7
13
  NEW FEATURES:
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)
@@ -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/common/header.html.erb](samples/common/header.html.erb) for example of usage.
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
 
@@ -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'
@@ -1,5 +1,5 @@
1
1
  module Consul
2
2
  module Async
3
- VERSION = '1.25.0'.freeze
3
+ VERSION = '1.25.1'.freeze
4
4
  end
5
5
  end
@@ -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.0
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-27 00:00:00.000000000 Z
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: '0'
260
+ version: 2.4.0
260
261
  required_rubygems_version: !ruby/object:Gem::Requirement
261
262
  requirements:
262
263
  - - ">="