gds-api-adapters 41.3.0 → 41.4.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: 5feb2ce88c93b7b3358523b586e7a756e3d4c4df
4
- data.tar.gz: 5fb3102fd2d3b114ad2bffe89873478c6e6f4a53
3
+ metadata.gz: 7f532c194a3ad38cbb4be8e86b50abd577c3d910
4
+ data.tar.gz: a7d65acf39bcb70bf5765e608eb3efaea2c96b38
5
5
  SHA512:
6
- metadata.gz: f64b7cece8973c47f5078a4aa07f24292581b9799c99ec908cad406a3946024555e19406c5767c52a7687ac042f95bb2384d45e8f51d1d29b646cdaada178ffe
7
- data.tar.gz: e09157c36fbadfef46512ecc341cfa8671014d8008bfad84553709970b9b77417477bf19d61e892ba23e2204e5f3019a43535afca5f07824e3cb0116d4b1c57c
6
+ metadata.gz: 50c107211a9203a9d0eae8f1415be76f14c518afa73b073242e421380afc6b1d55b792add55d523a759b2c3800c11e6662a08d67ef53b8d7d07b544ba3fa1841
7
+ data.tar.gz: 56540709ede00b06abdb80759898ceb1b19c123e2cf02f67568554e9e00ed642dfe2e5a99c3a700f3d85e6e9de57680462626a98594a660981a71b44deef9546
@@ -40,6 +40,7 @@ class GdsApi::LinkCheckerApi < GdsApi::Base
40
40
  # @param checked_within [Fixnum] The number of seconds the last check should
41
41
  # be within before doing another check. (optional)
42
42
  # @param webhook_uri [String] The URI to be called when the batch finishes. (optional)
43
+ # @param webhook_secret_token [String] A secret token that the API will use to generate a signature of the request. (optional)
43
44
  # @return [BatchReport] A +SimpleDelegator+ of the +GdsApi::Response+ which
44
45
  # responds to:
45
46
  # :id the ID of the batch
@@ -49,11 +50,12 @@ class GdsApi::LinkCheckerApi < GdsApi::Base
49
50
  # :completed_at a date when the batch was completed
50
51
  #
51
52
  # @raise [HTTPErrorResponse] if the request returns an error
52
- def create_batch(uris, checked_within: nil, webhook_uri: nil)
53
+ def create_batch(uris, checked_within: nil, webhook_uri: nil, webhook_secret_token: nil)
53
54
  payload = {
54
55
  uris: uris,
55
56
  checked_within: checked_within,
56
- webhook_uri: webhook_uri
57
+ webhook_uri: webhook_uri,
58
+ webhook_secret_token: webhook_secret_token,
57
59
  }
58
60
 
59
61
  response = post_json(
@@ -71,7 +73,7 @@ class GdsApi::LinkCheckerApi < GdsApi::Base
71
73
  # @return [BatchReport] A +SimpleDelegator+ of the +GdsApi::Response+ which
72
74
  # responds to:
73
75
  # :id the ID of the batch
74
- # :status the status of the check, one of: complete or in_progress
76
+ # :status the status of the check, one of: completed or in_progress
75
77
  # :links an array of link reports
76
78
  # :totals an +OpenStruct+ of total information, fields: links, ok, caution, broken, pending
77
79
  # :completed_at a date when the batch was completed
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = '41.3.0'.freeze
2
+ VERSION = '41.4.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: 41.3.0
4
+ version: 41.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Stewart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-11 00:00:00.000000000 Z
11
+ date: 2017-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: plek