zookeeper 1.0.6-java → 1.1.0-java

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zookeeper
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
+ - 1
8
9
  - 0
9
- - 6
10
- version: 1.0.6
10
+ version: 1.1.0
11
11
  platform: java
12
12
  authors:
13
13
  - Phillip Pearson
@@ -20,7 +20,7 @@ autorequire:
20
20
  bindir: bin
21
21
  cert_chain: []
22
22
 
23
- date: 2012-05-11 00:00:00 Z
23
+ date: 2012-05-14 00:00:00 Z
24
24
  dependencies:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: backports
@@ -93,26 +93,29 @@ files:
93
93
  - .travis.yml
94
94
  - CHANGELOG
95
95
  - Gemfile
96
+ - Guardfile
96
97
  - LICENSE
97
98
  - Manifest
98
99
  - README.markdown
99
100
  - Rakefile
101
+ - cause-abort.rb
100
102
  - ext/.gitignore
101
103
  - ext/Rakefile
102
104
  - ext/c_zookeeper.rb
105
+ - ext/common.h
103
106
  - ext/dbg.h
104
107
  - ext/depend
108
+ - ext/event_lib.c
109
+ - ext/event_lib.h
105
110
  - ext/extconf.rb
106
111
  - ext/generate_gvl_code.rb
107
112
  - ext/zkc-3.3.5.tar.gz
113
+ - ext/zkrb.c
108
114
  - ext/zkrb_wrapper.c
109
115
  - ext/zkrb_wrapper.h
110
116
  - ext/zkrb_wrapper_compat.c
111
117
  - ext/zkrb_wrapper_compat.h
112
118
  - ext/zookeeper_base.rb
113
- - ext/zookeeper_c.c
114
- - ext/zookeeper_lib.c
115
- - ext/zookeeper_lib.h
116
119
  - java/java_base.rb
117
120
  - lib/zookeeper.rb
118
121
  - lib/zookeeper/acls.rb
@@ -123,12 +126,14 @@ files:
123
126
  - lib/zookeeper/common/queue_with_pipe.rb
124
127
  - lib/zookeeper/compatibility.rb
125
128
  - lib/zookeeper/constants.rb
129
+ - lib/zookeeper/continuation.rb
126
130
  - lib/zookeeper/core_ext.rb
127
131
  - lib/zookeeper/em_client.rb
128
132
  - lib/zookeeper/exceptions.rb
129
133
  - lib/zookeeper/forked.rb
130
134
  - lib/zookeeper/latch.rb
131
135
  - lib/zookeeper/logger.rb
136
+ - lib/zookeeper/monitor.rb
132
137
  - lib/zookeeper/rake_tasks.rb
133
138
  - lib/zookeeper/stat.rb
134
139
  - lib/zookeeper/version.rb
@@ -140,7 +145,6 @@ files:
140
145
  - spec/default_watcher_spec.rb
141
146
  - spec/em_spec.rb
142
147
  - spec/ext/zookeeper_base_spec.rb
143
- - spec/fork_hook_specs.rb
144
148
  - spec/forked_connection_spec.rb
145
149
  - spec/latch_spec.rb
146
150
  - spec/log4j.properties
@@ -193,7 +197,6 @@ test_files:
193
197
  - spec/default_watcher_spec.rb
194
198
  - spec/em_spec.rb
195
199
  - spec/ext/zookeeper_base_spec.rb
196
- - spec/fork_hook_specs.rb
197
200
  - spec/forked_connection_spec.rb
198
201
  - spec/latch_spec.rb
199
202
  - spec/log4j.properties
@@ -1,53 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe 'fork hooks' do
4
- def safe_kill_process(signal, pid)
5
- Process.kill(signal, pid)
6
- rescue Errno::ESRCH
7
- nil
8
- end
9
-
10
- after do
11
- Zookeeper::Forked.clear!
12
-
13
- if @pid
14
- safe_kill_process('KILL', @pid)
15
- end
16
- end
17
-
18
- describe 'fork with a block' do
19
- it %[should call the after_fork_in_child hooks in the child] do
20
- child_hook_called = false
21
-
22
- hook_order = []
23
-
24
- Zookeeper.prepare_for_fork { hook_order << :prepare }
25
- Zookeeper.after_fork_in_parent { hook_order << :parent }
26
- Zookeeper.after_fork_in_child { hook_order << :child }
27
-
28
- @pid = fork do
29
- unless hook_order.first == :prepare
30
- $stderr.puts "hook order wrong! #{hook_order.inspect}"
31
- exit! 2
32
- end
33
-
34
- unless hook_order.last == :child
35
- $stderr.puts "hook order wrong! #{hook_order.inspect}"
36
- exit! 3
37
- end
38
-
39
- exit! 0
40
- end
41
-
42
- hook_order.first.should == :prepare
43
- hook_order.last.should == :parent
44
-
45
- _, st = Process.wait2(@pid)
46
- st.exitstatus.should == 0
47
-
48
- st.should be_exited
49
- st.should be_success
50
- end
51
- end
52
- end
53
-