poseidon_cluster 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b784eb5e0585ba15db6fbe98d7292791e0ad6e32
4
- data.tar.gz: 4cde9acad5d3e451f89c557077286bf3baa1f05e
3
+ metadata.gz: fdfd7e6b7b3ed46162a59f2aa5846e9fe262dcf7
4
+ data.tar.gz: 9834dcd44fc299199b5713037e6561f6f997a83a
5
5
  SHA512:
6
- metadata.gz: a2c3e4f6a23be677ebd633f263f096c21ddcb86d2758616b952609ab903b68df23b1e8479e717f8f393909882d82e08e1cf106796f636c3032e87b3ff13bcce6
7
- data.tar.gz: 28f3cbfc834e3ca93f83e48acabe618a99a2b18ba0595f452de5223a6729a4d463d42af5a2c50e44690dc537ee6acc736f525e97d1460b08014c25345128a383
6
+ metadata.gz: 84f4a82d73d4051cf867b55894284916c7ac8338dd6823b198cfe3d0f6da85f315de7ef9f8e9691dbf595df0a508da144844c648b365fa388327487ec3374239
7
+ data.tar.gz: 0447d4782b0c742c1c504d8158a6208f8d3be0d7eee669d2594e62c925dea4c946709963ffa9e8cb71ebf8689f2a479a9b8981650bd10df9c792575954725039
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- poseidon_cluster (0.3.1)
4
+ poseidon_cluster (0.3.2)
5
5
  poseidon (>= 0.0.5, < 0.1.0)
6
6
  zk
7
7
 
@@ -107,7 +107,7 @@ class Poseidon::ConsumerGroup
107
107
  @mutex = Mutex.new
108
108
  @registered = false
109
109
 
110
- register! unless options[:register] == false
110
+ register! unless options.delete(:register) == false
111
111
  end
112
112
 
113
113
  # @return [String] a globally unique identifier
@@ -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.1"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poseidon_cluster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Black Square Media