File tree 3 files changed +16
-43
lines changed
lib/synapse/service_watcher
3 files changed +16
-43
lines changed Original file line number Diff line number Diff line change 4
4
synapse (0.11.1 )
5
5
aws-sdk (~> 1.39 )
6
6
docker-api (~> 1.7.2 )
7
- etcd (~> 0.2.3 )
7
+ etcd (~> 0.2.4 )
8
8
zk (~> 1.9.4 )
9
9
10
10
GEM
11
11
remote: https://rubygems.org/
12
12
specs:
13
13
archive-tar-minitar (0.5.2 )
14
- aws-sdk (1.47 .0 )
14
+ aws-sdk (1.51 .0 )
15
15
json (~> 1.4 )
16
16
nokogiri (>= 1.4.4 )
17
17
coderay (1.1.0 )
20
20
archive-tar-minitar
21
21
excon (>= 0.28 )
22
22
json
23
- excon (0.38.0 )
24
- ffi (1.9.3-java )
25
- etcd (0.2.3 )
23
+ etcd (0.2.4 )
26
24
mixlib-log
25
+ excon (0.39.5 )
27
26
json (1.8.1 )
28
- json (1.8.1-java )
29
27
little-plugger (1.1.3 )
30
28
logging (1.8.2 )
31
29
little-plugger (>= 1.1.3 )
34
32
mini_portile (0.6.0 )
35
33
mixlib-log (1.6.0 )
36
34
multi_json (1.10.1 )
37
- nokogiri (1.6.2 .1 )
35
+ nokogiri (1.6.3 .1 )
38
36
mini_portile (= 0.6.0 )
39
- nokogiri (1.6.2.1-java )
40
- pry (0.9.12.2 )
41
- coderay (~> 1.0.5 )
42
- method_source (~> 0.8 )
37
+ pry (0.10.1 )
38
+ coderay (~> 1.1.0 )
39
+ method_source (~> 0.8.1 )
43
40
slop (~> 3.4 )
44
- pry-nav (0.2.3 )
45
- pry (~> 0.9.10 )
46
- spoon (0.0.4 )
47
- ffi
41
+ pry-nav (0.2.4 )
42
+ pry (>= 0.9.10 , < 0.11.0 )
48
43
rake (10.3.2 )
49
44
rspec (3.0.0 )
50
45
rspec-core (~> 3.0.0 )
51
46
rspec-expectations (~> 3.0.0 )
52
47
rspec-mocks (~> 3.0.0 )
53
- rspec-core (3.0.2 )
48
+ rspec-core (3.0.4 )
54
49
rspec-support (~> 3.0.0 )
55
- rspec-expectations (3.0.2 )
50
+ rspec-expectations (3.0.4 )
56
51
diff-lcs (>= 1.2.0 , < 2.0 )
57
52
rspec-support (~> 3.0.0 )
58
- rspec-mocks (3.0.2 )
53
+ rspec-mocks (3.0.4 )
59
54
rspec-support (~> 3.0.0 )
60
- rspec-support (3.0.2 )
61
- slop (3.5 .0 )
55
+ rspec-support (3.0.4 )
56
+ slop (3.6 .0 )
62
57
zk (1.9.4 )
63
58
logging (~> 1.8.2 )
64
59
zookeeper (~> 1.4.0 )
65
60
zookeeper (1.4.8 )
66
- zookeeper (1.4.8-java )
67
- slyphon-log4j (= 1.2.15 )
68
- slyphon-zookeeper_jar (= 3.3.5 )
69
61
70
62
PLATFORMS
71
63
ruby
Original file line number Diff line number Diff line change 2
2
3
3
require 'etcd'
4
4
5
- # Monkeypatch till 91f9e72d6d57ae3760e9266835f404d986072590 gets to rubygems..
6
- module Etcd
7
- module Keys
8
- def watch ( key , opts = { } )
9
- params = { wait : true }
10
- fail ArgumentError , 'Second argument must be a hash' unless opts . is_a? ( Hash )
11
- timeout = opts [ :timeout ] || @read_timeout
12
- index = opts [ :waitIndex ] || opts [ :index ]
13
- params [ :waitIndex ] = index unless index . nil?
14
- params [ :consistent ] = opts [ :consistent ] if opts . key? ( :consistent )
15
- params [ :recursive ] = opts [ :recursive ] if opts . key? ( :recursive )
16
-
17
- response = api_execute ( key_endpoint + key , :get ,
18
- timeout : timeout , params : params )
19
- Response . from_http_response ( response )
20
- end
21
- end
22
- end
23
-
24
5
module Synapse
25
6
class EtcdWatcher < BaseWatcher
26
7
NUMBERS_RE = /^\d +$/
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
19
19
gem . add_runtime_dependency "aws-sdk" , "~> 1.39"
20
20
gem . add_runtime_dependency "docker-api" , "~> 1.7.2"
21
21
gem . add_runtime_dependency "zk" , "~> 1.9.4"
22
- gem . add_runtime_dependency "etcd" , "~> 0.2.3 "
22
+ gem . add_runtime_dependency "etcd" , "~> 0.2.4 "
23
23
24
24
gem . add_development_dependency "rake"
25
25
gem . add_development_dependency "rspec"
You can’t perform that action at this time.
0 commit comments