gds-api-adapters 81.0.0 → 81.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gds_api/test_helpers/email_alert_api.rb +6 -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: 8fca55d695f003f76bfe73bdec79add86ab4a2b25efadedf0f25690f54c20d4f
|
4
|
+
data.tar.gz: 12f119f94ca114d7b2c3ae3eab96554c2ec84d3cbac61c2bb8d0a502e006d022
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 126f6602485893e0a6fd0731ecc579f575d2d2516f0d47a4ee23029c2bcfd0ef20750b97f01fee5a70187587ea399c6e602be69b8ddca273af1cae831cd4808d
|
7
|
+
data.tar.gz: 2bab839794240cfd0b23a04f36c0a4395377e5fd765f4548a844ce27ec868bf58055059046499ddd862dadbb3a6a9e360dd59f215e5eb1f469f8a17e6f7f3eba
|
@@ -595,6 +595,12 @@ module GdsApi
|
|
595
595
|
url = "#{EMAIL_ALERT_API_ENDPOINT}/subscriber-lists"
|
596
596
|
query ? "#{url}?#{query}" : url
|
597
597
|
end
|
598
|
+
|
599
|
+
# Find and return the subscriber list for a topic if one exists.
|
600
|
+
def email_alert_api_has_subscriber_list_for_topic(content_id:, list: {})
|
601
|
+
url = "#{EMAIL_ALERT_API_ENDPOINT}/subscriber-lists?links%5Btopics%5D%5B0%5D=#{content_id}"
|
602
|
+
stub_request(:get, url).to_return(status: 200, body: { "subscriber_list" => list }.to_json)
|
603
|
+
end
|
598
604
|
end
|
599
605
|
end
|
600
606
|
end
|
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: 81.0.
|
4
|
+
version: 81.0.1
|
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: 2022-07-
|
11
|
+
date: 2022-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|