gds-api-adapters 41.4.0 → 41.5.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
  SHA1:
3
- metadata.gz: 7f532c194a3ad38cbb4be8e86b50abd577c3d910
4
- data.tar.gz: a7d65acf39bcb70bf5765e608eb3efaea2c96b38
3
+ metadata.gz: 73be353e9c8c424e739e099b4782e7d096cdfaa5
4
+ data.tar.gz: 756c4d32c1ee59921a4720abd56dc7110f4ff565
5
5
  SHA512:
6
- metadata.gz: 50c107211a9203a9d0eae8f1415be76f14c518afa73b073242e421380afc6b1d55b792add55d523a759b2c3800c11e6662a08d67ef53b8d7d07b544ba3fa1841
7
- data.tar.gz: 56540709ede00b06abdb80759898ceb1b19c123e2cf02f67568554e9e00ed642dfe2e5a99c3a700f3d85e6e9de57680462626a98594a660981a71b44deef9546
6
+ metadata.gz: a2236fa07cb92e897bf5fae76591fa8f2d19a41546383a9b9d6063c4964c14c0489df4a7550b882ce829553da35fbce609c467e7f2cce0372ef59bafea93c860
7
+ data.tar.gz: 3084d9fcda1b9e946ddcc17ae8af6d343946a19697bd3d0cd0b4b993460f06bf7ddb90f9b3f878d8903cce8872317549dffeb2ff533aab5ff07b8ada6ee98234
@@ -44,17 +44,22 @@ module GdsApi
44
44
  .to_return(body: body, status: 200, headers: { "Content-Type" => "application/json" })
45
45
  end
46
46
 
47
- def link_checker_api_create_batch(uris:, checked_within: nil, webhook_uri: nil, id: 0, status: :in_progress, links: nil, totals: {}, completed_at: nil)
47
+ def link_checker_api_create_batch(uris:, checked_within: nil, webhook_uri: nil, webhook_secret_token: nil, id: 0, status: :in_progress, links: nil, totals: {}, completed_at: nil)
48
48
  links = uris.map { |uri| { uri: uri } } if links.nil?
49
49
 
50
50
  response_body = link_checker_api_batch_report_hash(
51
- id: id, status: status, links: links, totals: totals, completed_at: completed_at
51
+ id: id,
52
+ status: status,
53
+ links: links,
54
+ totals: totals,
55
+ completed_at: completed_at
52
56
  ).to_json
53
57
 
54
58
  request_body = {
55
59
  uris: uris,
56
60
  checked_within: checked_within,
57
61
  webhook_uri: webhook_uri,
62
+ webhook_secret_token: webhook_secret_token,
58
63
  }.delete_if { |_, v| v.nil? }.to_json
59
64
 
60
65
  stub_request(:post, "#{LINK_CHECKER_API_ENDPOINT}/batch")
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = '41.4.0'.freeze
2
+ VERSION = '41.5.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gds-api-adapters
3
3
  version: !ruby/object:Gem::Version
4
- version: 41.4.0
4
+ version: 41.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Stewart