gds-api-adapters 92.0.0 → 92.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 203960b7b78fe1527269cf50d08575639f7c051d05abc344c6a5dfe8f0eddd7c
|
4
|
+
data.tar.gz: cf6e7acc03b5e039ec901ea6dcfa1feefa8c7e0f60da0a8ad3c56b98d2f60aec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e846253e545b8640a6cabb3ec4aec9cc66e6db5a05041b58527bd13499cece67be7998ee699d7ffc94197cbee532297dddff1040d4e9e709b3de991ddf8766f
|
7
|
+
data.tar.gz: b0460fa6b98bda9ba3540712c9d59fc895c8bf481b86a4d083385075b147db3a401d1273219281b094b1d5618e45d85631ee4008695c5b1ce1279a1ff94899df
|
@@ -94,6 +94,19 @@ class GdsApi::EmailAlertApi < GdsApi::Base
|
|
94
94
|
get_json("#{endpoint}/subscriber-lists/#{uri_encode(slug)}")
|
95
95
|
end
|
96
96
|
|
97
|
+
# Get a Subscriber List
|
98
|
+
#
|
99
|
+
# @param [path] path of page for subscriber list
|
100
|
+
#
|
101
|
+
# @return [Hash] {
|
102
|
+
# subscriber_list_count
|
103
|
+
# all_notify_count
|
104
|
+
# }
|
105
|
+
|
106
|
+
def get_subscriber_list_metrics(path:)
|
107
|
+
get_json("#{endpoint}/subscriber-lists/metrics#{path}")
|
108
|
+
end
|
109
|
+
|
97
110
|
# Get a Subscription
|
98
111
|
#
|
99
112
|
# @return [Hash] subscription: {
|
@@ -164,6 +164,16 @@ module GdsApi
|
|
164
164
|
stub_request(:any, %r{\A#{EMAIL_ALERT_API_ENDPOINT}})
|
165
165
|
end
|
166
166
|
|
167
|
+
def stub_get_subscriber_list_metrics(path:, response:)
|
168
|
+
stub_request(:get, "#{EMAIL_ALERT_API_ENDPOINT}/subscriber-lists/metrics#{path}")
|
169
|
+
.to_return(status: 200, body: response)
|
170
|
+
end
|
171
|
+
|
172
|
+
def stub_get_subscriber_list_metrics_not_found(path:)
|
173
|
+
stub_request(:get, "#{EMAIL_ALERT_API_ENDPOINT}/subscriber-lists/metrics#{path}")
|
174
|
+
.to_return(status: 404)
|
175
|
+
end
|
176
|
+
|
167
177
|
def assert_email_alert_api_content_change_created(attributes = nil)
|
168
178
|
if attributes
|
169
179
|
matcher = lambda do |request|
|
@@ -97,7 +97,7 @@ module GdsApi
|
|
97
97
|
|
98
98
|
def convert_to_query_string_params(parameters)
|
99
99
|
# convert nil to an empty string, otherwise query param is not expressed correctly
|
100
|
-
parameters.
|
100
|
+
parameters.each_key { |key| parameters[key] = "" if parameters[key].nil? }
|
101
101
|
parameters
|
102
102
|
end
|
103
103
|
|
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: 92.
|
4
|
+
version: 92.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:
|
11
|
+
date: 2024-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -268,14 +268,14 @@ dependencies:
|
|
268
268
|
requirements:
|
269
269
|
- - '='
|
270
270
|
- !ruby/object:Gem::Version
|
271
|
-
version: 4.
|
271
|
+
version: 4.13.0
|
272
272
|
type: :development
|
273
273
|
prerelease: false
|
274
274
|
version_requirements: !ruby/object:Gem::Requirement
|
275
275
|
requirements:
|
276
276
|
- - '='
|
277
277
|
- !ruby/object:Gem::Version
|
278
|
-
version: 4.
|
278
|
+
version: 4.13.0
|
279
279
|
- !ruby/object:Gem::Dependency
|
280
280
|
name: simplecov
|
281
281
|
requirement: !ruby/object:Gem::Requirement
|
@@ -417,7 +417,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
417
417
|
- !ruby/object:Gem::Version
|
418
418
|
version: '0'
|
419
419
|
requirements: []
|
420
|
-
rubygems_version: 3.4
|
420
|
+
rubygems_version: 3.5.4
|
421
421
|
signing_key:
|
422
422
|
specification_version: 4
|
423
423
|
summary: Adapters to work with GDS APIs
|