phobos 1.8.2.pre.beta2 → 1.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1263c2db9d40f0099ff81e41fd27c93c29e18a1d5b7b82db37f22c141db11a67
4
- data.tar.gz: 3185ecc3c82100c1667d7aa70e0c7338fd5077ec77aff07676457d637c6acbf1
3
+ metadata.gz: d3f3c1ad74b3d1ee04488489b58fd47537cc49b9fd16c3752147aa5474bcd056
4
+ data.tar.gz: 51ca16ae8151c2382a1a7437705ac367d12e719d5d543f741c16a009e866c9a3
5
5
  SHA512:
6
- metadata.gz: e3010972a7e2de780a046f10c188ec3b65d75c470a84e4f7a64861940a88e95c04dcb99c46cbe08f9ea10ed2ad055fffb13b2ea858891b603f3d5527cd89ab60
7
- data.tar.gz: '09778609c9c57778ea845f676024c76a7fce13e3942ba3e4f4beca2571cb88ddb4311e39831ff866a1256d18612f179f05415298b249932c0d97a35fb0c069e1'
6
+ metadata.gz: 7fb6905d14486add7486adc7949aca8f45205afb9477853cd90a4d547eb4e616844d9c3dd66a179cc555fba132b6e5013bb0e2ab99a97b7eed3cf8e676d391e1
7
+ data.tar.gz: d166d4af37a4c5cfc99235a53066c1815c4068de338fd1b5555f9488d1a42c7efa41cb998dff784fa871f7233c78233c81221e51d84ccb0774f227df74536de9
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
7
  ## UNRELEASED
8
8
 
9
+ ## [1.8.2] - 2019-10-23
10
+ - Version bump for official release.
11
+
9
12
  ## [1.8.2-beta2] - 2019-06-21
10
13
  - Added the `persistent_connections` setting and the corresponding
11
14
  `sync_producer_shutdown` method to enable reusing the connection
data/README.md CHANGED
@@ -217,7 +217,7 @@ The hander life cycle can be illustrated as:
217
217
  or optionally,
218
218
 
219
219
  `.start` -> `#before_consume` -> `#around_consume` [ `#consume` ] -> `.stop`
220
-
220
+
221
221
  #### Batch Consumption
222
222
 
223
223
  In addition to the regular handler, Phobos provides a `BatchHandler`. The
@@ -235,24 +235,24 @@ use `Handler`.
235
235
 
236
236
  ```ruby
237
237
  class MyBatchHandler
238
- includes Phobos::BatchHandler
239
-
238
+ include Phobos::BatchHandler
239
+
240
240
  def before_consume_batch(payloads, metadata)
241
241
  payloads.each do |p|
242
242
  p.payload[:timestamp] = Time.zone.now
243
243
  end
244
244
  end
245
-
245
+
246
246
  def around_consume_batch(payloads, metadata)
247
247
  yield
248
248
  end
249
-
249
+
250
250
  def consume_batch(payloads, metadata)
251
251
  payloads.each do |p|
252
252
  logger.info("Got payload #{p.payload}, #{p.partition}, #{p.offset}, #{p.key}, #{p.payload[:timestamp]}")
253
253
  end
254
254
  end
255
-
255
+
256
256
  end
257
257
  ```
258
258
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Phobos
4
- VERSION = '1.8.2-beta2'
4
+ VERSION = '1.8.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phobos
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.2.pre.beta2
4
+ version: 1.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Túlio Ornelas
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2019-06-21 00:00:00.000000000 Z
18
+ date: 2019-11-11 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: bundler
@@ -310,9 +310,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
310
310
  version: '2.3'
311
311
  required_rubygems_version: !ruby/object:Gem::Requirement
312
312
  requirements:
313
- - - ">"
313
+ - - ">="
314
314
  - !ruby/object:Gem::Version
315
- version: 1.3.1
315
+ version: '0'
316
316
  requirements: []
317
317
  rubygems_version: 3.0.2
318
318
  signing_key: