slyphon-zookeeper 0.1.7 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/ext/zookeeper_base.rb +46 -16
- data/ext/zookeeper_c.c +99 -16
- data/ext/zookeeper_lib.c +23 -7
- data/java/zookeeper_base.rb +154 -37
- data/lib/zookeeper.rb +72 -1
- data/lib/zookeeper/common.rb +7 -21
- data/lib/zookeeper/em_client.rb +135 -0
- data/slyphon-zookeeper.gemspec +2 -2
- data/spec/em_spec.rb +138 -0
- data/spec/spec_helper.rb +19 -0
- metadata +110 -86
data/spec/spec_helper.rb
CHANGED
@@ -13,6 +13,25 @@ Zookeeper.logger = Logger.new(File.expand_path('../../test.log', __FILE__)).tap
|
|
13
13
|
log.level = Logger::DEBUG
|
14
14
|
end
|
15
15
|
|
16
|
+
def logger
|
17
|
+
Zookeeper.logger
|
18
|
+
end
|
19
|
+
|
20
|
+
|
21
|
+
require 'rspec/core/formatters/progress_formatter'
|
22
|
+
|
23
|
+
module RSpec
|
24
|
+
module Core
|
25
|
+
module Formatters
|
26
|
+
class ProgressFormatter
|
27
|
+
def example_started(example)
|
28
|
+
Zookeeper.logger.info(yellow("=====<([ #{example.full_description} ])>====="))
|
29
|
+
super(example)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
16
35
|
|
17
36
|
RSpec.configure do |config|
|
18
37
|
config.mock_with :flexmock
|
metadata
CHANGED
@@ -1,90 +1,107 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slyphon-zookeeper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 23
|
4
5
|
prerelease:
|
5
|
-
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 2
|
9
|
+
- 0
|
10
|
+
version: 0.2.0
|
6
11
|
platform: ruby
|
7
12
|
authors:
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
13
|
+
- Phillip Pearson
|
14
|
+
- Eric Maland
|
15
|
+
- Evan Weaver
|
16
|
+
- Brian Wickman
|
17
|
+
- Neil Conway
|
18
|
+
- Jonathan D. Simms
|
14
19
|
autorequire:
|
15
20
|
bindir: bin
|
16
21
|
cert_chain: []
|
17
22
|
|
18
|
-
date: 2011-
|
23
|
+
date: 2011-06-17 00:00:00 +00:00
|
19
24
|
default_executable:
|
20
25
|
dependencies:
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: rspec
|
28
|
+
prerelease: false
|
29
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
30
|
+
none: false
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
hash: 15
|
35
|
+
segments:
|
36
|
+
- 2
|
37
|
+
- 0
|
38
|
+
- 0
|
39
|
+
version: 2.0.0
|
40
|
+
type: :development
|
41
|
+
version_requirements: *id001
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: flexmock
|
44
|
+
prerelease: false
|
45
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
46
|
+
none: false
|
47
|
+
requirements:
|
48
|
+
- - ~>
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
hash: 41
|
51
|
+
segments:
|
52
|
+
- 0
|
53
|
+
- 8
|
54
|
+
- 11
|
55
|
+
version: 0.8.11
|
56
|
+
type: :development
|
57
|
+
version_requirements: *id002
|
43
58
|
description: twitter's zookeeper client
|
44
59
|
email:
|
45
|
-
|
60
|
+
- slyphon@gmail.com
|
46
61
|
executables: []
|
47
62
|
|
48
63
|
extensions:
|
49
|
-
|
64
|
+
- ext/extconf.rb
|
50
65
|
extra_rdoc_files: []
|
51
66
|
|
52
67
|
files:
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
68
|
+
- .gitignore
|
69
|
+
- CHANGELOG
|
70
|
+
- Gemfile
|
71
|
+
- LICENSE
|
72
|
+
- Manifest
|
73
|
+
- README
|
74
|
+
- Rakefile
|
75
|
+
- examples/cloud_config.rb
|
76
|
+
- ext/.gitignore
|
77
|
+
- ext/extconf.rb
|
78
|
+
- ext/zkc-3.3.3.tar.gz
|
79
|
+
- ext/zookeeper_base.rb
|
80
|
+
- ext/zookeeper_c.c
|
81
|
+
- ext/zookeeper_lib.c
|
82
|
+
- ext/zookeeper_lib.h
|
83
|
+
- java/zookeeper_base.rb
|
84
|
+
- lib/zookeeper.rb
|
85
|
+
- lib/zookeeper/acls.rb
|
86
|
+
- lib/zookeeper/callbacks.rb
|
87
|
+
- lib/zookeeper/common.rb
|
88
|
+
- lib/zookeeper/constants.rb
|
89
|
+
- lib/zookeeper/em_client.rb
|
90
|
+
- lib/zookeeper/exceptions.rb
|
91
|
+
- lib/zookeeper/stat.rb
|
92
|
+
- notes.txt
|
93
|
+
- slyphon-zookeeper.gemspec
|
94
|
+
- spec/default_watcher_spec.rb
|
95
|
+
- spec/em_spec.rb
|
96
|
+
- spec/log4j.properties
|
97
|
+
- spec/spec_helper.rb
|
98
|
+
- spec/zookeeper_spec.rb
|
99
|
+
- test/test_basic.rb
|
100
|
+
- test/test_callback1.rb
|
101
|
+
- test/test_close.rb
|
102
|
+
- test/test_esoteric.rb
|
103
|
+
- test/test_watcher1.rb
|
104
|
+
- test/test_watcher2.rb
|
88
105
|
has_rdoc: true
|
89
106
|
homepage:
|
90
107
|
licenses: []
|
@@ -93,35 +110,42 @@ post_install_message:
|
|
93
110
|
rdoc_options: []
|
94
111
|
|
95
112
|
require_paths:
|
96
|
-
|
97
|
-
|
113
|
+
- lib
|
114
|
+
- ext
|
98
115
|
required_ruby_version: !ruby/object:Gem::Requirement
|
99
116
|
none: false
|
100
117
|
requirements:
|
101
|
-
|
102
|
-
|
103
|
-
|
118
|
+
- - ">="
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
hash: 3
|
121
|
+
segments:
|
122
|
+
- 0
|
123
|
+
version: "0"
|
104
124
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
125
|
none: false
|
106
126
|
requirements:
|
107
|
-
|
108
|
-
|
109
|
-
|
127
|
+
- - ">="
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
hash: 3
|
130
|
+
segments:
|
131
|
+
- 0
|
132
|
+
version: "0"
|
110
133
|
requirements: []
|
111
134
|
|
112
135
|
rubyforge_project:
|
113
|
-
rubygems_version: 1.
|
136
|
+
rubygems_version: 1.6.2
|
114
137
|
signing_key:
|
115
138
|
specification_version: 3
|
116
139
|
summary: twitter's zookeeper client
|
117
140
|
test_files:
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
141
|
+
- spec/default_watcher_spec.rb
|
142
|
+
- spec/em_spec.rb
|
143
|
+
- spec/log4j.properties
|
144
|
+
- spec/spec_helper.rb
|
145
|
+
- spec/zookeeper_spec.rb
|
146
|
+
- test/test_basic.rb
|
147
|
+
- test/test_callback1.rb
|
148
|
+
- test/test_close.rb
|
149
|
+
- test/test_esoteric.rb
|
150
|
+
- test/test_watcher1.rb
|
151
|
+
- test/test_watcher2.rb
|