govuk_message_queue_consumer 3.3.0 → 3.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/govuk_message_queue_consumer/consumer.rb +3 -2
- data/lib/govuk_message_queue_consumer/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92a09ae7a0da01c7bdaf29f37b8053bcb4f9c4334d87d0b18ad310eecc9f6815
|
4
|
+
data.tar.gz: fc3dff089f8f8b7a11aee7c925156e81c28649bba315614bc61a8e0a8681db5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf3f04b956c6019a8b1ea9e483dd52d0f01c85262776395d4a53b5fe68fea8241cdef12afc958174728ca5cdbfb019929e9933524b2df6cab154fa2ada3b3e62
|
7
|
+
data.tar.gz: 50dd3d6beab63bbec13a077484f1a6c4d8d9aac5ba7c6ea374de9d9d0756e002c5d8803290959ff6018b16377bdd89e86ee9f41bb7c30f260dd6e5fb865e4577
|
data/CHANGELOG.md
CHANGED
@@ -26,10 +26,11 @@ module GovukMessageQueueConsumer
|
|
26
26
|
@logger = logger
|
27
27
|
end
|
28
28
|
|
29
|
-
def run
|
29
|
+
def run(subscribe_opts: {})
|
30
30
|
@rabbitmq_connection.start
|
31
31
|
|
32
|
-
|
32
|
+
subscribe_opts = { block: true, manual_ack: true}.merge(subscribe_opts)
|
33
|
+
queue.subscribe(subscribe_opts) do |delivery_info, headers, payload|
|
33
34
|
begin
|
34
35
|
message = Message.new(payload, headers, delivery_info)
|
35
36
|
@statsd_client.increment("#{@queue_name}.started")
|
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: 3.
|
4
|
+
version: 3.4.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: 2019-
|
11
|
+
date: 2019-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bunny
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 3.
|
33
|
+
version: 3.8.0
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 3.
|
40
|
+
version: 3.8.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 12.3.2
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 12.3.2
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: yard
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
135
|
- !ruby/object:Gem::Version
|
136
136
|
version: '0'
|
137
137
|
requirements: []
|
138
|
-
rubygems_version: 3.0.
|
138
|
+
rubygems_version: 3.0.3
|
139
139
|
signing_key:
|
140
140
|
specification_version: 4
|
141
141
|
summary: AMQP message queue consumption with GOV.UK conventions
|