constancy 0.1.0 → 0.1.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
  SHA1:
3
- metadata.gz: 72ea5278404520809d073eab084fe0a33f71221e
4
- data.tar.gz: 8345a952b62e73266a2266045adb5a7bcdc9a99f
3
+ metadata.gz: 453502d453bed0c4adcd7198c234c2abe37f9c62
4
+ data.tar.gz: 298a985985b6fa34d4e808eea6ab208dac77abfe
5
5
  SHA512:
6
- metadata.gz: f89c7c2246deed0012d258e8e5b3d8903332d68f8bfad49e74915a74eebabc68b604e8cef9d382d2bddce24316575dde0f73cefb62b41800cb0b3e869bbc9f85
7
- data.tar.gz: 697665d664aef7b355ba2975d0edb0c87a2cde795dee4b1cca346ac69feff10832b51bb8fa75e88714fb35591eebf1476272b10a8bcf11360a4d6953da5e0fe5
6
+ metadata.gz: 29adad19880c3c9027519e2545c99a5693be8cb721a0d346d993d5c705fec08b3d7205d0bb192e341fc9cb1dcbfd7766eec35161b79ac8ae4ad06ed33048197d
7
+ data.tar.gz: f1aaff740eea0ccbf650ef349911d4d6704ce8f9458aa5bd6bc47a5ab8a0d8aa9bfa247001459e775849ead11831d6a718f44d39140af899d1664bbb46d9224f
data/README.md CHANGED
@@ -185,6 +185,9 @@ Constancy is very new software. There's more to be done. Some ideas:
185
185
  * Automated tests
186
186
  * Logging of changes to files, syslog, other services
187
187
  * Allowing other means of providing a Consul token
188
+ * Pull mode to sync from Consul to local filesystem
189
+ * Using CAS to verify the key has not changed in the interim before updating/deleting
190
+ * Submitting changes in batches using transactions
188
191
 
189
192
 
190
193
  ## Contributing
@@ -141,8 +141,12 @@ class Constancy
141
141
  raw['sync'].each do |target|
142
142
  if target.is_a? Hash
143
143
  target['datacenter'] ||= raw['consul']['datacenter']
144
- target['chomp'] ||= self.chomp?
145
- target['delete'] ||= self.delete?
144
+ if target['chomp'].nil?
145
+ target['chomp'] = self.chomp?
146
+ end
147
+ if target['delete'].nil?
148
+ target['delete'] = self.delete?
149
+ end
146
150
  end
147
151
 
148
152
  if not self.target_whitelist.nil?
@@ -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.1.0"
4
+ VERSION = "0.1.1"
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.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Adams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-01 00:00:00.000000000 Z
11
+ date: 2018-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: imperium