govuk_message_queue_consumer 3.0.2 → 3.1.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
  SHA1:
3
- metadata.gz: a6896165d9545e9d296e8b36b4561691c944de5c
4
- data.tar.gz: 6d91a915165ae01078054f31db28cd8849a979ec
3
+ metadata.gz: 48237ae34d62ad2c19bfa687518f0f83b8953855
4
+ data.tar.gz: 3078b5856d7cbd3f1b3eeb2365f7a924337ba9bd
5
5
  SHA512:
6
- metadata.gz: 1c98adccdb026761e1729efcf18a6eabd4bf9e913bf596e1eb58f39c1eb56cbeb2af4054a5999dfece569eec33387c38ec3f82a0c4a2df37cfc572207ed77d26
7
- data.tar.gz: d0a55bf4526a698a2137f09aa93ae2e88e82f32e931dc4693d9160e79adb84d88a5f151bc5ce7649e2d662c93731950831a4fd21625e558d1f405daea8f58f39
6
+ metadata.gz: a821d0c9b7c3d65de3d8aa88cafca57ac50ea3196f5add31a3108edfcfe90664f723ab4de9357f697e17512fead995fb0036a7be9f0270379908ee16769461e5
7
+ data.tar.gz: 7b1c8112e94b10db93a0038377e980a06fbfe4acfbe8953308a1a90302e44150fd2972f6880533e8cddb952a30104c23a4040f7af8cb83b3949577c631e29171
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 3.1.0
2
+
3
+ - Change Airbrake to GovukError
4
+
1
5
  # 3.0.2
2
6
 
3
7
  - Republish 3.0.1 to correct checksum.
data/README.md CHANGED
@@ -38,9 +38,8 @@ This is a ruby gem that deals with the boiler plate code of communicating with
38
38
  [RabbitMQ](https://www.rabbitmq.com/). The user of this gem is left the task of
39
39
  supplying the configuration and a class that processes messages.
40
40
 
41
- This gem is auto-released with [gem_publisher](https://github.com/alphagov/gem_publisher).
42
- To release a new version, simply raise a pull request with the version number
43
- incremented.
41
+ The gem is automatically released by Jenkins. To release a new version, raise a
42
+ pull request with the version number incremented.
44
43
 
45
44
  ### Dependencies
46
45
 
@@ -201,7 +200,7 @@ bundle exec rake spec
201
200
  - [Bunny](https://github.com/ruby-amqp/bunny) is the RabbitMQ client we use.
202
201
  - [The Bunny Guides](http://rubybunny.info/articles/guides.html) explain all
203
202
  AMQP concepts really well.
204
- - The [Opsmanual](https://github.gds/pages/gds/opsmanual/2nd-line/nagios.html?highlight=rabbitmq#rabbitmq-checks)
203
+ - The [Developer Docs](https://docs.publishing.service.gov.uk/manual/rabbitmq.html)
205
204
  documents the usage of "heartbeat" messages, which this gem also supports.
206
205
 
207
206
  ## Licence
@@ -36,7 +36,7 @@ module GovukMessageQueueConsumer
36
36
  @statsd_client.increment("#{@queue_name}.#{message.status}")
37
37
  rescue Exception => e
38
38
  @statsd_client.increment("#{@queue_name}.uncaught_exception")
39
- Airbrake.notify_or_ignore(e) if defined?(Airbrake)
39
+ GovukError.notify(e) if defined?(GovukError)
40
40
  @logger.error "Uncaught exception in processor: \n\n #{e.class}: #{e.message}\n\n#{e.backtrace.join("\n")}"
41
41
  exit(1) # Ensure rabbitmq requeues outstanding messages
42
42
  end
@@ -13,7 +13,7 @@ module GovukMessageQueueConsumer
13
13
 
14
14
  @next_processor.process(message)
15
15
  rescue JSON::ParserError => e
16
- Airbrake.notify_or_ignore(e) if defined?(Airbrake)
16
+ GovukError.notify(e) if defined?(GovukError)
17
17
  message.discard
18
18
  end
19
19
  end
@@ -1,3 +1,3 @@
1
1
  module GovukMessageQueueConsumer
2
- VERSION = '3.0.2'
2
+ VERSION = '3.1.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.0.2
4
+ version: 3.1.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: 2017-03-03 00:00:00.000000000 Z
11
+ date: 2017-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 2.2.0
27
- - !ruby/object:Gem::Dependency
28
- name: gem_publisher
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: 1.5.0
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: 1.5.0
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: rspec
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -120,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
106
  version: '0'
121
107
  requirements: []
122
108
  rubyforge_project:
123
- rubygems_version: 2.4.5.1
109
+ rubygems_version: 2.6.13
124
110
  signing_key:
125
111
  specification_version: 4
126
112
  summary: AMQP message queue consumption with GOV.UK conventions