constancy 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/lib/constancy/config.rb +6 -2
- data/lib/constancy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 453502d453bed0c4adcd7198c234c2abe37f9c62
|
|
4
|
+
data.tar.gz: 298a985985b6fa34d4e808eea6ab208dac77abfe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/constancy/config.rb
CHANGED
|
@@ -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']
|
|
145
|
-
|
|
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?
|
data/lib/constancy/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2018-03-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: imperium
|