gds-api-adapters 52.7.0 → 52.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/gds_api/email_alert_api.rb +11 -0
- data/lib/gds_api/test_helpers/email_alert_api.rb +5 -0
- data/lib/gds_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 59d74e1655c62452778dc3ac251578719cef33edf2fbe8ae00e2879807ea762b
|
|
4
|
+
data.tar.gz: ff1a65569b144dc72dfa9653a7b2bac38d3b7c27b8825dab52e1a5f364c5f115
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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)
|
data/lib/gds_api/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2018-08-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|