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 +4 -4
- data/lib/gds_api/link_checker_api.rb +5 -3
- data/lib/gds_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f532c194a3ad38cbb4be8e86b50abd577c3d910
|
4
|
+
data.tar.gz: a7d65acf39bcb70bf5765e608eb3efaea2c96b38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
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
|
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: 41.
|
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
|
+
date: 2017-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: plek
|