govuk_message_queue_consumer 4.1.0 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -1
- data/README.md +1 -1
- data/lib/govuk_message_queue_consumer/consumer.rb +4 -3
- data/lib/govuk_message_queue_consumer/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0afd12a5a1835a2c0b084462729846009ff2db28ac4315297cdbc1120beb0a3a
|
4
|
+
data.tar.gz: '0567349e9ff36b486384d21280dec6102d92285dd6971e75dd548d892b9e5383'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1061fe3d8164cb1d33cff988224cae58b3a8b2b3a8fc71d21657371e106b5c831ab51625f8cc7f6e1db4b32f717cc7806d34fa3b7cf0ec8422a8bf4b6bcaca00
|
7
|
+
data.tar.gz: 860de89747df830547fac9ee2702a13adc36d218c23cfbb430a6f9992fe8cd69865e97bc9597f9e603e1bd4a325fd357421fee86786eb2078d3db3445a9b1c0e
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# 4.2.0
|
2
|
+
|
3
|
+
* Drop support for Ruby 3.0. The minimum required Ruby version is now 3.1.4.
|
4
|
+
* Add support for Ruby 3.3.
|
5
|
+
- Drop support for Ruby 2.7.
|
6
|
+
- Fix ability to handle system signals, and report non-`SIGTERM` errors to `GovukError`
|
7
|
+
|
1
8
|
# 4.1.0
|
2
9
|
|
3
10
|
- Support configuration via
|
@@ -32,7 +39,7 @@
|
|
32
39
|
# 3.2.0
|
33
40
|
|
34
41
|
- Add batch process capabilities
|
35
|
-
- Refactor `process_chain` to `message_consumer`
|
42
|
+
- Refactor `process_chain` to `message_consumer`
|
36
43
|
|
37
44
|
# 3.1.0
|
38
45
|
|
data/README.md
CHANGED
@@ -14,10 +14,10 @@ For detailed documentation, check out the [gem documentation on rubydoc.info](ht
|
|
14
14
|
|
15
15
|
This gem is used by:
|
16
16
|
|
17
|
-
- [Cache clearing service](https://github.com/alphagov/cache-clearing-service).
|
18
17
|
- [Content Data API](https://github.com/alphagov/content-data-api).
|
19
18
|
- [Email Alert Service](https://github.com/alphagov/email-alert-service/).
|
20
19
|
- [Search API](https://github.com/alphagov/search-api).
|
20
|
+
- [Search API v2](https://github.com/alphagov/search-api-v2).
|
21
21
|
|
22
22
|
## Overview of RabbitMQ
|
23
23
|
|
@@ -44,15 +44,16 @@ module GovukMessageQueueConsumer
|
|
44
44
|
@statsd_client.increment("#{@queue_name}.started")
|
45
45
|
message_consumer.process(message)
|
46
46
|
@statsd_client.increment("#{@queue_name}.#{message.status}")
|
47
|
-
rescue SignalException => e
|
48
|
-
@logger.error "SignalException in processor: \n\n #{e.class}: #{e.message}\n\n#{e.backtrace.join("\n")}"
|
49
|
-
exit(1) # Ensure rabbitmq requeues outstanding messages
|
50
47
|
rescue StandardError => e
|
51
48
|
@statsd_client.increment("#{@queue_name}.uncaught_exception")
|
52
49
|
GovukError.notify(e) if defined?(GovukError)
|
53
50
|
@logger.error "Uncaught exception in processor: \n\n #{e.class}: #{e.message}\n\n#{e.backtrace.join("\n")}"
|
54
51
|
exit(1) # Ensure rabbitmq requeues outstanding messages
|
55
52
|
end
|
53
|
+
rescue SignalException => e
|
54
|
+
GovukError.notify(e) if defined?(GovukError) && e.message != "SIGTERM"
|
55
|
+
|
56
|
+
exit
|
56
57
|
end
|
57
58
|
|
58
59
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_message_queue_consumer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bunny
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - '='
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 4.
|
89
|
+
version: 4.16.1
|
90
90
|
type: :development
|
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: 4.
|
96
|
+
version: 4.16.1
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: yard
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -141,14 +141,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
141
141
|
requirements:
|
142
142
|
- - ">="
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version:
|
144
|
+
version: 3.1.4
|
145
145
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
146
|
requirements:
|
147
147
|
- - ">="
|
148
148
|
- !ruby/object:Gem::Version
|
149
149
|
version: '0'
|
150
150
|
requirements: []
|
151
|
-
rubygems_version: 3.
|
151
|
+
rubygems_version: 3.5.9
|
152
152
|
signing_key:
|
153
153
|
specification_version: 4
|
154
154
|
summary: AMQP message queue consumption with GOV.UK conventions
|