dispatch-rider 2.0.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/build.yml +5 -4
  3. data/.rubocop.yml +21 -0
  4. data/.rubocop_todo.yml +17 -300
  5. data/CHANGELOG.md +7 -0
  6. data/Rakefile +2 -1
  7. data/dispatch-rider.gemspec +3 -3
  8. data/lib/dispatch-rider/callbacks/access.rb +2 -0
  9. data/lib/dispatch-rider/callbacks/storage.rb +7 -5
  10. data/lib/dispatch-rider/callbacks/support.rb +2 -0
  11. data/lib/dispatch-rider/callbacks.rb +2 -0
  12. data/lib/dispatch-rider/command.rb +3 -3
  13. data/lib/dispatch-rider/configuration.rb +3 -1
  14. data/lib/dispatch-rider/debug.rb +3 -1
  15. data/lib/dispatch-rider/demultiplexer.rb +17 -19
  16. data/lib/dispatch-rider/dispatcher.rb +2 -0
  17. data/lib/dispatch-rider/error_handlers.rb +3 -1
  18. data/lib/dispatch-rider/errors.rb +2 -0
  19. data/lib/dispatch-rider/handlers/base.rb +12 -10
  20. data/lib/dispatch-rider/handlers/inheritance_tracking.rb +2 -0
  21. data/lib/dispatch-rider/handlers/named_process.rb +2 -0
  22. data/lib/dispatch-rider/handlers.rb +2 -0
  23. data/lib/dispatch-rider/integrations/appsignal.rb +3 -1
  24. data/lib/dispatch-rider/logging/json_formatter.rb +2 -0
  25. data/lib/dispatch-rider/logging/lifecycle_logger.rb +3 -1
  26. data/lib/dispatch-rider/logging/text_formatter.rb +2 -0
  27. data/lib/dispatch-rider/logging/translator/base_translator.rb +3 -1
  28. data/lib/dispatch-rider/logging/translator/complete_translator.rb +2 -0
  29. data/lib/dispatch-rider/logging/translator/error_handler_fail_translator.rb +2 -0
  30. data/lib/dispatch-rider/logging/translator/fail_translator.rb +2 -0
  31. data/lib/dispatch-rider/logging/translator/start_translator.rb +2 -0
  32. data/lib/dispatch-rider/logging/translator/stop_translator.rb +2 -0
  33. data/lib/dispatch-rider/logging/translator/success_translator.rb +2 -0
  34. data/lib/dispatch-rider/logging/translator.rb +2 -0
  35. data/lib/dispatch-rider/logging.rb +2 -0
  36. data/lib/dispatch-rider/message.rb +3 -0
  37. data/lib/dispatch-rider/notification_services/aws_sns.rb +5 -3
  38. data/lib/dispatch-rider/notification_services/base.rb +2 -0
  39. data/lib/dispatch-rider/notification_services/file_system/channel.rb +2 -0
  40. data/lib/dispatch-rider/notification_services/file_system/notifier.rb +2 -0
  41. data/lib/dispatch-rider/notification_services/file_system.rb +3 -1
  42. data/lib/dispatch-rider/notification_services.rb +2 -0
  43. data/lib/dispatch-rider/publisher/base.rb +2 -0
  44. data/lib/dispatch-rider/publisher/configuration/destination.rb +6 -4
  45. data/lib/dispatch-rider/publisher/configuration/notification_service.rb +4 -2
  46. data/lib/dispatch-rider/publisher/configuration.rb +2 -0
  47. data/lib/dispatch-rider/publisher/configuration_reader.rb +3 -1
  48. data/lib/dispatch-rider/publisher/configuration_support.rb +3 -1
  49. data/lib/dispatch-rider/publisher.rb +7 -12
  50. data/lib/dispatch-rider/queue_services/aws_sqs/message_body_extractor.rb +2 -0
  51. data/lib/dispatch-rider/queue_services/aws_sqs/sqs_received_message.rb +6 -4
  52. data/lib/dispatch-rider/queue_services/aws_sqs.rb +5 -2
  53. data/lib/dispatch-rider/queue_services/base.rb +5 -4
  54. data/lib/dispatch-rider/queue_services/file_system/fs_received_message.rb +5 -3
  55. data/lib/dispatch-rider/queue_services/file_system/queue.rb +5 -4
  56. data/lib/dispatch-rider/queue_services/file_system.rb +7 -11
  57. data/lib/dispatch-rider/queue_services/received_message.rb +3 -1
  58. data/lib/dispatch-rider/queue_services/simple.rb +5 -7
  59. data/lib/dispatch-rider/queue_services.rb +2 -0
  60. data/lib/dispatch-rider/registrars/base.rb +5 -5
  61. data/lib/dispatch-rider/registrars/file_system_channel.rb +3 -1
  62. data/lib/dispatch-rider/registrars/handler.rb +3 -1
  63. data/lib/dispatch-rider/registrars/notification_service.rb +2 -0
  64. data/lib/dispatch-rider/registrars/publishing_destination.rb +3 -1
  65. data/lib/dispatch-rider/registrars/queue_service.rb +2 -0
  66. data/lib/dispatch-rider/registrars/sns_channel.rb +3 -1
  67. data/lib/dispatch-rider/registrars.rb +2 -0
  68. data/lib/dispatch-rider/runner.rb +2 -0
  69. data/lib/dispatch-rider/scheduled_job/migration.rb +2 -0
  70. data/lib/dispatch-rider/scheduled_job.rb +3 -3
  71. data/lib/dispatch-rider/subscriber.rb +2 -0
  72. data/lib/dispatch-rider/version.rb +3 -1
  73. data/lib/dispatch-rider.rb +3 -1
  74. data/lib/generators/dispatch_rider/install/install_generator.rb +2 -0
  75. data/lib/generators/dispatch_rider/install/templates/script/dispatch_rider +1 -0
  76. data/lib/generators/dispatch_rider/job/dispatch_job_generator.rb +2 -0
  77. data/spec/factories/messages.rb +4 -1
  78. data/spec/fixtures/handlers/another_test_handler.rb +2 -0
  79. data/spec/fixtures/handlers/test_handler.rb +2 -0
  80. data/spec/integration/logging_spec.rb +2 -0
  81. data/spec/lib/dispatch-rider/airbrake_error_handler_spec.rb +3 -1
  82. data/spec/lib/dispatch-rider/callbacks/access_spec.rb +2 -0
  83. data/spec/lib/dispatch-rider/callbacks/storage_spec.rb +2 -0
  84. data/spec/lib/dispatch-rider/configuration_spec.rb +3 -1
  85. data/spec/lib/dispatch-rider/default_error_handler_spec.rb +2 -0
  86. data/spec/lib/dispatch-rider/demultiplexer_spec.rb +4 -2
  87. data/spec/lib/dispatch-rider/dispatcher_spec.rb +12 -9
  88. data/spec/lib/dispatch-rider/handlers/base_spec.rb +2 -0
  89. data/spec/lib/dispatch-rider/handlers/inheritance_tracking_spec.rb +2 -0
  90. data/spec/lib/dispatch-rider/logging/json_formatter_spec.rb +2 -0
  91. data/spec/lib/dispatch-rider/logging/lifecycle_logger_spec.rb +3 -1
  92. data/spec/lib/dispatch-rider/logging/text_formatter_spec.rb +2 -0
  93. data/spec/lib/dispatch-rider/logging/translator_spec.rb +2 -0
  94. data/spec/lib/dispatch-rider/message_spec.rb +7 -5
  95. data/spec/lib/dispatch-rider/notification_services/aws_sns_spec.rb +2 -0
  96. data/spec/lib/dispatch-rider/notification_services/base_spec.rb +6 -4
  97. data/spec/lib/dispatch-rider/notification_services/file_system/channel_spec.rb +2 -0
  98. data/spec/lib/dispatch-rider/notification_services/file_system/notifier_spec.rb +2 -0
  99. data/spec/lib/dispatch-rider/notification_services/file_system_spec.rb +2 -0
  100. data/spec/lib/dispatch-rider/notification_services_spec.rb +2 -0
  101. data/spec/lib/dispatch-rider/publisher/base_spec.rb +2 -0
  102. data/spec/lib/dispatch-rider/publisher/configuration/destination_spec.rb +2 -0
  103. data/spec/lib/dispatch-rider/publisher/configuration/notification_service_spec.rb +2 -0
  104. data/spec/lib/dispatch-rider/publisher/configuration_reader_spec.rb +15 -4
  105. data/spec/lib/dispatch-rider/publisher/configuration_spec.rb +3 -1
  106. data/spec/lib/dispatch-rider/publisher/configuration_support_spec.rb +4 -2
  107. data/spec/lib/dispatch-rider/publisher_spec.rb +15 -22
  108. data/spec/lib/dispatch-rider/queue_services/aws_sqs_spec.rb +11 -4
  109. data/spec/lib/dispatch-rider/queue_services/base_spec.rb +10 -8
  110. data/spec/lib/dispatch-rider/queue_services/file_system_spec.rb +7 -5
  111. data/spec/lib/dispatch-rider/queue_services/received_message_spec.rb +2 -0
  112. data/spec/lib/dispatch-rider/queue_services/simple_spec.rb +6 -4
  113. data/spec/lib/dispatch-rider/registrars/base_spec.rb +4 -2
  114. data/spec/lib/dispatch-rider/registrars/file_system_channel_spec.rb +2 -0
  115. data/spec/lib/dispatch-rider/registrars/handler_spec.rb +2 -0
  116. data/spec/lib/dispatch-rider/registrars/notification_service_spec.rb +2 -0
  117. data/spec/lib/dispatch-rider/registrars/publishing_destination_spec.rb +2 -0
  118. data/spec/lib/dispatch-rider/registrars/queue_service_spec.rb +2 -0
  119. data/spec/lib/dispatch-rider/registrars/sns_channel_spec.rb +2 -0
  120. data/spec/lib/dispatch-rider/registrars_spec.rb +2 -0
  121. data/spec/lib/dispatch-rider/runner_spec.rb +3 -1
  122. data/spec/lib/dispatch-rider/scheduled_job_spec.rb +2 -0
  123. data/spec/lib/dispatch-rider/subscriber_spec.rb +6 -3
  124. data/spec/lib/dispatch-rider_spec.rb +2 -0
  125. data/spec/spec_helper.rb +2 -1
  126. data/spec/support/crashing_handler.rb +2 -0
  127. data/spec/support/integration_support.rb +2 -0
  128. data/spec/support/null_logger.rb +2 -0
  129. data/spec/support/sample_handler.rb +2 -0
  130. metadata +30 -30
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dispatch-rider
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Suman Mukherjee
@@ -9,10 +9,10 @@ authors:
9
9
  - Piotr Banasik
10
10
  - Ronald Maravilla
11
11
  - Mathieu Jobin
12
- autorequire:
12
+ autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2022-09-20 00:00:00.000000000 Z
15
+ date: 2022-12-09 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: activesupport
@@ -57,81 +57,81 @@ dependencies:
57
57
  - !ruby/object:Gem::Version
58
58
  version: 5.2.0
59
59
  - !ruby/object:Gem::Dependency
60
- name: daemons
60
+ name: aws-sdk-sqs
61
61
  requirement: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - "~>"
64
64
  - !ruby/object:Gem::Version
65
- version: '1.2'
65
+ version: '1.30'
66
66
  type: :runtime
67
67
  prerelease: false
68
68
  version_requirements: !ruby/object:Gem::Requirement
69
69
  requirements:
70
70
  - - "~>"
71
71
  - !ruby/object:Gem::Version
72
- version: '1.2'
72
+ version: '1.30'
73
73
  - !ruby/object:Gem::Dependency
74
- name: retriable
74
+ name: aws-sdk-sns
75
75
  requirement: !ruby/object:Gem::Requirement
76
76
  requirements:
77
77
  - - "~>"
78
78
  - !ruby/object:Gem::Version
79
- version: '3.1'
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: 3.1.2
79
+ version: '1.30'
83
80
  type: :runtime
84
81
  prerelease: false
85
82
  version_requirements: !ruby/object:Gem::Requirement
86
83
  requirements:
87
84
  - - "~>"
88
85
  - !ruby/object:Gem::Version
89
- version: '3.1'
90
- - - ">="
91
- - !ruby/object:Gem::Version
92
- version: 3.1.2
86
+ version: '1.30'
93
87
  - !ruby/object:Gem::Dependency
94
- name: appsignal
88
+ name: daemons
95
89
  requirement: !ruby/object:Gem::Requirement
96
90
  requirements:
97
91
  - - "~>"
98
92
  - !ruby/object:Gem::Version
99
- version: '1.0'
100
- type: :development
93
+ version: '1.2'
94
+ type: :runtime
101
95
  prerelease: false
102
96
  version_requirements: !ruby/object:Gem::Requirement
103
97
  requirements:
104
98
  - - "~>"
105
99
  - !ruby/object:Gem::Version
106
- version: '1.0'
100
+ version: '1.2'
107
101
  - !ruby/object:Gem::Dependency
108
- name: aws-sdk-sqs
102
+ name: retriable
109
103
  requirement: !ruby/object:Gem::Requirement
110
104
  requirements:
111
105
  - - "~>"
112
106
  - !ruby/object:Gem::Version
113
- version: '1.30'
114
- type: :development
107
+ version: '3.1'
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: 3.1.2
111
+ type: :runtime
115
112
  prerelease: false
116
113
  version_requirements: !ruby/object:Gem::Requirement
117
114
  requirements:
118
115
  - - "~>"
119
116
  - !ruby/object:Gem::Version
120
- version: '1.30'
117
+ version: '3.1'
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ version: 3.1.2
121
121
  - !ruby/object:Gem::Dependency
122
- name: aws-sdk-sns
122
+ name: appsignal
123
123
  requirement: !ruby/object:Gem::Requirement
124
124
  requirements:
125
125
  - - "~>"
126
126
  - !ruby/object:Gem::Version
127
- version: '1.30'
127
+ version: '1.0'
128
128
  type: :development
129
129
  prerelease: false
130
130
  version_requirements: !ruby/object:Gem::Requirement
131
131
  requirements:
132
132
  - - "~>"
133
133
  - !ruby/object:Gem::Version
134
- version: '1.30'
134
+ version: '1.0'
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: bundler
137
137
  requirement: !ruby/object:Gem::Requirement
@@ -461,7 +461,7 @@ homepage: https://github.com/payrollhero/dispatch-rider
461
461
  licenses:
462
462
  - MIT
463
463
  metadata: {}
464
- post_install_message:
464
+ post_install_message:
465
465
  rdoc_options: []
466
466
  require_paths:
467
467
  - lib
@@ -469,15 +469,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
469
469
  requirements:
470
470
  - - ">="
471
471
  - !ruby/object:Gem::Version
472
- version: 2.6.5
472
+ version: 2.7.2
473
473
  required_rubygems_version: !ruby/object:Gem::Requirement
474
474
  requirements:
475
475
  - - ">="
476
476
  - !ruby/object:Gem::Version
477
477
  version: '0'
478
478
  requirements: []
479
- rubygems_version: 3.3.5
480
- signing_key:
479
+ rubygems_version: 3.1.6
480
+ signing_key:
481
481
  specification_version: 4
482
482
  summary: Messaging system that is customizable based on which queueing system we are
483
483
  using.