constancy 0.3.2 → 0.3.3

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: 4caa570d63de3a812aa89cf86ffe5317f09dc744fa467bf51e8d27a208946613
4
- data.tar.gz: 31c183bec299d4d49d25dcae189bd1a42cf3e76cb0eadf17d13323be019f1a5f
3
+ metadata.gz: ae1133b21310c9e81bbfdec38f3f86196a0b18a9615bf4a09b9c6eccf9344355
4
+ data.tar.gz: d84ef8bfca702fade88dc33801b62abfc8c059bebb1cb853f3d2b5d071f90ffa
5
5
  SHA512:
6
- metadata.gz: ab1fa53d02ca6e2dd7dbeca153d3f9b8fc503af197f258879a5f60c83d9584662c74f583e62a3ef5235b70ea23707a55aa1a199310221f80d9a0b953c1d6d77d
7
- data.tar.gz: 7559a582aae4740591d98ce8da8a021c16ccf87b5b38941df81798d08b847fdd1c5a3be79051ec1a482d12a32840a565473eed18ea1dac392326d26848b5e58b
6
+ metadata.gz: f39f5e460b4e765149270303bc273fca953d48c0984c11ffb74d3e861b0a2234e226added35c2be205b401b245b8c8081414f0957607b01acae93dc52196366a
7
+ data.tar.gz: 5b2d4906f3a6e91fc4f1708241fd377e1e3be73c448f9d7fd84c36946a6b44803f8ec80a36ef691ea1cd8365fc2792022ef3b58a4accf3665ed55654a1ace231
data/README.md CHANGED
@@ -232,6 +232,8 @@ If the file `yourapp.yml` has the following content:
232
232
  Then `constancy push` will attempt to create and/or update the following keys
233
233
  with the corresponding content from `yourapp.yml`:
234
234
 
235
+ | Key | Value |
236
+ |:-----|:-------|
235
237
  | `config/yourapp/prod/dbname` | `yourapp` |
236
238
  | `config/yourapp/prod/message` | `Hello, world. This is a multiline message.\nThanks.` |
237
239
  | `config/yourapp/prod/app/config.json` | `{\n "port": 8080,\n "enabled": true\n}` |
@@ -247,6 +249,8 @@ reference paths via your file's YAML structure directly. For example:
247
249
 
248
250
  When pushed, this document will create and/or update the following keys:
249
251
 
252
+ | Key | Value |
253
+ |:-----|:-------|
250
254
  | `config/yourapp/prod/redis/port` | `6380` |
251
255
  | `config/yourapp/prod/redis/host` | `redis.example.com` |
252
256
 
@@ -269,6 +273,8 @@ this local file target content:
269
273
 
270
274
  This file target content would correspond to the following values, when pushed:
271
275
 
276
+ | Key | Value |
277
+ |:-----|:-------|
272
278
  | `config/yourapp/prod/postgres/host` | `db.myproject.example.com` |
273
279
  | `config/yourapp/prod/postgres/port` | `10001` |
274
280
  | `config/yourapp/prod/redis` | `Embedded Value` |
@@ -36,7 +36,7 @@ class Constancy
36
36
  end
37
37
  end
38
38
 
39
- consul_key = [@target.prefix, key].compact.join("/")
39
+ consul_key = [@target.prefix, key].compact.join("/").squeeze("/")
40
40
 
41
41
  if @target.exclude.include?(key) or @target.exclude.include?(consul_key)
42
42
  op = :ignore
@@ -1,5 +1,5 @@
1
1
  # This software is public domain. No rights are reserved. See LICENSE for more information.
2
2
 
3
3
  class Constancy
4
- VERSION = "0.3.2"
4
+ VERSION = "0.3.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: constancy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Adams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-20 00:00:00.000000000 Z
11
+ date: 2020-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: imperium