synapse 0.11.1 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/.travis.yml +3 -1
- data/Gemfile.lock +32 -16
- data/README.md +120 -95
- data/lib/synapse.rb +20 -6
- data/lib/synapse/file_output.rb +57 -0
- data/lib/synapse/haproxy.rb +122 -25
- data/lib/synapse/service_watcher/base.rb +40 -2
- data/lib/synapse/service_watcher/dns.rb +1 -15
- data/lib/synapse/service_watcher/docker.rb +1 -25
- data/lib/synapse/service_watcher/ec2tag.rb +91 -9
- data/lib/synapse/service_watcher/zookeeper.rb +53 -24
- data/lib/synapse/version.rb +1 -1
- data/spec/lib/synapse/haproxy_spec.rb +22 -3
- data/spec/lib/synapse/service_watcher_base_spec.rb +67 -9
- data/spec/lib/synapse/service_watcher_docker_spec.rb +1 -33
- data/spec/lib/synapse/service_watcher_ec2tags_spec.rb +187 -0
- data/spec/spec_helper.rb +6 -1
- data/spec/support/configuration.rb +0 -2
- data/synapse.gemspec +3 -2
- metadata +29 -10
data/spec/spec_helper.rb
CHANGED
@@ -9,11 +9,16 @@ require 'pry'
|
|
9
9
|
require 'support/configuration'
|
10
10
|
|
11
11
|
RSpec.configure do |config|
|
12
|
-
config.treat_symbols_as_metadata_keys_with_true_values = true
|
13
12
|
config.run_all_when_everything_filtered = true
|
14
13
|
config.filter_run :focus
|
15
14
|
config.include Configuration
|
16
15
|
|
16
|
+
# verify every double we can think of
|
17
|
+
config.mock_with :rspec do |mocks|
|
18
|
+
mocks.verify_doubled_constant_names = true
|
19
|
+
mocks.verify_partial_doubles = true
|
20
|
+
end
|
21
|
+
|
17
22
|
# Run specs in random order to surface order dependencies. If you find an
|
18
23
|
# order dependency and want to debug it, you can fix the order by providing
|
19
24
|
# the seed, which is printed after each run.
|
data/synapse.gemspec
CHANGED
@@ -16,11 +16,12 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
|
19
|
-
gem.add_runtime_dependency "
|
19
|
+
gem.add_runtime_dependency "aws-sdk", "~> 1.39"
|
20
20
|
gem.add_runtime_dependency "docker-api", "~> 1.7.2"
|
21
|
+
gem.add_runtime_dependency "zk", "~> 1.9.4"
|
21
22
|
|
22
23
|
gem.add_development_dependency "rake"
|
23
|
-
gem.add_development_dependency "rspec"
|
24
|
+
gem.add_development_dependency "rspec", "~> 3.1.0"
|
24
25
|
gem.add_development_dependency "pry"
|
25
26
|
gem.add_development_dependency "pry-nav"
|
26
27
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: synapse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,16 +9,16 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-07-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: aws-sdk
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.
|
21
|
+
version: '1.39'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 1.
|
29
|
+
version: '1.39'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: docker-api
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -43,6 +43,22 @@ dependencies:
|
|
43
43
|
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: 1.7.2
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: zk
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 1.9.4
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.9.4
|
46
62
|
- !ruby/object:Gem::Dependency
|
47
63
|
name: rake
|
48
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -64,17 +80,17 @@ dependencies:
|
|
64
80
|
requirement: !ruby/object:Gem::Requirement
|
65
81
|
none: false
|
66
82
|
requirements:
|
67
|
-
- -
|
83
|
+
- - ~>
|
68
84
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
85
|
+
version: 3.1.0
|
70
86
|
type: :development
|
71
87
|
prerelease: false
|
72
88
|
version_requirements: !ruby/object:Gem::Requirement
|
73
89
|
none: false
|
74
90
|
requirements:
|
75
|
-
- -
|
91
|
+
- - ~>
|
76
92
|
- !ruby/object:Gem::Version
|
77
|
-
version:
|
93
|
+
version: 3.1.0
|
78
94
|
- !ruby/object:Gem::Dependency
|
79
95
|
name: pry
|
80
96
|
requirement: !ruby/object:Gem::Requirement
|
@@ -133,6 +149,7 @@ files:
|
|
133
149
|
- config/synapse_services/service2.json
|
134
150
|
- lib/synapse.rb
|
135
151
|
- lib/synapse/base.rb
|
152
|
+
- lib/synapse/file_output.rb
|
136
153
|
- lib/synapse/haproxy.rb
|
137
154
|
- lib/synapse/log.rb
|
138
155
|
- lib/synapse/service_watcher.rb
|
@@ -146,6 +163,7 @@ files:
|
|
146
163
|
- spec/lib/synapse/haproxy_spec.rb
|
147
164
|
- spec/lib/synapse/service_watcher_base_spec.rb
|
148
165
|
- spec/lib/synapse/service_watcher_docker_spec.rb
|
166
|
+
- spec/lib/synapse/service_watcher_ec2tags_spec.rb
|
149
167
|
- spec/spec_helper.rb
|
150
168
|
- spec/support/configuration.rb
|
151
169
|
- spec/support/minimum.conf.yaml
|
@@ -170,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
170
188
|
version: '0'
|
171
189
|
requirements: []
|
172
190
|
rubyforge_project:
|
173
|
-
rubygems_version: 1.8.23
|
191
|
+
rubygems_version: 1.8.23.2
|
174
192
|
signing_key:
|
175
193
|
specification_version: 3
|
176
194
|
summary: ': Write a gem summary'
|
@@ -178,6 +196,7 @@ test_files:
|
|
178
196
|
- spec/lib/synapse/haproxy_spec.rb
|
179
197
|
- spec/lib/synapse/service_watcher_base_spec.rb
|
180
198
|
- spec/lib/synapse/service_watcher_docker_spec.rb
|
199
|
+
- spec/lib/synapse/service_watcher_ec2tags_spec.rb
|
181
200
|
- spec/spec_helper.rb
|
182
201
|
- spec/support/configuration.rb
|
183
202
|
- spec/support/minimum.conf.yaml
|