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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b88185138e6a8e8de7ce363a550b4630f6e95c8f
4
- data.tar.gz: b234eaee3e59a7441458f4506a09fd5c5e929e2e
3
+ metadata.gz: 785249eb37555296aa2d93478182c292850413fe
4
+ data.tar.gz: 21cf920cade06e1598fee1b47ea19a553a5ab13b
5
5
  SHA512:
6
- metadata.gz: 167be7e9484234a3fd4d282567c1230d1d231463be6ed38bb0adfbddfcc91d198de5af2d636caa0a2b588044afbd9e0c43948a6b10d4ffdd0f581104ac334318
7
- data.tar.gz: 3952e0a94d4efe8ef020812ba0dd6b9379b4bdbe530cfbcb61da532a2286eaff5a79c6574fe772e5168cd11605bdc80b9b77a2313a83f49cc263e7bf365d445a
6
+ metadata.gz: dc4faf271c725f70d7535e675f97ec27c933b6c63a95c69927738e79bef160e8d92bbcc8229177c25589bdcd5b32dd62af6b082b99d60f8f2a63fe88945758ce
7
+ data.tar.gz: 7040138c26ff1c65bd4c2600f16c339c488f214830d3307bb7050523652bc671ab01257fa364a2adfb481f6604d03f98f3a8cea8d56a64a71d7369c8e085fe09
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- poseidon_cluster (0.4.0)
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
@@ -26,7 +26,7 @@ module Poseidon::Cluster
26
26
  # @return [String] an globally unique identifier
27
27
  # @api private
28
28
  def self.guid
29
- [::Socket.gethostname, ::Process.pid, ::Time.now.nsec, inc!].join('-')
29
+ [::Socket.gethostname, ::Process.pid, inc!].join('-')
30
30
  end
31
31
  end
32
32
 
@@ -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 = (options[:trail] ? :latest_offset : :earliest_offset) if offset == 0
41
- options.delete(:trail)
42
- super group.id, broker.host, broker.port, group.topic, partition, offset, options
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
 
@@ -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.0"
8
+ s.version = "0.4.1"
9
9
 
10
10
  s.authors = ["Black Square Media", "Crowdtap Inc."]
11
11
  s.email = "ops@crowdtap.com"
@@ -13,7 +13,7 @@ describe Poseidon::Cluster do
13
13
  end
14
14
 
15
15
  it 'should generate GUIDs' do
16
- described_class.guid.should match(/\A[\w\-\.]+?\-\d{1,5}\-\d{9}\-\d{1,3}\z/)
16
+ described_class.guid.should match(/\A[\w\-\.]+?\-\d{1,5}\-\d{1,3}\z/)
17
17
  end
18
18
 
19
19
  end
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.0
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-09 00:00:00.000000000 Z
12
+ date: 2015-04-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: poseidon