govuk_message_queue_consumer 4.1.0 → 4.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
2
  SHA256:
3
- metadata.gz: cc0734bab51ff11acbfbb49e0e750f1dc572597dc022ba914ca3bf3fe1d056a8
4
- data.tar.gz: 737af6b51e95e3e9295c66a03485c9f98ba9aaf34c907829c217c88d7d1d54ac
3
+ metadata.gz: 0afd12a5a1835a2c0b084462729846009ff2db28ac4315297cdbc1120beb0a3a
4
+ data.tar.gz: '0567349e9ff36b486384d21280dec6102d92285dd6971e75dd548d892b9e5383'
5
5
  SHA512:
6
- metadata.gz: bf52f103daa4c105e0d8efb84b597ae3fa6e7354b391457b1d984bcf53132b70dc03ca4aca0b02bf63c7dc51d1f8c42f399880b4e433800db0307171f6b02822
7
- data.tar.gz: 9527d48f2fe4bd59b068a666359c2d949cc2f7bcee0b5f4e745d9fd10fe8eea25fb6504ab151dbd7e3ab251f21c71a74084e09f5bd817e4cef3704f65a5971a8
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
@@ -1,3 +1,3 @@
1
1
  module GovukMessageQueueConsumer
2
- VERSION = "4.1.0".freeze
2
+ VERSION = "4.2.0".freeze
3
3
  end
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.1.0
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: 2022-12-14 00:00:00.000000000 Z
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.9.0
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.9.0
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: '2.7'
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.3.26
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