gds-api-adapters 103.0.0 → 103.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/gds_api/publishing_api.rb +1 -1
- data/lib/gds_api/test_helpers/publishing_api.rb +6 -0
- data/lib/gds_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 856e51b28caf448a15abb333dfe0cddd99d2af342f797f0eb4babf8f52fd8dff
|
|
4
|
+
data.tar.gz: 32a23878a58c751f01b719324691b4c006f71bfbf8ced8fd0f9b0f8e4957dc37
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a7a4f203d644ab6f709042d098219d7d985f13e56f3d9972e6b4d43010356cde38baa9463b8bbbe3d193dc785c7978c557f7912c0244a02445fad03d7362c547
|
|
7
|
+
data.tar.gz: c9e403d6b0c0f0d5be055b95ff08ee9ec0af0524225b40b50f23736d332ffc607574d5c5cc9430757d033afea48f0ade1a54dcc1006d945c73f7e5976691ef26
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
require "plek"
|
|
1
2
|
require "gds_api/test_helpers/json_client_helper"
|
|
2
3
|
require "gds_api/test_helpers/content_item_helpers"
|
|
3
4
|
require "json"
|
|
@@ -177,6 +178,11 @@ module GdsApi
|
|
|
177
178
|
stub_request(:any, %r{\A#{PUBLISHING_API_ENDPOINT}})
|
|
178
179
|
end
|
|
179
180
|
|
|
181
|
+
# Stub any request to the publishing API to return a 504 response
|
|
182
|
+
def stub_any_publishing_api_call_to_return_timeout
|
|
183
|
+
stub_request(:any, /#{PUBLISHING_API_ENDPOINT}\/.*/).to_timeout
|
|
184
|
+
end
|
|
185
|
+
|
|
180
186
|
# Stub any request to the publishing API to return a 404 response
|
|
181
187
|
def stub_any_publishing_api_call_to_return_not_found
|
|
182
188
|
stub_request(:any, %r{\A#{PUBLISHING_API_ENDPOINT}})
|
data/lib/gds_api/version.rb
CHANGED
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: 103.
|
|
4
|
+
version: 103.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GOV.UK Dev
|
|
@@ -397,7 +397,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
397
397
|
- !ruby/object:Gem::Version
|
|
398
398
|
version: '0'
|
|
399
399
|
requirements: []
|
|
400
|
-
rubygems_version: 4.0.
|
|
400
|
+
rubygems_version: 4.0.9
|
|
401
401
|
specification_version: 4
|
|
402
402
|
summary: Adapters to work with GDS APIs
|
|
403
403
|
test_files: []
|