gds-api-adapters 81.0.4 → 82.0.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: 66c70fc3c5113cb579afbccfbca8acc7254ad94f5364bc649dd965e43c06b0be
4
- data.tar.gz: 9d06eab53ce1687a7cea9488d69d5a5625b34c0ce1a76f56e4cc30f5d1130e7a
3
+ metadata.gz: 872ba36d055a825032e704df99c551581f06010b0b203da72284ea239e3b5170
4
+ data.tar.gz: 9b381ac3dc7dcccf7956bfa550da62aaaa6eda85cfbac949dc0c1df026321a50
5
5
  SHA512:
6
- metadata.gz: ba545b1ba297060debce12f44352d074c945985bdda877f150d436a460946b09134554c08b487c7be640894c4496c3aded73bddd67ca734226a9d480cba7eea5
7
- data.tar.gz: 6f82e7bf9eeb166d9353e6104fb9a03fd9c8be1cd17f43eeb750f5e0aa763209b36ddc69c3184b61bb7e066fe02152d161b98ec0ff9cd20989e5206ee0b64db6
6
+ metadata.gz: 9461e317a1c2e73c3f5239723acd9abd279d7d5e9e2c4770318f667de7d087b73651ca35097fc484ef719798a8a958335e75c25c8903099d53a551946430cd30
7
+ data.tar.gz: 546ec075f67798bd91f3ae0d584ee06ed22b81ab8382a912cac34ff000cb370c843159ea3282d68e29b15d9ae881d167af63fdc96d820c05f706ad736831b61c
@@ -34,14 +34,6 @@ class GdsApi::EmailAlertApi < GdsApi::Base
34
34
  post_json("#{endpoint}/content-changes", content_change, headers)
35
35
  end
36
36
 
37
- # Post a message
38
- #
39
- # @param message [Hash] Valid message attributes
40
- def create_message(message, headers = {})
41
- warn "#create_message is deprecated and will be removed in a future version."
42
- post_json("#{endpoint}/messages", message, headers)
43
- end
44
-
45
37
  # Get topic matches
46
38
  #
47
39
  # @param attributes [Hash] tags, links, document_type,
@@ -44,11 +44,9 @@ module GdsApi
44
44
 
45
45
  def previous_page
46
46
  # See the note in `next_page` for why this is memoised
47
- @previous_page ||= begin
48
- if has_previous_page?
49
- @api_client.get_list(page_link("previous").href)
50
- end
51
- end
47
+ @previous_page ||= if has_previous_page?
48
+ @api_client.get_list(page_link("previous").href)
49
+ end
52
50
  end
53
51
 
54
52
  # Transparently get all results across all pages. Compare this with #each
@@ -155,11 +155,6 @@ module GdsApi
155
155
  .to_return(status: 202, body: {}.to_json)
156
156
  end
157
157
 
158
- def stub_email_alert_api_accepts_message
159
- stub_request(:post, "#{EMAIL_ALERT_API_ENDPOINT}/messages")
160
- .to_return(status: 202, body: {}.to_json)
161
- end
162
-
163
158
  def stub_email_alert_api_accepts_email
164
159
  stub_request(:post, "#{EMAIL_ALERT_API_ENDPOINT}/emails")
165
160
  .to_return(status: 202, body: {}.to_json)
@@ -180,17 +175,6 @@ module GdsApi
180
175
  assert_requested(:post, "#{EMAIL_ALERT_API_ENDPOINT}/content-changes", times: 1, &matcher)
181
176
  end
182
177
 
183
- def assert_email_alert_api_message_created(attributes = nil)
184
- if attributes
185
- matcher = lambda do |request|
186
- payload = JSON.parse(request.body)
187
- payload.select { |k, _| attributes.key?(k) } == attributes
188
- end
189
- end
190
-
191
- assert_requested(:post, "#{EMAIL_ALERT_API_ENDPOINT}/messages", times: 1, &matcher)
192
- end
193
-
194
178
  def stub_email_alert_api_unsubscribes_a_subscription(uuid)
195
179
  stub_request(:post, "#{EMAIL_ALERT_API_ENDPOINT}/unsubscribe/#{uuid}")
196
180
  .with(body: "{}")
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = "81.0.4".freeze
2
+ VERSION = "82.0.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: 81.0.4
4
+ version: 82.0.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: 2022-08-03 00:00:00.000000000 Z
11
+ date: 2022-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -80,34 +80,48 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '2.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: byebug
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: climate_control
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
101
  - - "~>"
88
102
  - !ruby/object:Gem::Version
89
- version: '0.2'
103
+ version: '1.2'
90
104
  type: :development
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
108
  - - "~>"
95
109
  - !ruby/object:Gem::Version
96
- version: '0.2'
110
+ version: '1.2'
97
111
  - !ruby/object:Gem::Dependency
98
- name: govuk-content-schema-test-helpers
112
+ name: govuk_schemas
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
115
  - - "~>"
102
116
  - !ruby/object:Gem::Version
103
- version: '1.6'
117
+ version: '4.4'
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
122
  - - "~>"
109
123
  - !ruby/object:Gem::Version
110
- version: '1.6'
124
+ version: '4.4'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: minitest
113
127
  requirement: !ruby/object:Gem::Requirement
@@ -142,42 +156,42 @@ dependencies:
142
156
  requirements:
143
157
  - - "~>"
144
158
  - !ruby/object:Gem::Version
145
- version: '1.11'
159
+ version: '1.14'
146
160
  type: :development
147
161
  prerelease: false
148
162
  version_requirements: !ruby/object:Gem::Requirement
149
163
  requirements:
150
164
  - - "~>"
151
165
  - !ruby/object:Gem::Version
152
- version: '1.11'
166
+ version: '1.14'
153
167
  - !ruby/object:Gem::Dependency
154
168
  name: pact
155
169
  requirement: !ruby/object:Gem::Requirement
156
170
  requirements:
157
171
  - - "~>"
158
172
  - !ruby/object:Gem::Version
159
- version: '1.20'
173
+ version: '1.62'
160
174
  type: :development
161
175
  prerelease: false
162
176
  version_requirements: !ruby/object:Gem::Requirement
163
177
  requirements:
164
178
  - - "~>"
165
179
  - !ruby/object:Gem::Version
166
- version: '1.20'
180
+ version: '1.62'
167
181
  - !ruby/object:Gem::Dependency
168
182
  name: pact_broker-client
169
183
  requirement: !ruby/object:Gem::Requirement
170
184
  requirements:
171
185
  - - "~>"
172
186
  - !ruby/object:Gem::Version
173
- version: '1.14'
187
+ version: '1.65'
174
188
  type: :development
175
189
  prerelease: false
176
190
  version_requirements: !ruby/object:Gem::Requirement
177
191
  requirements:
178
192
  - - "~>"
179
193
  - !ruby/object:Gem::Version
180
- version: '1.14'
194
+ version: '1.65'
181
195
  - !ruby/object:Gem::Dependency
182
196
  name: pact-consumer-minitest
183
197
  requirement: !ruby/object:Gem::Requirement
@@ -198,42 +212,28 @@ dependencies:
198
212
  requirements:
199
213
  - - "~>"
200
214
  - !ruby/object:Gem::Version
201
- version: '3.6'
215
+ version: '3.10'
202
216
  type: :development
203
217
  prerelease: false
204
218
  version_requirements: !ruby/object:Gem::Requirement
205
219
  requirements:
206
220
  - - "~>"
207
221
  - !ruby/object:Gem::Version
208
- version: '3.6'
209
- - !ruby/object:Gem::Dependency
210
- name: pry
211
- requirement: !ruby/object:Gem::Requirement
212
- requirements:
213
- - - ">="
214
- - !ruby/object:Gem::Version
215
- version: '0'
216
- type: :development
217
- prerelease: false
218
- version_requirements: !ruby/object:Gem::Requirement
219
- requirements:
220
- - - ">="
221
- - !ruby/object:Gem::Version
222
- version: '0'
222
+ version: '3.10'
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: rack
225
225
  requirement: !ruby/object:Gem::Requirement
226
226
  requirements:
227
227
  - - "~>"
228
228
  - !ruby/object:Gem::Version
229
- version: '2.0'
229
+ version: '2.2'
230
230
  type: :development
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
233
233
  requirements:
234
234
  - - "~>"
235
235
  - !ruby/object:Gem::Version
236
- version: '2.0'
236
+ version: '2.2'
237
237
  - !ruby/object:Gem::Dependency
238
238
  name: rack-test
239
239
  requirement: !ruby/object:Gem::Requirement
@@ -252,58 +252,58 @@ dependencies:
252
252
  name: rake
253
253
  requirement: !ruby/object:Gem::Requirement
254
254
  requirements:
255
- - - "~>"
255
+ - - ">="
256
256
  - !ruby/object:Gem::Version
257
- version: '12.3'
257
+ version: '0'
258
258
  type: :development
259
259
  prerelease: false
260
260
  version_requirements: !ruby/object:Gem::Requirement
261
261
  requirements:
262
- - - "~>"
262
+ - - ">="
263
263
  - !ruby/object:Gem::Version
264
- version: '12.3'
264
+ version: '0'
265
265
  - !ruby/object:Gem::Dependency
266
266
  name: rubocop-govuk
267
267
  requirement: !ruby/object:Gem::Requirement
268
268
  requirements:
269
269
  - - '='
270
270
  - !ruby/object:Gem::Version
271
- version: 4.0.0.pre.1
271
+ version: 4.7.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.0.0.pre.1
278
+ version: 4.7.0
279
279
  - !ruby/object:Gem::Dependency
280
280
  name: simplecov
281
281
  requirement: !ruby/object:Gem::Requirement
282
282
  requirements:
283
283
  - - "~>"
284
284
  - !ruby/object:Gem::Version
285
- version: '0.16'
285
+ version: '0.21'
286
286
  type: :development
287
287
  prerelease: false
288
288
  version_requirements: !ruby/object:Gem::Requirement
289
289
  requirements:
290
290
  - - "~>"
291
291
  - !ruby/object:Gem::Version
292
- version: '0.16'
292
+ version: '0.21'
293
293
  - !ruby/object:Gem::Dependency
294
294
  name: simplecov-rcov
295
295
  requirement: !ruby/object:Gem::Requirement
296
296
  requirements:
297
- - - ">="
297
+ - - "~>"
298
298
  - !ruby/object:Gem::Version
299
- version: '0'
299
+ version: '0.3'
300
300
  type: :development
301
301
  prerelease: false
302
302
  version_requirements: !ruby/object:Gem::Requirement
303
303
  requirements:
304
- - - ">="
304
+ - - "~>"
305
305
  - !ruby/object:Gem::Version
306
- version: '0'
306
+ version: '0.3'
307
307
  - !ruby/object:Gem::Dependency
308
308
  name: timecop
309
309
  requirement: !ruby/object:Gem::Requirement
@@ -324,42 +324,14 @@ dependencies:
324
324
  requirements:
325
325
  - - "~>"
326
326
  - !ruby/object:Gem::Version
327
- version: '3.5'
328
- type: :development
329
- prerelease: false
330
- version_requirements: !ruby/object:Gem::Requirement
331
- requirements:
332
- - - "~>"
333
- - !ruby/object:Gem::Version
334
- version: '3.5'
335
- - !ruby/object:Gem::Dependency
336
- name: webrick
337
- requirement: !ruby/object:Gem::Requirement
338
- requirements:
339
- - - "~>"
340
- - !ruby/object:Gem::Version
341
- version: '1.4'
327
+ version: '3.17'
342
328
  type: :development
343
329
  prerelease: false
344
330
  version_requirements: !ruby/object:Gem::Requirement
345
331
  requirements:
346
332
  - - "~>"
347
333
  - !ruby/object:Gem::Version
348
- version: '1.4'
349
- - !ruby/object:Gem::Dependency
350
- name: yard
351
- requirement: !ruby/object:Gem::Requirement
352
- requirements:
353
- - - "~>"
354
- - !ruby/object:Gem::Version
355
- version: '0.9'
356
- type: :development
357
- prerelease: false
358
- version_requirements: !ruby/object:Gem::Requirement
359
- requirements:
360
- - - "~>"
361
- - !ruby/object:Gem::Version
362
- version: '0.9'
334
+ version: '3.17'
363
335
  description: A set of adapters providing easy access to the GDS GOV.UK APIs
364
336
  email:
365
337
  - govuk-dev@digital.cabinet-office.gov.uk