rimless 1.2.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/documentation.yml +3 -2
  3. data/.github/workflows/release.yml +47 -0
  4. data/.github/workflows/test.yml +6 -9
  5. data/.rspec +2 -2
  6. data/.rubocop.yml +16 -2
  7. data/.simplecov +12 -0
  8. data/Appraisals +2 -22
  9. data/CHANGELOG.md +16 -0
  10. data/CODE_OF_CONDUCT.md +74 -0
  11. data/Dockerfile +2 -3
  12. data/Envfile +0 -3
  13. data/Guardfile +44 -0
  14. data/LICENSE +1 -1
  15. data/Makefile +18 -7
  16. data/README.md +21 -8
  17. data/Rakefile +13 -68
  18. data/doc/kafka-playground/.gitignore +2 -0
  19. data/doc/kafka-playground/Dockerfile +41 -0
  20. data/doc/kafka-playground/Gemfile +8 -0
  21. data/doc/kafka-playground/Gemfile.lock +155 -0
  22. data/doc/kafka-playground/Makefile +209 -0
  23. data/doc/kafka-playground/README.md +185 -0
  24. data/doc/kafka-playground/bin/consume-topic +7 -0
  25. data/doc/kafka-playground/bin/create-topic +42 -0
  26. data/doc/kafka-playground/bin/delete-topic +22 -0
  27. data/doc/kafka-playground/bin/list-topics +3 -0
  28. data/doc/kafka-playground/bin/produce-event +64 -0
  29. data/doc/kafka-playground/config/avro_schemas/.gitignore +1 -0
  30. data/doc/kafka-playground/config/avro_schemas/playground_app/item_v1.avsc.erb +36 -0
  31. data/doc/kafka-playground/config/avro_schemas/playground_app/payment_v1.avsc.erb +59 -0
  32. data/doc/kafka-playground/config/avro_schemas/playground_app/payment_v1_event.avsc.erb +18 -0
  33. data/doc/kafka-playground/config/docker/shell/.bash_profile +3 -0
  34. data/doc/kafka-playground/config/docker/shell/.bashrc +231 -0
  35. data/doc/kafka-playground/config/docker/shell/.config/kcat.conf +3 -0
  36. data/doc/kafka-playground/config/docker/shell/.gemrc +2 -0
  37. data/doc/kafka-playground/config/docker/shell/.inputrc +17 -0
  38. data/doc/kafka-playground/config/environment.rb +69 -0
  39. data/doc/kafka-playground/doc/assets/project.svg +68 -0
  40. data/doc/kafka-playground/docker-compose.yml +83 -0
  41. data/doc/kafka-playground/examples/rimless-produce +48 -0
  42. data/gemfiles/rails_5.2.gemfile +2 -2
  43. data/lib/rimless/configuration_handling.rb +11 -1
  44. data/lib/rimless/consumer.rb +4 -2
  45. data/lib/rimless/dependencies.rb +3 -0
  46. data/lib/rimless/kafka_helpers.rb +2 -0
  47. data/lib/rimless/karafka/avro_deserializer.rb +3 -3
  48. data/lib/rimless/rspec/helpers.rb +3 -0
  49. data/lib/rimless/rspec/matchers.rb +3 -4
  50. data/lib/rimless/rspec.rb +1 -1
  51. data/lib/rimless/tasks/consumer.rake +3 -0
  52. data/lib/rimless/tasks/generator.rake +3 -0
  53. data/lib/rimless/tasks/stats.rake +5 -2
  54. data/lib/rimless/version.rb +18 -1
  55. data/lib/rimless.rb +0 -1
  56. data/rimless.gemspec +43 -29
  57. metadata +124 -79
  58. data/gemfiles/rails_4.2.gemfile +0 -8
  59. data/gemfiles/rails_5.0.gemfile +0 -8
  60. data/gemfiles/rails_5.1.gemfile +0 -8
  61. data/gemfiles/rails_6.0.gemfile +0 -8
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rimless
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hermann Mayer
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-10-04 00:00:00.000000000 Z
11
+ date: 2023-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.0
19
+ version: '5.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 4.2.0
26
+ version: '5.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: avro_turf
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -84,16 +84,16 @@ dependencies:
84
84
  name: sinatra
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: '2.2'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: '2.2'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: sparsify
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -114,96 +114,112 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '1.2'
117
+ version: '1.4'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '1.2'
124
+ version: '1.4'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: webmock
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ">="
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '0'
131
+ version: '3.18'
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ">="
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '0'
138
+ version: '3.18'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: appraisal
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ">="
143
+ - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '0'
145
+ version: '2.4'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ">="
150
+ - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: '0'
152
+ version: '2.4'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: bundler
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- version: '1.16'
160
- - - "<"
157
+ - - "~>"
161
158
  - !ruby/object:Gem::Version
162
- version: '3'
159
+ version: '2.3'
163
160
  type: :development
164
161
  prerelease: false
165
162
  version_requirements: !ruby/object:Gem::Requirement
166
163
  requirements:
167
- - - ">="
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '2.3'
167
+ - !ruby/object:Gem::Dependency
168
+ name: countless
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
168
172
  - !ruby/object:Gem::Version
169
- version: '1.16'
170
- - - "<"
173
+ version: '1.1'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
171
179
  - !ruby/object:Gem::Version
172
- version: '3'
180
+ version: '1.1'
173
181
  - !ruby/object:Gem::Dependency
174
182
  name: factory_bot
175
183
  requirement: !ruby/object:Gem::Requirement
176
184
  requirements:
177
185
  - - "~>"
178
186
  - !ruby/object:Gem::Version
179
- version: '4.11'
187
+ version: '6.2'
180
188
  type: :development
181
189
  prerelease: false
182
190
  version_requirements: !ruby/object:Gem::Requirement
183
191
  requirements:
184
192
  - - "~>"
185
193
  - !ruby/object:Gem::Version
186
- version: '4.11'
194
+ version: '6.2'
195
+ - !ruby/object:Gem::Dependency
196
+ name: guard-rspec
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: '4.7'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: '4.7'
187
209
  - !ruby/object:Gem::Dependency
188
210
  name: railties
189
211
  requirement: !ruby/object:Gem::Requirement
190
212
  requirements:
191
213
  - - ">="
192
214
  - !ruby/object:Gem::Version
193
- version: 4.2.0
194
- - - "<"
195
- - !ruby/object:Gem::Version
196
- version: '6.1'
215
+ version: '5.2'
197
216
  type: :development
198
217
  prerelease: false
199
218
  version_requirements: !ruby/object:Gem::Requirement
200
219
  requirements:
201
220
  - - ">="
202
221
  - !ruby/object:Gem::Version
203
- version: 4.2.0
204
- - - "<"
205
- - !ruby/object:Gem::Version
206
- version: '6.1'
222
+ version: '5.2'
207
223
  - !ruby/object:Gem::Dependency
208
224
  name: rake
209
225
  requirement: !ruby/object:Gem::Requirement
@@ -219,143 +235,143 @@ dependencies:
219
235
  - !ruby/object:Gem::Version
220
236
  version: '13.0'
221
237
  - !ruby/object:Gem::Dependency
222
- name: rdoc
238
+ name: redcarpet
223
239
  requirement: !ruby/object:Gem::Requirement
224
240
  requirements:
225
241
  - - "~>"
226
242
  - !ruby/object:Gem::Version
227
- version: '6.1'
243
+ version: '3.5'
228
244
  type: :development
229
245
  prerelease: false
230
246
  version_requirements: !ruby/object:Gem::Requirement
231
247
  requirements:
232
248
  - - "~>"
233
249
  - !ruby/object:Gem::Version
234
- version: '6.1'
250
+ version: '3.5'
235
251
  - !ruby/object:Gem::Dependency
236
- name: redcarpet
252
+ name: rspec
237
253
  requirement: !ruby/object:Gem::Requirement
238
254
  requirements:
239
255
  - - "~>"
240
256
  - !ruby/object:Gem::Version
241
- version: '3.4'
257
+ version: '3.12'
242
258
  type: :development
243
259
  prerelease: false
244
260
  version_requirements: !ruby/object:Gem::Requirement
245
261
  requirements:
246
262
  - - "~>"
247
263
  - !ruby/object:Gem::Version
248
- version: '3.4'
264
+ version: '3.12'
249
265
  - !ruby/object:Gem::Dependency
250
- name: rspec
266
+ name: rubocop
251
267
  requirement: !ruby/object:Gem::Requirement
252
268
  requirements:
253
269
  - - "~>"
254
270
  - !ruby/object:Gem::Version
255
- version: '3.0'
271
+ version: '1.28'
256
272
  type: :development
257
273
  prerelease: false
258
274
  version_requirements: !ruby/object:Gem::Requirement
259
275
  requirements:
260
276
  - - "~>"
261
277
  - !ruby/object:Gem::Version
262
- version: '3.0'
278
+ version: '1.28'
263
279
  - !ruby/object:Gem::Dependency
264
- name: rubocop
280
+ name: rubocop-rails
265
281
  requirement: !ruby/object:Gem::Requirement
266
282
  requirements:
267
283
  - - "~>"
268
284
  - !ruby/object:Gem::Version
269
- version: 0.63.1
285
+ version: '2.14'
270
286
  type: :development
271
287
  prerelease: false
272
288
  version_requirements: !ruby/object:Gem::Requirement
273
289
  requirements:
274
290
  - - "~>"
275
291
  - !ruby/object:Gem::Version
276
- version: 0.63.1
292
+ version: '2.14'
277
293
  - !ruby/object:Gem::Dependency
278
294
  name: rubocop-rspec
279
295
  requirement: !ruby/object:Gem::Requirement
280
296
  requirements:
281
297
  - - "~>"
282
298
  - !ruby/object:Gem::Version
283
- version: '1.31'
299
+ version: '2.10'
284
300
  type: :development
285
301
  prerelease: false
286
302
  version_requirements: !ruby/object:Gem::Requirement
287
303
  requirements:
288
304
  - - "~>"
289
305
  - !ruby/object:Gem::Version
290
- version: '1.31'
306
+ version: '2.10'
291
307
  - !ruby/object:Gem::Dependency
292
308
  name: simplecov
293
309
  requirement: !ruby/object:Gem::Requirement
294
310
  requirements:
295
- - - "<"
311
+ - - ">="
296
312
  - !ruby/object:Gem::Version
297
- version: '0.18'
313
+ version: '0.22'
298
314
  type: :development
299
315
  prerelease: false
300
316
  version_requirements: !ruby/object:Gem::Requirement
301
317
  requirements:
302
- - - "<"
318
+ - - ">="
303
319
  - !ruby/object:Gem::Version
304
- version: '0.18'
320
+ version: '0.22'
305
321
  - !ruby/object:Gem::Dependency
306
322
  name: timecop
307
323
  requirement: !ruby/object:Gem::Requirement
308
324
  requirements:
309
- - - "~>"
325
+ - - ">="
310
326
  - !ruby/object:Gem::Version
311
- version: 0.9.1
327
+ version: 0.9.6
312
328
  type: :development
313
329
  prerelease: false
314
330
  version_requirements: !ruby/object:Gem::Requirement
315
331
  requirements:
316
- - - "~>"
332
+ - - ">="
317
333
  - !ruby/object:Gem::Version
318
- version: 0.9.1
334
+ version: 0.9.6
319
335
  - !ruby/object:Gem::Dependency
320
336
  name: vcr
321
337
  requirement: !ruby/object:Gem::Requirement
322
338
  requirements:
323
339
  - - "~>"
324
340
  - !ruby/object:Gem::Version
325
- version: '3.0'
341
+ version: '6.0'
326
342
  type: :development
327
343
  prerelease: false
328
344
  version_requirements: !ruby/object:Gem::Requirement
329
345
  requirements:
330
346
  - - "~>"
331
347
  - !ruby/object:Gem::Version
332
- version: '3.0'
348
+ version: '6.0'
333
349
  - !ruby/object:Gem::Dependency
334
350
  name: yard
335
351
  requirement: !ruby/object:Gem::Requirement
336
352
  requirements:
337
- - - "~>"
353
+ - - ">="
338
354
  - !ruby/object:Gem::Version
339
- version: 0.9.18
355
+ version: 0.9.28
340
356
  type: :development
341
357
  prerelease: false
342
358
  version_requirements: !ruby/object:Gem::Requirement
343
359
  requirements:
344
- - - "~>"
360
+ - - ">="
345
361
  - !ruby/object:Gem::Version
346
- version: 0.9.18
362
+ version: 0.9.28
347
363
  - !ruby/object:Gem::Dependency
348
364
  name: yard-activesupport-concern
349
365
  requirement: !ruby/object:Gem::Requirement
350
366
  requirements:
351
- - - "~>"
367
+ - - ">="
352
368
  - !ruby/object:Gem::Version
353
369
  version: 0.0.1
354
370
  type: :development
355
371
  prerelease: false
356
372
  version_requirements: !ruby/object:Gem::Requirement
357
373
  requirements:
358
- - - "~>"
374
+ - - ">="
359
375
  - !ruby/object:Gem::Version
360
376
  version: 0.0.1
361
377
  description: A bundle of opinionated Apache Kafka / Confluent Schema Registry helpers.
@@ -367,6 +383,7 @@ extra_rdoc_files: []
367
383
  files:
368
384
  - ".editorconfig"
369
385
  - ".github/workflows/documentation.yml"
386
+ - ".github/workflows/release.yml"
370
387
  - ".github/workflows/test.yml"
371
388
  - ".gitignore"
372
389
  - ".rspec"
@@ -375,9 +392,11 @@ files:
375
392
  - ".yardopts"
376
393
  - Appraisals
377
394
  - CHANGELOG.md
395
+ - CODE_OF_CONDUCT.md
378
396
  - Dockerfile
379
397
  - Envfile
380
398
  - Gemfile
399
+ - Guardfile
381
400
  - LICENSE
382
401
  - Makefile
383
402
  - README.md
@@ -389,12 +408,32 @@ files:
389
408
  - config/docker/.bashrc
390
409
  - config/docker/.inputrc
391
410
  - doc/assets/project.svg
411
+ - doc/kafka-playground/.gitignore
412
+ - doc/kafka-playground/Dockerfile
413
+ - doc/kafka-playground/Gemfile
414
+ - doc/kafka-playground/Gemfile.lock
415
+ - doc/kafka-playground/Makefile
416
+ - doc/kafka-playground/README.md
417
+ - doc/kafka-playground/bin/consume-topic
418
+ - doc/kafka-playground/bin/create-topic
419
+ - doc/kafka-playground/bin/delete-topic
420
+ - doc/kafka-playground/bin/list-topics
421
+ - doc/kafka-playground/bin/produce-event
422
+ - doc/kafka-playground/config/avro_schemas/.gitignore
423
+ - doc/kafka-playground/config/avro_schemas/playground_app/item_v1.avsc.erb
424
+ - doc/kafka-playground/config/avro_schemas/playground_app/payment_v1.avsc.erb
425
+ - doc/kafka-playground/config/avro_schemas/playground_app/payment_v1_event.avsc.erb
426
+ - doc/kafka-playground/config/docker/shell/.bash_profile
427
+ - doc/kafka-playground/config/docker/shell/.bashrc
428
+ - doc/kafka-playground/config/docker/shell/.config/kcat.conf
429
+ - doc/kafka-playground/config/docker/shell/.gemrc
430
+ - doc/kafka-playground/config/docker/shell/.inputrc
431
+ - doc/kafka-playground/config/environment.rb
432
+ - doc/kafka-playground/doc/assets/project.svg
433
+ - doc/kafka-playground/docker-compose.yml
434
+ - doc/kafka-playground/examples/rimless-produce
392
435
  - docker-compose.yml
393
- - gemfiles/rails_4.2.gemfile
394
- - gemfiles/rails_5.0.gemfile
395
- - gemfiles/rails_5.1.gemfile
396
436
  - gemfiles/rails_5.2.gemfile
397
- - gemfiles/rails_6.0.gemfile
398
437
  - lib/rimless.rb
399
438
  - lib/rimless/avro_helpers.rb
400
439
  - lib/rimless/avro_utils.rb
@@ -422,10 +461,16 @@ files:
422
461
  - lib/rimless/version.rb
423
462
  - log/development.log
424
463
  - rimless.gemspec
425
- homepage: https://github.com/hausgold/rimless
426
- licenses: []
427
- metadata: {}
428
- post_install_message:
464
+ homepage:
465
+ licenses:
466
+ - MIT
467
+ metadata:
468
+ homepage_uri: https://github.com/hausgold/rimless
469
+ source_code_uri: https://github.com/hausgold/rimless
470
+ changelog_uri: https://github.com/hausgold/rimless/blob/master/CHANGELOG.md
471
+ bug_tracker_uri: https://github.com/hausgold/rimless/issues
472
+ documentation_uri: https://www.rubydoc.info/gems/rimless
473
+ post_install_message:
429
474
  rdoc_options: []
430
475
  require_paths:
431
476
  - lib
@@ -433,15 +478,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
433
478
  requirements:
434
479
  - - ">="
435
480
  - !ruby/object:Gem::Version
436
- version: '0'
481
+ version: '2.5'
437
482
  required_rubygems_version: !ruby/object:Gem::Requirement
438
483
  requirements:
439
484
  - - ">="
440
485
  - !ruby/object:Gem::Version
441
486
  version: '0'
442
487
  requirements: []
443
- rubygems_version: 3.2.16
444
- signing_key:
488
+ rubygems_version: 3.3.26
489
+ signing_key:
445
490
  specification_version: 4
446
491
  summary: A bundle of opinionated Apache Kafka / Confluent Schema Registry helpers.
447
492
  test_files: []
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activesupport", "~> 4.2.11"
6
- gem "railties", "~> 4.2.11"
7
-
8
- gemspec path: "../"
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activesupport", "~> 5.0.7"
6
- gem "railties", "~> 5.0.7"
7
-
8
- gemspec path: "../"
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activesupport", "~> 5.1.6"
6
- gem "railties", "~> 5.1.6"
7
-
8
- gemspec path: "../"
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activesupport", "~> 6.0.0"
6
- gem "railties", "~> 6.0.0"
7
-
8
- gemspec path: "../"