config_skeleton 0.2.6 → 0.3.0

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: 3d55ae63c3cac3ec4c77ae3d20c2a8078fa65e937abdeaf10afae589f7e45d85
4
- data.tar.gz: 07c2dc5afd603e1e8c61ff0f5b6d7b5cbb0ce9ce510c8c645279c683f5adee4e
3
+ metadata.gz: bdaa156de0445e8a32b2d49d55ea11308d153d4c73658f6c4ff648a7c32a1440
4
+ data.tar.gz: 5dff0715f11dad930b6dd485204d9a1f2b75a47afc9096cb33dd0c4f5a538423
5
5
  SHA512:
6
- metadata.gz: 3ed1a58c33de8eca24db5823d221bde84e64a9bcba91d2007ac68095da458c61fd50ef24670b96c2186a577ab91c2fa90c289c680e4310abbdbf9a34f6339754
7
- data.tar.gz: 8932f5e8ee5545644a7d5d7950f5737b256ad9c4eb10cb1c0dd8f0b8333fd22d62557c0afa011b83ec508eb94b1f94068b7558ee082ce9f45f75448309b64e77
6
+ metadata.gz: e5c7ffc7621e69441f17349d9e46a9d4f5146ed88a4c5b382524dfd64b7c0aa6b4aedc72bcb3ffac220509299983adff24263f86e8a327072ed34b933095ab3e
7
+ data.tar.gz: 50e06b7b3fbe40c4baf522b95595bd447ec3e349c2e14a1cbf7da64500f2db5a64d006ec6b9f15a2320fdbc76f879f733d91ff555c26d7eef7432d1fc46ff059
data/.gitignore CHANGED
@@ -4,5 +4,6 @@
4
4
  /.yardoc
5
5
  /coverage
6
6
  /.bundle
7
+ /cfg.txt
7
8
 
8
9
  .rubocop-https---raw-githubusercontent-com-discourse-discourse-master--rubocop-yml
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "config_skeleton"
3
3
 
4
- s.version = "0.2.6"
4
+ s.version = "0.3.0"
5
5
 
6
6
  s.platform = Gem::Platform::RUBY
7
7
 
@@ -196,11 +196,12 @@ class ConfigSkeleton < ServiceSkeleton
196
196
 
197
197
  hook_signal(:HUP) do
198
198
  logger.info("SIGHUP") { "received SIGHUP, triggering config regeneration" }
199
- regenerate_config(force_reload: true)
199
+ @trigger_regen_w << "."
200
200
  end
201
201
 
202
202
  initialize_config_skeleton_metrics
203
203
  @trigger_regen_r, @trigger_regen_w = IO.pipe
204
+ @terminate_r, @terminate_w = IO.pipe
204
205
  end
205
206
 
206
207
  # Expose the write pipe which can be written to to trigger a config
@@ -230,8 +231,6 @@ class ConfigSkeleton < ServiceSkeleton
230
231
 
231
232
  logger.debug(logloc) { "notifier fd is #{notifier.to_io.inspect}" }
232
233
 
233
- @terminate_r, @terminate_w = IO.pipe
234
-
235
234
  loop do
236
235
  if ios = IO.select(
237
236
  [notifier.to_io, @terminate_r, @trigger_regen_r],
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: config_skeleton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Palmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-24 00:00:00.000000000 Z
11
+ date: 2020-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: diffy