karafka 1.1.0.alpha2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -6
- data/README.md +17 -40
- data/karafka.gemspec +1 -1
- data/lib/karafka/base_controller.rb +1 -8
- data/lib/karafka/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26ee2938706de62609da9faf4179b3071fdc9e62
|
4
|
+
data.tar.gz: eedc149b1ade99a21d82f32ad3ec9009b065cc89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e25b2453563d9330955248307eee910147899fefb15bc197313f79012c132f0970fede7f0a0fd50b6966267c9d7d48f82f50b75fea927baa8c01bf68ebee305
|
7
|
+
data.tar.gz: 902fd68ad24eb5400976d9f6b3cc5d955617a70e0b14186e2b27e8292fcff2d59aa013231834ad679c9694eebd6809589cf98715151d89a1637d6e71e2f5a14e
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
karafka (1.1.0
|
4
|
+
karafka (1.1.0)
|
5
5
|
activesupport (>= 5.0)
|
6
6
|
dry-configurable (~> 0.7)
|
7
7
|
dry-validation (~> 0.11)
|
@@ -11,7 +11,7 @@ PATH
|
|
11
11
|
require_all (>= 1.4)
|
12
12
|
ruby-kafka (>= 0.5)
|
13
13
|
thor (~> 0.19)
|
14
|
-
waterdrop (>= 1.0.
|
14
|
+
waterdrop (>= 1.0.1)
|
15
15
|
|
16
16
|
GEM
|
17
17
|
remote: https://rubygems.org/
|
@@ -32,14 +32,14 @@ GEM
|
|
32
32
|
dry-container (0.6.0)
|
33
33
|
concurrent-ruby (~> 1.0)
|
34
34
|
dry-configurable (~> 0.1, >= 0.1.3)
|
35
|
-
dry-core (0.
|
35
|
+
dry-core (0.4.1)
|
36
36
|
concurrent-ruby (~> 1.0)
|
37
37
|
dry-equalizer (0.2.0)
|
38
38
|
dry-logic (0.4.2)
|
39
39
|
dry-container (~> 0.2, >= 0.2.6)
|
40
40
|
dry-core (~> 0.2)
|
41
41
|
dry-equalizer (~> 0.2)
|
42
|
-
dry-types (0.12.
|
42
|
+
dry-types (0.12.2)
|
43
43
|
concurrent-ruby (~> 1.0)
|
44
44
|
dry-configurable (~> 0.1)
|
45
45
|
dry-container (~> 0.3)
|
@@ -56,7 +56,7 @@ GEM
|
|
56
56
|
dry-types (~> 0.12.0)
|
57
57
|
envlogic (1.0.4)
|
58
58
|
activesupport
|
59
|
-
i18n (0.9.
|
59
|
+
i18n (0.9.1)
|
60
60
|
concurrent-ruby (~> 1.0)
|
61
61
|
inflecto (0.0.2)
|
62
62
|
json (2.1.0)
|
@@ -90,7 +90,7 @@ GEM
|
|
90
90
|
timecop (0.9.1)
|
91
91
|
tzinfo (1.2.4)
|
92
92
|
thread_safe (~> 0.1)
|
93
|
-
waterdrop (1.0.
|
93
|
+
waterdrop (1.0.1)
|
94
94
|
delivery_boy (>= 0.2.2)
|
95
95
|
dry-configurable (~> 0.7)
|
96
96
|
dry-validation (~> 0.11)
|
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
![karafka logo](https://raw.githubusercontent.com/karafka/misc/master/logo/karafka_logotype_transparent2.png)
|
2
2
|
|
3
3
|
[![Build Status](https://travis-ci.org/karafka/karafka.svg?branch=master)](https://travis-ci.org/karafka/karafka)
|
4
|
-
[![Backers on Open Collective](https://opencollective.com/karafka/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/karafka/sponsors/badge.svg)](#sponsors) [![Join the chat at https://gitter.im/karafka/karafka](https://badges.gitter.im/karafka/karafka.svg)](https://gitter.im/karafka/karafka?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
5
4
|
|
6
5
|
Framework used to simplify Apache Kafka based Ruby applications development.
|
7
6
|
|
@@ -13,12 +12,25 @@ Karafka not only handles incoming messages but also provides tools for building
|
|
13
12
|
|
14
13
|
Karafka provides a higher-level abstraction that allows you to focus on your business logic development, instead of focusing on implementing lower level abstraction layers. It provides developers with a set of tools that are dedicated for building multi-topic applications similarly to how Rails applications are being built.
|
15
14
|
|
15
|
+
### Some things you might wonder about:
|
16
|
+
|
17
|
+
- You can integrate Karafka with any Ruby based application.
|
18
|
+
- Karafka does **not** require Sidekiq or any other third party software (apart from Kafka itself).
|
19
|
+
- Karafka works with Ruby on Rails but it is a standalone framework that can work without it.
|
20
|
+
- Karafka has a minimal set of dependencies, so adding it won't be a huge burden for your already existing applications.
|
21
|
+
|
16
22
|
Karafka based applications can be easily deployed to any type of infrastructure, including those based on:
|
17
23
|
|
18
24
|
* Heroku
|
19
25
|
* Capistrano
|
20
26
|
* Docker
|
21
27
|
|
28
|
+
## Support
|
29
|
+
|
30
|
+
Karafka has a [Wiki pages](https://github.com/karafka/karafka/wiki) for almost everything and a pretty decent [FAQ](https://github.com/karafka/karafka/wiki/FAQ). It covers the whole installation, setup and deployment along with other useful details on how to run Karafka.
|
31
|
+
|
32
|
+
If you have any questions about using Karafka, feel free to join our [Gitter](https://gitter.im/karafka/karafka) chat channel.
|
33
|
+
|
22
34
|
## Getting started
|
23
35
|
|
24
36
|
If you want to get started with Kafka and Karafka as fast as possible, then the best idea is to just clone our example repository:
|
@@ -40,20 +52,6 @@ and follow the instructions from the [example app Wiki](https://github.com/karaf
|
|
40
52
|
|
41
53
|
If you need more details and know how on how to start Karafka with a clean installation, read the [Getting started page](https://github.com/karafka/karafka/wiki/Getting-started) section of our Wiki.
|
42
54
|
|
43
|
-
## Support
|
44
|
-
|
45
|
-
Karafka has a [Wiki pages](https://github.com/karafka/karafka/wiki) for almost everything. It covers the whole installation, setup and deployment along with other useful details on how to run Karafka.
|
46
|
-
|
47
|
-
If you have any questions about using Karafka, feel free to join our [Gitter](https://gitter.im/karafka/karafka) chat channel.
|
48
|
-
|
49
|
-
Karafka dev team also provides commercial support in following matters:
|
50
|
-
|
51
|
-
- Additional programming services for integrating existing Ruby apps with Kafka and Karafka
|
52
|
-
- Expertise and guidance on using Karafka within new and existing projects
|
53
|
-
- Trainings on how to design and develop systems based on Apache Kafka and Karafka framework
|
54
|
-
|
55
|
-
If you are interested in our commercial services, please contact [Maciej Mensfeld (maciej@coditsu.io)](mailto:maciej@coditsu.io) directly.
|
56
|
-
|
57
55
|
## Notice
|
58
56
|
|
59
57
|
Karafka framework and Karafka team are __not__ related to Kafka streaming service called CloudKarafka in any matter. We don't recommend nor discourage usage of their platform.
|
@@ -80,39 +78,18 @@ Unfortunately, it does not yet support independent forks, however you should be
|
|
80
78
|
Please run:
|
81
79
|
|
82
80
|
```bash
|
83
|
-
bundle exec rspec
|
81
|
+
bundle exec rspec
|
84
82
|
```
|
85
83
|
|
86
84
|
to check if everything is in order. After that you can submit a pull request.
|
87
85
|
|
88
86
|
## Contributors
|
89
87
|
|
90
|
-
This project exists thanks to all the people who contribute.
|
88
|
+
This project exists thanks to all the people who contribute.
|
91
89
|
<a href="https://github.com/karafka/karafka/graphs/contributors"><img src="https://opencollective.com/karafka/contributors.svg?width=890" /></a>
|
92
90
|
|
93
|
-
## Backers
|
94
|
-
|
95
|
-
Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/karafka#backer)]
|
96
|
-
|
97
|
-
<a href="https://opencollective.com/karafka#backers" target="_blank"><img src="https://opencollective.com/karafka/backers.svg?width=890"></a>
|
98
|
-
|
99
|
-
|
100
91
|
## Sponsors
|
101
92
|
|
102
|
-
We are looking for sustainable sponsorship. If your company is relying on Karafka framework or simply want to see Karafka evolve faster to meet your requirements, please consider backing the project.
|
103
|
-
|
104
|
-
Please contact [Maciej Mensfeld (maciej@coditsu.io)](mailto:maciej@coditsu.io) directly for more details.
|
105
|
-
|
106
|
-
|
107
|
-
<a href="https://opencollective.com/karafka/sponsor/0/website" target="_blank"><img src="https://opencollective.com/karafka/sponsor/0/avatar.svg"></a>
|
108
|
-
<a href="https://opencollective.com/karafka/sponsor/1/website" target="_blank"><img src="https://opencollective.com/karafka/sponsor/1/avatar.svg"></a>
|
109
|
-
<a href="https://opencollective.com/karafka/sponsor/2/website" target="_blank"><img src="https://opencollective.com/karafka/sponsor/2/avatar.svg"></a>
|
110
|
-
<a href="https://opencollective.com/karafka/sponsor/3/website" target="_blank"><img src="https://opencollective.com/karafka/sponsor/3/avatar.svg"></a>
|
111
|
-
<a href="https://opencollective.com/karafka/sponsor/4/website" target="_blank"><img src="https://opencollective.com/karafka/sponsor/4/avatar.svg"></a>
|
112
|
-
<a href="https://opencollective.com/karafka/sponsor/5/website" target="_blank"><img src="https://opencollective.com/karafka/sponsor/5/avatar.svg"></a>
|
113
|
-
<a href="https://opencollective.com/karafka/sponsor/6/website" target="_blank"><img src="https://opencollective.com/karafka/sponsor/6/avatar.svg"></a>
|
114
|
-
<a href="https://opencollective.com/karafka/sponsor/7/website" target="_blank"><img src="https://opencollective.com/karafka/sponsor/7/avatar.svg"></a>
|
115
|
-
<a href="https://opencollective.com/karafka/sponsor/8/website" target="_blank"><img src="https://opencollective.com/karafka/sponsor/8/avatar.svg"></a>
|
116
|
-
<a href="https://opencollective.com/karafka/sponsor/9/website" target="_blank"><img src="https://opencollective.com/karafka/sponsor/9/avatar.svg"></a>
|
117
|
-
|
93
|
+
We are looking for sustainable sponsorship. If your company is relying on Karafka framework or simply want to see Karafka evolve faster to meet your requirements, please consider backing the project.
|
118
94
|
|
95
|
+
Please contact [Maciej Mensfeld](mailto:maciej@coditsu.io) directly for more details.
|
data/karafka.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.add_dependency 'require_all', '>= 1.4'
|
26
26
|
spec.add_dependency 'ruby-kafka', '>= 0.5'
|
27
27
|
spec.add_dependency 'thor', '~> 0.19'
|
28
|
-
spec.add_dependency 'waterdrop', '>= 1.0.
|
28
|
+
spec.add_dependency 'waterdrop', '>= 1.0.1'
|
29
29
|
|
30
30
|
spec.required_ruby_version = '>= 2.3.0'
|
31
31
|
|
@@ -33,8 +33,7 @@ module Karafka
|
|
33
33
|
@params_batch = Karafka::Params::ParamsBatch.new(messages, topic.parser)
|
34
34
|
end
|
35
35
|
|
36
|
-
# Executes the default controller flow
|
37
|
-
# will call process method of a proper backend
|
36
|
+
# Executes the default controller flow.
|
38
37
|
def call
|
39
38
|
process
|
40
39
|
end
|
@@ -57,11 +56,5 @@ module Karafka
|
|
57
56
|
def consume
|
58
57
|
raise NotImplementedError, 'Implement this in a subclass'
|
59
58
|
end
|
60
|
-
|
61
|
-
# Alias for #consume method and deprecation warning
|
62
|
-
def perform
|
63
|
-
Karafka.logger.warn('[DEPRECATION WARNING]: please use #consume instead of #perform')
|
64
|
-
consume
|
65
|
-
end
|
66
59
|
end
|
67
60
|
end
|
data/lib/karafka/version.rb
CHANGED
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.1.0
|
4
|
+
version: 1.1.0
|
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: 2017-
|
13
|
+
date: 2017-11-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -144,14 +144,14 @@ dependencies:
|
|
144
144
|
requirements:
|
145
145
|
- - ">="
|
146
146
|
- !ruby/object:Gem::Version
|
147
|
-
version: 1.0.
|
147
|
+
version: 1.0.1
|
148
148
|
type: :runtime
|
149
149
|
prerelease: false
|
150
150
|
version_requirements: !ruby/object:Gem::Requirement
|
151
151
|
requirements:
|
152
152
|
- - ">="
|
153
153
|
- !ruby/object:Gem::Version
|
154
|
-
version: 1.0.
|
154
|
+
version: 1.0.1
|
155
155
|
description: Framework used to simplify Apache Kafka based Ruby applications development
|
156
156
|
email:
|
157
157
|
- maciej@coditsu.io
|
@@ -255,9 +255,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
255
255
|
version: 2.3.0
|
256
256
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
257
257
|
requirements:
|
258
|
-
- - "
|
258
|
+
- - ">="
|
259
259
|
- !ruby/object:Gem::Version
|
260
|
-
version:
|
260
|
+
version: '0'
|
261
261
|
requirements: []
|
262
262
|
rubyforge_project:
|
263
263
|
rubygems_version: 2.6.13
|