synapse-config 0.1.1 → 0.1.2

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: cc6cfe621f43712edcf64b50eb1ce2354ae5e6d0
4
- data.tar.gz: f9f9a3eb65333defa5233db74c7f3c1459b9fc65
3
+ metadata.gz: ae2900d66837aa683aceba9e6daa371880ccfeac
4
+ data.tar.gz: 0fd7eafc7ad6b7e36b13639bc4dab7414146dcac
5
5
  SHA512:
6
- metadata.gz: 24001a3cd4219f66fe33d44e61f2372e8cb5cba4ab778514d6689023ae99a7095f2627b61b3ae061f9de0288262029e26fbace5f7e420b15826031d1ed15d6f5
7
- data.tar.gz: 534fb439f75f64d6073bf38de68691e9b5b53db4c94614210e30dc8ae605b83b87c2b816e666c3e71c77e6572c232e002887a5c2258b4332ba74da84df68dd6a
6
+ metadata.gz: d74d197cb679ad4299633151e1d113eb1bbaa341ec8f146943c0805593a5520d3384e837c943085cb940e99174df88fe93750a448b7ee2a34d108b42ad45c1be
7
+ data.tar.gz: a6183ae4396ade41a881213acb78fe5cc2cc22e735952bfba62432c378411267aa3b0c33911be3979aa50932337a70e6d504303fc58b092de3e66ee8fc461612
@@ -7,15 +7,16 @@ module Synapse
7
7
  class Haproxy
8
8
  include Updateable
9
9
  include Emitting
10
- def initialize
11
- @haproxy={
10
+ def initialize arg=nil
11
+ @haproxy=arg
12
+ @haproxy||={
12
13
  do_reloads:true,
13
14
  do_socket:true,
14
15
  do_writes:true,
15
16
  defaults:[],
16
17
  global:[],
17
18
  extra_sections:{}
18
- }
19
+ }.with_indifferent_access
19
20
  observe :haproxy
20
21
  end
21
22
  end
@@ -8,7 +8,8 @@ module Synapse
8
8
  @target=target
9
9
  end
10
10
  def update
11
- @target.reconfigure! if @target
11
+ return unless @target
12
+ @target.reconfigure!
12
13
  end
13
14
  end
14
15
  end
@@ -1,5 +1,5 @@
1
1
  module Synapse
2
2
  module Config
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
@@ -9,19 +9,15 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Mathias Kaufmann"]
10
10
  spec.email = ["me@stei.gr"]
11
11
 
12
- spec.summary = %q{Basic structures for synapse-configuration, evented!}
13
- spec.description = %q{Basic structures for synapse-configuration, evented!}
14
- spec.homepage = "https://synapse.stei.gr"
12
+ spec.summary = %q{Configuration with callbacks on update (or read).}
13
+ spec.description = %q{Configuration with callbacks on update (or read).}
14
+ spec.homepage = "https://synapse.stei.gr/config"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
17
  spec.bindir = "exe"
18
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- # if spec.respond_to?(:metadata)
22
- # spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com' to prevent pushes to rubygems.org, or delete to allow pushes to any server."
23
- # end
24
-
25
21
  spec.add_dependency "activesupport","~> 4"
26
22
  spec.add_development_dependency "bundler", "~> 1.8"
27
23
  spec.add_development_dependency "rake", "~> 10.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: synapse-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathias Kaufmann
@@ -52,7 +52,7 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '10.0'
55
- description: Basic structures for synapse-configuration, evented!
55
+ description: Configuration with callbacks on update (or read).
56
56
  email:
57
57
  - me@stei.gr
58
58
  executables: []
@@ -73,7 +73,7 @@ files:
73
73
  - lib/synapse/config/updateable.rb
74
74
  - lib/synapse/config/version.rb
75
75
  - synapse-config.gemspec
76
- homepage: https://synapse.stei.gr
76
+ homepage: https://synapse.stei.gr/config
77
77
  licenses: []
78
78
  metadata: {}
79
79
  post_install_message:
@@ -95,5 +95,5 @@ rubyforge_project:
95
95
  rubygems_version: 2.4.6
96
96
  signing_key:
97
97
  specification_version: 4
98
- summary: Basic structures for synapse-configuration, evented!
98
+ summary: Configuration with callbacks on update (or read).
99
99
  test_files: []