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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dcdd4258b320d76981491bc368d4cc9ed4151e444d5294c7121ef1a6856be053
4
- data.tar.gz: 403ef7c49ed70ef97c479aadad249ed4509b19e61dcfe0824c266a962ceb90ab
3
+ metadata.gz: 92a09ae7a0da01c7bdaf29f37b8053bcb4f9c4334d87d0b18ad310eecc9f6815
4
+ data.tar.gz: fc3dff089f8f8b7a11aee7c925156e81c28649bba315614bc61a8e0a8681db5a
5
5
  SHA512:
6
- metadata.gz: 8228b3f8aaf76420e28c23176baeb8bc4e85eb8b7d9b27b5c99df96c88812d96dd9c05b9b0c95f94ad6de42c2540cfe0671e8dbc8b191615437daedd9e3d7a05
7
- data.tar.gz: 913ef9800325782cca189dc3a0d472c2f63bb66e673237707c5c00a73a01c821bbeef8ef83eacda73ce372e00c38f8846ffbc24a5ff68ce4589c427c7835f084
6
+ metadata.gz: cf3f04b956c6019a8b1ea9e483dd52d0f01c85262776395d4a53b5fe68fea8241cdef12afc958174728ca5cdbfb019929e9933524b2df6cab154fa2ada3b3e62
7
+ data.tar.gz: 50dd3d6beab63bbec13a077484f1a6c4d8d9aac5ba7c6ea374de9d9d0756e002c5d8803290959ff6018b16377bdd89e86ee9f41bb7c30f260dd6e5fb865e4577
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 3.4.0
2
+
3
+ - Add ability to override default consumer subscribe options with `subscribe_opts` parameter
4
+
1
5
  # 3.3.0
2
6
 
3
7
  - Add access to `payload`, `delivery_info`, `header` in `GovukMessageQueueConsumer::MockMessage` for testing.
@@ -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
- queue.subscribe(block: true, manual_ack: true) do |delivery_info, headers, payload|
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")
@@ -1,3 +1,3 @@
1
1
  module GovukMessageQueueConsumer
2
- VERSION = '3.3.0'
2
+ VERSION = '3.4.0'
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: 3.3.0
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-03-29 00:00:00.000000000 Z
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.3.0
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.3.0
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: 10.4.2
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: 10.4.2
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.1
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