karafka 2.4.9 → 2.4.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/.ruby-version +1 -1
  4. data/CHANGELOG.md +9 -0
  5. data/Gemfile.lock +3 -3
  6. data/config/locales/errors.yml +1 -0
  7. data/config/locales/pro_errors.yml +17 -0
  8. data/lib/karafka/base_consumer.rb +23 -0
  9. data/lib/karafka/contracts/consumer_group.rb +17 -0
  10. data/lib/karafka/instrumentation/logger_listener.rb +3 -0
  11. data/lib/karafka/instrumentation/notifications.rb +3 -0
  12. data/lib/karafka/instrumentation/vendors/appsignal/client.rb +32 -11
  13. data/lib/karafka/instrumentation/vendors/appsignal/errors_listener.rb +1 -1
  14. data/lib/karafka/messages/message.rb +6 -0
  15. data/lib/karafka/pro/loader.rb +2 -1
  16. data/lib/karafka/pro/routing/features/recurring_tasks/builder.rb +9 -8
  17. data/lib/karafka/pro/routing/features/scheduled_messages/builder.rb +131 -0
  18. data/lib/karafka/pro/routing/features/scheduled_messages/config.rb +28 -0
  19. data/lib/karafka/pro/routing/features/scheduled_messages/contracts/topic.rb +40 -0
  20. data/lib/karafka/pro/routing/features/scheduled_messages/proxy.rb +27 -0
  21. data/lib/karafka/pro/routing/features/scheduled_messages/topic.rb +44 -0
  22. data/lib/karafka/pro/routing/features/scheduled_messages.rb +24 -0
  23. data/lib/karafka/pro/scheduled_messages/consumer.rb +185 -0
  24. data/lib/karafka/pro/scheduled_messages/contracts/config.rb +56 -0
  25. data/lib/karafka/pro/scheduled_messages/contracts/message.rb +61 -0
  26. data/lib/karafka/pro/scheduled_messages/daily_buffer.rb +79 -0
  27. data/lib/karafka/pro/scheduled_messages/day.rb +45 -0
  28. data/lib/karafka/pro/scheduled_messages/deserializers/headers.rb +46 -0
  29. data/lib/karafka/pro/scheduled_messages/deserializers/payload.rb +35 -0
  30. data/lib/karafka/pro/scheduled_messages/dispatcher.rb +122 -0
  31. data/lib/karafka/pro/scheduled_messages/errors.rb +28 -0
  32. data/lib/karafka/pro/scheduled_messages/max_epoch.rb +41 -0
  33. data/lib/karafka/pro/scheduled_messages/proxy.rb +176 -0
  34. data/lib/karafka/pro/scheduled_messages/schema_validator.rb +37 -0
  35. data/lib/karafka/pro/scheduled_messages/serializer.rb +55 -0
  36. data/lib/karafka/pro/scheduled_messages/setup/config.rb +60 -0
  37. data/lib/karafka/pro/scheduled_messages/state.rb +62 -0
  38. data/lib/karafka/pro/scheduled_messages/tracker.rb +64 -0
  39. data/lib/karafka/pro/scheduled_messages.rb +67 -0
  40. data/lib/karafka/processing/executor.rb +6 -0
  41. data/lib/karafka/processing/strategies/default.rb +10 -0
  42. data/lib/karafka/railtie.rb +0 -20
  43. data/lib/karafka/version.rb +1 -1
  44. data.tar.gz.sig +0 -0
  45. metadata +26 -3
  46. metadata.gz.sig +3 -2
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: 2.4.9
4
+ version: 2.4.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Mensfeld
@@ -35,7 +35,7 @@ cert_chain:
35
35
  i9zWxov0mr44TWegTVeypcWGd/0nxu1+QHVNHJrpqlPBRvwQsUm7fwmRInGpcaB8
36
36
  ap8wNYvryYzrzvzUxIVFBVM5PacgkFqRmolCa8I7tdKQN+R1
37
37
  -----END CERTIFICATE-----
38
- date: 2024-08-23 00:00:00.000000000 Z
38
+ date: 2024-09-03 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: base64
@@ -454,6 +454,12 @@ files:
454
454
  - lib/karafka/pro/routing/features/recurring_tasks/contracts/topic.rb
455
455
  - lib/karafka/pro/routing/features/recurring_tasks/proxy.rb
456
456
  - lib/karafka/pro/routing/features/recurring_tasks/topic.rb
457
+ - lib/karafka/pro/routing/features/scheduled_messages.rb
458
+ - lib/karafka/pro/routing/features/scheduled_messages/builder.rb
459
+ - lib/karafka/pro/routing/features/scheduled_messages/config.rb
460
+ - lib/karafka/pro/routing/features/scheduled_messages/contracts/topic.rb
461
+ - lib/karafka/pro/routing/features/scheduled_messages/proxy.rb
462
+ - lib/karafka/pro/routing/features/scheduled_messages/topic.rb
457
463
  - lib/karafka/pro/routing/features/swarm.rb
458
464
  - lib/karafka/pro/routing/features/swarm/config.rb
459
465
  - lib/karafka/pro/routing/features/swarm/contracts/routing.rb
@@ -467,6 +473,23 @@ files:
467
473
  - lib/karafka/pro/routing/features/virtual_partitions/config.rb
468
474
  - lib/karafka/pro/routing/features/virtual_partitions/contracts/topic.rb
469
475
  - lib/karafka/pro/routing/features/virtual_partitions/topic.rb
476
+ - lib/karafka/pro/scheduled_messages.rb
477
+ - lib/karafka/pro/scheduled_messages/consumer.rb
478
+ - lib/karafka/pro/scheduled_messages/contracts/config.rb
479
+ - lib/karafka/pro/scheduled_messages/contracts/message.rb
480
+ - lib/karafka/pro/scheduled_messages/daily_buffer.rb
481
+ - lib/karafka/pro/scheduled_messages/day.rb
482
+ - lib/karafka/pro/scheduled_messages/deserializers/headers.rb
483
+ - lib/karafka/pro/scheduled_messages/deserializers/payload.rb
484
+ - lib/karafka/pro/scheduled_messages/dispatcher.rb
485
+ - lib/karafka/pro/scheduled_messages/errors.rb
486
+ - lib/karafka/pro/scheduled_messages/max_epoch.rb
487
+ - lib/karafka/pro/scheduled_messages/proxy.rb
488
+ - lib/karafka/pro/scheduled_messages/schema_validator.rb
489
+ - lib/karafka/pro/scheduled_messages/serializer.rb
490
+ - lib/karafka/pro/scheduled_messages/setup/config.rb
491
+ - lib/karafka/pro/scheduled_messages/state.rb
492
+ - lib/karafka/pro/scheduled_messages/tracker.rb
470
493
  - lib/karafka/pro/swarm/liveness_listener.rb
471
494
  - lib/karafka/process.rb
472
495
  - lib/karafka/processing/coordinator.rb
@@ -590,7 +613,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
590
613
  - !ruby/object:Gem::Version
591
614
  version: '0'
592
615
  requirements: []
593
- rubygems_version: 3.5.11
616
+ rubygems_version: 3.5.16
594
617
  signing_key:
595
618
  specification_version: 4
596
619
  summary: Karafka is Ruby and Rails efficient Kafka processing framework.
metadata.gz.sig CHANGED
@@ -1,2 +1,3 @@
1
- ^�L��^2��z(
2
- ]"8v�$1'*��h� ( �+�FsM.�n�u�-��y#���J9��}�I����8�� ��O
1
+ ��ՑQ5�,h��п
2
+ "�2A���M`�:k��g�Izg#�u˪��u�ւJÍ2��#�GyЎ�KiE�_)�H�>u�82�F�j�I��?���l�%�����W0�D$��3k�=�
3
+ dj���5��cY88��2�4��I$�1�y0�3�|�I���u\x��ͭ�[�q��6��ʶ�x�_�V~d�;a��I���r+~��|�I�H�_J-�̈$QyMd��Cm[_d��F�E{�|%���H�|`�q�P�=�_ގ�?gZ{٭M�eZ�#���͎����* �9�^�8$�J���G-�Z�L2��1���X�x��)��(��ٽe��