codeclimate-poseidon 0.0.13 → 0.0.14
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89451780f4cbf5a82de300d746c4a438bf0bf677
|
4
|
+
data.tar.gz: 873cd07cf3f43dcab11603bb6158a33e105dde7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a81fa0935d726c4ab4562b2563cabeaa67712b6fa5e12ce327914a3fdd92fb7b4180ed44cbb1f56a574866e7ddb8561b9165a2f7a53a0e3db333e08459230e23
|
7
|
+
data.tar.gz: e010e73bd02ea768b4ae1170ecd12bbdd3be649afb4fbcea4b1fd25d8977f071820d9557ff43081ee14cc65dd77cb3f57e747a8a02eb2e1fa4e4d5d0c9ece0c0
|
data/lib/poseidon/version.rb
CHANGED
@@ -23,6 +23,20 @@ RSpec.describe "consuming with multiple brokers", :type => :request do
|
|
23
23
|
expect(brokers.size).to eq(3)
|
24
24
|
end
|
25
25
|
|
26
|
+
it "raises a helpful error when there's no matching broker to be found" do
|
27
|
+
get_consumer = ->(partition) {
|
28
|
+
PartitionConsumer.consumer_for_partition(
|
29
|
+
"test_client",
|
30
|
+
["localhost:9092"],
|
31
|
+
"test", partition,
|
32
|
+
:earliest_offset,
|
33
|
+
)
|
34
|
+
}
|
35
|
+
|
36
|
+
expect(get_consumer.(0)).to be_a PartitionConsumer
|
37
|
+
expect { get_consumer.(42) }.to raise_error(::Poseidon::Errors::UnknownTopicOrPartition)
|
38
|
+
end
|
39
|
+
|
26
40
|
it "consumes from all partitions" do
|
27
41
|
@p = Producer.new(["localhost:9092","localhost:9093","localhost:9094"], "test",
|
28
42
|
:required_acks => 1)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codeclimate-poseidon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Potter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
185
185
|
version: '0'
|
186
186
|
requirements: []
|
187
187
|
rubyforge_project:
|
188
|
-
rubygems_version: 2.
|
188
|
+
rubygems_version: 2.6.8
|
189
189
|
signing_key:
|
190
190
|
specification_version: 4
|
191
191
|
summary: Poseidon is a producer and consumer implementation for Kafka >= 0.8
|