gds-api-adapters 94.0.0 → 95.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: 2c105d7b4ef8f10b6b76c82cc200ae304d442f492aaa493323a81dcb0f3f13d1
4
- data.tar.gz: 9525d505b85b746b4d8cc975d027554b3bdb49280b7b2b0c53aa4b8de5baa80a
3
+ metadata.gz: '04936db278a48a8c1fe350c870bf72729e86b79d78c421bb21e29cc64d51ca25'
4
+ data.tar.gz: 85d68fe622bcc3ada1f74326bb6734990211a5fff69713a580d577997c858012
5
5
  SHA512:
6
- metadata.gz: ca2a25845234ab89b38b772044e03fe5ae468db150c1e40ac3a89ccd493c6c3cc00b28957a81a0ccea2dc4e4ef9a12479cd95aac53324668342f4075ab6f6c40
7
- data.tar.gz: 26faeb12f452e79321c3601b277c550bb6cc3b822a3718734bbea8e64e18241d182169b27a6d2059304e4d47d2f84e08f4d7235c86b8c24a65ccb27a86924576
6
+ metadata.gz: 4b5b267cc2877561dd887d1f18f2d33fb5f6f460c736bcbda6fa9a963149c8187c89ea1bd87f97c535d97c3c5478abba76d85409d87c7d1a9097055e72794df1
7
+ data.tar.gz: cf6bae3e01000b811a0a05b6d715824bb4df0f5f694c71b58bc13542f1ff79b07733157e32920fb06984fa116cb318f0a67d9e402079004651ff5f96860c0076
@@ -1,10 +1,6 @@
1
1
  require_relative "base"
2
2
 
3
3
  class GdsApi::Support < GdsApi::Base
4
- def create_named_contact(request_details)
5
- post_json("#{base_url}/named_contacts", named_contact: request_details)
6
- end
7
-
8
4
  def feedback_url(slug)
9
5
  "#{base_url}/anonymous_feedback?path=#{slug}"
10
6
  end
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = "94.0.0".freeze
2
+ VERSION = "95.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: 94.0.0
4
+ version: 95.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: 2024-02-28 00:00:00.000000000 Z
11
+ date: 2024-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: 1.9.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: rack
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: 2.2.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: 2.2.0
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rest-client
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -220,20 +234,6 @@ dependencies:
220
234
  - - "~>"
221
235
  - !ruby/object:Gem::Version
222
236
  version: '3.10'
223
- - !ruby/object:Gem::Dependency
224
- name: rack
225
- requirement: !ruby/object:Gem::Requirement
226
- requirements:
227
- - - "~>"
228
- - !ruby/object:Gem::Version
229
- version: '3.0'
230
- type: :development
231
- prerelease: false
232
- version_requirements: !ruby/object:Gem::Requirement
233
- requirements:
234
- - - "~>"
235
- - !ruby/object:Gem::Version
236
- version: '3.0'
237
237
  - !ruby/object:Gem::Dependency
238
238
  name: rack-test
239
239
  requirement: !ruby/object:Gem::Requirement
@@ -268,14 +268,14 @@ dependencies:
268
268
  requirements:
269
269
  - - '='
270
270
  - !ruby/object:Gem::Version
271
- version: 4.14.0
271
+ version: 4.15.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.14.0
278
+ version: 4.15.0
279
279
  - !ruby/object:Gem::Dependency
280
280
  name: simplecov
281
281
  requirement: !ruby/object:Gem::Requirement
@@ -373,7 +373,6 @@ files:
373
373
  - lib/gds_api/test_helpers/publishing_api.rb
374
374
  - lib/gds_api/test_helpers/router.rb
375
375
  - lib/gds_api/test_helpers/search.rb
376
- - lib/gds_api/test_helpers/support.rb
377
376
  - lib/gds_api/test_helpers/support_api.rb
378
377
  - lib/gds_api/test_helpers/worldwide.rb
379
378
  - lib/gds_api/version.rb
@@ -396,14 +395,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
396
395
  requirements:
397
396
  - - ">="
398
397
  - !ruby/object:Gem::Version
399
- version: 3.1.4
398
+ version: '3.1'
400
399
  required_rubygems_version: !ruby/object:Gem::Requirement
401
400
  requirements:
402
401
  - - ">="
403
402
  - !ruby/object:Gem::Version
404
403
  version: '0'
405
404
  requirements: []
406
- rubygems_version: 3.5.6
405
+ rubygems_version: 3.5.7
407
406
  signing_key:
408
407
  specification_version: 4
409
408
  summary: Adapters to work with GDS APIs
@@ -1,23 +0,0 @@
1
- module GdsApi
2
- module TestHelpers
3
- module Support
4
- SUPPORT_ENDPOINT = Plek.find("support")
5
-
6
- def stub_support_foi_request_creation(request_details = nil)
7
- post_stub = stub_http_request(:post, "#{SUPPORT_ENDPOINT}/foi_requests")
8
- post_stub.with(body: { "foi_request" => request_details }) unless request_details.nil?
9
- post_stub.to_return(status: 201)
10
- end
11
-
12
- def stub_support_named_contact_creation(request_details = nil)
13
- post_stub = stub_http_request(:post, "#{SUPPORT_ENDPOINT}/named_contacts")
14
- post_stub.with(body: { named_contact: request_details }) unless request_details.nil?
15
- post_stub.to_return(status: 201)
16
- end
17
-
18
- def stub_support_isnt_available
19
- stub_request(:post, /#{SUPPORT_ENDPOINT}\/.*/).to_return(status: 503)
20
- end
21
- end
22
- end
23
- end