karafka-avro-parser 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/.travis.yml +15 -2
- data/CHANGELOG.md +7 -0
- data/LICENSE +19 -0
- data/README.md +3 -2
- data/lib/karafka/parsers/avro.rb +1 -1
- data/lib/karafka/parsers/avro/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 48f469d915a68265d2d090f1754012359da5e47ec7ee9605de02d2b3c83a2cf7
|
4
|
+
data.tar.gz: 4486d398e0f3cd674e2efacb7c24efc92844512af6f0a18aeaff9af7272e19f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84bb2765047f31457bd700dd9596e38193dce52d705afbee2a580579ff712287f777b81c7846b4383828131337227b35aefc1c80769d0b05376c3a00cc27ad8e
|
7
|
+
data.tar.gz: 1db9d40b170a72ac9ba82a91f314602957482918903d0aca1fdc2f471a297ceb03ed553459f1114b77392e35222eef322e815b2770b4421cd99f512677c44a03
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,5 +1,18 @@
|
|
1
|
-
sudo: false
|
2
1
|
language: ruby
|
2
|
+
sudo: false
|
3
3
|
rvm:
|
4
|
+
- 2.3.0
|
4
5
|
- 2.3.1
|
5
|
-
|
6
|
+
- 2.3.2
|
7
|
+
- 2.3.3
|
8
|
+
- 2.3.4
|
9
|
+
- 2.4.0
|
10
|
+
- 2.4.1
|
11
|
+
- 2.4.2
|
12
|
+
- 2.5.0
|
13
|
+
- jruby-head
|
14
|
+
script: bundle exec rspec spec/
|
15
|
+
env:
|
16
|
+
global:
|
17
|
+
- JRUBY_OPTS='--debug'
|
18
|
+
install: bundle install --jobs=3 --retry=3
|
data/CHANGELOG.md
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
5
|
+
in the Software without restriction, including without limitation the rights
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
8
|
+
furnished to do so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
11
|
+
copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19
|
+
SOFTWARE.
|
data/README.md
CHANGED
@@ -16,7 +16,7 @@ And then execute:
|
|
16
16
|
|
17
17
|
## Usage
|
18
18
|
|
19
|
-
Thanks to Karafka's modular design, you only have to define a `parser` the moment you draw your consumer groups.
|
19
|
+
Thanks to Karafka's modular design, you only have to define a `parser` the moment you draw your consumer groups.
|
20
20
|
|
21
21
|
### Example with Schema Folder
|
22
22
|
|
@@ -63,6 +63,8 @@ App.consumer_groups.draw do
|
|
63
63
|
end
|
64
64
|
```
|
65
65
|
|
66
|
+
*Note: `schema_name` is not specifically required when using a schema registry, as the schema id is contained within the message, it can be passed in optionally if you are using one schema per topic*
|
67
|
+
|
66
68
|
## Note on contributions
|
67
69
|
|
68
70
|
First, thank you for considering contributing to Karafka! It's people like you that make the open source community such a great community!
|
@@ -74,4 +76,3 @@ To check if everything is as it should be, we use [Coditsu](https://coditsu.io)
|
|
74
76
|
Coditsu will automatically check your work against our quality standards. You can find your commit check results on the [builds page](https://app.coditsu.io/karafka/commit_builds) of Karafka organization.
|
75
77
|
|
76
78
|
[![coditsu](https://coditsu.io/assets/quality_bar.svg)](https://app.coditsu.io/karafka-avro/commit_builds)
|
77
|
-
|
data/lib/karafka/parsers/avro.rb
CHANGED
@@ -15,7 +15,7 @@ module Karafka
|
|
15
15
|
@schemas_path = schemas_path
|
16
16
|
end
|
17
17
|
|
18
|
-
def self.from_registry(schema_name)
|
18
|
+
def self.from_registry(schema_name = nil)
|
19
19
|
raise ArgumentError, 'You have to specify registry_path first' if @registry_url.nil?
|
20
20
|
|
21
21
|
Parser.new(AvroTurf::Messaging.new(registry_url: @registry_url), schema_name)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: karafka-avro-parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kacper Madej
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avro_turf
|
@@ -76,7 +76,9 @@ files:
|
|
76
76
|
- ".gitignore"
|
77
77
|
- ".rspec"
|
78
78
|
- ".travis.yml"
|
79
|
+
- CHANGELOG.md
|
79
80
|
- Gemfile
|
81
|
+
- LICENSE
|
80
82
|
- README.md
|
81
83
|
- Rakefile
|
82
84
|
- bin/console
|
@@ -104,8 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
106
|
- !ruby/object:Gem::Version
|
105
107
|
version: '0'
|
106
108
|
requirements: []
|
107
|
-
|
108
|
-
rubygems_version: 2.5.1
|
109
|
+
rubygems_version: 3.0.3
|
109
110
|
signing_key:
|
110
111
|
specification_version: 4
|
111
112
|
summary: Apache Avro support for Karafka
|