codeclimate-kafka 0.9.1 → 0.10.0

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: da84652bf80c840ce8b252995e82a7c15730ef21
4
- data.tar.gz: 1171c4990df560094a7b35f159ba38361723ea24
3
+ metadata.gz: e979e4e1f14b27092907319b5495296608b01174
4
+ data.tar.gz: 8a302b615bce3b0ff138366abac953a46aa356ff
5
5
  SHA512:
6
- metadata.gz: 31228827a5b4c87e4e3930d86b11f9cbb2fdb79c0e61ca9c97f797e0cb4d098690390cb05fe36437b52df56ec6140c323870f0dc605e178316101667ae28dafd
7
- data.tar.gz: ce830388cc5ea4ce41fe04598647bc8e3a36a7f86d3c2ac699a6d959240270c3b0bf037c0db4ba5a83aa3189d9b0877395185fa9b8165ff08e6725301bc7afda
6
+ metadata.gz: e8ba0b2fcfd5866941046d1a9cc26934250750f23e23cae0f2fb70311be19e517665663342c383c96fea256265e4c84db16a0040786e0ad7ae2d2e284007c807
7
+ data.tar.gz: 1fa178771dbd83c844374e7d54bbb1ebadf1fb1e6852c7ba2e9cf8c549c6736cb2bf6ec2dcf27d70b1f41a57fbe2810d3ecb48989eeb74bc40079fb5a9e48467
@@ -95,16 +95,14 @@ module CC
95
95
  Kafka.statsd.time("messages.processing") do
96
96
  set_offset(message.offset + 1)
97
97
 
98
- Kafka.offset_model.transaction do
99
- data = BSON.deserialize(message.value)
100
- data[MESSAGE_OFFSET_KEY] = [
101
- @offset.topic,
102
- @offset.partition,
103
- message.offset,
104
- ].join("-")
105
-
106
- @on_message.call(data)
107
- end
98
+ data = BSON.deserialize(message.value)
99
+ data[MESSAGE_OFFSET_KEY] = [
100
+ @offset.topic,
101
+ @offset.partition,
102
+ message.offset,
103
+ ].join("-")
104
+
105
+ @on_message.call(data)
108
106
  end
109
107
  Kafka.statsd.increment("messages.processed")
110
108
  end
@@ -2,10 +2,6 @@ module CC
2
2
  module Kafka
3
3
  module OffsetStorage
4
4
  Memory = Struct.new(:topic, :partition, :current) do
5
- def self.transaction
6
- yield
7
- end
8
-
9
5
  def self.find_or_create!(attrs)
10
6
  @offset ||= new(attrs[:topic], attrs[:partition], nil)
11
7
  end
@@ -1,5 +1,5 @@
1
1
  module CC
2
2
  module Kafka
3
- VERSION = "0.9.1"
3
+ VERSION = "0.10.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codeclimate-kafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code Climate
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-03 00:00:00.000000000 Z
11
+ date: 2016-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bson
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.0.8
47
+ version: 0.0.12
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.0.8
54
+ version: 0.0.12
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement