gds-api-adapters 52.7.0 → 52.8.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: 8e8fb67f01e255a264b4c5af3bfc7726d1147caad20049d9ec32f4e87244c754
4
- data.tar.gz: 8de0575d7e68cb46dd177a63ab6ab7fdee11238b191f611d38491367fe8a6f4d
3
+ metadata.gz: 59d74e1655c62452778dc3ac251578719cef33edf2fbe8ae00e2879807ea762b
4
+ data.tar.gz: ff1a65569b144dc72dfa9653a7b2bac38d3b7c27b8825dab52e1a5f364c5f115
5
5
  SHA512:
6
- metadata.gz: 74cfbd519a7fee3bdbff93ac43dffefcfb26adb3c2dbbc8673b8e13e75a5fb97dd27252063a22fa7d5a140945ed87c3df9d0ec4da5cbb619d3507b5369fe3e9e
7
- data.tar.gz: 3664cbb17b43ed08f7d434e2e6d2ecb0cd09b78667b12b9957ffa3b36e8badca38ec905227ee40ef853a3b1bab516683d1b7a150791a69cb23d5ccfb346ce85f
6
+ metadata.gz: b514212d519183c9a6bc7f1f18cd9e86249262b69f9336872c015b88302b5dca52de406e5261a9ee3514d0bbbed7bfb321c8ef0b8de882be0959e20d069a2e89
7
+ data.tar.gz: c3d785f2cd20a9801f0b58d5ecf0c0e5c68f770845833e73ccc4c07787a16be32ad45ef213a141bd0f7d32b411b651fec962100e32aad74ee7cd500afc607eda
@@ -57,6 +57,17 @@ class GdsApi::EmailAlertApi < GdsApi::Base
57
57
  post_json("#{endpoint}/notifications", publication, headers)
58
58
  end
59
59
 
60
+ # Unpublishing alert
61
+ #
62
+ # @param message [Hash] content_id
63
+ #
64
+ # Used by email-alert-service to send a message to email-alert-api
65
+ # when an unpublishing message is put on the Rabbitmq queue by
66
+ # publishing-api
67
+ def send_unpublish_message(message)
68
+ post_json("#{endpoint}/unpublish-messages", message)
69
+ end
70
+
60
71
  # Get topic matches
61
72
  #
62
73
  # @param attributes [Hash] tags, links, document_type,
@@ -93,6 +93,11 @@ module GdsApi
93
93
  .to_return(status: 422)
94
94
  end
95
95
 
96
+ def email_alert_api_accepts_unpublishing_message
97
+ stub_request(:post, "#{EMAIL_ALERT_API_ENDPOINT}/unpublish-messages")
98
+ .to_return(status: 202, body: {}.to_json)
99
+ end
100
+
96
101
  def email_alert_api_accepts_alert
97
102
  stub_request(:post, "#{EMAIL_ALERT_API_ENDPOINT}/notifications")
98
103
  .to_return(status: 202, body: {}.to_json)
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = '52.7.0'.freeze
2
+ VERSION = '52.8.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gds-api-adapters
3
3
  version: !ruby/object:Gem::Version
4
- version: 52.7.0
4
+ version: 52.8.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: 2018-08-02 00:00:00.000000000 Z
11
+ date: 2018-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable