phobos 2.0.0.pre.beta1 → 2.0.1

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: 646f966d9d307346090b88a3ef52f784da42f07a7f8fd3369131a4d1149fc293
4
- data.tar.gz: 3631aef66014166e318f24b8b282265e0d3663ed006b915c49762301e8f02b89
3
+ metadata.gz: 9e0e6b91f9e7afec0ae7b099dfd87c9106e4d8691c61093e6e0b5c3cddf11a10
4
+ data.tar.gz: 3f346e5a54b758a14a24da2ff187e3cb3e76ae855ee2f96462272bac5e16c835
5
5
  SHA512:
6
- metadata.gz: c19eedfd196604f55ea659d501323cecfca50c4c53a03ae1193457f344e4a1e580bbd7ca2b33559b20ab2c1418143b48b6d9e4942986f71b369f4a9e261ccfeb
7
- data.tar.gz: cdbd2146b341d91bb7131eb986e24055bf73054ed12eb542e09c9d2a56b4b462bd4d3015e5ee3a00934e4e125658e5438987b402aa2edb0ca2fac2172b098f58
6
+ metadata.gz: 3f428b81a60214c3038ce4cace27d3c88de0045ec735cd674eac8b5053dc7748ca5b1318dbab250f203ee896df1975ad3a916cf5302cd42d6c314bcd5f40f914
7
+ data.tar.gz: 7f03ea7b6445e9a9480169515f13fa5cb542f6dc7b8b6f7b93b1222738ec80f1d34bc6358e4d960d8191033d830e8b65ceb83fa40885097520af78f434325fd5
data/.gitignore CHANGED
@@ -12,3 +12,4 @@ spec/examples.txt
12
12
  config/*.yml
13
13
  log/*.log
14
14
  .byebug_history
15
+ .idea
@@ -6,7 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
  ``
7
7
  ## UNRELEASED
8
8
 
9
- ## [2.0.0-beta1] - 2020-5-04
9
+ # [2.0.1] - 2021-01-14
10
+ - Fix bug with Ruby 3.0 around OpenStruct
11
+
12
+ ## [2.0.0-beta1] - 2020-05-04
10
13
 
11
14
  - Remove deprecated patterns:
12
15
  -- `before_consume` method
data/README.md CHANGED
@@ -596,8 +596,16 @@ Phobos exports a spec helper that can help you test your consumer. The Phobos li
596
596
  * `process_message(handler:, payload:, metadata: {}, encoding: nil)` - Invokes your handler with payload and metadata, using a dummy listener (encoding and metadata are optional).
597
597
 
598
598
  ```ruby
599
- require 'spec_helper'
599
+ ### spec_helper.rb
600
+ require 'phobos/test/helper'
601
+ RSpec.configure do |config|
602
+ config.include Phobos::Test::Helper
603
+ config.before(:each) do
604
+ Phobos.configure(path_to_my_config_file)
605
+ end
606
+ end
600
607
 
608
+ ### Spec file
601
609
  describe MyConsumer do
602
610
  let(:payload) { 'foo' }
603
611
  let(:metadata) { Hash(foo: 'bar') }
@@ -8,7 +8,7 @@ module Phobos
8
8
  # Based on
9
9
  # https://docs.omniref.com/ruby/2.3.0/files/lib/ostruct.rb#line=88
10
10
  def initialize(hash = nil)
11
- @table = {}
11
+ super
12
12
  @hash_table = {}
13
13
 
14
14
  hash&.each_pair do |key, value|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Phobos
4
- VERSION = '2.0.0-beta1'
4
+ VERSION = '2.0.1'
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: 2.0.0.pre.beta1
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Túlio Ornelas
@@ -12,10 +12,10 @@ authors:
12
12
  - Francisco Juan
13
13
  - Tommy Gustafsson
14
14
  - Daniel Orner
15
- autorequire:
15
+ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2020-05-04 00:00:00.000000000 Z
18
+ date: 2021-01-14 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: bundler
@@ -299,7 +299,7 @@ licenses:
299
299
  - Apache License Version 2.0
300
300
  metadata:
301
301
  allowed_push_host: https://rubygems.org
302
- post_install_message:
302
+ post_install_message:
303
303
  rdoc_options: []
304
304
  require_paths:
305
305
  - lib
@@ -310,12 +310,12 @@ 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
- rubygems_version: 3.1.2
318
- signing_key:
317
+ rubygems_version: 3.0.9
318
+ signing_key:
319
319
  specification_version: 4
320
320
  summary: Simplifying Kafka for ruby apps
321
321
  test_files: []