karafka 1.2.8 → 1.2.10

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
  SHA256:
3
- metadata.gz: 7a4b14c619edcab5a576a211ec9e7a791ebca8e200ee82dccf21d41a9546dcc7
4
- data.tar.gz: 67916109c7f400f6be77eef19cbc7f059ed99c77d9e4e6554abe8925cba2b1e5
3
+ metadata.gz: faa85e7cb9393fe808fe8b50ca7f4ae111d3cf7d8f320e5cb339977dccad230d
4
+ data.tar.gz: 8f880cfeb7236013274e6c93a487ab308f077f75dd8a987a19bc8826f64d5b9d
5
5
  SHA512:
6
- metadata.gz: 46311d0b624a9c4b0859fd79fcbe05a3bef67aa33f1eed53ea9a70f114531775e176b5acce4aa2295960c2180e74060f4f77e2bd49f42e1474f00664996ab4fa
7
- data.tar.gz: 02f3933639045e38b88d23bf811cc7c5e870cc5e76e8e315cb5fa860833f4a2474c99919d74e073588dca957bc2e6f8832c35db9d580d0edb31df1417a7a3712
6
+ metadata.gz: e641fdde14eca1702144864e63c1e563418c3a2d7fc93360078c951f2e55dfffc2274eee8d952195ffe34c2cb1b4a2a66c9f50f5637e7de6f169ca8bf1662a31
7
+ data.tar.gz: 06120b7847d2daf4034f25378603383533de76802adbfdafee86fd3063b2be2e5f94c4ca48762f70c8a460e95153d708ab9eb5f66c930556a19f4a4b95806006
@@ -0,0 +1,3 @@
1
+ api_key: <%= ENV['CODITSU_API_KEY'] %>
2
+ api_secret: <%= ENV['CODITSU_API_SECRET'] %>
3
+ repository_id: <%= ENV['CODITSU_REPOSITORY_ID'] %>
@@ -1 +1 @@
1
- 2.5.1
1
+ 2.6.0
@@ -1,21 +1,49 @@
1
+ services:
2
+ - docker
3
+
1
4
  dist: trusty
2
5
  sudo: false
3
- language: ruby
4
6
  cache: bundler
5
7
 
6
- rvm:
7
- - 2.3.7
8
- - 2.4.4
9
- - 2.5.1
10
- - ruby-head
11
- - jruby-9.2.0.0
8
+ git:
9
+ depth: false
10
+
11
+ test: &test
12
+ stage: Test
13
+ language: ruby
14
+ before_install:
15
+ - gem install bundler
16
+ - gem update --system
17
+ script: bundle exec rspec
12
18
 
13
- env:
14
- global:
15
- - JRUBY_OPTS='--debug'
19
+ jobs:
20
+ include:
21
+ - <<: *test
22
+ rvm: 2.6.0
23
+ - <<: *test
24
+ rvm: 2.5.3
25
+ - <<: *test
26
+ rvm: 2.4.5
27
+ - <<: *test
28
+ rvm: 2.3.8
16
29
 
17
- before_install:
18
- - gem install bundler
19
- - gem update --system
30
+ - stage: coditsu
31
+ language: ruby
32
+ rvm: 2.6.0
33
+ before_install:
34
+ - gem update --system
35
+ - gem install bundler
36
+ before_script:
37
+ - docker create -v /sources --name sources alpine:3.4 /bin/true
38
+ - docker cp ./ sources:/sources
39
+ script: >
40
+ docker run
41
+ -e CODITSU_API_KEY
42
+ -e CODITSU_API_SECRET
43
+ -e CODITSU_REPOSITORY_ID
44
+ --volumes-from sources
45
+ coditsu/build-runner:latest
20
46
 
21
- script: bundle exec rspec
47
+ stages:
48
+ - coditsu
49
+ - test
@@ -1,5 +1,14 @@
1
1
  # Karafka framework changelog
2
2
 
3
+ ## 1.2.10
4
+ - [#453](https://github.com/karafka/karafka/pull/453) require `Forwardable` module
5
+
6
+ ## 1.2.9
7
+ - Critical exceptions now will cause consumer to stop instead of retrying without a break
8
+ - #412 - Fix dry-inflector dependency lock in gemspec
9
+ - #414 - Backport to 1.2 the delayed retry upon failure
10
+ - #437 - Raw message is no longer added to params after ParserError raised
11
+
3
12
  ## 1.2.8
4
13
  - #408 - Responder Topic Lookup Bug on Heroku
5
14
 
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka (1.2.8)
4
+ karafka (1.2.10)
5
5
  activesupport (>= 4.0)
6
6
  dry-configurable (~> 0.7)
7
- dry-inflector (~> 0.1.1)
7
+ dry-inflector (~> 0.1)
8
8
  dry-monitor (~> 0.1)
9
9
  dry-validation (~> 0.11)
10
10
  envlogic (~> 1.0)
@@ -18,13 +18,13 @@ PATH
18
18
  GEM
19
19
  remote: https://rubygems.org/
20
20
  specs:
21
- activesupport (5.2.1)
21
+ activesupport (5.2.2)
22
22
  concurrent-ruby (~> 1.0, >= 1.0.2)
23
23
  i18n (>= 0.7, < 2)
24
24
  minitest (~> 5.1)
25
25
  tzinfo (~> 1.1)
26
26
  benchmark-ips (2.7.2)
27
- concurrent-ruby (1.0.5)
27
+ concurrent-ruby (1.1.4)
28
28
  delivery_boy (0.2.7)
29
29
  king_konf (~> 0.2)
30
30
  ruby-kafka (~> 0.5)
@@ -53,7 +53,7 @@ GEM
53
53
  dry-equalizer (~> 0.2)
54
54
  dry-events (~> 0.1)
55
55
  rouge (~> 2.0, >= 2.2.1)
56
- dry-types (0.13.2)
56
+ dry-types (0.13.4)
57
57
  concurrent-ruby (~> 1.0)
58
58
  dry-container (~> 0.3)
59
59
  dry-core (~> 0.4, >= 0.4.4)
@@ -69,15 +69,14 @@ GEM
69
69
  dry-types (~> 0.13.1)
70
70
  envlogic (1.1.0)
71
71
  dry-inflector (~> 0.1)
72
- i18n (1.1.0)
72
+ i18n (1.5.2)
73
73
  concurrent-ruby (~> 1.0)
74
74
  json (2.1.0)
75
- json (2.1.0-java)
76
- king_konf (0.3.6)
75
+ king_konf (0.3.7)
77
76
  minitest (5.11.3)
78
77
  multi_json (1.13.1)
79
78
  null-logger (0.1.5)
80
- rake (12.3.1)
79
+ rake (12.3.2)
81
80
  require_all (2.0.0)
82
81
  rouge (2.2.1)
83
82
  rspec (3.8.0)
@@ -86,21 +85,21 @@ GEM
86
85
  rspec-mocks (~> 3.8.0)
87
86
  rspec-core (3.8.0)
88
87
  rspec-support (~> 3.8.0)
89
- rspec-expectations (3.8.1)
88
+ rspec-expectations (3.8.2)
90
89
  diff-lcs (>= 1.2.0, < 2.0)
91
90
  rspec-support (~> 3.8.0)
92
91
  rspec-mocks (3.8.0)
93
92
  diff-lcs (>= 1.2.0, < 2.0)
94
93
  rspec-support (~> 3.8.0)
95
94
  rspec-support (3.8.0)
96
- ruby-kafka (0.7.2)
95
+ ruby-kafka (0.7.5)
97
96
  digest-crc
98
97
  simplecov (0.16.1)
99
98
  docile (~> 1.1)
100
99
  json (>= 1.8, < 3)
101
100
  simplecov-html (~> 0.10.0)
102
101
  simplecov-html (0.10.2)
103
- thor (0.20.0)
102
+ thor (0.20.3)
104
103
  thread_safe (0.3.6)
105
104
  timecop (0.9.1)
106
105
  tzinfo (1.2.5)
@@ -114,7 +113,6 @@ GEM
114
113
  ruby-kafka (>= 0.6)
115
114
 
116
115
  PLATFORMS
117
- java
118
116
  ruby
119
117
 
120
118
  DEPENDENCIES
@@ -125,4 +123,4 @@ DEPENDENCIES
125
123
  timecop
126
124
 
127
125
  BUNDLED WITH
128
- 1.16.5
126
+ 2.0.1
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
 
19
19
  spec.add_dependency 'activesupport', '>= 4.0'
20
20
  spec.add_dependency 'dry-configurable', '~> 0.7'
21
- spec.add_dependency 'dry-inflector', '~> 0.1.1'
21
+ spec.add_dependency 'dry-inflector', '~> 0.1'
22
22
  spec.add_dependency 'dry-monitor', '~> 0.1'
23
23
  spec.add_dependency 'dry-validation', '~> 0.11'
24
24
  spec.add_dependency 'envlogic', '~> 1.0'
@@ -6,6 +6,7 @@
6
6
  kafka
7
7
  envlogic
8
8
  thor
9
+ forwardable
9
10
  fileutils
10
11
  multi_json
11
12
  require_all
@@ -41,16 +41,6 @@ module Karafka
41
41
  )
42
42
  pause(error.topic, error.partition)
43
43
  retry
44
- # This is on purpose - see the notes for this method
45
- # rubocop:disable RescueException
46
- rescue Exception => error
47
- # rubocop:enable RescueException
48
- Karafka.monitor.instrument(
49
- 'connection.client.fetch_loop.error',
50
- caller: self,
51
- error: error
52
- )
53
- retry
54
44
  end
55
45
 
56
46
  # Gracefuly stops topic consumption
@@ -46,8 +46,8 @@ module Karafka
46
46
  rescue Exception => e
47
47
  Karafka.monitor.instrument('connection.listener.fetch_loop.error', caller: self, error: e)
48
48
  # rubocop:enable RescueException
49
- @client&.stop
50
- retry if @client
49
+ @client.stop
50
+ sleep(@consumer_group.reconnect_timeout) && retry
51
51
  end
52
52
 
53
53
  # @return [Karafka::Connection::Client] wrapped kafka consuming client for a given topic
@@ -93,7 +93,9 @@ module Karafka
93
93
  return self if self['parsed']
94
94
  self['parsed'] = true
95
95
 
96
- merge!(parse(delete('value')))
96
+ parsed_data = parse(self['value'])
97
+ delete('value')
98
+ merge!(parsed_data)
97
99
  end
98
100
 
99
101
  # Includes and extends the base params klass with everything that is needed by Karafka to
@@ -3,5 +3,5 @@
3
3
  # Main module namespace
4
4
  module Karafka
5
5
  # Current Karafka version
6
- VERSION = '1.2.8'
6
+ VERSION = '1.2.10'
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: karafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.8
4
+ version: 1.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Mensfeld
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-10-01 00:00:00.000000000 Z
13
+ date: 2019-01-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -46,14 +46,14 @@ dependencies:
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: 0.1.1
49
+ version: '0.1'
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - "~>"
55
55
  - !ruby/object:Gem::Version
56
- version: 0.1.1
56
+ version: '0.1'
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: dry-monitor
59
59
  requirement: !ruby/object:Gem::Requirement
@@ -190,6 +190,7 @@ executables:
190
190
  extensions: []
191
191
  extra_rdoc_files: []
192
192
  files:
193
+ - ".coditsu.yml"
193
194
  - ".console_irbrc"
194
195
  - ".gitignore"
195
196
  - ".rspec"
@@ -295,8 +296,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
295
296
  - !ruby/object:Gem::Version
296
297
  version: '0'
297
298
  requirements: []
298
- rubyforge_project:
299
- rubygems_version: 2.7.4
299
+ rubygems_version: 3.0.1
300
300
  signing_key:
301
301
  specification_version: 4
302
302
  summary: Ruby based framework for working with Apache Kafka