promiscuous-poseidon_cluster 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/poseidon/cluster.rb +1 -1
- data/lib/poseidon/consumer_group.rb +9 -3
- data/poseidon_cluster.gemspec +1 -1
- data/spec/lib/poseidon/cluster_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 785249eb37555296aa2d93478182c292850413fe
|
4
|
+
data.tar.gz: 21cf920cade06e1598fee1b47ea19a553a5ab13b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc4faf271c725f70d7535e675f97ec27c933b6c63a95c69927738e79bef160e8d92bbcc8229177c25589bdcd5b32dd62af6b082b99d60f8f2a63fe88945758ce
|
7
|
+
data.tar.gz: 7040138c26ff1c65bd4c2600f16c339c488f214830d3307bb7050523652bc671ab01257fa364a2adfb481f6604d03f98f3a8cea8d56a64a71d7369c8e085fe09
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
poseidon_cluster (0.4.
|
4
|
+
promiscuous-poseidon_cluster (0.4.1)
|
5
5
|
poseidon (>= 0.0.5.pre1)
|
6
6
|
zk
|
7
7
|
|
@@ -65,7 +65,7 @@ PLATFORMS
|
|
65
65
|
DEPENDENCIES
|
66
66
|
bundler
|
67
67
|
coveralls
|
68
|
-
poseidon_cluster!
|
68
|
+
promiscuous-poseidon_cluster!
|
69
69
|
rake
|
70
70
|
rspec
|
71
71
|
rspec-its
|
data/lib/poseidon/cluster.rb
CHANGED
@@ -35,11 +35,17 @@ class Poseidon::ConsumerGroup
|
|
35
35
|
|
36
36
|
# @api private
|
37
37
|
def initialize(group, partition, options = {})
|
38
|
+
opts = options.dup
|
38
39
|
broker = group.leader(partition)
|
39
40
|
offset = group.offset(partition)
|
40
|
-
offset = (
|
41
|
-
|
42
|
-
|
41
|
+
offset = (opts[:trail] ? :latest_offset : :earliest_offset) if offset == 0
|
42
|
+
|
43
|
+
# Remove unsupported options for Poseidon::PartitionConsumer
|
44
|
+
opts.delete(:claim_timeout)
|
45
|
+
opts.delete(:register)
|
46
|
+
opts.delete(:trail)
|
47
|
+
|
48
|
+
super(group.id, broker.host, broker.port, group.topic, partition, offset, opts)
|
43
49
|
end
|
44
50
|
end
|
45
51
|
|
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.4.
|
8
|
+
s.version = "0.4.1"
|
9
9
|
|
10
10
|
s.authors = ["Black Square Media", "Crowdtap Inc."]
|
11
11
|
s.email = "ops@crowdtap.com"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: promiscuous-poseidon_cluster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Black Square Media
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-04-
|
12
|
+
date: 2015-04-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: poseidon
|