poseidon_cluster 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/poseidon/consumer_group.rb +1 -1
- data/poseidon_cluster.gemspec +1 -1
- data/spec/lib/poseidon/consumer_group_spec.rb +10 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fdfd7e6b7b3ed46162a59f2aa5846e9fe262dcf7
|
4
|
+
data.tar.gz: 9834dcd44fc299199b5713037e6561f6f997a83a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84f4a82d73d4051cf867b55894284916c7ac8338dd6823b198cfe3d0f6da85f315de7ef9f8e9691dbf595df0a508da144844c648b365fa388327487ec3374239
|
7
|
+
data.tar.gz: 0447d4782b0c742c1c504d8158a6208f8d3be0d7eee669d2594e62c925dea4c946709963ffa9e8cb71ebf8689f2a479a9b8981650bd10df9c792575954725039
|
data/Gemfile.lock
CHANGED
data/poseidon_cluster.gemspec
CHANGED
@@ -5,7 +5,7 @@ Gem::Specification.new do |s|
|
|
5
5
|
s.name = File.basename(__FILE__, '.gemspec')
|
6
6
|
s.summary = "Poseidon cluster extensions"
|
7
7
|
s.description = "Cluster extensions for Poseidon, a producer and consumer implementation for Kafka >= 0.8"
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.2"
|
9
9
|
|
10
10
|
s.authors = ["Black Square Media"]
|
11
11
|
s.email = "info@blacksquaremedia.com"
|
@@ -76,6 +76,16 @@ describe Poseidon::ConsumerGroup do
|
|
76
76
|
subject
|
77
77
|
end
|
78
78
|
|
79
|
+
it "should defer registration when asked to" do
|
80
|
+
client = described_class.new "my-group", ["localhost:29092", "localhost:29091"], ["localhost:22181"], "mytopic", register: false
|
81
|
+
|
82
|
+
client.should_not be_registered
|
83
|
+
zk_client.should_not have_received(:register)
|
84
|
+
|
85
|
+
client.register!
|
86
|
+
client.should be_registered
|
87
|
+
end
|
88
|
+
|
79
89
|
it "should sort partitions by leader address" do
|
80
90
|
subject.partitions.map(&:id).should == [1, 0]
|
81
91
|
end
|