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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0851cb76a5deab8dc8365afcb5a4f2e83b9a62a1
4
- data.tar.gz: 61bd7f4d7fda7ac0cb5d9d250abd04da8e2f63da
2
+ SHA256:
3
+ metadata.gz: 48f469d915a68265d2d090f1754012359da5e47ec7ee9605de02d2b3c83a2cf7
4
+ data.tar.gz: 4486d398e0f3cd674e2efacb7c24efc92844512af6f0a18aeaff9af7272e19f1
5
5
  SHA512:
6
- metadata.gz: d5b119b00217c76a584b748cc145cab0b5c6d33e5e1ec6c739daeb271f7f3311189677c926a8f4f764b11458f36d4537a61302e4906ba615bbae06457f53a9da
7
- data.tar.gz: 4e0535ebc08886e460be4b32cb0c4a95e92681357a167121921d628e3fb6ac7b99a36646b84a4a087f016f6bdf21fbfbc6d45f1873151eb351694de603b76b65
6
+ metadata.gz: 84bb2765047f31457bd700dd9596e38193dce52d705afbee2a580579ff712287f777b81c7846b4383828131337227b35aefc1c80769d0b05376c3a00cc27ad8e
7
+ data.tar.gz: 1db9d40b170a72ac9ba82a91f314602957482918903d0aca1fdc2f471a297ceb03ed553459f1114b77392e35222eef322e815b2770b4421cd99f512677c44a03
data/.gitignore CHANGED
@@ -12,3 +12,4 @@
12
12
  # rspec failure tracking
13
13
  .rspec_status
14
14
 
15
+ *.gem
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
- before_install: gem install bundler -v 1.15.4
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
@@ -0,0 +1,7 @@
1
+ # Karafka Avro Parser changelog
2
+
3
+ ## 0.2
4
+ - #1 - Allow schema name to be optional when using a registry
5
+
6
+ ## 0.1
7
+ - Initial release
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
-
@@ -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)
@@ -1,7 +1,7 @@
1
1
  module Karafka
2
2
  module Parsers
3
3
  module Avro
4
- VERSION = '0.1.0'
4
+ VERSION = '0.2.0'
5
5
  end
6
6
  end
7
7
  end
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.1.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: 2018-04-03 00:00:00.000000000 Z
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
- rubyforge_project:
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