Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/poseidon/topic_metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def initialize(struct=nil)
end

# Write a binary representation of the TopicMetadata to buffer
#
#
# @param [RequestBuffer] buffer
# @return [nil]
def write(buffer)
Expand Down Expand Up @@ -56,7 +56,7 @@ def partition_count

def available_partitions
@available_partitions ||= struct.partitions.select do |partition|
partition.error == 0 && partition.leader != -1
(partition.error == Errors::NO_ERROR_CODE || Errors::ERROR_CODES[partition.error] == Errors::ReplicaNotAvailable) && partition.leader != -1
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/poseidon/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Poseidon
# Unstable! API May Change!
VERSION = "0.0.5"
VERSION = "0.0.6"
end
10 changes: 5 additions & 5 deletions poseidon.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'poseidon/version'

Gem::Specification.new do |gem|
gem.name = "poseidon"
gem.name = "codeclimate-poseidon"
gem.version = Poseidon::VERSION
gem.authors = ["Bob Potter"]
gem.email = ["[email protected]"]
gem.description = %q{A Kafka (http://kafka.apache.org/) producer and consumer}
gem.authors = ["Bob Potter", "Code Climate"]
gem.email = ["[email protected]", "[email protected]"]
gem.description = %q{Forked from bpot/poseidon: a Kafka (http://kafka.apache.org/) producer and consumer}
gem.summary = %q{Poseidon is a producer and consumer implementation for Kafka >= 0.8}
gem.homepage = "https://github.com/bpot/poseidon"
gem.homepage = "https://github.com/codeclimate/poseidon"
gem.licenses = ["MIT"]
gem.required_ruby_version = '>= 1.9.3'

Expand Down